diff options
author | Pantelis Koukousoulas <pktoss@gmail.com> | 2013-12-16 09:42:49 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-02-18 15:39:12 +0100 |
commit | bd93976a1ad9cca9636da66dfde98a41e573130c (patch) | |
tree | 3c337768b23ec9c6ae31f6e92bb21d162db3cd18 /include/hw/usb.h | |
parent | 46eef33b89e936ca793e13c4aeea1414e97e8dbb (diff) |
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/usb.h')
-rw-r--r-- | include/hw/usb.h | 5 |
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 |