From 3cfeee6177bb7c86db8e1fa01cd6f5d438e4c463 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 29 Mar 2012 12:15:01 +0200 Subject: 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 --- hw/usb/desc.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'hw/usb/desc.h') diff --git a/hw/usb/desc.h b/hw/usb/desc.h index c5a242e..15d0780 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; -- cgit v1.1