diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2012-06-25 12:19:03 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-26 22:42:11 -0400 |
commit | a46af4ebf9ffec35eea0390e89935197b833dc61 (patch) | |
tree | c349a8e2e75b334a41cb379d5dc7744a25f5e9c6 /include/linux/usb/ehci_def.h | |
parent | cf61fdb944534ffa84a824bb8c31a3826cdc169d (diff) |
USB: EHCI: define extension registers like normal ones
This patch (as1562) cleans up the definitions of the EHCI extended
registers to be consistent with the definitions of the standard
registers. This makes the code look a lot nicer, with no functional
change.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb/ehci_def.h')
-rw-r--r-- | include/linux/usb/ehci_def.h | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/include/linux/usb/ehci_def.h b/include/linux/usb/ehci_def.h index 7cc95ee3606b..de4b9ed5d5dd 100644 --- a/include/linux/usb/ehci_def.h +++ b/include/linux/usb/ehci_def.h | |||
@@ -111,7 +111,13 @@ struct ehci_regs { | |||
111 | /* ASYNCLISTADDR: offset 0x18 */ | 111 | /* ASYNCLISTADDR: offset 0x18 */ |
112 | u32 async_next; /* address of next async queue head */ | 112 | u32 async_next; /* address of next async queue head */ |
113 | 113 | ||
114 | u32 reserved[9]; | 114 | u32 reserved1[2]; |
115 | |||
116 | /* TXFILLTUNING: offset 0x24 */ | ||
117 | u32 txfill_tuning; /* TX FIFO Tuning register */ | ||
118 | #define TXFIFO_DEFAULT (8<<16) /* FIFO burst threshold 8 */ | ||
119 | |||
120 | u32 reserved2[6]; | ||
115 | 121 | ||
116 | /* CONFIGFLAG: offset 0x40 */ | 122 | /* CONFIGFLAG: offset 0x40 */ |
117 | u32 configured_flag; | 123 | u32 configured_flag; |
@@ -155,26 +161,34 @@ struct ehci_regs { | |||
155 | #define PORT_CSC (1<<1) /* connect status change */ | 161 | #define PORT_CSC (1<<1) /* connect status change */ |
156 | #define PORT_CONNECT (1<<0) /* device connected */ | 162 | #define PORT_CONNECT (1<<0) /* device connected */ |
157 | #define PORT_RWC_BITS (PORT_CSC | PORT_PEC | PORT_OCC) | 163 | #define PORT_RWC_BITS (PORT_CSC | PORT_PEC | PORT_OCC) |
158 | }; | ||
159 | 164 | ||
160 | #define USBMODE 0x68 /* USB Device mode */ | 165 | u32 reserved3[9]; |
166 | |||
167 | /* USBMODE: offset 0x68 */ | ||
168 | u32 usbmode; /* USB Device mode */ | ||
161 | #define USBMODE_SDIS (1<<3) /* Stream disable */ | 169 | #define USBMODE_SDIS (1<<3) /* Stream disable */ |
162 | #define USBMODE_BE (1<<2) /* BE/LE endianness select */ | 170 | #define USBMODE_BE (1<<2) /* BE/LE endianness select */ |
163 | #define USBMODE_CM_HC (3<<0) /* host controller mode */ | 171 | #define USBMODE_CM_HC (3<<0) /* host controller mode */ |
164 | #define USBMODE_CM_IDLE (0<<0) /* idle state */ | 172 | #define USBMODE_CM_IDLE (0<<0) /* idle state */ |
165 | 173 | ||
174 | u32 reserved4[7]; | ||
175 | |||
166 | /* Moorestown has some non-standard registers, partially due to the fact that | 176 | /* Moorestown has some non-standard registers, partially due to the fact that |
167 | * its EHCI controller has both TT and LPM support. HOSTPCx are extensions to | 177 | * its EHCI controller has both TT and LPM support. HOSTPCx are extensions to |
168 | * PORTSCx | 178 | * PORTSCx |
169 | */ | 179 | */ |
170 | #define HOSTPC0 0x84 /* HOSTPC extension */ | 180 | /* HOSTPC: offset 0x84 */ |
181 | u32 hostpc[0]; /* HOSTPC extension */ | ||
171 | #define HOSTPC_PHCD (1<<22) /* Phy clock disable */ | 182 | #define HOSTPC_PHCD (1<<22) /* Phy clock disable */ |
172 | #define HOSTPC_PSPD (3<<25) /* Port speed detection */ | 183 | #define HOSTPC_PSPD (3<<25) /* Port speed detection */ |
173 | #define USBMODE_EX 0xc8 /* USB Device mode extension */ | 184 | |
185 | u32 reserved5[17]; | ||
186 | |||
187 | /* USBMODE_EX: offset 0xc8 */ | ||
188 | u32 usbmode_ex; /* USB Device mode extension */ | ||
174 | #define USBMODE_EX_VBPS (1<<5) /* VBus Power Select On */ | 189 | #define USBMODE_EX_VBPS (1<<5) /* VBus Power Select On */ |
175 | #define USBMODE_EX_HC (3<<0) /* host controller mode */ | 190 | #define USBMODE_EX_HC (3<<0) /* host controller mode */ |
176 | #define TXFILLTUNING 0x24 /* TX FIFO Tuning register */ | 191 | }; |
177 | #define TXFIFO_DEFAULT (8<<16) /* FIFO burst threshold 8 */ | ||
178 | 192 | ||
179 | /* Appendix C, Debug port ... intended for use with special "debug devices" | 193 | /* Appendix C, Debug port ... intended for use with special "debug devices" |
180 | * that can help if there's no serial console. (nonstandard enumeration.) | 194 | * that can help if there's no serial console. (nonstandard enumeration.) |