History | View | Annotate | Download (36.3 kB)
usb-uhci: update irq line on reset
uhci_reset() clears irq mask and irq status registers, but doesn'tupdate the irq line. Which may result in suspious IRQs after uhcireset. Fix it.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
usb-uhci: stop queue filling when we find a in-flight td
Not only QHs can form rings, but TDs too. With the newqueuing/pipelining support we are following TD chains andcan actually walk in circles. An assert() prevents us fromentering an endless loop then....
usb-uhci: queuing fix
When we queue up usb packets we may happen to find a already queuedpacket, which also might be finished at that point already. We don'twant continue processing the packet at this point though, so letsjust signal back we've found a in-flight packet when in queuing mode....
usb: the big rename
Reorganize usb source files. Create a new hw/usb/ directory and moveall usb source code to that place. Also make filenames a bit moredescriptive. Host adapters are prefixed with "hch-" now, usb deviceemulations are prefixed with "dev-". Fixup paths Makefile and include...
usb: zap hw/ush-{ohic,uhci}.h + init wrappers
Remove the uhci and ohci init wrappers, which all wrapped apci_create_simple() one-liner. Switch callsites to callpci_create_simple directly. Remove the header files wherethe wrappers where declared.
uhci: pass addr to uhci_async_alloc
Also do async->td initialization in uhci_async_alloc now.Prepares for adding tracepoints.
uhci: fix uhci_async_cancel_all
It should also free all queues.
uhci: cancel on schedule stop.
Cancel any in-flight transaction when the guest stops the uhci schedule.
uhci: tracing support
Zap DPRINTF, add tracepoints instead.
uhci: use enum for uhci_handle_td return codes
Step #1 (separate for better bisectability): replace numbers with names.
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.
uhci: new uhci_handle_td return code for tds still in flight
uhci: alloc can't fail, drop check.