diff options
| author | Hans de Goede <hdegoede@redhat.com> | 2012-10-24 18:14:08 +0200 |
|---|---|---|
| committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-10-25 09:08:10 +0200 |
| commit | 0cae7b1a004d6857e3bde3d511d7efa39d3cb48a (patch) | |
| tree | 77f810f027314d7de80e4da6c4f37ff0d25da265 /hw/usb.h | |
| parent | 36dfe324fd4b5efd9ef1a5b4c352bbb158952e24 (diff) | |
| download | focaccia-qemu-0cae7b1a004d6857e3bde3d511d7efa39d3cb48a.tar.gz focaccia-qemu-0cae7b1a004d6857e3bde3d511d7efa39d3cb48a.zip | |
usb: Move clearing of queue on halt to the core
hcds which queue up more then one packet at once (uhci, ehci and xhci), must clear the queue after an error which has caused the queue to halt. Currently this is handled as a special case inside the hcd code, this patch instead adds an USB_RET_REMOVE_FROM_QUEUE packet result code, teaches the 3 hcds about this and moves the clearing of the queue on a halt into the USB core. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb.h')
| -rw-r--r-- | hw/usb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb.h b/hw/usb.h index 435cd42a03..ead03c9f6b 100644 --- a/hw/usb.h +++ b/hw/usb.h @@ -45,6 +45,7 @@ #define USB_RET_IOERROR (-5) #define USB_RET_ASYNC (-6) #define USB_RET_ADD_TO_QUEUE (-7) +#define USB_RET_REMOVE_FROM_QUEUE (-8) #define USB_SPEED_LOW 0 #define USB_SPEED_FULL 1 |