summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-01-11 06:48:38 +0000
committerimp <imp@FreeBSD.org>2005-01-11 06:48:38 +0000
commit515cc4ca6afd6df2118ceb1d0aca4bb09175e056 (patch)
tree32cbd14923ccda521fbc2d8a8f2ee0a590a02245 /sys
parente3c9facbe6c72dd175e6856fd8002220fca8732b (diff)
downloadFreeBSD-src-515cc4ca6afd6df2118ceb1d0aca4bb09175e056.zip
FreeBSD-src-515cc4ca6afd6df2118ceb1d0aca4bb09175e056.tar.gz
Add a few cards from NetBSD. They don't work yet, since the code to
read the ethernet address from the attribute space hasn't been implemented. Also add flags for the MBH10302. The flags and maddr fields will be used when reading from the attribute space...
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/fe/if_fe_pccard.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/sys/dev/fe/if_fe_pccard.c b/sys/dev/fe/if_fe_pccard.c
index edca4c3..66ee9c1 100644
--- a/sys/dev/fe/if_fe_pccard.c
+++ b/sys/dev/fe/if_fe_pccard.c
@@ -61,9 +61,17 @@ static int fe_pccard_match(device_t);
static const struct fe_pccard_product {
struct pccard_product mpp_product;
- u_int32_t mpp_ioalign; /* required alignment */
+ uint32_t mpp_ioalign; /* required alignment */
int mpp_enet_maddr;
+ int mpp_flags;
+#define MBH10302 0x1 /* Fujitsu MBH10302 */
} fe_pccard_products[] = {
+ /* These need to be first */
+ { PCMCIA_CARD(FUJITSU2, FMV_J181, 0), 0, -1, MBH10302},
+ { PCMCIA_CARD(FUJITSU2, FMV_J182, 0), 0, 0xf2c},
+ { PCMCIA_CARD(FUJITSU2, FMV_J182A, 0), 0, 0x1cc},
+ { PCMCIA_CARD(FUJITSU2, ITCFJ182A, 0), 0, 0x1cc},
+ /* These need to be second */
{ PCMCIA_CARD(TDK, LAK_CD021BX, 0), 0, -1 },
{ PCMCIA_CARD(TDK, LAK_CF010, 0), 0, -1 },
#if 0 /* XXX 86960-based? */
@@ -72,7 +80,7 @@ static const struct fe_pccard_product {
{ PCMCIA_CARD(CONTEC, CNETPC, 0), 0, -1 },
{ PCMCIA_CARD(FUJITSU, LA501, 0), 0x20, -1 },
{ PCMCIA_CARD(FUJITSU, LA10S, 0), 0, -1 },
- { PCMCIA_CARD(FUJITSU, NE200T, 0), 0, -1 }, /* Sold by Eagle */
+ { PCMCIA_CARD(FUJITSU, NE200T, 0), 0, -1, MBH10302},/* Sold by Eagle */
{ PCMCIA_CARD(RATOC, REX_R280, 0), 0, 0x1fc },
{ { NULL } }
};
@@ -164,12 +172,6 @@ fe_pccard_attach(device_t dev)
/*
* feunload - unload the driver and clear the table.
- * XXX TODO:
- * This is usually called when the card is ejected, but
- * can be caused by a modunload of a controller driver.
- * The idea is to reset the driver's view of the device
- * and ensure that any driver entry points such as
- * read and write do not hang.
*/
static int
fe_pccard_detach(device_t dev)
OpenPOWER on IntegriCloud