Re: PCMCIA ne2000 compatible Ethernet card driver

Manuel Bouyer <[email protected]> Tue, 11 Mar 2008 22:22:48 +0100
Newsgroups gmane.os.netbsd.help
Message-ID <[email protected]>
--oyUTqETQ0mS9luUI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Sun, Mar 09, 2008 at 09:09:19PM -0300, Javier Steinaker wrote:
> Hi again,
> 
> Under Puppy Linux, I ejected the card and inserted it
> again. The results in dmesg:
> 
> -------------------------------------------------
> pccard: card ejected from slot 0
> pccard: PCMCIA card inserted into slot 0
> pcmcia: registering new device pcmcia0.0
> eth0: NE2000 Compatible: io 0x300, irq 3, hw_addr
> 00:C0:0C:03:78:F1
> -------------------------------------------------
> 
> As you can see, the hardware address is in the last
> line.
> One more thing: the driver, in Linux, is called
> pcnet-cs.

OK, could you try the attached patch ?

-- 
Manuel Bouyer <[email protected]>
     NetBSD: 26 ans d'experience feront toujours la difference
--

--oyUTqETQ0mS9luUI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff

Index: if_ne_pcmcia.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pcmcia/if_ne_pcmcia.c,v
retrieving revision 1.150
diff -u -p -u -r1.150 if_ne_pcmcia.c
--- if_ne_pcmcia.c	19 Oct 2007 12:01:04 -0000	1.150
+++ if_ne_pcmcia.c	11 Mar 2008 21:22:18 -0000
@@ -111,6 +111,10 @@ static const struct ne2000dev {
       0, -1, { 0x00, 0x90, 0xcc }, NE2000DVF_AX88190 },
 
     { PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID,
+      PCMCIA_CIS_EXP_THINLAN100,
+      0, -1, { 0x00, 0xc0, 0x0c }, 0 },
+
+    { PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID,
       PCMCIA_CIS_SYNERGY21_S21810,
       0, -1, { 0x00, 0x48, 0x54 }, 0 },
 
Index: pcmciadevs
===================================================================
RCS file: /cvsroot/src/sys/dev/pcmcia/pcmciadevs,v
retrieving revision 1.223
diff -u -p -u -r1.223 pcmciadevs
--- pcmciadevs	22 Sep 2007 19:59:55 -0000	1.223
+++ pcmciadevs	11 Mar 2008 21:22:18 -0000
@@ -499,6 +499,7 @@ product	DYNALINK L10C		{ "DYNALINK", "L1
 product EIGERLABS EPX_AA2000	{ "Eiger&splabs,Inc.", "EPX-AA2000&spPC&spSound&spCard", NULL, NULL } EPX-AA2000 PC Sound Card
 product EPSON EEN10B		{ "Seiko&spEpson&spCorp.", "Ethernet", "P/N:&spEEN10B&spRev.&sp00", NULL } Epson EEN10B
 product EXP EXPMULTIMEDIA	{ "EXP&sp&sp&sp", "PnPIDE", "F1", NULL } EXP IDE/ATAPI DVD Card
+product EXP THINLAN100		{ "PCMCIA&spLAN", "Ethernet", "A", NULL } EXP Thinlan-100 ethernet adapter
 product FUJITSU FMV_J181	{ "PCMCIA&spMBH10302", "01", NULL, NULL } FUJITSU FMV-J181 PCMCIA Card
 product FUJITSU FMV_J182	{ "FUJITSU", "LAN&spCard(FMV-J182)", "Ver.01", NULL } FUJITSU FMV-J182 PCMCIA Card
 product FUJITSU FMV_J182A	{ "FUJITSU", "LAN&spCard(FMV-J182)", "Ver.02", NULL } FUJITSU FMV-J182A PCMCIA Card
Index: pcmciadevs.h
===================================================================
RCS file: /cvsroot/src/sys/dev/pcmcia/pcmciadevs.h,v
retrieving revision 1.226
diff -u -p -u -r1.226 pcmciadevs.h
--- pcmciadevs.h	22 Sep 2007 20:01:21 -0000	1.226
+++ pcmciadevs.h	11 Mar 2008 21:22:18 -0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: pcmciadevs.h,v 1.226 2007/09/22 20:01:21 kiyohara Exp $	*/
+/*	$NetBSD$	*/
 
 /*
  * THIS FILE AUTOMATICALLY GENERATED.  DO NOT EDIT.
@@ -708,6 +708,8 @@
 #define	PCMCIA_PRODUCT_EPSON_EEN10B	-1
 #define	PCMCIA_CIS_EXP_EXPMULTIMEDIA	{ "EXP   ", "PnPIDE", "F1", NULL }
 #define	PCMCIA_PRODUCT_EXP_EXPMULTIMEDIA	-1
+#define	PCMCIA_CIS_EXP_THINLAN100	{ "PCMCIA LAN", "Ethernet", "A", NULL }
+#define	PCMCIA_PRODUCT_EXP_THINLAN100	-1
 #define	PCMCIA_CIS_FUJITSU_FMV_J181	{ "PCMCIA MBH10302", "01", NULL, NULL }
 #define	PCMCIA_PRODUCT_FUJITSU_FMV_J181	-1
 #define	PCMCIA_CIS_FUJITSU_FMV_J182	{ "FUJITSU", "LAN Card(FMV-J182)", "Ver.01", NULL }
Index: pcmciadevs_data.h
===================================================================
RCS file: /cvsroot/src/sys/dev/pcmcia/pcmciadevs_data.h,v
retrieving revision 1.226
diff -u -p -u -r1.226 pcmciadevs_data.h
--- pcmciadevs_data.h	22 Sep 2007 20:01:21 -0000	1.226
+++ pcmciadevs_data.h	11 Mar 2008 21:22:18 -0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: pcmciadevs_data.h,v 1.226 2007/09/22 20:01:21 kiyohara Exp $	*/
+/*	$NetBSD$	*/
 
 /*
  * THIS FILE AUTOMATICALLY GENERATED.  DO NOT EDIT.
@@ -1478,6 +1478,13 @@ struct pcmcia_knowndev pcmcia_knowndevs[
 	    "EXP IDE/ATAPI DVD Card",	}
 	,
 	{
+	    PCMCIA_VENDOR_UNKNOWN, PCMCIA_PRODUCT_EXP_THINLAN100,
+	    PCMCIA_CIS_EXP_THINLAN100,
+	    0,
+	    "EXP Computer Inc",
+	    "EXP Thinlan-100 ethernet adapter",	}
+	,
+	{
 	    PCMCIA_VENDOR_UNKNOWN, PCMCIA_PRODUCT_FUJITSU_FMV_J181,
 	    PCMCIA_CIS_FUJITSU_FMV_J181,
 	    0,

--oyUTqETQ0mS9luUI--