diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 12:25:16 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 12:25:16 -0400 |
| commit | be90a49ca22a95f184d9f32d35b5247b44032849 (patch) | |
| tree | d3c2edc18c003c384366f57901616ac29c80bc27 /include/linux/usb/ehci_def.h | |
| parent | 1f0918d03ff4b5c94540c71ce889672abdbc2f4a (diff) | |
| parent | a87371b477774b290c27bc5cb7f4ccc5379574a9 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (142 commits)
USB: Fix sysfs paths in documentation
USB: skeleton: fix coding style issues.
USB: O_NONBLOCK in read path of skeleton
USB: make usb-skeleton honor O_NONBLOCK in write path
USB: skel_read really sucks royally
USB: Add hub descriptor update hook for xHCI
USB: xhci: Support USB hubs.
USB: xhci: Set multi-TT field for LS/FS devices under hubs.
USB: xhci: Set route string for all devices.
USB: xhci: Fix command wait list handling.
USB: xhci: Change how xHCI commands are handled.
USB: xhci: Refactor input device context setup.
USB: xhci: Endpoint representation refactoring.
USB: gadget: ether needs to select CRC32
USB: fix USBTMC get_capabilities success handling
USB: fix missing error check in probing
USB: usbfs: add USBDEVFS_URB_BULK_CONTINUATION flag
USB: support for autosuspend in sierra while online
USB: ehci-dbgp,ehci: Allow dbpg to work with suspend/resume
USB: ehci-dbgp,documentation: Documentation updates for ehci-dbgp
...
Diffstat (limited to 'include/linux/usb/ehci_def.h')
| -rw-r--r-- | include/linux/usb/ehci_def.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/include/linux/usb/ehci_def.h b/include/linux/usb/ehci_def.h index 5b88e36c9103..af4b86f3aca3 100644 --- a/include/linux/usb/ehci_def.h +++ b/include/linux/usb/ehci_def.h | |||
| @@ -105,6 +105,7 @@ struct ehci_regs { | |||
| 105 | #define PORT_WKDISC_E (1<<21) /* wake on disconnect (enable) */ | 105 | #define PORT_WKDISC_E (1<<21) /* wake on disconnect (enable) */ |
| 106 | #define PORT_WKCONN_E (1<<20) /* wake on connect (enable) */ | 106 | #define PORT_WKCONN_E (1<<20) /* wake on connect (enable) */ |
| 107 | /* 19:16 for port testing */ | 107 | /* 19:16 for port testing */ |
| 108 | #define PORT_TEST_PKT (0x4<<16) /* Port Test Control - packet test */ | ||
| 108 | #define PORT_LED_OFF (0<<14) | 109 | #define PORT_LED_OFF (0<<14) |
| 109 | #define PORT_LED_AMBER (1<<14) | 110 | #define PORT_LED_AMBER (1<<14) |
| 110 | #define PORT_LED_GREEN (2<<14) | 111 | #define PORT_LED_GREEN (2<<14) |
| @@ -132,6 +133,19 @@ struct ehci_regs { | |||
| 132 | #define USBMODE_CM_HC (3<<0) /* host controller mode */ | 133 | #define USBMODE_CM_HC (3<<0) /* host controller mode */ |
| 133 | #define USBMODE_CM_IDLE (0<<0) /* idle state */ | 134 | #define USBMODE_CM_IDLE (0<<0) /* idle state */ |
| 134 | 135 | ||
| 136 | /* Moorestown has some non-standard registers, partially due to the fact that | ||
| 137 | * its EHCI controller has both TT and LPM support. HOSTPCx are extentions to | ||
| 138 | * PORTSCx | ||
| 139 | */ | ||
| 140 | #define HOSTPC0 0x84 /* HOSTPC extension */ | ||
| 141 | #define HOSTPC_PHCD (1<<22) /* Phy clock disable */ | ||
| 142 | #define HOSTPC_PSPD (3<<25) /* Port speed detection */ | ||
| 143 | #define USBMODE_EX 0xc8 /* USB Device mode extension */ | ||
| 144 | #define USBMODE_EX_VBPS (1<<5) /* VBus Power Select On */ | ||
| 145 | #define USBMODE_EX_HC (3<<0) /* host controller mode */ | ||
| 146 | #define TXFILLTUNING 0x24 /* TX FIFO Tuning register */ | ||
| 147 | #define TXFIFO_DEFAULT (8<<16) /* FIFO burst threshold 8 */ | ||
| 148 | |||
| 135 | /* Appendix C, Debug port ... intended for use with special "debug devices" | 149 | /* Appendix C, Debug port ... intended for use with special "debug devices" |
| 136 | * that can help if there's no serial console. (nonstandard enumeration.) | 150 | * that can help if there's no serial console. (nonstandard enumeration.) |
| 137 | */ | 151 | */ |
| @@ -157,4 +171,25 @@ struct ehci_dbg_port { | |||
| 157 | #define DBGP_EPADDR(dev, ep) (((dev)<<8)|(ep)) | 171 | #define DBGP_EPADDR(dev, ep) (((dev)<<8)|(ep)) |
| 158 | } __attribute__ ((packed)); | 172 | } __attribute__ ((packed)); |
| 159 | 173 | ||
| 174 | #ifdef CONFIG_EARLY_PRINTK_DBGP | ||
| 175 | #include <linux/init.h> | ||
| 176 | extern int __init early_dbgp_init(char *s); | ||
| 177 | extern struct console early_dbgp_console; | ||
| 178 | #endif /* CONFIG_EARLY_PRINTK_DBGP */ | ||
| 179 | |||
| 180 | #ifdef CONFIG_EARLY_PRINTK_DBGP | ||
| 181 | /* Call backs from ehci host driver to ehci debug driver */ | ||
| 182 | extern int dbgp_external_startup(void); | ||
| 183 | extern int dbgp_reset_prep(void); | ||
| 184 | #else | ||
| 185 | static inline int dbgp_reset_prep(void) | ||
| 186 | { | ||
| 187 | return 1; | ||
| 188 | } | ||
| 189 | static inline int dbgp_external_startup(void) | ||
| 190 | { | ||
| 191 | return -1; | ||
| 192 | } | ||
| 193 | #endif | ||
| 194 | |||
| 160 | #endif /* __LINUX_USB_EHCI_DEF_H */ | 195 | #endif /* __LINUX_USB_EHCI_DEF_H */ |
