2014-09-26 13:28:12 +04:00
|
|
|
#ifndef LIBQOS_USB_H
|
|
|
|
#define LIBQOS_USB_H
|
|
|
|
|
|
|
|
#include "libqos/pci-pc.h"
|
|
|
|
|
|
|
|
struct qhc {
|
|
|
|
QPCIDevice *dev;
|
2016-10-24 07:52:06 +03:00
|
|
|
QPCIBar bar;
|
2014-09-26 13:28:12 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
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);
|
2017-02-07 14:47:39 +03:00
|
|
|
void uhci_deinit(struct qhc *hc);
|
2014-09-26 13:28:14 +04:00
|
|
|
|
2019-07-22 18:10:55 +03:00
|
|
|
void usb_test_hotplug(QTestState *qts, const char *bus_name, const char *port,
|
2014-09-26 13:28:14 +04:00
|
|
|
void (*port_check)(void));
|
2014-09-26 13:28:12 +04:00
|
|
|
#endif
|