From d4032b0b1059b8184a8e962fb7f0dff9b9ad9ca6 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Tue, 25 Apr 2000 21:45:45 +0000 Subject: [PATCH] Ignore tulip chips on LanMedia WAN cards. --- sys/dev/de/if_de.c | 7 +++++++ sys/pci/if_de.c | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c index 6e0d544e50f0..32d68d0a9bf6 100644 --- a/sys/dev/de/if_de.c +++ b/sys/dev/de/if_de.c @@ -5085,6 +5085,13 @@ tulip_pci_probe(device_t dev) if (pci_get_vendor(dev) != DEC_VENDORID) return ENXIO; + /* + * Some LanMedia WAN cards use the Tulip chip, but they have + * their own driver, and we should not recognize them + */ + if (pci_get_subvendor(dev) == 0x1376) + return ENXIO; + switch (pci_get_device(dev)) { case CHIPID_21040: name = "Digital 21040 Ethernet"; diff --git a/sys/pci/if_de.c b/sys/pci/if_de.c index 6e0d544e50f0..32d68d0a9bf6 100644 --- a/sys/pci/if_de.c +++ b/sys/pci/if_de.c @@ -5085,6 +5085,13 @@ tulip_pci_probe(device_t dev) if (pci_get_vendor(dev) != DEC_VENDORID) return ENXIO; + /* + * Some LanMedia WAN cards use the Tulip chip, but they have + * their own driver, and we should not recognize them + */ + if (pci_get_subvendor(dev) == 0x1376) + return ENXIO; + switch (pci_get_device(dev)) { case CHIPID_21040: name = "Digital 21040 Ethernet";