Subject: Re: split fxp driver
To: None <>
From: Johan Danielsson <>
List: tech-kern
Date: 05/31/1999 20:58:37 (Johan Danielsson) writes:

> The symptom is `WARNING: SCB timed out!' messages, and I interpret
> this as if it's not reading from the CSR, but some other memory.

It turned out that the loop over all functions in cardbus_attach_card
that I added removed power from the card if any of the functions
wasn't attached to a device. Doh!

ObDmesg below.

> Other interesting feature of the driver: it assumes that the EEPROM
> is 64 words, but in CardBus applications it is 256 words.

I sent a PR about this.

Next step is to make the power management work with multiple
functions/card, and to whip up a com_cardbus. :-)


cbb0 at pci0 dev 2 function 0 (TI1251), flags 3
cbb0: CardBus resister address 0x50102000 -> 0x10000000
 intrpin A, intrtag 11
CardBus latency time 0xb0
PCI latency time 0xa8
cbb0: interrupting at irq 11
cardbus0 at cbb0 bus 2 device 0
pccbbattach: found cardbus
pcmcia0 at cbb0 slot 0
cbb1 at pci0 dev 2 function 1 (TI1251), flags 3
cbb1: CardBus resister address 0x50101000 -> 0x10001000
 intrpin B, intrtag 11
CardBus latency time 0xb0
PCI latency time 0xa8
cbb1: interrupting at irq 11
cardbus1 at cbb1 bus 5 device 0
cardbusattach: CardBus card found [0x2]
cardbus_attach_card: cb1 start
pccbb_power: CARDBUS_VCC_3V and CARDBUS_VPP_UC [1]
cbb1: bad Vcc request. sock_ctrl 0x30, sock_status 0x30000b20
pccbb_power: CARDBUS_VCC_3V and CARDBUS_VPP_UC [1]
cardbus_attach_card: Vendor 0x8086, Product 0x1229, CIS 0x20003
read_tuples: cardbus_space = 3
pccbb_cb_space_alloc: addr 0, size 100000, mask fffff, align 100000
--pccbb_winset: win0 [10100000, 10200000), win1 [fffff000, 1000)
cardbus_config_bar: base = 10100000, size = 100000
fxp0 at cardbus1 dev 0 function 0fxp_cardbus_attach: uni 0xf0555f60
pccbb_cb_space_alloc: addr 0, size 40, mask 3f, align 40
--pccbb_winset: win0 [1300, 1340), win1 [fffc, 4)
pccbb_cardenable: command reg 0x2100007

 Intel PRO/100 LAN+Modem56 CardBus IIAssuming 256 word EEPROM.
fxp0: Ethernet address 00:a0:c9:bb:f4:88
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
cardbus_attach_card: Vendor 0x8086, Product 0x1002, CIS 0x102
read_tuples: cardbus_space = 2
pccbb_cb_space_alloc: addr 0, size 1000, mask fff, align 1000
--pccbb_winset: win0 [10002000, 10003000), win1 [10100000, 10200000)
cardbus_config_bar: base = 10002000, size = 1000
Intel product 0x1002 (serial communications, interface 0x02) at cardbus1 dev 0 function 1 not configured
pccbbattach: found cardbus
pcmcia1 at cbb1 slot 1