aboutsummaryrefslogtreecommitdiff
path: root/hw/usb/desc.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-03-29 12:30:33 +0200
committerGerd Hoffmann <kraxel@redhat.com>2012-04-17 10:23:28 +0200
commitfeafd797ee5b12d6831aaafccd41c192ad9cc8bd (patch)
tree12951aeb12c4152fee92da3fb9f734b55857e9be /hw/usb/desc.h
parent0a263db17a59a04b8f22540b284919956751e4f8 (diff)
usb: use USBDescriptor for interface descriptors.
Add interface 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 298e050553..6f42eae8b9 100644
--- a/hw/usb/desc.h
+++ b/hw/usb/desc.h
@@ -45,6 +45,15 @@ typedef struct USBDescriptor {
uint8_t bmAttributes;
uint8_t bMaxPower;
} config;
+ struct {
+ uint8_t bInterfaceNumber;
+ uint8_t bAlternateSetting;
+ uint8_t bNumEndpoints;
+ uint8_t bInterfaceClass;
+ uint8_t bInterfaceSubClass;
+ uint8_t bInterfaceProtocol;
+ uint8_t iInterface;
+ } interface;
} u;
} QEMU_PACKED USBDescriptor;