xen/arm: Introduce pci_find_host_bridge_node helper
authorOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Fri, 8 Oct 2021 22:43:26 +0000 (15:43 -0700)
committerStefano Stabellini <stefano.stabellini@xilinx.com>
Fri, 8 Oct 2021 22:43:26 +0000 (15:43 -0700)
commit8858dfac1d83acd1b28643c616318631e3a4134d
tree2ac5e3a9d3e062bd2db7e7b2ef229531b5879e22
parent305f19306b4f16448a53ceebe6e6aa19513738ed
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>
xen/arch/arm/pci/pci-host-common.c
xen/include/asm-arm/pci.h