Statistics
| Branch: | Revision:

root / hw / usb / hcd-uhci.c @ 9077f01b

History | View | Annotate | Download (36.3 kB)

# Date Author Comment
aba1f242 04/26/2012 01:21 pm Gerd Hoffmann

usb-uhci: update irq line on reset

uhci_reset() clears irq mask and irq status registers, but doesn't
update the irq line. Which may result in suspious IRQs after uhci
reset. Fix it.

Signed-off-by: Gerd Hoffmann <>

52b0fecd 04/17/2012 11:23 am Gerd Hoffmann

usb-uhci: stop queue filling when we find a in-flight td

Not only QHs can form rings, but TDs too. With the new
queuing/pipelining support we are following TD chains and
can actually walk in circles. An assert() prevents us from
entering an endless loop then....

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

usb-uhci: queuing fix

When we queue up usb packets we may happen to find a already queued
packet, which also might be finished at that point already. We don't
want continue processing the packet at this point though, so lets
just signal back we've found a in-flight packet when in queuing mode....

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...

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

usb: zap hw/ush-{ohic,uhci}.h + init wrappers

Remove the uhci and ohci init wrappers, which all wrapped a
pci_create_simple() one-liner. Switch callsites to call
pci_create_simple directly. Remove the header files where
the wrappers where declared.

Signed-off-by: Gerd Hoffmann <>

16ce543e 03/13/2012 11:15 am Gerd Hoffmann

uhci: pass addr to uhci_async_alloc

Also do async->td initialization in uhci_async_alloc now.
Prepares for adding tracepoints.

Signed-off-by: Gerd Hoffmann <>

60f8afcb 03/13/2012 11:15 am Gerd Hoffmann

uhci: fix uhci_async_cancel_all

It should also free all queues.

Signed-off-by: Gerd Hoffmann <>

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

uhci: cancel on schedule stop.

Cancel any in-flight transaction when the guest stops the uhci schedule.

Signed-off-by: Gerd Hoffmann <>

50dcc0f8 03/13/2012 11:15 am Gerd Hoffmann

uhci: tracing support

Zap DPRINTF, add tracepoints instead.

Signed-off-by: Gerd Hoffmann <>

60e1b2a6 03/13/2012 11:15 am Gerd Hoffmann

uhci: use enum for uhci_handle_td return codes

Step #1 (separate for better bisectability): replace numbers with names.

Signed-off-by: Gerd Hoffmann <>

0cd178ca 03/13/2012 11:15 am Gerd Hoffmann

uhci: renumber uhci_handle_td return codes

Step #2 (separate for better bisectability): renumber so the silly '-1'
goes away. Pick a range which doesn't overlap the old values.

Signed-off-by: Gerd Hoffmann <>

4efe4ef3 03/13/2012 11:15 am Gerd Hoffmann

uhci: new uhci_handle_td return code for tds still in flight

Signed-off-by: Gerd Hoffmann <>

6c601340 03/13/2012 11:15 am Gerd Hoffmann

uhci: alloc can't fail, drop check.

Signed-off-by: Gerd Hoffmann <>