Subject: Re: Is the accton en2216 pcmcia ethernet card supported ?
To: =?iso-8859-1?Q?R=E9mi?= Zara <remi.zara@easynet.fr>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-i386
Date: 09/14/2002 22:43:57
--Dxnq1zWXvFF0Q93v
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

On Sat, Sep 14, 2002 at 10:29:42PM +0200, Rémi Zara wrote:
> The machine is a laptop TI Extensa560CDT
> 
> Here is the relevant part of the boot message:
> [...]
> md0: internal 2048 hb image area
> ACCTON, EN2216-PCMCIA-ETHERNET, EN2216R01 (manufacturer 0xffffffff, product 0xffffffff) at pcmcia0, function 0 not configured
> wd0: no disk label
> [...]

Can you try the attached patch ? I can build a boot floppy image and/or
kernel if needed.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
--

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

Index: if_ne_pcmcia.c
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/pcmcia/if_ne_pcmcia.c,v
retrieving revision 1.94
diff -u -r1.94 if_ne_pcmcia.c
--- if_ne_pcmcia.c	2002/07/23 14:11:11	1.94
+++ if_ne_pcmcia.c	2002/09/14 20:43:01
@@ -161,6 +161,10 @@
       PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID,
       PCMCIA_CIS_ACCTON_EN2212,
       0, 0x0ff0, { 0x00, 0x00, 0xe8 } },
+    { PCMCIA_STR_ACCTON_EN2216,
+      PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID,
+      PCMCIA_CIS_ACCTON_EN2216,
+      0, 0x0ff0, { 0x00, 0x00, 0xe8 } },
 
     { PCMCIA_STR_SVEC_COMBOCARD,
       PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID,
Index: pcmciadevs
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/pcmcia/pcmciadevs,v
retrieving revision 1.175
diff -u -r1.175 pcmciadevs
--- pcmciadevs	2002/07/23 23:11:04	1.175
+++ pcmciadevs	2002/09/14 20:43:02
@@ -403,6 +403,7 @@
 vendor YEDATA			-1 	Y-E DATA
 
 product ACCTON EN2212		{ "ACCTON", "EN2212", NULL, NULL } Accton EN2212
+product ACCTON EN2216		{ "ACCTON", "EN2216-PCMCIA-ETHERNET", "EN2216R01", NULL } Accton EN2216
 product AMBICOM AMB8002T	{ "AmbiCom&spInc", "AMB8002T", NULL, NULL } AmbiCom AMB8002T
 product AMD AM79C930		{ "AMD", "Am79C930", NULL, NULL } AMD Am79C930
 product BILLIONTON LNT10TN	{ "PCMCIA", "LNT-10TN", NULL, NULL } Billionton Systems Inc. LNT-10TN NE2000 Compatible Card
Index: pcmciadevs.h
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/pcmcia/pcmciadevs.h,v
retrieving revision 1.175
diff -u -r1.175 pcmciadevs.h
--- pcmciadevs.h	2002/07/23 23:12:48	1.175
+++ pcmciadevs.h	2002/09/14 20:43:06
@@ -1,4 +1,4 @@
-/*	$NetBSD: pcmciadevs.h,v 1.175 2002/07/23 23:12:48 rjs Exp $	*/
+/*	$NetBSD$	*/
 
 /*
  * THIS FILE AUTOMATICALLY GENERATED.  DO NOT EDIT.
@@ -698,6 +698,9 @@
 #define	PCMCIA_CIS_ACCTON_EN2212	{ "ACCTON", "EN2212", NULL, NULL }
 #define	PCMCIA_PRODUCT_ACCTON_EN2212	-1
 #define	PCMCIA_STR_ACCTON_EN2212	"Accton EN2212"
+#define	PCMCIA_CIS_ACCTON_EN2216	{ "ACCTON", "EN2216-PCMCIA-ETHERNET", "EN2216R01", NULL }
+#define	PCMCIA_PRODUCT_ACCTON_EN2216	-1
+#define	PCMCIA_STR_ACCTON_EN2216	"Accton EN2216"
 #define	PCMCIA_CIS_AMBICOM_AMB8002T	{ "AmbiCom Inc", "AMB8002T", NULL, NULL }
 #define	PCMCIA_PRODUCT_AMBICOM_AMB8002T	-1
 #define	PCMCIA_STR_AMBICOM_AMB8002T	"AmbiCom AMB8002T"
Index: pcmciadevs_data.h
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/pcmcia/pcmciadevs_data.h,v
retrieving revision 1.175
diff -u -r1.175 pcmciadevs_data.h
--- pcmciadevs_data.h	2002/07/23 23:12:49	1.175
+++ pcmciadevs_data.h	2002/09/14 20:43:08
@@ -1,4 +1,4 @@
-/*	$NetBSD: pcmciadevs_data.h,v 1.175 2002/07/23 23:12:49 rjs Exp $	*/
+/*	$NetBSD$	*/
 
 /*
  * THIS FILE AUTOMATICALLY GENERATED.  DO NOT EDIT.
@@ -1070,6 +1070,13 @@
 	    0,
 	    "ACCTON",
 	    "Accton EN2212",	}
+	,
+	{
+	    PCMCIA_VENDOR_UNKNOWN, PCMCIA_PRODUCT_ACCTON_EN2216,
+	    PCMCIA_CIS_ACCTON_EN2216,
+	    0,
+	    "ACCTON",
+	    "Accton EN2216",	}
 	,
 	{
 	    PCMCIA_VENDOR_UNKNOWN, PCMCIA_PRODUCT_AMBICOM_AMB8002T,

--Dxnq1zWXvFF0Q93v--