e5758de4e8
Generic library functions like qtest_qmp_device_add() and _del() should not depend on the global_qtest variable. Pass the test state via parameter instead. Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-Id: <20190813093047.27948-6-thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
19 lines
465 B
C
19 lines
465 B
C
#ifndef LIBQOS_USB_H
|
|
#define LIBQOS_USB_H
|
|
|
|
#include "libqos/pci-pc.h"
|
|
|
|
struct qhc {
|
|
QPCIDevice *dev;
|
|
QPCIBar bar;
|
|
};
|
|
|
|
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);
|
|
void uhci_deinit(struct qhc *hc);
|
|
|
|
void usb_test_hotplug(QTestState *qts, const char *bus_name, const char *port,
|
|
void (*port_check)(void));
|
|
#endif
|