Fix detection of RealTek 8129 PCI cards. Apparently, these cards

report a hardware rev of 0x00000000. Sadly, the 8169 gigE MAC
also reports 0x00000000, so testing against this for exclusion
results in both cards being skipped by rl_probe(). Make the 8169
test more specific by matching against both the hwrev and the PCI
ID for this chip.

PR: kern/60824
This commit is contained in:
wpaul 2004-01-02 17:22:12 +00:00
parent 880a2ed129
commit d4d6be2b78

View File

@ -877,7 +877,8 @@ rl_probe(dev)
/* Don't attach to 8139C+ or 8169/8110 chips. */
if (hwrev == RL_HWREV_8139CPLUS ||
hwrev == RL_HWREV_8169 ||
(hwrev == RL_HWREV_8169 &&
t->rl_did == RT_DEVICEID_8169) ||
hwrev == RL_HWREV_8169S ||
hwrev == RL_HWREV_8110S) {
t++;