Statistics
| Branch: | Revision:

root / hw / usb-desc.c @ 4e4fa398

History | View | Annotate | Download (15.1 kB)

# Date Author Comment
62aed765 01/27/2012 06:50 pm Anthony Liguori

usb: convert to QEMU Object Model

Signed-off-by: Anthony Liguori <>

83a53bbc 01/17/2012 10:44 am Gerd Hoffmann

usb-desc: USBEndpoint support

Initialize USBEndpoint structs from USBDesc* data.

Signed-off-by: Gerd Hoffmann <>

f003397c 01/17/2012 10:44 am Gerd Hoffmann

usb: add max_packet_size to USBEndpoint

Signed-off-by: Gerd Hoffmann <>

65360511 01/13/2012 11:25 am Gerd Hoffmann

usb: track configuration and interface count in USBDevice.

Move fields from USBHostDevice to USBDevice.
Add bits to usb-desc.c to fill them for emulated devices too.
Also allow to set configuration 0 (== None) for emulated devices.

Signed-off-by: Gerd Hoffmann <>

1de14d43 01/13/2012 11:25 am Gerd Hoffmann

usb: track altsetting in USBDevice

Also handle {GET,SET}_INTERFACE in common code (usb-desc.c).

Signed-off-by: Gerd Hoffmann <>

cc5f1395 01/13/2012 11:25 am Gerd Hoffmann

usb-desc: audio endpoint support

Add support for audio endpoints which have two more fields in the
descriptor. Also add support for extra class specific endpoint
descriptors.

Signed-off-by: Gerd Hoffmann <>

7267c094 08/21/2011 07:01 am Anthony Liguori

Use glib memory allocation and free functions

qemu_malloc/qemu_free no longer exist after this commit.

Signed-off-by: Anthony Liguori <>

a7fb71d1 06/23/2011 06:15 pm Gerd Hoffmann

usb: ignore USB_DT_DEBUG

Signed-off-by: Gerd Hoffmann <>

ba3f9bfb 06/23/2011 12:28 pm Hans de Goede

usb: Add a speedmask to devices

This is used to indicate at which speed[s] the device can operate,
so that this can be checked to match the ports capabilities when it gets
attached to a bus.

Note that currently all usb1 emulated device claim to be fullspeed, this...

fef13fa8 05/26/2011 12:55 pm Brad Hards

usb: remove fallback to bNumInterfaces if no .nif

All callers have been updated.

Signed-off-by: Brad Hards <>
Signed-off-by: Gerd Hoffmann <>

6e625fc7 05/26/2011 12:55 pm Brad Hards

usb: add support for "grouped" interfaces and the Interface Association Descriptor

This is used for some devices that have multiple interfaces that form a logic
device. An example is Video Class, which has a Control interface and a
Streaming interface. There can be additional interfaces on the same (physical)...

007fd62f 05/26/2011 12:55 pm Hans de Goede

usb: Pass the packet to the device's handle_control callback

This allows using the generic usb_generic_handle_packet function from
device code which does ASYNC control requests (such as the linux host
pass through code).

Signed-off-by: Hans de Goede <>

32d41919 01/11/2011 06:15 pm Gerd Hoffmann

usb: add usb_desc_attach

Add usb_desc_attach() which sets up the device according to the speed
the usb port is able to handle. This function can be hooked into the
handle_attach callback.

Signed-off-by: Gerd Hoffmann <>

25620cba 01/11/2011 06:15 pm Gerd Hoffmann

usb: add device qualifier support

Add support for device_qualifier and other_speed_config descriptors.
These are used to query the "other speed" configuration of usb 2.0
devices, i.e. in high-speed mode they return the full-speed
configuration and visa versa....

41c6abbd 01/11/2011 04:56 pm Gerd Hoffmann

usb: move USB_REQ_SET_ADDRESS handling to common code

USB_REQ_SET_ADDRESS handling is identical in all emulated devices.
Move it to common code.

Signed-off-by: Gerd Hoffmann <>

a980a065 01/11/2011 04:56 pm Gerd Hoffmann

usb: move USB_REQ_{GET,SET}_CONFIGURATION handling to common code

This patch adds fields to the USBDevice struct for the current
speed (hard-wired to full speed for now) and current device
configuration. Also a init function is added which inializes
these fields. This allows USB_REQ_{GET,SET}_CONFIGURATION...

ed5a83dd 01/11/2011 04:56 pm Gerd Hoffmann

usb: move remote wakeup handling to common code

This patch moves setting and clearing the remote_wakeup feature
bit (via USB_REQ_{SET,CLEAR}_FEATURE) to common code. Also
USB_REQ_GET_STATUS handling is moved to common code.

Signed-off-by: Gerd Hoffmann <>

37fb59d3 01/11/2011 04:56 pm Gerd Hoffmann

usb: data structs and helpers for usb descriptors.

This patch adds hw/usb-desc.[ch] files. They carry data structures
for various usb descriptors and helper functions to generate usb
packets from the structures.

The intention is to have a internal representation of the device...

132a3f55 01/11/2011 04:56 pm Gerd Hoffmann

usb descriptors: add settable strings.

This patch allows to set usb descriptor strings per device instance.

Signed-off-by: Gerd Hoffmann <>