Revision 4f4321c1
ID | 4f4321c11ff6e98583846bfd6f0e81954924b003 |
usb: use iovecs in USBPacket
Zap data pointer from USBPacket, add a QEMUIOVector instead.
Add a bunch of helper functions to manage USBPacket data.
Switch over users to the new interface.
Note that USBPacket->len was used for two purposes: First to
pass in the buffer size and second to return the number of
transfered bytes or the status code on async transfers. There
is a new result variable for the latter. A new status code
was added to catch uninitialized result.
Nobody creates iovecs with more than one element (yet).
Some users are (temporarely) limited to iovecs with a single
element to keep the patch size as small as possible.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Files
- added
- modified
- copied
- renamed
- deleted
- Makefile.objs (diff)
- hw
- bt-hid.c (diff)
- milkymist-softusb.c (diff)
- usb-bt.c (diff)
- usb-ccid.c (diff)
- usb-ehci.c (diff)
- usb-hid.c (diff)
- usb-hub.c (diff)
- usb-libhw.c
- usb-msd.c (diff)
- usb-musb.c (diff)
- usb-net.c (diff)
- usb-ohci.c (diff)
- usb-serial.c (diff)
- usb-uhci.c (diff)
- usb-wacom.c (diff)
- usb.c (diff)
- usb.h (diff)
- usb-bsd.c (diff)
- usb-linux.c (diff)
- usb-redir.c (diff)