| Branch: | Revision:

root / hw / usb-uhci.c @ df0db221

History | View | Annotate | Download (30.6 kB)

# Date Author Comment
b80d4a98 07/11/2010 08:00 pm Isaku Yamahata

pci: don't overwrite multi functio bit in pci header type.

Don't overwrite pci header type.
Otherwise, multi function bit which pci_init_header_type() sets
appropriately is lost.
Anyway PCI_HEADER_TYPE_NORMAL is zero, so it is unnecessary to zero
which is already zero cleared....

6881dd5f 06/30/2010 09:43 pm TeLeMan

usb-uhci: fix commit 8e65b7c04965c8355e4ce43211582b6b83054e3d for vmstate

The commit 8e65b7c04965c8355e4ce43211582b6b83054e3d introduced
expire_time of UHCIState. But expire_time is not in vmstate, the
second uhci_frame_timer will not be fired immediately after loadvm....

30235a54 06/30/2010 12:07 am Huacai Chen

MIPS: Initial support of VIA USB controller used by fulong mini pc

Signed-off-by: Huacai Chen <>
Signed-off-by: Aurelien Jarno <>

d4c4e6fd 04/25/2010 09:23 pm Blue Swirl

usb: remove dead assignments, spotted by clang analyzer

Value stored is never read.

Signed-off-by: Blue Swirl <>

5bd2c0d7 04/04/2010 11:48 pm Paul Brook

UHCI spurious interrut fix

Only raise an interrupt if the TD has actually completed.

Signed-off-by: Paul Brook <>

8e65b7c0 02/10/2010 08:45 pm David S. Ahern

audio streaming from usb devices

I have streaming audio devices working within qemu-kvm. This is a port
of the changes to qemu.

Streaming audio generates a series of isochronous requests that are
repetitive and time sensitive. The URBs need to be submitted in...

d0f2c4c6 02/07/2010 01:03 am malc

Do not use dprintf

dprintf is already claimed by POSIX1, and on at least one system
is implemented as a macro


Signed-off-by: malc <>

db579e9e 12/23/2009 04:35 pm Michael S. Tsirkin

usb-uhci: symbolic names for pci registers

No functional changes. I verified that the generated binary
does not change.

Signed-off-by: Michael S. Tsirkin <>
Acked-by: Juan Quintela <>
Acked-by: Glauber Costa <>

556cd098 12/12/2009 03:59 pm Markus Armbruster

qdev: Replace device names containing whitespace

Device names with whitespace require quoting in the shell and in the
monitor. Some of the offenders are also overly long. Some have a
more convenient alias, some don't.

The place for verbose device names is DeviceInfo member desc. The...

be73cfe2 12/03/2009 06:05 pm Juan Quintela

savevm: Port to qdev.vmsd all devices that have qdev

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

18e08a55 12/01/2009 05:51 pm Michael S. Tsirkin

pci: pci.h cleanup: move out stuff not in pci.c

pci.h declares some functions which aren't
defined in pci.h. Clean up moving things
to appropriate headers, and update all users.

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

6e355d90 11/09/2009 04:43 pm Isaku Yamahata

pci: introduce pcibus_t to represent pci bus address/size instead of uint32_t

This patch is preliminary for 64 bit BAR support.
Introduce dedicated type, pcibus_t, to represent pci bus address/size
instead of uint32_t.
Later this type will be changed to uint64_t....

0392a017 11/09/2009 04:43 pm Isaku Yamahata

pci: s/PCI_ADDRESS_SPACE_/PCI_BASE_ADDRESS_SPACE_/ to match pci_regs.h

make constants for pci base address match pci_regs.h by

Signed-off-by: Isaku Yamahata <>
Acked-by: Michael S. Tsirkin <>...

c1699988 11/07/2009 10:06 am Glauber Costa

v3: don't call reset functions on cpu initialization

There is absolutely no need to call reset functions when initializing
devices. Since we are already registering them, calling qemu_system_reset()
should suffice. Actually, it is what happens when we reboot the machine,...

817afc61 10/27/2009 07:28 pm Juan Quintela

usb-uhci: port to vmstate

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

64e58fe5 10/27/2009 07:28 pm Juan Quintela

usb-uhci: Add num_ports_vmstate to UHCIState

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

b2317837 10/05/2009 05:32 pm Gerd Hoffmann

switch usb bus to inplace allocation.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

6ee093c9 09/11/2009 06:19 pm Juan Quintela

Unexport ticks_per_sec variable. Create get_ticks_per_sec() function

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

6cf9b6f1 09/09/2009 10:55 pm Gerd Hoffmann

qdev/usb: convert uhci.

Hookup pci device into qdev.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

806b6024 09/09/2009 10:55 pm Gerd Hoffmann

qdev/usb: add usb bus support to qdev, convert drivers.

  • Add USBBus. * Add USBDeviceInfo, move device callbacks here. * Add usb-qdev helper functions. * Switch drivers to qdev.

TODO: * make the rest of qemu aware of usb busses and kill the FIXMEs
added by this patch....

a5d2f727 09/09/2009 10:55 pm Gerd Hoffmann

qdev/usb: make qemu aware of usb busses.

Move usb code from vl.c to usb-bus.c and make it use the new data
structures added by qdev conversion. qemu usb core should be able
to handle multiple USB busses just fine now (untested though).

Kill some usb_*_init() legacy functions, use usb_create_simple()...

0bf9e31a 07/20/2009 08:19 pm Blue Swirl

Fix most warnings (errors with -Werror) when debugging is enabled

I used the following command to enable debugging:
perl -p -i -e 's/^\/\/#define DEBUG/#define DEBUG/g' * /* *//*

Signed-off-by: Blue Swirl <>

a08d4367 06/29/2009 10:18 pm Jan Kiszka

Revert "Introduce reset notifier order"

This reverts commit 8217606e6edb49591b4a6fd5a0d1229cebe470a9 (and
updates later added users of qemu_register_reset), we solved the
problem it originally addressed less invasively.

Signed-off-by: Jan Kiszka <>...

c8075ac3 06/17/2009 08:05 pm Gleb Natapov

Register usb-uhci reset function.

The device is not reset on system reset currently.
Without this patch RHEL4.8 hangs after reboot if -usbdevice table
is in use.

Signed-off-by: Gleb Natapov <>

28c2c264 06/16/2009 11:18 pm Avi Kivity

Rename pci_register_io_region() to pci_register_bar()

This function is used to manage a PCI BAR, so make the more generic
pci_register_io_region() available to other uses.

Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

6407f373 05/03/2009 10:03 pm Isaku Yamahata


use symbolic value instead of 0x0e and related value.

Signed-off-by: Isaku Yamahata <>

487414f1 02/06/2009 12:06 am aliguori

hw: remove error handling from qemu_malloc() callers (Avi Kivity)

Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

173a543b 02/01/2009 09:26 pm blueswir1

Add and use #defines for PCI device classes

This patch adds and uses #defines for PCI device classes and subclases,
using a new pci_config_set_class() function, similar to the recently
added pci_config_set_vendor_id() and pci_config_set_device_id().

Change since v1: fixed compilation of hw/sun4u.c...

deb54399 01/26/2009 05:37 pm aliguori

Define PCI vendor and device IDs in pci.h (Stuart Brady)

This patch defines PCI vendor and device IDs in pci.h (matching those
from Linux's pci_ids.h), and uses those definitions where appropriate.

Change from v1:
Introduces pci_config_set_vendor_id() / pci_config_set_device_id()...

a145ea51 09/11/2008 10:42 pm aliguori

uhci: Change default transaction lifetime to 32 frames (Max Krasnyansky)

Transaction lifetime was originally set to 10 frames. That was an arbitrary
number I picked without much thinking :).
I'm changing that to 32 frames because things like interrupt transfers...

e8ee3c72 08/22/2008 12:23 pm aurel32

uhci: improved TD matching, working ISOC transfers

While trying to make VX-3000 camera work on XP under KVM I realized that
we do not necessarily have to find original TD address. All we care about
is the token which identifies the transfer rather well (direction, endpoint,...

5d808245 08/22/2008 11:58 am aurel32

uhci: Fixed length handling for SETUP and OUT tokens

Fixes regression reported agains Linux 2.6.18.
Looks like XP and newer Linux kernels are less sensitive
to length returned for control transfers.

Signed-off-by: Max Krasnyansky <>
Signed-off-by: Aurelien Jarno <>...

6f382b5e 08/21/2008 10:33 pm aliguori

uhci: fixes for save/load-vm (Max Krasnyansky)

For some reason we were not registering save/load-vm handler for piix3
flavor of UHCI and hence save/load was broken.

Async transactions need to be canceled when we save the VM because there
is no way we can save/restore all that state. Since we do not mess the...

54f254f9 08/21/2008 10:30 pm aliguori

uhci: rewrite UHCI emulator, fully async operation with multiple outstanding transactions (Max Krasnyansky)

This is esentially a re-write of the QEMU UHCI layer. My initial goal
was to support fully async operation with multiple outstanding async
transactions. Along the way I realized that I can greatly simplify...

60fe76f3 12/16/2007 05:02 am ths

Fix wrong signedness, by Andre Przywara.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

87ecb68b 11/17/2007 07:14 pm pbrook

Break up vl.h.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

1e414679 11/11/2007 09:46 pm bellard

removed unused code

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

b9dc033c 10/05/2007 01:47 am balrog

USB iso transfers support for the linux redirector and for UHCI, by Arnon Gilboa.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

3b46e624 09/17/2007 11:09 am ths

find -type f | xargs sed -i 's/[\t ]*$//g' # Yes, again. Note the star in the regex.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

5fafdf24 09/17/2007 12:08 am ths

find -type f | xargs sed -i 's/[\t ]$//g' # on most files

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

117b3ae6 09/10/2007 12:16 am pbrook

Implement HID idle mode (avoids flooding guest with useless updates).
Fix UHCI NACK bug.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

afcc3cdf 06/06/2007 07:26 pm ths

Use the correct PCI IDs for Malta.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

d537cf6c 04/07/2007 09:14 pm pbrook

Unify IRQ handling.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

96217e31 02/22/2007 10:21 pm ths

Basic USB device resume (root hub only), by Lonnie Mendez.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

81822663 01/18/2007 01:08 am ths

Fix USB buffer size, by Herbert Xu.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

4d611c9a 08/12/2006 04:04 am pbrook

SCSI and USB async IO support.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

61064870 05/22/2006 08:17 pm pbrook

Fix USB root hub hotplugging.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

0d92ed30 05/21/2006 07:30 pm pbrook

OHCI USB host emulation.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

502a5395 05/13/2006 07:11 pm pbrook

Rearrange PCI host emulation code.
Add ARM PCI emulation.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

467d409f 04/26/2006 12:01 am bellard

fix for HCHALTED status bit

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

52328140 04/25/2006 12:38 am bellard

HCHALTED status bit handling (Lonnie Mendez)

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

d80cfb3f 03/11/2006 11:46 pm pbrook

Add missing break statement.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

38ca0f6d 03/11/2006 08:03 pm pbrook

Tweak UHCI device settings. Ignore host root hubs.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

5e9ab4c4 11/19/2005 07:43 pm bellard

USB reset typo (Lonnie Mendez)

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

a594cfbf 11/06/2005 06:13 pm bellard

USB user interface

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

f04308e4 11/05/2005 07:22 pm bellard

same PCI parameters as PIIX3

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

bb36d470 11/05/2005 04:22 pm bellard

initial USB support

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162