Skip to contentSkip to conversation

cardbus/pci question

DISCUSSION Alexander Sirotkin 2 participants 2 messages Jul 6, 2004

lore
Share & tools
lore
#0 lore raw

I could not find any information on this in the archives, so I thought I might ask it here.

Theoretically, it should be possible to write cardbus driver as a regular PCI driver. It will not support hotplug, of course, but if one can assume that the hardware is plugged in by the time the driver is loaded, it should work. One issue does bother me a little bit - cardbus is connected to the PCI bus through a bridge. The question is - do I have to configure that bridge from my driver (to get memory mappings and interrupts), because obviously the OS won't do it for me when I'm not registered as cardbus driver.

Thanks.

In your answer, please CC me since I'm not subscribed to the list.

Signature · 9 lines
Alexander Sirotkin
SW Engineer

Texas Instruments
Broadband Communications Israel (BCIL)
Tel:  +972-9-9706587
________________________________________________________________________
"Those who do not understand Unix are condemned to reinvent it, poorly."
     -- Henry Spencer 
#1 lore raw
Quoted 5 lines · Alexander Sirotkin

I could not find any information on this in the archives, so I thought I might ask it here.

Theoretically, it should be possible to write cardbus driver as a regular PCI driver.

In Linux, a cardbus driver is exactly the same as a regular PCI driver. There is no difference. You get all the resources (device BARs) and interrupts from the pci device structure, just like a regular PCI driver.

There's no need to fiddle with the cardbus bridge at all. In fact, we'll scream at you if you attempt to do that because its a violation of the system layering.

Signature · 4 lines
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 PCMCIA      - http://pcmcia.arm.linux.org.uk/
                 2.6 Serial core