usb.h (981c9b88e674408a1579ca3aa8d42770e3b689de) usb.h (a2ce7dbd917a18408cf4bfd132578b46c2752a72)
1#ifndef LIBQOS_USB_H
2#define LIBQOS_USB_H
3
1#ifndef LIBQOS_USB_H
2#define LIBQOS_USB_H
3
4#include "libqos/pci-pc.h"
4#include "pci-pc.h"
5
6struct qhc {
7 QPCIDevice *dev;
8 QPCIBar bar;
9};
10
11void qusb_pci_init_one(QPCIBus *pcibus, struct qhc *hc,
12 uint32_t devfn, int bar);
13void uhci_port_test(struct qhc *hc, int port, uint16_t expect);
14void uhci_deinit(struct qhc *hc);
15
16void usb_test_hotplug(QTestState *qts, const char *bus_name, const char *port,
17 void (*port_check)(void));
18#endif
5
6struct qhc {
7 QPCIDevice *dev;
8 QPCIBar bar;
9};
10
11void qusb_pci_init_one(QPCIBus *pcibus, struct qhc *hc,
12 uint32_t devfn, int bar);
13void uhci_port_test(struct qhc *hc, int port, uint16_t expect);
14void uhci_deinit(struct qhc *hc);
15
16void usb_test_hotplug(QTestState *qts, const char *bus_name, const char *port,
17 void (*port_check)(void));
18#endif