summaryrefslogtreecommitdiffstats
path: root/hw/usb.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-07-03 10:15:08 +0200
committerGerd Hoffmann <kraxel@redhat.com>2012-07-09 11:59:55 +0200
commit7c37e6a4c4972ad3cdb2478a0249757ee3a1bf70 (patch)
tree891c2a7ec6d14afa682a7d8af3bc12229d35f868 /hw/usb.h
parent19deaa089cb874912767bc6071f3b7372d3ff961 (diff)
downloadhqemu-7c37e6a4c4972ad3cdb2478a0249757ee3a1bf70.zip
hqemu-7c37e6a4c4972ad3cdb2478a0249757ee3a1bf70.tar.gz
usb: fix interface initialization
zero is a valid interface number, so don't use it when resetting the endpoints. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb.h')
-rw-r--r--hw/usb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/usb.h b/hw/usb.h
index 9cd2f89..7ed8fb8 100644
--- a/hw/usb.h
+++ b/hw/usb.h
@@ -145,6 +145,8 @@
#define USB_ENDPOINT_XFER_INT 3
#define USB_ENDPOINT_XFER_INVALID 255
+#define USB_INTERFACE_INVALID 255
+
typedef struct USBBus USBBus;
typedef struct USBBusOps USBBusOps;
typedef struct USBPort USBPort;
OpenPOWER on IntegriCloud