aboutsummaryrefslogtreecommitdiff
path: root/hw/usb/desc.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-03-29 16:01:21 +0200
committerGerd Hoffmann <kraxel@redhat.com>2012-04-17 10:23:28 +0200
commite36a20d329b4cf52ce3b269345527e7ebcc00885 (patch)
treed02c8e55bec1360c57a78f693e4dfc4abdef7b5d /hw/usb/desc.h
parentfeafd797ee5b12d6831aaafccd41c192ad9cc8bd (diff)
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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/usb/desc.h b/hw/usb/desc.h
index 6f42eae8b9..d164e8f891 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;