mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00

Move code necessary for testing uhci port into library so it could be used by other USB tests. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
14 lines
301 B
C
14 lines
301 B
C
#ifndef LIBQOS_USB_H
|
|
#define LIBQOS_USB_H
|
|
|
|
#include "libqos/pci-pc.h"
|
|
|
|
struct qhc {
|
|
QPCIDevice *dev;
|
|
void *base;
|
|
};
|
|
|
|
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);
|
|
#endif
|