Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Sep 2001 12:05:11 -0700
From:      "Srinivas Dharmasanam" <the_srinivas@hotmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: inw and outw calls
Message-ID:  <F4lCPx33E1ioWwr2UAa00016ef7@hotmail.com>

next in thread | raw e-mail | index | archive | help
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: <Intel Pro 10/100B/100+ Ethernet> 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: <Intel Pro 10/100B/100+ Ethernet> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F4lCPx33E1ioWwr2UAa00016ef7>