2014-09-26 11:28:12 +02:00
|
|
|
#ifndef LIBQOS_USB_H
|
|
|
|
#define LIBQOS_USB_H
|
|
|
|
|
|
|
|
#include "libqos/pci-pc.h"
|
|
|
|
|
|
|
|
struct qhc {
|
|
|
|
QPCIDevice *dev;
|
2016-10-24 06:52:06 +02:00
|
|
|
QPCIBar bar;
|
2014-09-26 11:28:12 +02: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 12:47:39 +01:00
|
|
|
void uhci_deinit(struct qhc *hc);
|
2014-09-26 11:28:14 +02:00
|
|
|
|
|
|
|
void usb_test_hotplug(const char *bus_name, const int port,
|
|
|
|
void (*port_check)(void));
|
2014-09-26 11:28:12 +02:00
|
|
|
#endif
|