cvs commit: src/sys/dev/ed if_ed_rtl80x9.c

Warner Losh imp at FreeBSD.org
Fri Oct 21 22:14:19 PDT 2005


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


More information about the cvs-src mailing list