diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2012-07-03 10:11:21 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-07-09 11:59:54 +0200 |
commit | 19deaa089cb874912767bc6071f3b7372d3ff961 (patch) | |
tree | 7620b7aa28c64623ced9885826353f858725eb29 /hw/usb.h | |
parent | adae502c0ae4572ef08f71cb5b5ed5a8e90299fe (diff) | |
download | qemu-19deaa089cb874912767bc6071f3b7372d3ff961.tar.gz qemu-19deaa089cb874912767bc6071f3b7372d3ff961.tar.bz2 qemu-19deaa089cb874912767bc6071f3b7372d3ff961.zip |
usb: split endpoint init and reset
Create a new usb_ep_reset() function to reset endpoint state, without
re-initialiting the queues, so we don't unlink in-flight packets just
because usb-host has to re-parse the descriptor tables.
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
@@ -363,6 +363,7 @@ void usb_packet_complete(USBDevice *dev, USBPacket *p); void usb_cancel_packet(USBPacket * p); void usb_ep_init(USBDevice *dev); +void usb_ep_reset(USBDevice *dev); void usb_ep_dump(USBDevice *dev); struct USBEndpoint *usb_ep_get(USBDevice *dev, int pid, int ep); uint8_t usb_ep_get_type(USBDevice *dev, int pid, int ep); |