Subject: kern/27840: patch for IO DATA PCET/TX-R PCMCIA Ethernet card support
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <murase@synapse.phys.nagoya-u.ac.jp>
List: netbsd-bugs
Date: 11/03/2004 15:27:24
>Number:         27840
>Category:       kern
>Synopsis:       patch for IO DATA PCET/TX-R PCMCIA Ethernet card support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 03 15:28:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Masaki Murase
>Release:        1.6.2
>Organization:
>Environment:
NetBSD flute 1.6.2 NetBSD 1.6.2 (FLUTE) #19: Wed Nov  3 18:26:46 JST 2004     murase@flute:/usr/src/sys/arch/i386/compile/FLUTE i386
>Description:
The IO DATA PCET/TX-R which is PCMCIA Ethernet card is not supported. Following patch add support.
>How-To-Repeat:
GENERIC_LAPTOP kernel build on Dell Latitude CPi (D266XT) doesn't recognize IO DATA PCET/TX-R card  correctly.

from dmesg: 
 ne0 at pcmcia1 function 0
 ne0 (manf 00000149 prod 00000230) cis IO DATA PCETTXR: can't match ethernet vendor code
>Fix:
Here is patch.

src/sys/dev/pcmcia/if_ne_pcmcia.c:
354a355,359
>      { PCMCIA_STR_IODATA3_PCETTXR,
>      PCMCIA_VENDOR_IODATA3, PCMCIA_PRODUCT_IODATA3_PCETTXR,
>      PCMCIA_CIS_IODATA3_PCETTXR,
>      0, -1, { 0x00, 0xa0, 0xb0 }, NE2000DVF_DL10019 },
>

sys/dev/pcmcia/pcmciadevs:
69a70
> vendor IODATA3                        0x0149  IO DATA
227a229
> product IODATA3 PCETTXR               0x0230 IO DATA PCET/TX-R

now, it recognize a card like this:
ne0 at pcmcia0 function 0
ne0: IO DATA PCET/TX-R (DL10022) Ethernet
ne0: Ethernet address 00:a0:b0:xx:xx:xx
ukphy0 at ne0 phy 0: Generic IEEE 802.3u media interface
ukphy0: OUI 0x0008bb, model 0x0001, rev. 2
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto

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