From b0354ec59640a23c3be544d904400e38be8ff51d Mon Sep 17 00:00:00 2001 From: Igor Mammedov Date: Fri, 26 Sep 2014 09:28:12 +0000 Subject: tests: usb: Move uhci port test code to libqos/usb.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move code necessary for testing uhci port into library so it could be used by other USB tests. Signed-off-by: Igor Mammedov Reviewed-by: Paolo Bonzini Signed-off-by: Andreas Färber --- tests/libqos/usb.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/libqos/usb.h (limited to 'tests/libqos/usb.h') 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 -- cgit v1.2.3