mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
usb: add usb_handle_packet
Add a usb_handle_packet function, put it into use everywhere. Right now it just calls dev->info->handle_packet(), that will change in future patches though. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
ebd669a19f
commit
53aa8c0e2a
6 changed files with 22 additions and 7 deletions
2
hw/usb.h
2
hw/usb.h
|
@ -266,6 +266,8 @@ struct USBPacket {
|
|||
void *cancel_opaque;
|
||||
};
|
||||
|
||||
int usb_handle_packet(USBDevice *dev, USBPacket *p);
|
||||
|
||||
/* Defer completion of a USB packet. The hadle_packet routine should then
|
||||
return USB_RET_ASYNC. Packets that complete immediately (before
|
||||
handle_packet returns) should not call this method. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue