aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-06-12 13:01:49 +0200
committerGerd Hoffmann <kraxel@redhat.com>2013-06-24 08:41:07 +0200
commit71938a09d2b9fd4007515fec6c395916cb08f868 (patch)
tree94eb7456d3f842d2dd7ee3edf191249b149b0bce /include
parent628e54857a82a3cb65ef96c12640c30d6307a064 (diff)
usb: add serial bus property
This patch adds a serial property for all usb devices, which can be used to set the serial number of a usb device (as listed by lsusb -v) to a specific value. Applies to emulated devices only. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/usb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/usb.h b/include/hw/usb.h
index 4d9d05e9bc..901b0da8b0 100644
--- a/include/hw/usb.h
+++ b/include/hw/usb.h
@@ -205,6 +205,7 @@ struct USBDevice {
DeviceState qdev;
USBPort *port;
char *port_path;
+ char *serial;
void *opaque;
uint32_t flags;