Subject: port-i386/13948: 3com 3C509 TP configured as EISA not recognized
To: None <gnats-bugs@gnats.netbsd.org>
From: Christian Groessler <cpg@aladdin.de>
List: netbsd-bugs
Date: 09/14/2001 01:25:01
>Number:         13948
>Category:       port-i386
>Synopsis:       3com 3C509 TP configured as EISA is not recognized
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 13 16:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Christian Groessler
>Release:        NetBSD-current Sep-14-2001
>Organization:
	
>Environment:
	
System: NetBSD gibbon 1.5X NetBSD 1.5X (GIBBON) #0: Thu Sep 13 23:07:21 CEST 2001 chris@gibbon:/usr/oth2/src/sys/arch/i386/compile/GIBBON i386
Architecture: i386
Machine: i386
>Description:
	I tried to use a 3Com 3c509 TP ISA network card configured as
EISA with netbsd. The system complains about a TCM5095 device not
recognized and the card is non-functional.

>How-To-Repeat:
	Insert a 3c509 TP card configured to EISA in your favourite
EISA machine. Try to use it.
>Fix:
	I added the TCM5095 to the list of eisadevs. Please note that
port-i386/13947 was also needed to get the card to work.
I looked at the Linux 3c509.c driver sources and the also detect a
TCM5098, so I included this also in my patch. The 5098 is untested,
but I assume it will work. But if you want to be on the safe side,
leave the 5098 out....

-------------
Index: eisadevs
===================================================================
RCS file: /net/swamp/zeug/netbsd-rsync/main/syssrc/sys/dev/eisa/eisadevs,v
retrieving revision 1.23
diff -u -p -r1.23 eisadevs
--- eisadevs	2001/05/06 19:43:54	1.23
+++ eisadevs	2001/09/02 17:40:55
@@ -169,6 +169,8 @@ product TCM 5091	3C509 Ethernet
 product TCM 5092	3C579-TP Ethernet
 product TCM 5093	3C579 Ethernet
 product TCM 5094	3C509 Ethernet Combo
+product TCM 5095	3C509-TP Ethernet
+product TCM 5098	3C509-TPC Ethernet
 product	TCM 5920 	3C592 Etherlink III
 product	TCM 5970 	3C597 Fast Etherlink TX
 product	TCM 5971 	3C597 Fast Etherlink T4 
Index: eisadevs.h
===================================================================
RCS file: /net/swamp/zeug/netbsd-rsync/main/syssrc/sys/dev/eisa/eisadevs.h,v
retrieving revision 1.25
diff -u -p -r1.25 eisadevs.h
--- eisadevs.h	2001/05/06 19:44:14	1.25
+++ eisadevs.h	2001/09/02 17:40:20
@@ -152,6 +152,8 @@
 #define	EISA_PRODUCT_TCM5092	"3Com 3C579-TP Ethernet"
 #define	EISA_PRODUCT_TCM5093	"3Com 3C579 Ethernet"
 #define	EISA_PRODUCT_TCM5094	"3Com 3C509 Ethernet Combo"
+#define	EISA_PRODUCT_TCM5095	"3Com 3C509-TP Ethernet"
+#define	EISA_PRODUCT_TCM5098	"3Com 3C509-TPC Ethernet"
 #define	EISA_PRODUCT_TCM5920	"3Com 3C592 Etherlink III"
 #define	EISA_PRODUCT_TCM5970	"3Com 3C597 Fast Etherlink TX"
 #define	EISA_PRODUCT_TCM5971	"3Com 3C597 Fast Etherlink T4"
Index: eisadevs_data.h
===================================================================
RCS file: /net/swamp/zeug/netbsd-rsync/main/syssrc/sys/dev/eisa/eisadevs_data.h,v
retrieving revision 1.26
diff -u -p -r1.26 eisadevs_data.h
--- eisadevs_data.h	2001/05/06 19:44:14	1.26
+++ eisadevs_data.h	2001/09/02 17:39:46
@@ -406,6 +406,16 @@ const struct eisa_knowndev eisa_knowndev
 	},
 	{
 	    0,
+	    "TCM5095",
+	    EISA_PRODUCT_TCM5095,
+	},
+	{
+	    0,
+	    "TCM5098",
+	    EISA_PRODUCT_TCM5098,
+	},
+	{
+	    0,
 	    "TCM5920",
 	    EISA_PRODUCT_TCM5920,
 	},
Index: if_ep_eisa.c
===================================================================
RCS file: /net/swamp/zeug/netbsd-rsync/main/syssrc/sys/dev/eisa/if_ep_eisa.c,v
retrieving revision 1.22
diff -u -p -r1.22 if_ep_eisa.c
--- if_ep_eisa.c	2000/05/07 13:57:16	1.22
+++ if_ep_eisa.c	2001/09/13 23:09:41
@@ -160,6 +160,10 @@ struct ep_eisa_product {
 	  0,				EISA_PRODUCT_TCM5093 },
 	{ "TCM5094",			ELINK_CHIPSET_3C509,
 	  0,				EISA_PRODUCT_TCM5094 },
+	{ "TCM5095",			ELINK_CHIPSET_3C509,
+	  0,				EISA_PRODUCT_TCM5095 },
+	{ "TCM5098",			ELINK_CHIPSET_3C509,
+	  0,				EISA_PRODUCT_TCM5098 },
 
 	/*
 	 * Note: The 3c597 Fast Etherlink MII (TCM5972) is an
-------------
>Release-Note:
>Audit-Trail:
>Unformatted: