pci: Add hooks for bus/bridge-specific fixups
There is currently no way for a PCIe bridge to impose constraints on
devices added to it. For example, the Xilinx PCIe host bridge only
supports 32-bit physical addresses (due to a limitation on the AXI
port's address width). Thus, even devices that claim to support 64-bit
DMA addresses must be restricted to 32-bit addresses when attached to
this host controller.
This patch adds a "add_dev" hook to pci_ops that allows the PCI
infastructure to interpose when adding a device, which in the case of
the Xilinx driver will be used to restrict the address ranges used for
DMA.
Signed-off-by:
Palmer Dabbelt <palmer@dabbelt.com>
parent
ae64f9bd
Please register or sign in to comment