cvs commit: src/sys/dev/cs if_cs.c

Warner Losh imp at
Fri Jun 6 17:22:18 UTC 2008

imp         2008-06-06 17:22:07 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/cs           if_cs.c 
  SVN rev 179620 on 2008-06-06 17:22:07Z by imp
  o Remove unused cs_debug tunable.  I think I added it and then nothing with
    it.  Bad imp.  Removing us dips us under 10,000 in size too.
  o Replace an unconditional 30ms DELAY (yes, busy wait) with a check of the
    SIBUSY bit in the SelfST register before accessing the eeprom.  This changes
    the time to read the EEPROM from 2 * 20 * 30ms (1.2s) to < 20*25us (.0005s)
    and make the attach of the card tolerable when ethernet media is present.
    Include data from the datasheet about why this works.  While this is a 2500x
    speed increase, it doesn't really matter at all once the card is probed...
  o set dev earlier in softc.
  Revision  Changes    Path
  1.52      +22 -10    src/sys/dev/cs/if_cs.c

More information about the cvs-src mailing list