xref: /openbmc/qemu/tests/qtest/libqos/usb.h (revision 8e49197c)
11cf4323eSThomas Huth #ifndef LIBQOS_USB_H
21cf4323eSThomas Huth #define LIBQOS_USB_H
31cf4323eSThomas Huth 
4*a2ce7dbdSPaolo Bonzini #include "pci-pc.h"
51cf4323eSThomas Huth 
61cf4323eSThomas Huth struct qhc {
71cf4323eSThomas Huth     QPCIDevice *dev;
81cf4323eSThomas Huth     QPCIBar bar;
91cf4323eSThomas Huth };
101cf4323eSThomas Huth 
111cf4323eSThomas Huth void qusb_pci_init_one(QPCIBus *pcibus, struct qhc *hc,
121cf4323eSThomas Huth                        uint32_t devfn, int bar);
131cf4323eSThomas Huth void uhci_port_test(struct qhc *hc, int port, uint16_t expect);
141cf4323eSThomas Huth void uhci_deinit(struct qhc *hc);
151cf4323eSThomas Huth 
161cf4323eSThomas Huth void usb_test_hotplug(QTestState *qts, const char *bus_name, const char *port,
171cf4323eSThomas Huth                       void (*port_check)(void));
181cf4323eSThomas Huth #endif
19