diff options
author | Aman Deep <amandeep3986@gmail.com> | 2011-11-22 09:03:36 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-26 22:58:47 -0500 |
commit | c8421147926fcacf53081a36438a0bed394da9f5 (patch) | |
tree | 48a7fe6658ccb70e344a08d31adff2b7d7a7cf51 /include/linux/usb | |
parent | ceb2560348d52c5fa21515e6c1c7d0245c7dd015 (diff) |
xHCI: Adding #define values used for hub descriptor
xhci-hub used some numerical values for initialisation of root hub
descriptors. #define values are addded in usb 2.0 hub specification
file and these values are used for root hub characteristics
initialisation.
Also use some #defines in places where magic numbers are being used.
Signed-off-by: Aman Deep <amandeep3986@gmail.com>
Acked-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb')
-rw-r--r-- | include/linux/usb/ch11.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/include/linux/usb/ch11.h b/include/linux/usb/ch11.h index 4ebaf0824179..55e7325926c1 100644 --- a/include/linux/usb/ch11.h +++ b/include/linux/usb/ch11.h | |||
@@ -165,11 +165,20 @@ struct usb_port_status { | |||
165 | * wHubCharacteristics (masks) | 165 | * wHubCharacteristics (masks) |
166 | * See USB 2.0 spec Table 11-13, offset 3 | 166 | * See USB 2.0 spec Table 11-13, offset 3 |
167 | */ | 167 | */ |
168 | #define HUB_CHAR_LPSM 0x0003 /* D1 .. D0 */ | 168 | #define HUB_CHAR_LPSM 0x0003 /* Logical Power Switching Mode mask */ |
169 | #define HUB_CHAR_COMPOUND 0x0004 /* D2 */ | 169 | #define HUB_CHAR_COMMON_LPSM 0x0000 /* All ports power control at once */ |
170 | #define HUB_CHAR_OCPM 0x0018 /* D4 .. D3 */ | 170 | #define HUB_CHAR_INDV_PORT_LPSM 0x0001 /* per-port power control */ |
171 | #define HUB_CHAR_TTTT 0x0060 /* D6 .. D5 */ | 171 | #define HUB_CHAR_NO_LPSM 0x0002 /* no power switching */ |
172 | #define HUB_CHAR_PORTIND 0x0080 /* D7 */ | 172 | |
173 | #define HUB_CHAR_COMPOUND 0x0004 /* hub is part of a compound device */ | ||
174 | |||
175 | #define HUB_CHAR_OCPM 0x0018 /* Over-Current Protection Mode mask */ | ||
176 | #define HUB_CHAR_COMMON_OCPM 0x0000 /* All ports Over-Current reporting */ | ||
177 | #define HUB_CHAR_INDV_PORT_OCPM 0x0008 /* per-port Over-current reporting */ | ||
178 | #define HUB_CHAR_NO_OCPM 0x0010 /* No Over-current Protection support */ | ||
179 | |||
180 | #define HUB_CHAR_TTTT 0x0060 /* TT Think Time mask */ | ||
181 | #define HUB_CHAR_PORTIND 0x0080 /* per-port indicators (LEDs) */ | ||
173 | 182 | ||
174 | struct usb_hub_status { | 183 | struct usb_hub_status { |
175 | __le16 wHubStatus; | 184 | __le16 wHubStatus; |