mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* cardbus/pci question
@ 2004-07-06 12:29 Alexander Sirotkin
  2004-07-06 13:00 ` Russell King
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Sirotkin @ 2004-07-06 12:29 UTC (permalink / raw)
  To: linux-kernel

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.

-- 
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 



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: cardbus/pci question
  2004-07-06 12:29 cardbus/pci question Alexander Sirotkin
@ 2004-07-06 13:00 ` Russell King
  0 siblings, 0 replies; 2+ messages in thread
From: Russell King @ 2004-07-06 13:00 UTC (permalink / raw)
  To: Alexander Sirotkin; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-07-06 13:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-06 12:29 cardbus/pci question Alexander Sirotkin
2004-07-06 13:00 ` Russell King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome