Subject: kern/9644: Patch to allow identification of RPTI EP400 PCMCIA network card
To: None <gnats-bugs@gnats.netbsd.org>
From: None <tim.walls@pa.press.net>
List: netbsd-bugs
Date: 03/20/2000 04:36:21
>Number:         9644
>Category:       kern
>Synopsis:       Patch to allow identification of RPTI EP400 PCMCIA network card
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 20 04:36:00 2000
>Last-Modified:
>Originator:     Tim Walls
>Organization:
The Press Association
>Release:        1.4S
>Environment:
(This is the machine the patched kernel was built on, not the machine running
 the patched kernel which I don't have to hand.  The sources are the
 same though.)

NetBSD justforkix 1.4S NetBSD 1.4S (JUSTFORKIX) #7: Fri Feb 18 16:03:47 GMT 2000
     timwa@justforkix:/usr/src/sys/arch/i386/compile/JUSTFORKIX i386

>Description:
The following patch allows recognition of the RPTI-EP400 PCMCIA network
adaptor.  (It works fine with the ne driver once this patch is put
on.)

Many thanks to Laine Stump for the donation of the card!!!

>How-To-Repeat:
Boot NetBSD.
Plug in RPTI-EP400 card.
Watch it get totally ignored without the patch.
Watch it get recognised as an ne2000 ethernet card with it.

>Fix:
? rpti400.diff
? scratch
Index: if_ne_pcmcia.c
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/pcmcia/if_ne_pcmcia.c,v
retrieving revision 1.58
diff -u -r1.58 if_ne_pcmcia.c
--- if_ne_pcmcia.c	2000/02/27 11:15:47	1.58
+++ if_ne_pcmcia.c	2000/03/20 10:57:56
@@ -124,6 +124,11 @@
       PCMCIA_CIS_DLINK_DE660,
       0, -1, { 0x00, 0x80, 0xc8 } },
 
+    { PCMCIA_STR_RPTI_EP400,
+      PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID,
+      PCMCIA_CIS_RPTI_EP400,
+      0, -1, { 0x00, 0x40, 0x95 } },
+
     { PCMCIA_STR_RPTI_EP401,
       PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID,
       PCMCIA_CIS_RPTI_EP401,
Index: pcmciadevs.h
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/pcmcia/pcmciadevs.h,v
retrieving revision 1.79
diff -u -r1.79 pcmciadevs.h
--- pcmciadevs.h	2000/02/27 11:14:43	1.79
+++ pcmciadevs.h	2000/03/20 10:57:57
@@ -390,6 +390,11 @@
 #define	PCMCIA_CIS_DLINK_DE660	{ "D-Link", "DE-660", NULL, NULL }
 #define	PCMCIA_PRODUCT_DLINK_DE660	-1
 #define	PCMCIA_STR_DLINK_DE660	"D-Link DE-660"
+
+#define PCMCIA_CIS_RPTI_EP400	{ "RPTI LTD.", "EP400", "CISV100", NULL }
+#define PCMCIA_PRODUCT_RPTI_EP400	-1
+#define PCMCIA_STR_RPTI_EP400	"RPTI EP400"
+
 #define	PCMCIA_CIS_RPTI_EP401	{ "RPTI", "EP401 Ethernet NE2000 Compatible", NULL, NULL }
 #define	PCMCIA_PRODUCT_RPTI_EP401	-1
 #define	PCMCIA_STR_RPTI_EP401	"RPTI EP401"
Index: pcmciadevs_data.h
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/pcmcia/pcmciadevs_data.h,v
retrieving revision 1.79
diff -u -r1.79 pcmciadevs_data.h
--- pcmciadevs_data.h	2000/02/27 11:14:43	1.79
+++ pcmciadevs_data.h	2000/03/20 10:57:57
@@ -563,6 +563,13 @@
 	    "D-Link DE-660"	},
 	},
 	{
+	    PCMCIA_VENDOR_UNKNOWN, PCMCIA_PRODUCT_RPTI_EP400,
+	    PCMCIA_CIS_RPTI_EP400,
+	    0,
+	    "RPTI",
+	    "RPTI EP400"	},
+	},
+	{
 	    PCMCIA_VENDOR_UNKNOWN, PCMCIA_PRODUCT_RPTI_EP401,
 	    PCMCIA_CIS_RPTI_EP401,
 	    0,

>Audit-Trail:
>Unformatted: