support FUJITSU CF EthernetCard

ITCFJ181A

mbe0 at pcmcia1 function 0: Fujitsu J182A Compact Flash Ethernet
mbe0: Ethernet address 00:00:0e:c5:01:ea
This commit is contained in:
ichiro 2001-12-16 05:44:33 +00:00
parent a4ad95c757
commit ff638ce5fd
2 changed files with 32 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_mbe_pcmcia.c,v 1.22 2001/12/15 13:23:22 soren Exp $ */
/* $NetBSD: if_mbe_pcmcia.c,v 1.23 2001/12/16 05:44:33 ichiro Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_mbe_pcmcia.c,v 1.22 2001/12/15 13:23:22 soren Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_mbe_pcmcia.c,v 1.23 2001/12/16 05:44:33 ichiro Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -119,6 +119,10 @@ const struct mbe_pcmcia_product {
PCMCIA_PRODUCT_FUJITSU_LA10S, 0 },
0, -1 },
{ { PCMCIA_STR_FUJITSU_ITCFJ182A, PCMCIA_VENDOR_FUJITSU,
PCMCIA_PRODUCT_FUJITSU_ITCFJ182A, 0 },
0, 0x1cc },
{ { PCMCIA_STR_RATOC_REX_R280, PCMCIA_VENDOR_RATOC,
PCMCIA_PRODUCT_RATOC_REX_R280, 0 },
0, 0x1fc },

View File

@ -1,4 +1,4 @@
/* $NetBSD: pcmcia_cis_quirks.c,v 1.14 2001/11/15 09:48:13 lukem Exp $ */
/* $NetBSD: pcmcia_cis_quirks.c,v 1.15 2001/12/16 05:44:33 ichiro Exp $ */
/*
* Copyright (c) 1998 Marc Horowitz. All rights reserved.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pcmcia_cis_quirks.c,v 1.14 2001/11/15 09:48:13 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: pcmcia_cis_quirks.c,v 1.15 2001/12/16 05:44:33 ichiro Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -245,8 +245,7 @@ static const struct pcmcia_function pcmcia_emtac_a2424i_func0 = {
static const struct pcmcia_config_entry pcmcia_emtac_a2424i_func0_cfe0 = {
0x21, /* cfe number */
PCMCIA_CFE_IO16 | PCMCIA_CFE_IRQLEVEL |
PCMCIA_CFE_IRQPULSE,
PCMCIA_CFE_IO16 | PCMCIA_CFE_IRQLEVEL | PCMCIA_CFE_IRQPULSE,
PCMCIA_IFTYPE_IO,
1, /* num_iospace */
6, /* iomask */
@ -257,6 +256,27 @@ static const struct pcmcia_config_entry pcmcia_emtac_a2424i_func0_cfe0 = {
0, /* maxtwins */
};
static const struct pcmcia_function pcmcia_fujitsu_j182a_func0 = {
0, /* function number */
PCMCIA_FUNCTION_NETWORK,
0x3d, /* last cfe number */
0x3f0, /* ccr_base */
0xf, /* ccr_mask */
};
static const struct pcmcia_config_entry pcmcia_fujitsu_j182a_func0_cfe0 = {
0x31, /* cfe number */
PCMCIA_CFE_IO8 | PCMCIA_CFE_IO16 | PCMCIA_CFE_IRQLEVEL,
PCMCIA_IFTYPE_IO,
1, /* num_iospace */
10, /* iomask */
{ { 0x20, 0x220 } }, /* iospace */
0xffff, /* irqmask */
0, /* num_memspace */
{ { 0 } }, /* memspace */
0, /* maxtwins */
};
static const struct pcmcia_cis_quirk pcmcia_cis_quirks[] = {
{ PCMCIA_VENDOR_LINKSYS, PCMCIA_PRODUCT_LINKSYS_ECARD_1,
PCMCIA_CIS_INVALID,
@ -290,6 +310,8 @@ static const struct pcmcia_cis_quirk pcmcia_cis_quirks[] = {
&pcmcia_ndc_nd5100_func0, &pcmcia_ndc_nd5100_func0_cfe0 },
{ PCMCIA_VENDOR_EMTAC, PCMCIA_PRODUCT_EMTAC_WLAN, PCMCIA_CIS_INVALID,
&pcmcia_emtac_a2424i_func0, &pcmcia_emtac_a2424i_func0_cfe0 },
{ PCMCIA_VENDOR_FUJITSU, PCMCIA_PRODUCT_FUJITSU_ITCFJ182A, PCMCIA_CIS_INVALID,
&pcmcia_fujitsu_j182a_func0, &pcmcia_fujitsu_j182a_func0_cfe0 },
};
static int n_pcmcia_cis_quirks =