Go to the documentation of this file.
19 #ifndef __LINUX_USB_EHCI_DEF_H
20 #define __LINUX_USB_EHCI_DEF_H
33 #define HC_LENGTH(ehci, p) (0x00ff&((p) >> \
34 (ehci_big_endian_capbase(ehci) ? 24 : 0)))
35 #define HC_VERSION(ehci, p) (0xffff&((p) >> \
36 (ehci_big_endian_capbase(ehci) ? 0 : 16)))
38 #define HCS_DEBUG_PORT(p) (((p)>>20)&0xf)
39 #define HCS_INDICATOR(p) ((p)&(1 << 16))
40 #define HCS_N_CC(p) (((p)>>12)&0xf)
41 #define HCS_N_PCC(p) (((p)>>8)&0xf)
42 #define HCS_PORTROUTED(p) ((p)&(1 << 7))
43 #define HCS_PPC(p) ((p)&(1 << 4))
44 #define HCS_N_PORTS(p) (((p)>>0)&0xf)
48 #define HCC_32FRAME_PERIODIC_LIST(p) ((p)&(1 << 19))
49 #define HCC_PER_PORT_CHANGE_EVENT(p) ((p)&(1 << 18))
50 #define HCC_LPM(p) ((p)&(1 << 17))
51 #define HCC_HW_PREFETCH(p) ((p)&(1 << 16))
53 #define HCC_EXT_CAPS(p) (((p)>>8)&0xff)
54 #define HCC_ISOC_CACHE(p) ((p)&(1 << 7))
55 #define HCC_ISOC_THRES(p) (((p)>>4)&0x7)
56 #define HCC_CANPARK(p) ((p)&(1 << 2))
57 #define HCC_PGM_FRAMELISTLEN(p) ((p)&(1 << 1))
58 #define HCC_64BIT_ADDR(p) ((p)&(1))
70 #define CMD_HIRD (0xf<<24)
71 #define CMD_PPCEE (1<<15)
72 #define CMD_FSP (1<<14)
73 #define CMD_ASPE (1<<13)
74 #define CMD_PSPE (1<<12)
76 #define CMD_PARK (1<<11)
77 #define CMD_PARK_CNT(c) (((c)>>8)&3)
78 #define CMD_LRESET (1<<7)
79 #define CMD_IAAD (1<<6)
80 #define CMD_ASE (1<<5)
81 #define CMD_PSE (1<<4)
83 #define CMD_RESET (1<<1)
84 #define CMD_RUN (1<<0)
88 #define STS_PPCE_MASK (0xff<<16)
89 #define STS_ASS (1<<15)
90 #define STS_PSS (1<<14)
91 #define STS_RECL (1<<13)
92 #define STS_HALT (1<<12)
95 #define STS_IAA (1<<5)
96 #define STS_FATAL (1<<4)
97 #define STS_FLR (1<<3)
98 #define STS_PCD (1<<2)
99 #define STS_ERR (1<<1)
100 #define STS_INT (1<<0)
118 #define TXFIFO_DEFAULT (8<<16)
124 #define FLAG_CF (1<<0)
129 #define PORTSC_SUSPEND_STS_ACK 0
130 #define PORTSC_SUSPEND_STS_NYET 1
131 #define PORTSC_SUSPEND_STS_STALL 2
132 #define PORTSC_SUSPEND_STS_ERR 3
134 #define PORT_DEV_ADDR (0x7f<<25)
135 #define PORT_SSTS (0x3<<23)
137 #define PORT_WKOC_E (1<<22)
138 #define PORT_WKDISC_E (1<<21)
139 #define PORT_WKCONN_E (1<<20)
141 #define PORT_TEST(x) (((x)&0xf)<<16)
142 #define PORT_TEST_PKT PORT_TEST(0x4)
143 #define PORT_TEST_FORCE PORT_TEST(0x5)
144 #define PORT_LED_OFF (0<<14)
145 #define PORT_LED_AMBER (1<<14)
146 #define PORT_LED_GREEN (2<<14)
147 #define PORT_LED_MASK (3<<14)
148 #define PORT_OWNER (1<<13)
149 #define PORT_POWER (1<<12)
150 #define PORT_USB11(x) (((x)&(3<<10)) == (1<<10))
153 #define PORT_LPM (1<<9)
154 #define PORT_RESET (1<<8)
155 #define PORT_SUSPEND (1<<7)
156 #define PORT_RESUME (1<<6)
157 #define PORT_OCC (1<<5)
158 #define PORT_OC (1<<4)
159 #define PORT_PEC (1<<3)
160 #define PORT_PE (1<<2)
161 #define PORT_CSC (1<<1)
162 #define PORT_CONNECT (1<<0)
163 #define PORT_RWC_BITS (PORT_CSC | PORT_PEC | PORT_OCC)
169 #define USBMODE_SDIS (1<<3)
170 #define USBMODE_BE (1<<2)
171 #define USBMODE_CM_HC (3<<0)
172 #define USBMODE_CM_IDLE (0<<0)
182 #define HOSTPC_PHCD (1<<22)
183 #define HOSTPC_PSPD (3<<25)
189 #define USBMODE_EX_VBPS (1<<5)
190 #define USBMODE_EX_HC (3<<0)
198 #define DBGP_OWNER (1<<30)
199 #define DBGP_ENABLED (1<<28)
200 #define DBGP_DONE (1<<16)
201 #define DBGP_INUSE (1<<10)
202 #define DBGP_ERRCODE(x) (((x)>>7)&0x07)
203 # define DBGP_ERR_BAD 1
204 # define DBGP_ERR_SIGNAL 2
205 #define DBGP_ERROR (1<<6)
206 #define DBGP_GO (1<<5)
207 #define DBGP_OUT (1<<4)
208 #define DBGP_LEN(x) (((x)>>0)&0x0f)
210 #define DBGP_PID_GET(x) (((x)>>16)&0xff)
211 #define DBGP_PID_SET(data, tok) (((data)<<8)|(tok))
215 #define DBGP_EPADDR(dev, ep) (((dev)<<8)|(ep))
218 #ifdef CONFIG_EARLY_PRINTK_DBGP
226 #ifdef CONFIG_XEN_DOM0
241 #ifdef CONFIG_EARLY_PRINTK_DBGP
243 extern int dbgp_external_startup(
struct usb_hcd *);
244 extern int dbgp_reset_prep(
struct usb_hcd *hcd);
246 static inline int dbgp_reset_prep(
struct usb_hcd *hcd)
250 static inline int dbgp_external_startup(
struct usb_hcd *hcd)