Subject: kern/20158: [jpd] another pcmcia ne2000 card
To: None <>
From: None <>
List: netbsd-bugs
Date: 02/01/2003 20:33:52
>Number:         20158
>Category:       kern
>Synopsis:       another pcmcia ne2000 card (ActionTec PE-200)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 01 18:34:00 PST 2003
>Originator:     John Darrow
>Release:        NetBSD 1.6.1_RC1
	Wheaton College Computing Services
	Wheaton, IL
System: NetBSD 1.6.1_RC1 NetBSD 1.6.1_RC1 (JDARROW) #0: Sat Feb 1 15:27:51 CST 2003 i386
Architecture: i386
Machine: i386
I picked up a cheap ethernet card for my laptop.  It probed as follows:

pcmcia0: CIS version PCMCIA 2.0 or 2.1
pcmcia0: CIS info: PMX   , PE-200, ETHERNET, R01
pcmcia0: Manufacturer code 0xffffffff, product 0xffffffff
pcmcia0: function 0: network adapter, ccr addr 100 mask 1
pcmcia0: function 0, config table entry 1: I/O card; irq mask befc; iomask a, iospace 300-30f 310 31f; memspace 0-3ff@d4000 4000-7fff@d4000; mwait_required io16 irqlevel
ne0 at pcmcia0 function 0 port 0x300-0x30f port 0x310-0x31f
ne0 (manf ffffffff prod ffffffff) cis PMX    PE-200: can't match ethernet vendor code

The win9x drivers included with the card label it as:
ActionTec FastNet PCMCIA Ethernet Card

insert card in kernel with PCMCIAVERBOSE.  See ne0 in dmesg, but not in
ifconfig output.

Apply the following patch (which also sorts the ACCTON and AmbiCom
entries), and regen pcmciadevs.

(Note that the entry is similar to the PMX PE-200 entry; however, the
ethernet address is at a different place, which is why that one doesn't
match it).

Index: sys/dev/pcmcia/pcmciadevs
RCS file: /xtra/nbcvs/src/sys/dev/pcmcia/pcmciadevs,v
retrieving revision
diff -u -r1.167.4.6 pcmciadevs
--- sys/dev/pcmcia/pcmciadevs	2002/11/19 21:29:47
+++ sys/dev/pcmcia/pcmciadevs	2003/02/01 09:38:34
@@ -373,8 +373,9 @@
  * Cards we know only by their cis, sorted by name.
-vendor AMBICOM			-1	AmbiCom Inc
 vendor ACCTON			-1 	ACCTON
+vendor ACTIONTEC2		-1 	ActionTec
+vendor AMBICOM			-1	AmbiCom Inc
 vendor AMD			-1	AMD
 vendor BILLIONTON		-1	Billionton Systems Inc.
 vendor CNET			-1	CNet
@@ -400,6 +401,7 @@
 product ACCTON EN2212		{ "ACCTON", "EN2212", NULL, NULL } Accton EN2212
 product ACCTON EN2216		{ "ACCTON", "EN2216-PCMCIA-ETHERNET", "EN2216R01", NULL } Accton EN2216
+product ACTIONTEC2 PE200	{ "PMX&sp&sp&sp", "PE-200", "ETHERNET", "R01" } ActionTec FastNet PCMCIA Ethernet Card
 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: sys/dev/pcmcia/if_ne_pcmcia.c
RCS file: /xtra/nbcvs/src/sys/dev/pcmcia/if_ne_pcmcia.c,v
retrieving revision
diff -u -r1.90.4.2 if_ne_pcmcia.c
--- sys/dev/pcmcia/if_ne_pcmcia.c	2002/09/18 19:37:21
+++ sys/dev/pcmcia/if_ne_pcmcia.c	2003/02/01 21:31:24
@@ -191,6 +191,11 @@
       0, -1, { 0x00, 0x00, 0x00 } },       
+      0, -1, { 0x00, 0x20, 0xe0 } },
      * You have to add new entries which contains