summaryrefslogtreecommitdiffstats
path: root/usb-bsd.c
authorHans de Goede <[email protected]>2011-02-02 15:33:13 (GMT)
committer Gerd Hoffmann <[email protected]>2011-05-26 09:55:02 (GMT)
commit007fd62f4d3959f2a61abe61a34a54c9f99560b0 (patch) (side-by-side diff)
treeb5f3ffe9b4683aa60061047e3dbbde0ca6298364 /usb-bsd.c
parent8656954aedbd9995e68e998df734a849f8e63ade (diff)
downloadqemu-kvm-007fd62f4d3959f2a61abe61a34a54c9f99560b0.zip
qemu-kvm-007fd62f4d3959f2a61abe61a34a54c9f99560b0.tar.gz
qemu-kvm-007fd62f4d3959f2a61abe61a34a54c9f99560b0.tar.bz2
usb: Pass the packet to the device's handle_control callback
This allows using the generic usb_generic_handle_packet function from device code which does ASYNC control requests (such as the linux host pass through code). Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'usb-bsd.c') (more/less context) (ignore whitespace changes)
-rw-r--r--usb-bsd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usb-bsd.c b/usb-bsd.c
index 50ccd48..9bab6e3 100644
--- a/usb-bsd.c
+++ b/usb-bsd.c
@@ -126,6 +126,7 @@ static void usb_host_handle_reset(USBDevice *dev)
* and return appropriate response
*/
static int usb_host_handle_control(USBDevice *dev,
+ USBPacket *p,
int request,
int value,
int index,