aboutsummaryrefslogtreecommitdiff
path: root/tests/libqos/usb.h
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2014-09-26 09:28:12 +0000
committerAndreas Färber <afaerber@suse.de>2014-10-15 05:03:12 +0200
commitb0354ec59640a23c3be544d904400e38be8ff51d (patch)
tree0b5ac65ce77ae925410d1c67abc02916f27a6599 /tests/libqos/usb.h
parentaaf36070510cd95f8d77ec208fda8a555b507a1d (diff)
tests: usb: Move uhci port test code to libqos/usb.c
Move code necessary for testing uhci port into library so it could be used by other USB tests. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'tests/libqos/usb.h')
-rw-r--r--tests/libqos/usb.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/libqos/usb.h b/tests/libqos/usb.h
new file mode 100644
index 0000000000..7fcd669ac4
--- /dev/null
+++ b/tests/libqos/usb.h
@@ -0,0 +1,14 @@
+#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);
+#endif