Subject: kern/6603: new addition to pcmciadevs / if_ne_pcmcia.c
To: None <gnats-bugs@gnats.netbsd.org>
From: Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
List: netbsd-bugs
Date: 12/17/1998 15:29:46
>Number:         6603
>Category:       kern
>Synopsis:       Additional ne2000 compatible PCMCIA card, Corega's Ethernet
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 16 22:35:00 1998
>Last-Modified:
>Originator:     Takahiro Kambe
>Organization:
>Release:        NetBSD-current 1998/12/14
>Environment:
System: NetBSD edge.sky.yamashina.kyoto.jp 1.3I NetBSD 1.3I (ALN4PCVT) #3: Thu Dec 17 10:20:41 JST 1998 taca@edge.sky.yamashina.kyoto.jp:/usr/src/sys/arch/i386/compile/ALN4PCVT i386


>Description:
	Corega's Ethernet card dose not identified.
>How-To-Repeat:
	Boot NetBSD and insert Corega PCC-T card, kernel reports like bellow:

corega K.K., corega Ether PCC-T (manufacturer 0xc00f, product 0x0) function 0 not configured

>Fix:
	Add a new entry in pcmciadevs.

Index: sys/dev/pcmcia/pcmciadevs
*** sys/dev/pcmcia/pcmciadevs.orig	Sun Nov  8 16:50:56 1998
--- sys/dev/pcmcia/pcmciadevs	Thu Dec 17 10:17:42 1998
***************
*** 57,62 ****
--- 57,63 ----
  vendor SIMPLETECH		0x014d	Simple Technology
  vendor DAYNA			0x0194	Dayna Corporation
  vendor IODATA			0x01bf	I-O DATA
+ vendor COREGA			0xc00f	Corega K.K.
  vendor HAGIWARASYSCOM		0xc012	Hagiwara SYS-COM
  
  /*
***************
*** 149,151 ****
--- 150,153 ----
  product DIGITAL DEPCMXX		{ "DIGITAL", "DEPCM-XX", NULL, NULL } DEC DEPCM-BA
  product TEAC IDECARDII		{ NULL, "NinjaATA-", NULL, NULL } TEAC IDE Card/II
  product LINKSYS ECARD_2	{ "LINKSYS", "E-CARD", NULL, NULL } Linksys E-Card
+ product COREGA PCC_2	{ "corega&spK.K.", "corega&spEther&spPCC-T", NULL, NULL } Corega
Index: sys/dev/pcmcia/if_ne_pcmcia.c
*** sys/dev/pcmcia/if_ne_pcmcia.c.orig	Fri Nov 20 02:19:20 1998
--- sys/dev/pcmcia/if_ne_pcmcia.c	Thu Dec 17 10:18:51 1998
***************
*** 191,196 ****
--- 191,201 ----
        PCMCIA_VENDOR_DAYNA, PCMCIA_PRODUCT_DAYNA_COMMUNICARD_E_2,
        PCMCIA_CIS_DAYNA_COMMUNICARD_E_2,
        0, -1, { 0x00, 0x80, 0x19 } },
+ 
+     { PCMCIA_STR_COREGA_PCC_2, 
+       PCMCIA_VENDOR_COREGA, PCMCIA_PRODUCT_COREGA_PCC_2,
+       PCMCIA_CIS_COREGA_PCC_2,
+       0, -1, { 0x00, 0x00, 0xf4 } },
  #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



>Audit-Trail:
>Unformatted: