From d0a5f2be36f5b70acb1ddff96b94a91b1ef80315 Mon Sep 17 00:00:00 2001 From: imp Date: Tue, 5 Sep 2000 18:25:49 +0000 Subject: MFNetBSD: 1.6 2000/04/12 21:07:55 scw 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... --- sys/dev/pccard/pccard_cis_quirks.c | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'sys/dev/pccard') diff --git a/sys/dev/pccard/pccard_cis_quirks.c b/sys/dev/pccard/pccard_cis_quirks.c index 949a237..96ab13c 100644 --- a/sys/dev/pccard/pccard_cis_quirks.c +++ b/sys/dev/pccard/pccard_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 $ */ /* $FreeBSD$ */ #define PCCARDDEBUG @@ -161,6 +161,27 @@ static struct pccard_config_entry pccard_sveclancard_func0_cfe0 = { 0, /* maxtwins */ }; +static struct pccard_function pccard_ndc_nd5100_func0 = { + 0, /* function number */ + PCCARD_FUNCTION_NETWORK, + 0x23, /* last cfe number */ + 0x3f8, /* ccr_base */ + 0x3, /* ccr_mask */ +}; + +static struct pccard_config_entry pccard_ndc_nd5100_func0_cfe0 = { + 0x20, /* cfe number */ + PCCARD_CFE_MWAIT_REQUIRED | PCCARD_CFE_IO16 | PCCARD_CFE_IRQLEVEL, + PCCARD_IFTYPE_IO, + 1, /* num_iospace */ + 5, /* iomask */ + { { 0x20, 0x300 } }, /* iospace */ + 0xdeb8, /* irqmask */ + 0, /* num_memspace */ + { }, /* memspace */ + 0, /* maxtwins */ +}; + static struct pccard_cis_quirk pccard_cis_quirks[] = { { PCCARD_VENDOR_3COM, PCCARD_PRODUCT_3COM_3CXEM556, PCCARD_CIS_INVALID, &pccard_3cxem556_func0, &pccard_3cxem556_func0_cfe0 }, @@ -178,6 +199,8 @@ static struct pccard_cis_quirk pccard_cis_quirks[] = { &pccard_3ccfem556bi_func1, &pccard_3ccfem556bi_func1_cfe0 }, { PCCARD_VENDOR_INVALID, PCCARD_PRODUCT_INVALID, PCCARD_CIS_SVEC_LANCARD, &pccard_sveclancard_func0, &pccard_sveclancard_func0_cfe0 }, + { PCCARD_VENDOR_INVALID, PCCARD_PRODUCT_INVALID, PCCARD_CIS_NDC_ND5100_E, + &pccard_ndc_nd5100_func0, &pccard_ndc_nd5100_func0_cfe0 }, }; static int n_pccard_cis_quirks = -- cgit v1.1