Subject: kern/22231: another pcmcia ne2000 compatible card (NextCom NextHawk)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <sakurai@bug.co.jp>
List: netbsd-bugs
Date: 07/23/2003 17:08:03
>Number:         22231
>Category:       kern
>Synopsis:       another pcmcia ne2000 compatible card (NextCom NextHawk)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 23 08:08:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Hiroshi Sakurai
>Release:        NetBSD 1.6.1_STABLE
>Organization:
B.U.G., Inc.
>Environment:
NetBSD husky.bug.co.jp 1.6.1_STABLE NetBSD 1.6.1_STABLE (HIRO) #3: Wed Jul 23 16:39:52 JST 2003 sakurai@sheepdog:/home/sakurai/netbsd2/src/sys/arch/i386/compile/HIRO i386
Architecture: i386
Machine: i386
>Description:
I have a ethernet card. It probed as follows.

pcmcia1: CIS version PC Card Standard 5.0
pcmcia1: CIS info: NextCom K.K., Next Hawk, NCHWK, 1.0
pcmcia1: Manufacturer code 0xc020, product 0x1
pcmcia1: function 0: network adapter, ccr addr 3f8 mask 3
pcmcia1: function 0, config table entry 32: I/O card; irq mask ffff; iomask 5, iospace 0-1f; mwait_required io8 io16 irqlevel
ne2 at pcmcia1 function 0 port 0x420-0x42f port 0x430-0x43f
ne2: Next Hawk Ethernet
ne2: Ethernet address 00:40:b4:10:0d:97

>How-To-Repeat:
insert the card with kernel option PCMCIAVERBOSE.
see ne* in dmesg.

>Fix:
Apply the following patch, and regen pcmciadevs.


Index: if_ne_pcmcia.c
===================================================================
RCS file: /cvs/cvsroot/src/sys/dev/pcmcia/if_ne_pcmcia.c,v
retrieving revision 1.90.4.2
diff -c -r1.90.4.2 if_ne_pcmcia.c
*** if_ne_pcmcia.c	2002/09/18 19:37:21	1.90.4.2
--- if_ne_pcmcia.c	2003/07/23 08:03:01
***************
*** 462,467 ****
--- 462,472 ----
        PCMCIA_CIS_NETGEAR_FA411,
        0, -1, { 0x00, 0x40, 0xf4 } },
  
+     { PCMCIA_STR_NEXTCOM_NEXTHAWK,
+       PCMCIA_VENDOR_NEXTCOM, PCMCIA_PRODUCT_NEXTCOM_NEXTHAWK,
+       PCMCIA_CIS_NEXTCOM_NEXTHAWK,
+       0, -1, { 0x00, 0x40, 0xb4 } },
+ 
  #if 0
      /* the rest of these are stolen from the linux pcnet pcmcia device
         driver.  Since I don't know the manfid or cis info strings for
Index: pcmciadevs
===================================================================
RCS file: /cvs/cvsroot/src/sys/dev/pcmcia/pcmciadevs,v
retrieving revision 1.167.4.6
diff -c -r1.167.4.6 pcmciadevs
*** pcmciadevs	2002/11/19 21:29:47	1.167.4.6
--- pcmciadevs	2003/07/23 08:03:01
***************
*** 105,110 ****
--- 105,111 ----
  vendor ALLIEDTELESIS		0xc00f	Allied Telesis K.K.
  vendor HAGIWARASYSCOM		0xc012	Hagiwara SYS-COM
  vendor RATOC			0xc015  RATOC System Inc.
+ vendor NEXTCOM			0xc020	NextCom K.K.
  vendor EMTAC			0xc250	EMTAC Technology Corporation
  vendor ELSA			0xd601  Elsa 
  
***************
*** 282,287 ****
--- 283,291 ----
  
  /* National Instruments */
  product NI PCMCIA_GPIB	 	0x4882 National Instruments PCMCIA-GPIB
+ 
+ /* NextCom K.K. */
+ product NEXTCOM NEXTHAWK	0x0001 Next Hawk
  
  /* Nokia Products */
  product NOKIA C020_WLAN		0x20c0 Nokia C020 WLAN Card
>Release-Note:
>Audit-Trail:
>Unformatted: