diff options
| author | scw <scw@NetBSD.org> | 2000-04-12 21:07:55 +0000 |
|---|---|---|
| committer | scw <scw@NetBSD.org> | 2000-04-12 21:07:55 +0000 |
| commit | e083abcad80c886fbe2fbb7d6ed15b9296451b51 (patch) | |
| tree | fc8577d555900d94c29230b6ab7783d8b171df77 /sys/dev | |
| parent | 5c4de0589967dcf6d1216121e2bfb970e0ab12e0 (diff) | |
Add support for the SOHOware PCMCIA Ethernet card, model ND5100-E.
This seems to be a re-badged NDC (National Datacomms. Corp) card.
It needs a quirk entry due to lack of manufacturer tuple in the CIS.
For some reason, the 'Tx/Rx' LED on the connector module is inverted
such that it is off during network activity...
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/pcmcia/if_ne_pcmcia.c | 7 | ||||
| -rw-r--r-- | sys/dev/pcmcia/pcmcia_cis_quirks.c | 25 | ||||
| -rw-r--r-- | sys/dev/pcmcia/pcmciadevs | 3 |
3 files changed, 32 insertions, 3 deletions
diff --git a/sys/dev/pcmcia/if_ne_pcmcia.c b/sys/dev/pcmcia/if_ne_pcmcia.c index 83ea7bfc747..0bf2c8310eb 100644 --- a/sys/dev/pcmcia/if_ne_pcmcia.c +++ b/sys/dev/pcmcia/if_ne_pcmcia.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_ne_pcmcia.c,v 1.59 2000/03/20 18:39:32 tron Exp $ */ +/* $NetBSD: if_ne_pcmcia.c,v 1.60 2000/04/12 21:07:55 scw Exp $ */ /* * Copyright (c) 1997 Marc Horowitz. All rights reserved. @@ -319,6 +319,11 @@ struct ne2000dev { PCMCIA_CIS_BILLIONTON_LNT10TN, 0, -1, { 0x00, 0x00, 0x00 } }, + { PCMCIA_STR_NDC_ND5100_E, + PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID, + PCMCIA_CIS_NDC_ND5100_E, + 0, -1, { 0x00, 0x80, 0xc6 } }, + #if 0 /* the rest of these are stolen from the linux pcnet pcmcia device driver. Since I don't know the manfid or cis info strings for diff --git a/sys/dev/pcmcia/pcmcia_cis_quirks.c b/sys/dev/pcmcia/pcmcia_cis_quirks.c index e1de7b17708..2d9dbb8431e 100644 --- a/sys/dev/pcmcia/pcmcia_cis_quirks.c +++ b/sys/dev/pcmcia/pcmcia_cis_quirks.c @@ -1,4 +1,4 @@ -/* $NetBSD: pcmcia_cis_quirks.c,v 1.5 1999/10/11 17:50:21 thorpej Exp $ */ +/* $NetBSD: pcmcia_cis_quirks.c,v 1.6 2000/04/12 21:07:55 scw Exp $ */ #define PCMCIADEBUG @@ -154,6 +154,27 @@ static struct pcmcia_config_entry pcmcia_sveclancard_func0_cfe0 = { 0, /* maxtwins */ }; +static struct pcmcia_function pcmcia_ndc_nd5100_func0 = { + 0, /* function number */ + PCMCIA_FUNCTION_NETWORK, + 0x23, /* last cfe number */ + 0x3f8, /* ccr_base */ + 0x3, /* ccr_mask */ +}; + +static struct pcmcia_config_entry pcmcia_ndc_nd5100_func0_cfe0 = { + 0x20, /* cfe number */ + PCMCIA_CFE_MWAIT_REQUIRED | PCMCIA_CFE_IO16 | PCMCIA_CFE_IRQLEVEL, + PCMCIA_IFTYPE_IO, + 1, /* num_iospace */ + 5, /* iomask */ + { { 0x20, 0x300 } }, /* iospace */ + 0xdeb8, /* irqmask */ + 0, /* num_memspace */ + { }, /* memspace */ + 0, /* maxtwins */ +}; + static struct pcmcia_cis_quirk pcmcia_cis_quirks[] = { { PCMCIA_VENDOR_3COM, PCMCIA_PRODUCT_3COM_3CXEM556, PCMCIA_CIS_INVALID, &pcmcia_3cxem556_func0, &pcmcia_3cxem556_func0_cfe0 }, @@ -171,6 +192,8 @@ static struct pcmcia_cis_quirk pcmcia_cis_quirks[] = { &pcmcia_3ccfem556bi_func1, &pcmcia_3ccfem556bi_func1_cfe0 }, { PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID, PCMCIA_CIS_SVEC_LANCARD, &pcmcia_sveclancard_func0, &pcmcia_sveclancard_func0_cfe0 }, + { PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID, PCMCIA_CIS_NDC_ND5100_E, + &pcmcia_ndc_nd5100_func0, &pcmcia_ndc_nd5100_func0_cfe0 }, }; static int n_pcmcia_cis_quirks = diff --git a/sys/dev/pcmcia/pcmciadevs b/sys/dev/pcmcia/pcmciadevs index d8ab84c68df..467e97cd6b8 100644 --- a/sys/dev/pcmcia/pcmciadevs +++ b/sys/dev/pcmcia/pcmciadevs @@ -1,4 +1,4 @@ -$NetBSD: pcmciadevs,v 1.86 2000/03/26 10:24:51 itojun Exp $ +$NetBSD: pcmciadevs,v 1.87 2000/04/12 21:07:55 scw Exp $ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -272,3 +272,4 @@ product AMD AM79C930 { "AMD", "Am79C930", NULL, NULL } AMD Am79C930 product ICOM SL200 { "Icom", "SL-200", NULL, NULL } Icom SL-200 product XIRCOM CFE_10 { "Xircom", "CompactCard&spEthernet", "CFE-10", "1.00" } Xircom CompactCard CFE-10 product BILLIONTON LNT10TN { "PCMCIA", "LNT-10TN", NULL, NULL } Billionton Systems Inc. LNT-10TN NE2000 Compatible Card +product NDC ND5100_E { "NDC", "Ethernet", "A", NULL } Sohoware ND5100E NE2000 Compatible Card |
