From 132a3f55f05dff4eedde0d23d844ecdedef8ba68 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 26 Nov 2010 12:25:32 +0100 Subject: usb descriptors: add settable strings. This patch allows to set usb descriptor strings per device instance. Signed-off-by: Gerd Hoffmann --- hw/usb.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'hw/usb.h') 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 { -- cgit 1.4.1