cvs commit: src/sys/pci if_rlreg.h src/sys/dev/re if_re.c

Bill Paul wpaul at
Wed Sep 10 23:56:47 PDT 2003

wpaul       2003/09/10 23:56:46 PDT

  FreeBSD src repository

  Modified files:
    sys/pci              if_rlreg.h 
    sys/dev/re           if_re.c 
  - For the 8169 chips, read the station address by forcing an EEPROM
    autoload and then copying the contends of the station address
    registers. For some reason, reading the EEPROM on the 8169S doesn't
    work right. This gets around the problem, and allows us to read
    the station address correctly on the 8169S.
  - Insert a delay after initiating packet transmition in re_diag() to
    allow lots of time for the frame to echo back to the host, and wait
    for both the 'RX complete' and 'timeout expired' bits in the ISR
    register to be set.
  - Deal more intelligently with the fact that the frame length
    field in the RX descriptor is a different width on the 8139C+
    than it is on the 8169/8169S/8110S
  - For the 8169, you have to set bit 17 in the TX config register
    to enter digital loopback mode, but for the 8139C+, you have to
    set both bits 17 and 18. Take this into account so that re_diag()
    works properly for both types of chips.
  Revision  Changes    Path
  1.5       +59 -27    src/sys/dev/re/if_re.c
  1.38      +6 -4      src/sys/pci/if_rlreg.h

More information about the cvs-src mailing list