Date: Tue, 11 Sep 2001 21:26:10 +0200 From: German Tischler <tanis@gaspode.franken.de> To: Srinivas Dharmasanam <the_srinivas@hotmail.com> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: inw and outw calls Message-ID: <20010911212610.A2817@gaspode.franken.de> In-Reply-To: <F4lCPx33E1ioWwr2UAa00016ef7@hotmail.com>; from the_srinivas@hotmail.com on Tue, Sep 11, 2001 at 12:05:11PM -0700 References: <F4lCPx33E1ioWwr2UAa00016ef7@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Tue, Sep 11, 2001 at 12:05:11PM -0700, Srinivas Dharmasanam wrote: > 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. You should probably extend the kernel fxp driver and use bus_space_read and bus_space_write instead of trying to do this in userspace. The driver already has a watchdog routine, perhaps you can add what you need there. --gt [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iQEVAwUBO55lUb7hO6NLB/FvAQHDpgf/YjL+0G/E8aMVq/5FH6J51TzTW/H6XNrS iPEHMLOVa5j1LvjdutmSSglBssNW6ZbyJMcwvBR6bDbQ8M7fjF2QpsH2LOnRw1Zb y+aZqYheGGbChZ1j57uIeWP7kqZGI1RpWOQaBpzSbnco2qBvuo97VYPDJvAZ/tX9 BGVM06hmaLoUpzV+zzEUFR5ZYtJJNJM33E+It3aZUUIc9d3jhsQVVKVMvONs43T6 S0dciOQ20F4odpZMuN61YMQ8q4hzMYqUeBmCU5XwGKbYYL7XsIGbDcxHKnqE86qc MFdleIMgETCLiybxvdM8zcjY0P1Yfq6TQLoOi1pxUuyX2CDLPx6kyg== =m0fL -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010911212610.A2817>
