Subject: kern/14723: GENIUS LAN ME3000II PCMCIA card support (patch included)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <noud@knot.nl>
List: netbsd-bugs
Date: 11/26/2001 02:43:27
>Number:         14723
>Category:       kern
>Synopsis:       GENIUS LAN ME3000II PCMCIA card support (patch included)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 25 17:19:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Noud de Brouwer
>Release:        NetBSD 1.5Y
>Organization:
	KnoT Foundation
>Environment:
System: NetBSD noud.the-house.nl 1.5Y NetBSD 1.5Y (ME_LAPTOP) #0: Sun Nov 25 23:24:09 CET 2001 root@CP136829-A:/usr/src/sys/arch/i386/compile/ME_LAPTOP i386
Architecture: i386
Machine: i386
>Description:
The GENIUS LAN ME3000II PCMCIA card is not supported.
these 2 small patches add support.
>How-To-Repeat:
insert GENIUS LAN ME3000II PCMCIA card, boot, see:

PCMCIA, PCMCIA-ETHERNET-CARD, UE2216R01 (manufacturer 0xffffffff, product 0xffffffff) at pcmcia0,  function 0 not configured

>Fix:

noud# cat pcmciadevs.diff
--- pcmciadevs  Fri Nov  9 14:11:15 2001
+++ pcmciadevs.new      Sun Nov 25 23:06:54 2001
@@ -331,6 +331,7 @@
 vendor SYNERGY21               -1      Synergy 21
 vendor TEAC                    -1      TEAC
 vendor YEDATA                  -1      Y-E DATA
+vendor GENIUS                  -1     Genius Lan
 
 product ACCTON EN2212          { "ACCTON", "EN2212", NULL, NULL } Accton EN2212
 product AMBICOM AMB8002T       { "AmbiCom&spInc", "AMB8002T", NULL, NULL } AmbiCom AMB8002T
@@ -394,3 +396,4 @@
 product XIRCOM CFE_10          { "Xircom", "CompactCard&spEthernet", "CFE-10", "1.00" } Xircom CompactCard CFE-10
 product YEDATA EXTERNAL_FDD    { "Y-E&spDATA", "External&spFDD", NULL, NULL } Y-E DATA External FDD
 
+product GENIUS ME3000II     { "PCMCIA", "PCMCIA-ETHERNET-CARD", "UE2216", "R01" } Genius ME3000 II
noud# 

noud# cat if_ne_pcmcia.c.diff
--- if_ne_pcmcia.c.orig Tue Nov 13 13:32:57 2001
+++ if_ne_pcmcia.c      Sun Nov 25 22:44:23 2001
@@ -127,6 +127,11 @@
       PCMCIA_CIS_DIGITAL_DEPCMXX,
       0, 0x0ff0, { 0x00, 0x00, 0xe8 } },
 
+    { PCMCIA_STR_GENIUS_ME3000II,
+      PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID,
+      PCMCIA_CIS_GENIUS_ME3000II,
+      0, -1, { 0x00, 0x40, 0x95 } },
+
     { PCMCIA_STR_PLANET_SMARTCOM2000,
       PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID,
       PCMCIA_CIS_PLANET_SMARTCOM2000,
noud# 

now, at boot it shows:

ne0 at pcmcia0 function 0
ne0: Genius ME3000 II Ethernet
ne0: Ethernet address 00:00:e8:18:e8:de

and the card is configurable and workable.

noud# ifconfig ne0
ne0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:00:e8:18:e8:de
        media: Ethernet manual
        inet 10.0.4.7 netmask 0xffffff00 broadcast 10.0.4.255

noud# 

>Release-Note:
>Audit-Trail:
>Unformatted: