OSDN Git Service

usb: add USBDescriptor, use for device descriptors.
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 29 Mar 2012 10:04:54 +0000 (12:04 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 17 Apr 2012 08:23:28 +0000 (10:23 +0200)
commitd3f904ea7b3027f58037e359cc199c2490dc5c3d
treebccc2a2811327de196496e90e327051d49c9c23b
parent58ea88d87a834923b31271750b8eab6403a797be
usb: add USBDescriptor, use for device descriptors.

This patch adds a new type for the binary representation of usb
descriptors.  It is put into use for the descriptor generator code
where the struct replaces the hard-coded offsets.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/desc.c
hw/usb/desc.h