Reservation of resources shared by two PCI devices

From: Krzysztof Halasa
Date: Sun Aug 16 2009 - 11:04:12 EST


Hi,

I have a PCI card with a bridge and two devices behind it.
There is a custom circuitry connected to the first PCI device,
controlling operation of both devices.

The IO and possibly MMIO resources used for controlling the custom
circuitry (part of device #0 registers) are not used for other purposes.
Access is controlled by a spin lock.

What's the best way to handle IO/MMIO resource reservations of this
shared part of device #0?

Should I switch away from pci_register_driver()?
--
Krzysztof Halasa
--
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/