]>
xen/arm: allow PCI host bridge to have private data
authorOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Thu, 12 Jun 2025 11:16:20 +0000 (11:16 +0000)
committerStefano Stabellini <stefano.stabellini@amd.com>
Tue, 17 Jun 2025 22:32:31 +0000 (15:32 -0700)
Some of the PCI host bridges require private data. Add priv field
to struct pci_host_bridge, so such bridges may populate it with
their private data.

Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Signed-off-by: Mykyta Poturai <mykyta_poturai@epam.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/include/asm/pci.h

index 64f0e6ce7e3b531ea4a34c96c860457607befd8d..dca9fa4e4cee35258e4b275e387c5cb0509f7129 100644 (file)
@@ -68,6 +68,7 @@ struct pci_host_bridge {
     uint16_t segment;                /* Segment number */
     struct pci_config_window* cfg;   /* Pointer to the bridge config window */
     const struct pci_ops *ops;
+    void *priv;                      /* Private data of the bridge. */
 };
 
 struct pci_ops {