aboutsummaryrefslogtreecommitdiff
path: root/hw/usb/desc.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-03-29 12:24:08 +0200
committerGerd Hoffmann <kraxel@redhat.com>2012-04-17 10:23:28 +0200
commit0a263db17a59a04b8f22540b284919956751e4f8 (patch)
tree728b4f006a3b4591b1eb392dbffe3c1ed229dfa5 /hw/usb/desc.h
parent3cfeee6177bb7c86db8e1fa01cd6f5d438e4c463 (diff)
usb: use USBDescriptor for config descriptors.
Add config descriptor substruct to USBDescriptor, use it in the descriptor generator code. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/desc.h')
-rw-r--r--hw/usb/desc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/usb/desc.h b/hw/usb/desc.h
index 15d0780ace..298e050553 100644
--- a/hw/usb/desc.h
+++ b/hw/usb/desc.h
@@ -36,6 +36,15 @@ typedef struct USBDescriptor {
uint8_t bNumConfigurations;
uint8_t bReserved;
} device_qualifier;
+ struct {
+ uint8_t wTotalLength_lo;
+ uint8_t wTotalLength_hi;
+ uint8_t bNumInterfaces;
+ uint8_t bConfigurationValue;
+ uint8_t iConfiguration;
+ uint8_t bmAttributes;
+ uint8_t bMaxPower;
+ } config;
} u;
} QEMU_PACKED USBDescriptor;