]> git.proxmox.com Git - qemu.git/commit
usb: data structs and helpers for usb descriptors.
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 17 Nov 2010 10:03:53 +0000 (11:03 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 11 Jan 2011 14:56:00 +0000 (15:56 +0100)
commit37fb59d3032687b6f0d94c307bd0a846e0ca1fe0
tree1538cef5e0c1abc4a5fca8850a01460b2bfe6bc2
parent5d0d62feee8aa75525207ef24919c0522651a432
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
desription which is more usable than the current char array blobs,
so we can have common code handle common usb device emulation using
the device description.

The usage of this infrastructure is optional for usb drivers as there
are cases such as pass-through where it probably isn't very useful.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Makefile.objs
hw/usb-desc.c [new file with mode: 0644]
hw/usb-desc.h [new file with mode: 0644]
hw/usb.h
trace-events