]> git.proxmox.com Git - mirror_qemu.git/commit - hw/usb/hcd-ehci.c
usb: Add USB_RET_ADD_TO_QUEUE packet result code
authorHans de Goede <hdegoede@redhat.com>
Wed, 24 Oct 2012 16:14:07 +0000 (18:14 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 25 Oct 2012 07:08:09 +0000 (09:08 +0200)
commit36dfe324fd4b5efd9ef1a5b4c352bbb158952e24
treef465ff1788bc9a0e31810095a470aa1f45e5d6db
parentd0ff81b871af3c6cf31c807dfdd480b9d1032780
usb: Add USB_RET_ADD_TO_QUEUE packet result code

This can be used by usb-device code which wishes to process an entire endpoint
queue at once, to do this the usb-device code returns USB_RET_ADD_TO_QUEUE
from its handle_data class method and defines a flush_ep_queue class method
to call when the hcd is done queuing up packets.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb.h
hw/usb/bus.c
hw/usb/core.c
hw/usb/hcd-ehci.c
hw/usb/hcd-musb.c
hw/usb/hcd-ohci.c
hw/usb/hcd-uhci.c
hw/usb/hcd-xhci.c