aboutsummaryrefslogtreecommitdiff
path: root/tests/qtest/libqos/pci.h
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2021-12-08 14:03:47 +0100
committerThomas Huth <thuth@redhat.com>2021-12-15 08:07:04 +0100
commitefe84f03ea88db49ae9180a9ffe4634349333c4e (patch)
treeba353867b4b42e96ef27fa243e3d1bd540821bf4 /tests/qtest/libqos/pci.h
parent76b56fdfc9fa43ec6e5986aee33f108c6c6a511e (diff)
qtest/libqos: add a function to initialize secondary PCI buses
Scan the PCI devices to find bridge and set PCI_SECONDARY_BUS and PCI_SUBORDINATE_BUS (algorithm from seabios) Signed-off-by: Laurent Vivier <lvivier@redhat.com> Acked-by: Thomas Huth <thuth@redhat.com> Message-Id: <20211208130350.10178-2-lvivier@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/qtest/libqos/pci.h')
-rw-r--r--tests/qtest/libqos/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/qtest/libqos/pci.h b/tests/qtest/libqos/pci.h
index ee64fdecbd..becb800f9e 100644
--- a/tests/qtest/libqos/pci.h
+++ b/tests/qtest/libqos/pci.h
@@ -81,6 +81,7 @@ void qpci_device_foreach(QPCIBus *bus, int vendor_id, int device_id,
void *data);
QPCIDevice *qpci_device_find(QPCIBus *bus, int devfn);
void qpci_device_init(QPCIDevice *dev, QPCIBus *bus, QPCIAddress *addr);
+int qpci_secondary_buses_init(QPCIBus *bus);
bool qpci_has_buggy_msi(QPCIDevice *dev);
bool qpci_check_buggy_msi(QPCIDevice *dev);