mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
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>
This commit is contained in:
parent
adae502c0a
commit
19deaa089c
3 changed files with 15 additions and 4 deletions
1
hw/usb.h
1
hw/usb.h
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue