[6.2] PCMCIA PCLA-TE ethernet MAC addr screw

PCMCIA bridge: Texas 1131
Ether card: I/O DATA PCLA-TE (ne2000 clone)

This card advertises as 16bit but actually needs 8bit access,
so in RTP 6.1 “devp-pccard -w8,8” was needed.

In 6.2, devn-ne2000 needed “width=8” option to properly
receive data from the card, but the MAC address seems byte-duplicated;

ifconfig en0

en0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:00:a0:a0:b0:b0
^^^^^^^^^^^^^^^^^
actually should be 00:a0:b0:21:45:68.

Dropping “width=8” from devn-ne2000 will make MAC correct but then
receive packets (Rxd of nicinfo) stays zero.

I know this is somewhat card’s fault advertising 16bit-access or something,
but this card seems to be a widely available ne2000 PCMCIA clone.


########################## enum-pccard
d1302538 bus=pcmcia removal_id=1 ven=01bf dev=2216 class=0600 ioport=0200 irq=7 index=0

########################## pin
Sock Func Type Flags PID Base Size IRQ
1 0 Network C—I-±–X----- 90126 0x200 32 7
1 Empty ----MF---------- None
2 Empty ----MF---------- None
2 Empty ----MF---------- None

########################## pin config
; socket 1
[device]
manufacturer = “IO DATA”
product = “PCLATE”
info1 = “ETHERNET”
info2 = “R01”
regbase = 0x3f8
config = 0x20, 0x0600, irq any, io any+32 (width=16)
config = 0x20, 0x0600, irq any, io 0x300-0x31f (width=16)
config = 0x21, 0x0600, irq any, io 0x320-0x33f (width=16)
config = 0x22, 0x0600, irq any, io 0x340-0x35f (width=16)
config = 0x23, 0x0600, irq any, io 0x360-0x37f (width=16)
register = 0, 0x40, 0x40 ; level mode interrupts

########################## pin cis
Socket : 1 - Function : 0
Device : Function Specific 0k
Attribute Device : EEPROM 0k
Manufacturer ID : 0x1bf 0x2216
Card tuple version : 4.01
Manufacturer : IO DATA
Name of Product : PCLATE
Add’nl info (lot #) : ETHERNET
Add’nl info (programming): R01
Configuration base/st : 0x3f8 0-subtuples
Configuration Index : 0x20 Default
Interface : MWait Req’d, I/O
Feature : 0x1d
Timing Info : Wait
IO Space : Bus16 Bus8 0x0-0x1F(5 lines)
IRQ Description : Level 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Configuration Index : 0x20
Feature : 0x8
IO Space : Bus16 0x300-0x31F
Configuration Index : 0x21
Feature : 0x8
IO Space : Bus16 0x320-0x33F
Configuration Index : 0x22
Feature : 0x8
IO Space : Bus16 0x340-0x35F
Configuration Index : 0x23
Feature : 0x8
IO Space : Bus16 0x360-0x37F
PC Card function : Network LAN Adapter
POST : 0x0

########################## pci -vvv

PCI version = 2.10

Class = Bridge (CardBus)
Vendor ID = 104ch, Texas Instruments
Device ID = ac15h, PCI1131 Dual Socket PCI CardBus Controller
PCI index = 0h
Class Codes = 060700h
Revision ID = 1h
Bus number = 0
Device number = 9
Function num = 0
Status Reg = 200h
Command Reg = 7h
I/O space access enabled
Memory space access enabled
Bus Master enabled
Special Cycle operations ignored
Memory Write and Invalidate disabled
Palette Snooping disabled
Parity Checking disabled
Data/Address stepping disabled
SERR# driver disabled
Fast back-to-back transactions to different agents disabled
Header type = 2h Multi-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 20h
Cache Line Size= 0h
ExCA Base Address = ffeff000h
Capabilities Pointer = ffh
Secondary Status = ffffh
Primary Bus Number = 0
Secondary Bus Number = 1
Subordinate Bus Number = 1
Secondary Latency Timer = 20h
Memory Base 0 = 0h
Memory Limit 0 = 0h
Memory Base 1 = 0h
Memory Limit 1 = 0h
I/O Base 0 = 0h
I/O Limit 0 = 0h
I/O Base 1 = 0h
I/O Limit 1 = 0h
PCI Int Pin = 1
PCI Int Pin = INT A
Interrupt line = no connection
Bridge Control = 7c0h
Subsystem Vendor ID = 0h
Subsystem ID = 0h
Legacy Mode Base Address = 3e0h
System Control = 241024h
Retry Status = 0h
Card Control = 1h
Device Control = 74h
Buffer Control = 0h
Socket DMA Register 0 = 0h
Socket DMA Register 1 = 0h
Device Dependent Registers:
0x40: 00 00 00 00 e1 03 00 00 00 00 00 00 00 00 00 00
0x50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x80: 24 10 24 00 00 00 00 00 00 00 00 00 00 00 00 00
0x90: 00 01 74 00 00 00 00 00 00 00 00 00 00 00 00 00
0xA0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0xB0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0xC0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0xD0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0xE0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0xF0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


Class = Bridge (CardBus)
Vendor ID = 104ch, Texas Instruments
Device ID = ac15h, PCI1131 Dual Socket PCI CardBus Controller
PCI index = 1h
Class Codes = 060700h
Revision ID = 1h
Bus number = 0
Device number = 9
Function num = 1
Status Reg = 200h
Command Reg = 7h
I/O space access enabled
Memory space access enabled
Bus Master enabled
Special Cycle operations ignored
Memory Write and Invalidate disabled
Palette Snooping disabled
Parity Checking disabled
Data/Address stepping disabled
SERR# driver disabled
Fast back-to-back transactions to different agents disabled
Header type = 2h Multi-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 20h
Cache Line Size= 0h
ExCA Base Address = ffefe000h
Capabilities Pointer = ffh
Secondary Status = ffffh
Primary Bus Number = 0
Secondary Bus Number = 2
Subordinate Bus Number = 2
Secondary Latency Timer = 20h
Memory Base 0 = 0h
Memory Limit 0 = 0h
Memory Base 1 = 0h
Memory Limit 1 = 0h
I/O Base 0 = 0h
I/O Limit 0 = 0h
I/O Base 1 = 0h
I/O Limit 1 = 0h
PCI Int Pin = 2
PCI Int Pin = INT B
Interrupt line = 9
Bridge Control = 740h
Subsystem Vendor ID = 0h
Subsystem ID = 0h
Legacy Mode Base Address = 3e0h
System Control = 241024h
Retry Status = 0h
Card Control = 0h
Device Control = 74h
Buffer Control = 0h
Socket DMA Register 0 = 0h
Socket DMA Register 1 = 0h
Device Dependent Registers:
0x40: 00 00 00 00 e1 03 00 00 00 00 00 00 00 00 00 00
0x50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x80: 24 10 24 00 00 00 00 00 00 00 00 00 00 00 00 00
0x90: 00 00 74 00 00 00 00 00 00 00 00 00 00 00 00 00
0xA0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0xB0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0xC0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0xD0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0xE0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0xF0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00