From owner-freebsd-hackers Tue Sep 11 12: 5:19 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from hotmail.com (f4.law3.hotmail.com [209.185.241.4]) by hub.freebsd.org (Postfix) with ESMTP id 1946B37B406 for ; Tue, 11 Sep 2001 12:05:12 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 11 Sep 2001 12:05:12 -0700 Received: from 205.158.104.176 by lw3fd.law3.hotmail.msn.com with HTTP; Tue, 11 Sep 2001 19:05:11 GMT X-Originating-IP: [205.158.104.176] From: "Srinivas Dharmasanam" To: freebsd-hackers@freebsd.org Subject: Re: inw and outw calls Date: Tue, 11 Sep 2001 12:05:11 -0700 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 11 Sep 2001 19:05:12.0078 (UTC) FILETIME=[AEB78AE0:01C13AF4] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I have a question regarding the inb/outb() or inw/outw() calls in FreeBSD 4.2. I have a dual fxp Fast Ethernet NIC that shows up as following with dmesg : fxp1: port 0xcc00-0xcc3f mem 0xef900000-0xef9fffff,0xefa ff000-0xefafffff irq 18 at device 12.0 on pci2 fxp1: Ethernet address 00:30:64:03:03:2a fxp2: port 0xc800-0xc83f mem 0xef700000-0xef7fffff,0xefa fe000-0xefafefff irq 19 at device 13.0 on pci2 fxp2: Ethernet address 00:30:64:03:03:2b Now, I need to write the Watchdog timer ctrl registers (offset 65 and 66) on this card. For this I'm using outb(port, val) fn call. Can someone please tell me how to calculate the port no to pass to this outb() function. I tried writing to all possible port nos starting from 0xc800 to 0xc83f and 0xcc00-0xcc3f but it has no apparent effect on the system. Please let me know how to translate this port range to the actual outb() fn call arguments. Thanks a lot in advance. Regards, -Srinivas _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message