diff options
| author | Gerd Hoffmann <kraxel@redhat.com> | 2010-11-26 12:25:32 +0100 |
|---|---|---|
| committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-01-11 15:56:00 +0100 |
| commit | 132a3f55f05dff4eedde0d23d844ecdedef8ba68 (patch) | |
| tree | 8176c0595559cd176b778b3298b047969ae4421b /hw/usb.h | |
| parent | 062651c7e750a0c06a693d336c2b9edb893a2c94 (diff) | |
| download | focaccia-qemu-132a3f55f05dff4eedde0d23d844ecdedef8ba68.tar.gz focaccia-qemu-132a3f55f05dff4eedde0d23d844ecdedef8ba68.zip | |
usb descriptors: add settable strings.
This patch allows to set usb descriptor strings per device instance. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb.h')
| -rw-r--r-- | hw/usb.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/usb.h b/hw/usb.h index a29b6d6d8f..7b5c8df0b0 100644 --- a/hw/usb.h +++ b/hw/usb.h @@ -135,6 +135,13 @@ typedef struct USBDescConfig USBDescConfig; typedef struct USBDescIface USBDescIface; typedef struct USBDescEndpoint USBDescEndpoint; typedef struct USBDescOther USBDescOther; +typedef struct USBDescString USBDescString; + +struct USBDescString { + uint8_t index; + char *str; + QLIST_ENTRY(USBDescString) next; +}; /* definition of a USB device */ struct USBDevice { @@ -155,6 +162,8 @@ struct USBDevice { int setup_state; int setup_len; int setup_index; + + QLIST_HEAD(, USBDescString) strings; }; struct USBDeviceInfo { |