summaryrefslogtreecommitdiffstats
path: root/sys/dev/pccard
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2000-09-05 18:25:49 +0000
committerimp <imp@FreeBSD.org>2000-09-05 18:25:49 +0000
commitd0a5f2be36f5b70acb1ddff96b94a91b1ef80315 (patch)
tree7087c1a0253dce9a86390e8563e1ca6732e1f453 /sys/dev/pccard
parent1f829f1dafc73965f3243c2fd85a4acb6d4f0586 (diff)
downloadFreeBSD-src-d0a5f2be36f5b70acb1ddff96b94a91b1ef80315.zip
FreeBSD-src-d0a5f2be36f5b70acb1ddff96b94a91b1ef80315.tar.gz
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...
Diffstat (limited to 'sys/dev/pccard')
-rw-r--r--sys/dev/pccard/pccard_cis_quirks.c25
1 files changed, 24 insertions, 1 deletions
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 =
OpenPOWER on IntegriCloud