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