From e36a20d329b4cf52ce3b269345527e7ebcc00885 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 29 Mar 2012 16:01:21 +0200 Subject: usb: use USBDescriptor for endpoint descriptors. Add endpoint descriptor substruct to USBDescriptor, use it in the descriptor generator code. Signed-off-by: Gerd Hoffmann --- hw/usb/desc.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'hw/usb/desc.h') 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; -- cgit v1.2.1