mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
bd2ba2752d
commit
594a53607e
2 changed files with 14 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue