aboutsummaryrefslogtreecommitdiff
path: root/hw/usb/desc.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-03-29 12:15:01 +0200
committerGerd Hoffmann <kraxel@redhat.com>2012-04-17 10:23:28 +0200
commit3cfeee6177bb7c86db8e1fa01cd6f5d438e4c463 (patch)
tree6902a318cd04d722dda54dbb77d9a51b18ce47a1 /hw/usb/desc.h
parentd3f904ea7b3027f58037e359cc199c2490dc5c3d (diff)
usb: use USBDescriptor for device qualifier descriptors.
Add device qualifier 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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/hw/usb/desc.h b/hw/usb/desc.h
index c5a242e3c1..15d0780ace 100644
--- a/hw/usb/desc.h
+++ b/hw/usb/desc.h
@@ -26,6 +26,16 @@ typedef struct USBDescriptor {
uint8_t iSerialNumber;
uint8_t bNumConfigurations;
} device;
+ struct {
+ uint8_t bcdUSB_lo;
+ uint8_t bcdUSB_hi;
+ uint8_t bDeviceClass;
+ uint8_t bDeviceSubClass;
+ uint8_t bDeviceProtocol;
+ uint8_t bMaxPacketSize0;
+ uint8_t bNumConfigurations;
+ uint8_t bReserved;
+ } device_qualifier;
} u;
} QEMU_PACKED USBDescriptor;