diff options
author | Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com> | 2021-10-08 15:43:26 -0700 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@xilinx.com> | 2021-10-08 15:43:26 -0700 |
commit | 8858dfac1d83acd1b28643c616318631e3a4134d (patch) | |
tree | 2ac5e3a9d3e062bd2db7e7b2ef229531b5879e22 /xen/include | |
parent | 305f19306b4f16448a53ceebe6e6aa19513738ed (diff) |
xen/arm: Introduce pci_find_host_bridge_node helper
Get host bridge node given a PCI device attached to it.
This helper will be re-used for adding PCI devices by the subsequent
patches.
Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Rahul Singh <rahul.singh@arm.com>
Tested-by: Rahul Singh <rahul.singh@arm.com>
Diffstat (limited to 'xen/include')
-rw-r--r-- | xen/include/asm-arm/pci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/include/asm-arm/pci.h b/xen/include/asm-arm/pci.h index 8551704de3..ed76508002 100644 --- a/xen/include/asm-arm/pci.h +++ b/xen/include/asm-arm/pci.h @@ -89,6 +89,7 @@ int pci_generic_config_write(struct pci_host_bridge *bridge, pci_sbdf_t sbdf, void __iomem *pci_ecam_map_bus(struct pci_host_bridge *bridge, pci_sbdf_t sbdf, uint32_t where); struct pci_host_bridge *pci_find_host_bridge(uint16_t segment, uint8_t bus); +struct dt_device_node *pci_find_host_bridge_node(struct device *dev); static always_inline bool is_pci_passthrough_enabled(void) { |