summary refs log tree commit diff stats
path: root/hw/usb.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-03-20 11:40:02 +0100
committerGerd Hoffmann <kraxel@redhat.com>2013-04-03 11:39:43 +0200
commitc24e4aac3bd7dd6591e26b77985e5d3915ecbe4b (patch)
tree5baada12d24aa414379ba75d5e4b12142fca934c /hw/usb.h
parent4b7b2afae773f00c785724261079ef211fd6021b (diff)
downloadfocaccia-qemu-c24e4aac3bd7dd6591e26b77985e5d3915ecbe4b.tar.gz
focaccia-qemu-c24e4aac3bd7dd6591e26b77985e5d3915ecbe4b.zip
usb-hub: limit chain length
USB supports up to 5 hubs chained.
Catch attempts to chain more.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb.h')
-rw-r--r--hw/usb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb.h b/hw/usb.h
index 1b10684dde..4d9d05e9bc 100644
--- a/hw/usb.h
+++ b/hw/usb.h
@@ -337,6 +337,7 @@ typedef struct USBPortOps {
 struct USBPort {
     USBDevice *dev;
     int speedmask;
+    int hubcount;
     char path[16];
     USBPortOps *ops;
     void *opaque;