summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2014-09-19 15:25:20 +0800
committerGerd Hoffmann <kraxel@redhat.com>2014-09-23 12:51:08 +0200
commit594a53607e5bd4a2b7555a7a2908d2c406fea9aa (patch)
tree6be9713bb4f70985f5d36c8651881b21f84b478a /include
parentbd2ba2752d860d5a0b4f328332c3e0b79d275de8 (diff)
downloadhqemu-594a53607e5bd4a2b7555a7a2908d2c406fea9aa.zip
hqemu-594a53607e5bd4a2b7555a7a2908d2c406fea9aa.tar.gz
usb-bus: introduce a wrapper function to check speed
In this way, we can check speed directly, don't need call usb_device_attach(), which has other conditions, such as checking the chardev is open. Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/usb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/usb.h b/include/hw/usb.h
index 8ffbba2..b20b959 100644
--- a/include/hw/usb.h
+++ b/include/hw/usb.h
@@ -553,6 +553,7 @@ void usb_release_port(USBDevice *dev);
void usb_device_attach(USBDevice *dev, Error **errp);
int usb_device_detach(USBDevice *dev);
int usb_device_delete_addr(int busnr, int addr);
+void usb_check_attach(USBDevice *dev, Error **errp);
static inline USBBus *usb_bus_from_device(USBDevice *d)
{
OpenPOWER on IntegriCloud