Statistics
| Branch: | Revision:

root / hw / usb @ 43997225

Name Size
bus.c 15.2 kB
core.c 19.1 kB
desc.c 17.1 kB
desc.h 6.4 kB
dev-audio.c 22.9 kB
dev-bluetooth.c 16.7 kB
dev-hid.c 20.3 kB
dev-hub.c 17 kB
dev-network.c 43 kB
dev-serial.c 17.1 kB
dev-smartcard-reader.c 41.6 kB
dev-storage.c 18.1 kB
dev-wacom.c 10 kB
hcd-ehci.c 67.5 kB
hcd-musb.c 43.8 kB
hcd-ohci.c 53.6 kB
hcd-uhci.c 36.2 kB
hcd-xhci.c 85 kB
host-bsd.c 17.7 kB
host-linux.c 54.4 kB
host-stub.c 1.9 kB
libhw.c 2 kB
redirect.c 47.9 kB

Latest revisions

# Date Author Comment
c7020c97 04/17/2012 11:23 am Gerd Hoffmann

usb-ehci: drop assert()

Not sure what the purpose of the assert() was, in any case it is bogous.
We can arrive there if transfer descriptors passed to us from the guest
failed to pass sanity checks, i.e. it is guest-triggerable. We deal
with that case by resetting the host controller. Everything is ok, no...

58ea88d8 04/17/2012 11:23 am Hans de Goede

usb-ehci: frindex always is a 14 bits counter

frindex always is a 14 bits counter, and not a 13 bits one as we were
emulating. There are some subtle hints to this in the spec, first of all
"Table 2-12. FRINDEX - Frame Index Register" says:
"Bit 13:0 Frame Index. The value in this register increments at the end of...

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

usb: add USBDescriptor, use for device descriptors.

This patch adds a new type for the binary representation of usb
descriptors. It is put into use for the descriptor generator code
where the struct replaces the hard-coded offsets.

Signed-off-by: Gerd Hoffmann <>

3cfeee61 04/17/2012 11:23 am Gerd Hoffmann

usb: use USBDescriptor for device qualifier descriptors.

Add device qualifier substruct to USBDescriptor,
use it in the descriptor generator code.

Signed-off-by: Gerd Hoffmann <>

0a263db1 04/17/2012 11:23 am Gerd Hoffmann

usb: use USBDescriptor for config descriptors.

Add config descriptor substruct to USBDescriptor,
use it in the descriptor generator code.

Signed-off-by: Gerd Hoffmann <>

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

usb: use USBDescriptor for interface descriptors.

Add interface descriptor substruct to USBDescriptor,
use it in the descriptor generator code.

Signed-off-by: Gerd Hoffmann <>

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

usb: use USBDescriptor for endpoint descriptors.

Add endpoint descriptor substruct to USBDescriptor,
use it in the descriptor generator code.

Signed-off-by: Gerd Hoffmann <>

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....
8e24283b 04/17/2012 11:23 am Hans de Goede

usb-ehci: Drop unused sofv value

The sofv value only ever gets a value assigned and is never used (read)
anywhere, so we can just drop it.

Signed-off-by: Hans de Goede <>
Signed-off-by: Gerd Hoffmann <>

714f9db0 04/17/2012 11:23 am Hans de Goede

usb-redir: Notify our peer when we reject a device due to a speed mismatch

Also cleanup (reset) our device state when we reject a device due to a
speed mismatch.

Signed-off-by: Hans de Goede <>
Signed-off-by: Gerd Hoffmann <>

View revisions

Also available in: Atom