Re: cardbus/pci question

From: Russell King
Date: Tue Jul 06 2004 - 08:01:18 EST


On Tue, Jul 06, 2004 at 03:29:37PM +0300, Alexander Sirotkin wrote:
> 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.

--
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/