Date: Sat, 22 Oct 2005 05:14:19 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/ed if_ed_rtl80x9.c Message-ID: <200510220514.j9M5EJl7073788@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
imp 2005-10-22 05:14:19 UTC
FreeBSD src repository
Modified files:
sys/dev/ed if_ed_rtl80x9.c
Log:
In the ISA case, we call ed_probe_WD80x3 before we call
ed_probe_rtl80x9. In the pci case we call ed_probe_rtl80x9 first. In
the PCI case we were using the correct nic_offset by accident because
softc is initialized to zero. In the isa case we were using the wrong
value by accident, since ed_probe_WD80x3 sets the offset value to
0x10. This lead to the identification routines failing. Fix this
problem by always initalizing the nic_offset and asic_offset before
making ed_{asic,nic}_{in,out}* calls.
Revision Changes Path
1.3 +3 -3 src/sys/dev/ed/if_ed_rtl80x9.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510220514.j9M5EJl7073788>
