Statistics
| Branch: | Revision:

root / hw / usb-ehci.c @ ba7cb5a8

History | View | Annotate | Download (62.6 kB)

# Date Author Comment
ba7cb5a8 06/14/2011 01:56 pm Gerd Hoffmann

usb-ehci: fix offset writeback in ehci_buffer_rw

Two bugs at once:

First the mask is backwards, so the it used to keeps the offset and
clears the page address, which is not what we need when we update the
offset.

Second the offset calculation is wrong in case head isn't page aligned....

8ac6d699 06/14/2011 01:56 pm Gerd Hoffmann

usb-ehci: multiqueue support

This patch adds support for keeping multiple queues going at the same
time. One slow device will not affect other devices any more.

The patch adds code to manage EHCIQueue structs. It also does a number
of changes to the state machine:...

f2c88dc1 06/14/2011 01:36 pm Gerd Hoffmann

usb-ehci: trace buffer copy

Add a trace point for buffer copies and drop the DPRINTF's.

No change in behavior.

Signed-off-by: Gerd Hoffmann <>

0122f472 06/14/2011 01:36 pm Gerd Hoffmann

usb-ehci: add queue data struct

Add EHCIQueue struct, move the fields needed to track the queue state
into that struct. Pass the new struct instead of ehci state down to
functions which handle the queue state. Lot of variable references have
changed due to that without an actual functional change....

439a97cc 06/14/2011 01:36 pm Gerd Hoffmann

usb-ehci: trace mmio and usbsts

This patch starts adding trace support to ehci. It traces
updates of the status register (USBSTS), mmio access and
controller reset.

It also adds functions to set and clear status register bits
and puts them in use everywhere....

26d53979 06/14/2011 01:36 pm Gerd Hoffmann

usb-ehci: trace state machine changes

Add functions to get and set the current state of the state machine,
add tracepoints there to trace state transitions. Add support for
traceing the queue heads and transfer descriptors as we look at them.

Drop a few DPRINTFs and all DPRINTF_ST lines, they are obsolete now....

dcbd0b5c 06/14/2011 01:36 pm Gerd Hoffmann

usb-ehci: trace port state

Trace usb port operations (attach, detach, reset),
drop a few obsolete DPRINTF's.

No change in behavior.

Signed-off-by: Gerd Hoffmann <>

c4f8e211 06/14/2011 01:36 pm Gerd Hoffmann

usb-ehci: improve mmio tracing

Add a separate tracepoint to log how register values change in response
to a mmio write. Especially useful for registers which have read-only
or clear-on-write bits in them.

No change in behavior.

Signed-off-by: Gerd Hoffmann <>

94527ead 05/26/2011 12:57 pm Gerd Hoffmann

usb: add ehci adapter

This patch finally merges the EHCI host adapter aka USB 2.0 support.

Based on the ehci bits collected @ git://git.kiszka.org/qemu.git ehci

EHCI has a long out-of-tree history. Project was started by Mark
Burkley, with contributions by Niels de Vos. David S. Ahern continued...