xen/arm: Mark device as PCI while creating one
authorOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Fri, 8 Oct 2021 22:48:31 +0000 (15:48 -0700)
committerStefano Stabellini <stefano.stabellini@xilinx.com>
Fri, 8 Oct 2021 22:48:31 +0000 (15:48 -0700)
commite17abb28e80043346752f1e2b59ed34806c2144d
tree1e37cccf53d086d952274a18b8adfeaa92fe0b0b
parent86e84e59bd77b69de5736ee00a679fba5ce9df5c
xen/arm: Mark device as PCI while creating one

While adding a PCI device mark it as such, so other frameworks
can distinguish it from DT devices.
For that introduce an architecture defined helper which may perform
additional initialization of the newly created PCI device.

Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
[applicable parts]
Acked-by: Jan Beulich <jbeulich@suse.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.c
xen/drivers/passthrough/pci.c
xen/include/asm-arm/pci.h
xen/include/asm-x86/pci.h