Statistics
| Branch: | Revision:

root / hw / usb @ 077805fa

Name Size
Makefile.objs 585 Bytes
bus.c 16 kB
combined-packet.c 6.4 kB
core.c 21.6 kB
desc.c 22.7 kB
desc.h 7.9 kB
dev-audio.c 22.8 kB
dev-bluetooth.c 17.1 kB
dev-hid.c 22.9 kB
dev-hub.c 17 kB
dev-network.c 43.5 kB
dev-serial.c 17.4 kB
dev-smartcard-reader.c 41.5 kB
dev-storage.c 20.1 kB
dev-uas.c 21.6 kB
dev-wacom.c 10.2 kB
hcd-ehci-pci.c 6.3 kB
hcd-ehci-sysbus.c 2.2 kB
hcd-ehci.c 71 kB
hcd-ehci.h 10 kB
hcd-musb.c 44 kB
hcd-ohci.c 54.6 kB
hcd-uhci.c 38 kB
hcd-xhci.c 91.1 kB
host-bsd.c 17.8 kB
host-linux.c 57.3 kB
host-stub.c 1.9 kB
libhw.c 2.3 kB
redirect.c 64.4 kB

Latest revisions

# Date Author Comment
077805fa 12/19/2012 09:29 am Paolo Bonzini

janitor: do not rely on indirect inclusions of or from qemu-char.h

Various header files rely on qemu-char.h including qemu-config.h or
main-loop.h, but they really do not need qemu-char.h at all (particularly
interesting is the case of the block layer!). Clean this up, and also...

a2cb15b0 12/17/2012 01:02 pm Michael S. Tsirkin

pci: update all users to look in pci/

update all users so we can remove the makefile hack.

Signed-off-by: Michael S. Tsirkin <>

427e3aa1 12/04/2012 03:42 pm Hans de Goede

usb-tablet: Allow connecting to ehci

Our ehci code has is capable of significantly lowering the wakeup rate
for the hcd emulation while the device is idle. It is possible to add
similar code ot the uhci emulation, but that simply is not there atm,
and there is no reason why a (virtual) usb-tablet can not be a USB-2 device....

8beba930 12/04/2012 03:41 pm Hans de Goede

usb: Call wakeup when data becomes available for all devices with int eps

This is necessary for proper interaction with the xhci controller, and it
will allow other hcds to lower there frame timer while waiting for interrupt
data.

Signed-off-by: Hans de Goede <>...

be41efde 12/04/2012 03:41 pm Hans de Goede

usb: Don't allow USB_RET_ASYNC for interrupt packets

It is tempting to use USB_RET_ASYNC for interrupt packets, rather then the
current NAK + polling approach, but this causes issues for migration, as
an async completed packet will not getting written back to guest memory until...

386ab487 12/04/2012 03:41 pm Hans de Goede

usb: Allow overriding of usb_desc at the device level

This allows devices to present a different set of descriptors based on
device properties.

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

80826240 12/04/2012 03:41 pm Hans de Goede

ehci: Lower timer freq when the periodic schedule is idle

Lower the timer freq if no iso schedule packets complete for 64 frames in
a row.

We can safely do this, without adding latency, because:
1) If there is isoc traffic this will never trigger
2) For async handled interrupt packets (only usb-host), the completion handler...

6c2d1c32 11/29/2012 09:04 am Gerd Hoffmann

usb: tag usb host adapters as not hotpluggable.

Hotplugging them simply doesn't work, so tag them accordingly to
avoid users trying and then crashing qemu.

For xhci there is nothing fundamental which prevents hotplug from
working, we'll "only" need a exit() function which cleans up...

c128d6a6 11/29/2012 09:04 am Stefan Hajnoczi

usb: fail usbdevice_create() when there is no USB bus

Report an error instead of segfaulting when attaching a USB device to a
machine with no USB busses:

$ qemu-system-arm -machine vexpress-a9 \
-sd Fedora-17-armhfp-vexpress-mmcblk0.img \
-kernel vmlinuz-3.4.2-3.fc17.armv7hl \...
2b29f492 11/29/2012 09:04 am Peter Crosthwaite

ehci-sysbus: Attach DMA context.

This was left as NULL on the initial merge due to debate on the mailing list on
how to handle DMA contexts for sysbus devices. Patch
9e11908f12f92e31ea94dc2a4c962c836cba9f2a was later merged to fix OHCI. This is the,
equivalent fix for sysbus EHCI....

View revisions

Also available in: Atom