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

Bill Paul wpaul at
Wed Jun 28 16:04:55 UTC 2006

wpaul       2006-06-28 16:04:54 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/re           if_re.c 
    sys/pci              if_rlreg.h 
  Properly detect the RTL8168(B?) again. RealTek sent me a bunch of sample
  cards: the chips are all marked "RTL8111B", but they put stickers on the
  back that say "RTL8168B/8111B". The manual says there's only one HWREV code
  for both the 8111B and 8168B devices, which is 0x30000000, but the cards
  they sent me actually report HWREV of 0x38000000. Deciding to trust the
  hardware in front of me rather than a possibly incorrect manual (it wouldn't
  be the first time the HWREVs were incorrectly documented), I changed the
  8168 revision code. It turns out this was a mistake though: 0x30000000
  really is a valid for the 8168.
  There are two possible reasons for there to be two different HWREVs:
  1) 0x30000000 is used only for the 8168B and 0x38000000 is only for
     the 8111B.
  2) There were 8111/8168 rev A devices which both used code 0x30000000,
     and the 8111B/8168B both use 0x38000000.
  The product list on the RealTek website doesn't mention the existence of
  any 8168/8111 rev A chips being in production though, and I've never seen
  one, so until I get clarification from RealTek, I'm going to assume that
  0x30000000 is just for the 8168B and 0x38000000 is for the 8111B only.
  So, the HWREV code for the 8168 has been put back to 0x30000000,
  a new 8111 HWREV code has been added, and there are now separate
  entries for recognizing both devices in the device list. This will
  allow all devices to work, though if it turns out I'm wrong I may
  need to change the ID strings
  Revision  Changes    Path
  1.69      +4 -1      src/sys/dev/re/if_re.c
  1.58      +2 -1      src/sys/pci/if_rlreg.h

More information about the cvs-src mailing list