From 594a53607e5bd4a2b7555a7a2908d2c406fea9aa Mon Sep 17 00:00:00 2001 From: Gonglei Date: Fri, 19 Sep 2014 15:25:20 +0800 Subject: 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 Reviewed-by: Paolo Bonzini Signed-off-by: Gerd Hoffmann --- include/hw/usb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/hw') diff --git a/include/hw/usb.h b/include/hw/usb.h index 8ffbba2174..b20b959123 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) { -- cgit v1.2.3