summaryrefslogblamecommitdiffstats
path: root/tests/qtest/libqos/usb.h
blob: 50030d7fb112db4e7991793976928d58262b1dc2 (plain) (tree)
1
2
3
4
5
6
7
8


                    
                   


                    
                




                                                               
                                 
 
                                                                              
                                                
      
#ifndef LIBQOS_USB_H
#define LIBQOS_USB_H

#include "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