Statistics
| Branch: | Revision:

root / hw / usb / host-linux.c @ 9077f01b

History | View | Annotate | Download (54.8 kB)

# Date Author Comment
a2498f76 05/14/2012 11:22 am Gerd Hoffmann

usb-host: handle guest-issued clear halt

Most important here is to update our internal endpoint state so we know
the endpoint isn't in halted state any more. Without this usb-host
tries to clear halt again with the next data transfer submitted. Doing
this twice is (a) not correct and (b) confuses some usb devices,...

818d59dc 04/26/2012 01:21 pm Gerd Hoffmann

usb-host: don't dereference invalid iovecs

usb-host assumes the first iovec element is always valid.
In case of a zero-length packet this isn't true though.

Signed-off-by: Gerd Hoffmann <>

0b377169 04/26/2012 01:21 pm Gerd Hoffmann

usb-host: fix zero-length packets

usb-host optimizes away zero-length packets by not entering the
processing loop at all. Which isn't correct, we should submit a
zero-length urb to the host devicein that case. This patch makes
sure we run the processing loop at least once....

96dd9aac 04/17/2012 11:23 am Gerd Hoffmann

usb-host: rewrite usb_linux_update_endp_table

This patch carries a complete rewrite of the usb descriptor parser.
Changes / improvements:

  • We are using the USBDescriptor struct instead of hard-coded offsets
    now to access descriptor data.
  • (debug) printfs are all gone, tracepoints have been added instead....
65bb3a5c 04/17/2012 11:23 am Gerd Hoffmann

Add bootindex support to usb-host and usb-redir

When passing through a usb pendrive seabios will present it in the F12
boot menu and will happily boot from it.

This patch adds bootorder support so you can even make it the default
boot device.

Signed-off-by: Gerd Hoffmann <>

e382e751 04/17/2012 11:23 am Gerd Hoffmann

usb-host: trace emulated requests

Add tracepoint to track completion of emulated control requests.

Signed-off-by: Gerd Hoffmann <>

6aebe407 04/17/2012 11:23 am Gerd Hoffmann

usb-host: trace canceled requests

Add tracepoints to track canceled requests.

Signed-off-by: Gerd Hoffmann <>

19b89252 04/17/2012 11:23 am Gerd Hoffmann

usb-host: add usb packet to request tracepoints

Add pointer to USBPacket to all tracepoints tracking requests to make it
easier to identify them when multiple requests are in flight.

Signed-off-by: Gerd Hoffmann <>

39c20577 04/17/2012 11:23 am Gerd Hoffmann

usb-host: add property to turn off pipelining

Add a property to usb-host to disable the bulk endpoint pipelining.

Signed-off-by: Gerd Hoffmann <>

f1ae32a1 03/13/2012 11:15 am Gerd Hoffmann

usb: the big rename

Reorganize usb source files. Create a new hw/usb/ directory and move
all usb source code to that place. Also make filenames a bit more
descriptive. Host adapters are prefixed with "hch-" now, usb device
emulations are prefixed with "dev-". Fixup paths Makefile and include...