summaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorPantelis Koukousoulas <pktoss@gmail.com>2013-12-16 09:42:49 +0200
committerGerd Hoffmann <kraxel@redhat.com>2014-02-18 15:39:12 +0100
commitbd93976a1ad9cca9636da66dfde98a41e573130c (patch)
tree3c337768b23ec9c6ae31f6e92bb21d162db3cd18 /include/hw
parent46eef33b89e936ca793e13c4aeea1414e97e8dbb (diff)
downloadqemu-bd93976a1ad9cca9636da66dfde98a41e573130c.tar.gz
usb: Remove magic constants from device bmAttributes
Replace magic constants in device bmAttributes with symbolic ones from Linux kernel ch9.h Signed-off-by: Pantelis Koukousoulas <pktoss@gmail.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/usb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hw/usb.h b/include/hw/usb.h
index 3ef7af7413..1919bdc09d 100644
--- a/include/hw/usb.h
+++ b/include/hw/usb.h
@@ -157,6 +157,11 @@
#define USB_DEV_CAP_USB2_EXT 0x02
#define USB_DEV_CAP_SUPERSPEED 0x03
+#define USB_CFG_ATT_ONE (1 << 7) /* should always be set */
+#define USB_CFG_ATT_SELFPOWER (1 << 6)
+#define USB_CFG_ATT_WAKEUP (1 << 5)
+#define USB_CFG_ATT_BATTERY (1 << 4)
+
#define USB_ENDPOINT_XFER_CONTROL 0
#define USB_ENDPOINT_XFER_ISOC 1
#define USB_ENDPOINT_XFER_BULK 2