mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
qdev/usb: add usb bus support to qdev, convert drivers.
* Add USBBus. * Add USBDeviceInfo, move device callbacks here. * Add usb-qdev helper functions. * Switch drivers to qdev. TODO: * make the rest of qemu aware of usb busses and kill the FIXMEs added by this patch. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
7557008854
commit
806b602482
17 changed files with 428 additions and 197 deletions
|
@ -590,7 +590,7 @@ static inline void musb_packet(MUSBState *s, MUSBEndPoint *ep,
|
|||
ep->packey[dir].complete_opaque = ep;
|
||||
|
||||
if (s->port.dev)
|
||||
ret = s->port.dev->handle_packet(s->port.dev, &ep->packey[dir]);
|
||||
ret = s->port.dev->info->handle_packet(s->port.dev, &ep->packey[dir]);
|
||||
else
|
||||
ret = USB_RET_NODEV;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue