Subject: Re: cbb/pcic not getting an interrupt configured...
To: None <port-i386@netbsd.org>
From: None <ks@ub.uni-mainz.de>
List: port-i386
Date: 11/04/2002 10:31:15
Hm,

I had a similar problem on my Toshiba 9000 to get the build-in
MiniPCI-WLAN working. The 9000 is built around the Intel 830M
Chipset. The interrupt router on this "thing" is an 0x248c8086 (0x248C 
82801CAM LPC Interface) and has 8 intr lines, but only the first 4 are
used due to pcibios assuming there's some "standard" chip (0x122e8086
which translates to 82371FB PCI-to-ISA Bridge (PIIX)).

To get wi0 up and running I've done a really ugly hack in pcibios.c,
resetting 0x122e8086 to 0x248c8086 (#ifdef'ed TOSHI9000 of course ;-)
and added 0x248c8086 to the list of known chips in pci_intr_fixup.c
with logic to set up the additional 4 interrupts.

If anyone is interrested to get the hacks, I'll mail the modified
files...

-kurt

ps.: Here are the relevant lines from dmesg:

BIOS32 rev. 0 found at 0xfc063
PCI BIOS rev. 2.1 found at 0xfd772
PCI IRQ Routing Table rev. 1.0 found at 0xf01a0, size 176 bytes (9 entries)
PCI Interrupt Router at 000:31:0
pcibios_pir_init: resetting compat_router from 0x122e8086 to 0x248c8086
 (Intel 82801CAM LPC Interface)
mainbus0 (root)
....
cbb0 at pci2 dev 10 function 0: Texas Instruments PCI1410 PCI-CardBus Bridge (rev. 0x01)
cbb1 at pci2 dev 11 function 0: Toshiba ToPIC100 CardBus-PCI Bridge (rev. 0x32)
cbb2 at pci2 dev 11 function 1: Toshiba ToPIC100 CardBus-PCI Bridge (rev. 0x32)
....
cbb0: interrupting at irq 11
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0
pcmcia0 at cardslot0
cbb1: interrupting at irq 11
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 4 device 0
pcmcia1 at cardslot1
cbb2: interrupting at irq 11
cardslot2 at cbb2 slot 2 flags 0
cardbus2 at cardslot2: bus 5 device 0
pcmcia2 at cardslot2
....
wi0 at pcmcia0 function 0: TOSHIBA, Wireless LAN Card, Version 01.01
wi0: 802.11 address 00:02:2d:33:44:6a
wi0: using Lucent Embedded WaveLAN/IEEE
wi0: Lucent Firmware: Station (6.14.1)
wi0: supported rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
....