summaryrefslogtreecommitdiff
path: root/sys/dev/isa
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-03-17 10:50:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-03-17 10:50:34 +0000
commit893adc1fc6ca9c90e41e1a79b70a07cff2c53972 (patch)
treebc932f225c12ba57bfb81a5f3119d8292290c764 /sys/dev/isa
parentf8b84241cd1c473ecdd384a13af74500f38fda18 (diff)
support a few more NE2000 PCI cards
Diffstat (limited to 'sys/dev/isa')
-rw-r--r--sys/dev/isa/if_ed.c23
1 files changed, 15 insertions, 8 deletions
diff --git a/sys/dev/isa/if_ed.c b/sys/dev/isa/if_ed.c
index 266125d72e4..f500695bf79 100644
--- a/sys/dev/isa/if_ed.c
+++ b/sys/dev/isa/if_ed.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ed.c,v 1.35 1998/03/16 10:41:39 downsj Exp $ */
+/* $OpenBSD: if_ed.c,v 1.36 1998/03/17 10:50:33 deraadt Exp $ */
/* $NetBSD: if_ed.c,v 1.105 1996/10/21 22:40:45 thorpej Exp $ */
/*
@@ -390,14 +390,21 @@ ed_pci_match(parent, match, aux)
struct pci_attach_args *pa = aux;
/* We don't check the vendor here since many make NE2000 clones */
- if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_REALTEK &&
- PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RT8029)
+ if ((PCI_VENDOR(pa->pa_id) == PCI_VENDOR_REALTEK &&
+ PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RT8029) ||
+ (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_WINBOND &&
+ PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_WINBOND_W89C940F) ||
+ (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_WINBOND2 &&
+ PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_WINBOND2_W89C940) ||
+ (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_NETVIN &&
+ PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_NETVIN_VN5000) ||
+ (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_COMPEX &&
+ PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_COMPEX_COMPEXE) ||
+ (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_KTI &&
+ PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_KTI_KTIE) ||
+ (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_SURECOM &&
+ PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_SURECOM_NE34))
return (1);
-
- if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_WINBOND &&
- PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_WINBOND_W89C940F)
- return (1);
-
return (0);
}