summaryrefslogtreecommitdiffstats
path: root/qemu/tests/libqos/usb.h
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/tests/libqos/usb.h')
-rw-r--r--qemu/tests/libqos/usb.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/qemu/tests/libqos/usb.h b/qemu/tests/libqos/usb.h
new file mode 100644
index 000000000..8fe56872b
--- /dev/null
+++ b/qemu/tests/libqos/usb.h
@@ -0,0 +1,17 @@
+#ifndef LIBQOS_USB_H
+#define LIBQOS_USB_H
+
+#include "libqos/pci-pc.h"
+
+struct qhc {
+ QPCIDevice *dev;
+ void *base;
+};
+
+void qusb_pci_init_one(QPCIBus *pcibus, struct qhc *hc,
+ uint32_t devfn, int bar);
+void uhci_port_test(struct qhc *hc, int port, uint16_t expect);
+
+void usb_test_hotplug(const char *bus_name, const int port,
+ void (*port_check)(void));
+#endif