diff options
author | Igor Mammedov <imammedo@redhat.com> | 2014-09-26 09:28:08 +0000 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2014-10-15 05:03:12 +0200 |
commit | 2f8b2767203a73814b3c3c386e3ed74cd0b5a32e (patch) | |
tree | 01e4ff32aace732f40cf0bb880f58e24f2b3ae89 /tests/libqos/pci.h | |
parent | 823a9987c99da3d2ee6249730f6cf5c4dcdc15cc (diff) |
libqos: Add qpci_plug_device_test() and qpci_unplug_acpi_device_test()
Functions will be used for testing hot(un)plug of PCI devices.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'tests/libqos/pci.h')
-rw-r--r-- | tests/libqos/pci.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/libqos/pci.h b/tests/libqos/pci.h index d51eb9e219..dfaee9ec37 100644 --- a/tests/libqos/pci.h +++ b/tests/libqos/pci.h @@ -87,4 +87,7 @@ void qpci_io_writel(QPCIDevice *dev, void *data, uint32_t value); void *qpci_iomap(QPCIDevice *dev, int barno, uint64_t *sizeptr); void qpci_iounmap(QPCIDevice *dev, void *data); +void qpci_plug_device_test(const char *driver, const char *id, + uint8_t slot, const char *opts); +void qpci_unplug_acpi_device_test(const char *id, uint8_t slot); #endif |