diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2012-03-29 16:01:21 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-04-17 10:23:28 +0200 |
commit | e36a20d329b4cf52ce3b269345527e7ebcc00885 (patch) | |
tree | d02c8e55bec1360c57a78f693e4dfc4abdef7b5d /hw/usb/desc.h | |
parent | feafd797ee5b12d6831aaafccd41c192ad9cc8bd (diff) | |
download | qemu-e36a20d329b4cf52ce3b269345527e7ebcc00885.zip qemu-e36a20d329b4cf52ce3b269345527e7ebcc00885.tar.gz qemu-e36a20d329b4cf52ce3b269345527e7ebcc00885.tar.bz2 |
usb: use USBDescriptor for endpoint descriptors.
Add endpoint 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.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/usb/desc.h b/hw/usb/desc.h index 6f42eae..d164e8f 100644 --- a/hw/usb/desc.h +++ b/hw/usb/desc.h @@ -54,6 +54,15 @@ typedef struct USBDescriptor { uint8_t bInterfaceProtocol; uint8_t iInterface; } interface; + struct { + uint8_t bEndpointAddress; + uint8_t bmAttributes; + uint8_t wMaxPacketSize_lo; + uint8_t wMaxPacketSize_hi; + uint8_t bInterval; + uint8_t bRefresh; /* only audio ep */ + uint8_t bSynchAddress; /* only audio ep */ + } endpoint; } u; } QEMU_PACKED USBDescriptor; |