]> Git Repo - qemu.git/commit
usb: add shortcut for control transfers
authorGerd Hoffmann <[email protected]>
Fri, 2 Mar 2012 12:22:29 +0000 (13:22 +0100)
committerGerd Hoffmann <[email protected]>
Wed, 7 Mar 2012 11:28:05 +0000 (12:28 +0100)
commit1b4b29a11483a050855838014413c91e9c1f8c19
treeb19a971f4fefffb8dd3201e792f133ad915e6170
parent9424d4e7c67d9d0cbc50fc8a1d00db31772c37c5
usb: add shortcut for control transfers

Add a more direct code path to submit control transfers.  Instead of
feeding three usb packets (setup, data, ack) to usb_handle_packet and
have the do_token_* functions in usb.c poke the control transfer
parameters out of it just submit a single packet carrying the actual
data with the control xfer parameters filled into USBPacket->parameters.

Signed-off-by: Gerd Hoffmann <[email protected]>
hw/usb.c
hw/usb.h
This page took 0.025988 seconds and 4 git commands to generate.