Subject: PCI-cardbus adapter problem
To: None <tech-kern@netbsd.org>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: tech-kern
Date: 05/14/2001 17:34:33
I've got a PCI-cardbus adapter which I want to put a wavelan-like
wireless ethernet card (16-bit PCMCIA) in.
The adapter uses a TI PCI1410. With a stock kernel (i386-current)
the card isn't recognized, so I've added an entry for the PCI1410
into pccbb.c:yc_chipsets[] analogous to the PCI1420, blindly
assuming that the 1410 is just a single slot version of the 1420.
This gets much further, but there seem to be problems interpreting
the PCMCIA tuples. Here is some kernel output (with PCMCIACISDEBUG):
cbb0 at pci2 dev 5 function 0: Texas Instruments PCI1410 PCI-CardBus Bridge
(rev
. 0x01) (chipflags 3)
cbb0: socket base address 0xd6004000
cbb0: intrpin C, intrtag 5
[...]
CardBus latency timer 0x20 (20030302)
PCI latency timer 0x20 (22008)
pccbb_power: CARDBUS_VCC_0V and CARDBUS_VPP_0V [44]
cbb0: interrupting at irq 5
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x8, lattimer 0x20
pcmcia0 at cardslot0
pccbb_pcmcia_card_detect
pccbbattach: found cardslot
[...]
pccbb_pcmcia_socket_enable: 5V card
pccbb_power: CARDBUS_VCC_0V and CARDBUS_VPP_0V [44]
pccbb_power: CARDBUS_VCC_5V and CARDBUS_VPP_VCC [15]
pccbb_pcmcia_wait_ready: status 0x6f
cbb0: pccbb_pcmcia_socket_enable 00 cardtype mem 50
pccbb_pcmcia_alloc_mem: addr 0x40000000 size 0x400, realsize 0x1000
pccbb_pcmcia_mem_map window 0 bus 40000000+0+400 at card addr 0
pccbb_pcmcia_do_mem_map: start 0x40000000 end 0x400003ff off 0xc0000000
pccbb_pcmcia_do_mem_map window 0: 0000 0080 0040 40
cis mem map e4cb9000
pcmcia0: CIS tuple chain:
CISTPL_END
ff
pccbb_pcmcia_mem_map window 0 bus 40000000+0+400 at card addr 0
pccbb_pcmcia_do_mem_map: start 0x40000000 end 0x400003ff off 0xc0000000
pccbb_pcmcia_do_mem_map window 0: 0000 0080 0000 40
cis mem map e4cb9000
CISTPL_LINKTARGET expected, code ff observed
pccbb_pcmcia_socket_disable
pccbb_power: CARDBUS_VCC_0V and CARDBUS_VPP_0V [44]
Can somebody tell what goes wrong here?
Normally (laptop running -current), the card is recognized as:
pcmcia0: CIS version PC Card Standard 5.0
pcmcia0: CIS info: Cabletron, RoamAbout 802.11 DS, Version 01.01,
pcmcia0: Manufacturer code 0x156, product 0x2
pcmcia0: function 0: network adapter, ccr addr 3e0 mask 1
pcmcia0: function 0, config table entry 1: I/O card; irq mask ffff; iomask 6,
io
space 0-3f; io16 irqpulse irqlevel
wi0 at pcmcia0 function 0: Cabletron, RoamAbout 802.11 DS, Version 01.01,
thanks & best regards
Matthias