summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraaron <aaron@openbsd.org>2000-06-26 06:22:00 +0000
committeraaron <aaron@openbsd.org>2000-06-26 06:22:00 +0000
commite0d264d6ec0332edfeb02dcad2eb85f97b6320bf (patch)
treeec5c84b12ba1cdbcb250a040d719f00b412751ec
parentsync (diff)
downloadwireguard-openbsd-e0d264d6ec0332edfeb02dcad2eb85f97b6320bf.tar.xz
wireguard-openbsd-e0d264d6ec0332edfeb02dcad2eb85f97b6320bf.zip
Make the Linksys Combo PCMCIA EthernetCard (EC2T) work again; it was broken by
the last commit for AX88190 support. There are at least three variants of ne's that have manufacturer id 0x143 (Linksys) + product id 0xc1ab. Each one has its enaddr in a different place. The matching code for PCMCIA NE2000 is really gross. In particular, the flags field in ne2000_devs (for NE2000DVF_DL10019 and NE2000_AX88190) is a complete hack. The driver should really try each method of reading the Ethernet address (from the ROM, DL10019, and AX88190) and choose the one that generates the correct checksum. I plan to fix this later...
-rw-r--r--sys/dev/pcmcia/if_ne_pcmcia.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pcmcia/if_ne_pcmcia.c b/sys/dev/pcmcia/if_ne_pcmcia.c
index c94320010ee..f4c8c53776c 100644
--- a/sys/dev/pcmcia/if_ne_pcmcia.c
+++ b/sys/dev/pcmcia/if_ne_pcmcia.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ne_pcmcia.c,v 1.29 2000/05/30 14:36:41 fgsch Exp $ */
+/* $OpenBSD: if_ne_pcmcia.c,v 1.30 2000/06/26 06:22:00 aaron Exp $ */
/* $NetBSD: if_ne_pcmcia.c,v 1.17 1998/08/15 19:00:04 thorpej Exp $ */
/*
@@ -161,6 +161,10 @@ struct ne2000dev {
PCMCIA_CIS_NDC_ND5100_E,
0, -1, { 0x00, 0x80, 0xc6 } },
+ { PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID,
+ PCMCIA_CIS_LINKSYS_COMBO_ECARD_2,
+ 0, -1, { 0x00, 0xe0, 0x98 } },
+
/*
* You have to add new entries which contains
* PCMCIA_VENDOR_INVALID and/or PCMCIA_PRODUCT_INVALID