diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2012-08-28 17:46:29 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-09-11 07:43:01 +0200 |
commit | 2077469b58066da3cdac9e5b81d3c60178e6d300 (patch) | |
tree | c351b2b1c01356d8e7506e673cd47d219a613aa6 /hw/usb/desc.h | |
parent | b43a28517620c4eba8ab8b96b08e5ec85aedeeaf (diff) | |
download | qemu-2077469b58066da3cdac9e5b81d3c60178e6d300.zip qemu-2077469b58066da3cdac9e5b81d3c60178e6d300.tar.gz qemu-2077469b58066da3cdac9e5b81d3c60178e6d300.tar.bz2 |
usb3: bos decriptor
Add support for creating BOS descriptor and
device cappability descriptors.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/desc.h')
-rw-r--r-- | hw/usb/desc.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/hw/usb/desc.h b/hw/usb/desc.h index 4b5e88d..68bb570 100644 --- a/hw/usb/desc.h +++ b/hw/usb/desc.h @@ -69,6 +69,31 @@ typedef struct USBDescriptor { uint8_t wBytesPerInterval_lo; uint8_t wBytesPerInterval_hi; } super_endpoint; + struct { + uint8_t wTotalLength_lo; + uint8_t wTotalLength_hi; + uint8_t bNumDeviceCaps; + } bos; + struct { + uint8_t bDevCapabilityType; + union { + struct { + uint8_t bmAttributes_1; + uint8_t bmAttributes_2; + uint8_t bmAttributes_3; + uint8_t bmAttributes_4; + } usb2_ext; + struct { + uint8_t bmAttributes; + uint8_t wSpeedsSupported_lo; + uint8_t wSpeedsSupported_hi; + uint8_t bFunctionalitySupport; + uint8_t bU1DevExitLat; + uint8_t wU2DevExitLat_lo; + uint8_t wU2DevExitLat_hi; + } super; + } u; + } cap; } u; } QEMU_PACKED USBDescriptor; |