Go to the documentation of this file.
17 #define TIMER8_CONFIG 0xffc00600
18 #define TIMER8_COUNTER 0xffc00604
19 #define TIMER8_PERIOD 0xffc00608
20 #define TIMER8_WIDTH 0xffc0060c
21 #define TIMER9_CONFIG 0xffc00610
22 #define TIMER9_COUNTER 0xffc00614
23 #define TIMER9_PERIOD 0xffc00618
24 #define TIMER9_WIDTH 0xffc0061c
25 #define TIMER10_CONFIG 0xffc00620
26 #define TIMER10_COUNTER 0xffc00624
27 #define TIMER10_PERIOD 0xffc00628
28 #define TIMER10_WIDTH 0xffc0062c
32 #define TIMER_ENABLE1 0xffc00640
33 #define TIMER_DISABLE1 0xffc00644
34 #define TIMER_STATUS1 0xffc00648
38 #define SPORT0_TCR1 0xffc00800
39 #define SPORT0_TCR2 0xffc00804
40 #define SPORT0_TCLKDIV 0xffc00808
41 #define SPORT0_TFSDIV 0xffc0080c
42 #define SPORT0_TX 0xffc00810
43 #define SPORT0_RX 0xffc00818
44 #define SPORT0_RCR1 0xffc00820
45 #define SPORT0_RCR2 0xffc00824
46 #define SPORT0_RCLKDIV 0xffc00828
47 #define SPORT0_RFSDIV 0xffc0082c
48 #define SPORT0_STAT 0xffc00830
49 #define SPORT0_CHNL 0xffc00834
50 #define SPORT0_MCMC1 0xffc00838
51 #define SPORT0_MCMC2 0xffc0083c
52 #define SPORT0_MTCS0 0xffc00840
53 #define SPORT0_MTCS1 0xffc00844
54 #define SPORT0_MTCS2 0xffc00848
55 #define SPORT0_MTCS3 0xffc0084c
56 #define SPORT0_MRCS0 0xffc00850
57 #define SPORT0_MRCS1 0xffc00854
58 #define SPORT0_MRCS2 0xffc00858
59 #define SPORT0_MRCS3 0xffc0085c
63 #define EPPI0_STATUS 0xffc01000
64 #define EPPI0_HCOUNT 0xffc01004
65 #define EPPI0_HDELAY 0xffc01008
66 #define EPPI0_VCOUNT 0xffc0100c
67 #define EPPI0_VDELAY 0xffc01010
68 #define EPPI0_FRAME 0xffc01014
69 #define EPPI0_LINE 0xffc01018
70 #define EPPI0_CLKDIV 0xffc0101c
71 #define EPPI0_CONTROL 0xffc01020
72 #define EPPI0_FS1W_HBL 0xffc01024
73 #define EPPI0_FS1P_AVPL 0xffc01028
74 #define EPPI0_FS2W_LVB 0xffc0102c
75 #define EPPI0_FS2P_LAVF 0xffc01030
76 #define EPPI0_CLIP 0xffc01034
80 #define UART2_DLL 0xffc02100
81 #define UART2_DLH 0xffc02104
82 #define UART2_GCTL 0xffc02108
83 #define UART2_LCR 0xffc0210c
84 #define UART2_MCR 0xffc02110
85 #define UART2_LSR 0xffc02114
86 #define UART2_MSR 0xffc02118
87 #define UART2_SCR 0xffc0211c
88 #define UART2_IER_SET 0xffc02120
89 #define UART2_IER_CLEAR 0xffc02124
90 #define UART2_RBR 0xffc0212c
94 #define TWI1_REGBASE 0xffc02200
95 #define TWI1_CLKDIV 0xffc02200
96 #define TWI1_CONTROL 0xffc02204
97 #define TWI1_SLAVE_CTL 0xffc02208
98 #define TWI1_SLAVE_STAT 0xffc0220c
99 #define TWI1_SLAVE_ADDR 0xffc02210
100 #define TWI1_MASTER_CTL 0xffc02214
101 #define TWI1_MASTER_STAT 0xffc02218
102 #define TWI1_MASTER_ADDR 0xffc0221c
103 #define TWI1_INT_STAT 0xffc02220
104 #define TWI1_INT_MASK 0xffc02224
105 #define TWI1_FIFO_CTL 0xffc02228
106 #define TWI1_FIFO_STAT 0xffc0222c
107 #define TWI1_XMT_DATA8 0xffc02280
108 #define TWI1_XMT_DATA16 0xffc02284
109 #define TWI1_RCV_DATA8 0xffc02288
110 #define TWI1_RCV_DATA16 0xffc0228c
114 #define SPI2_REGBASE 0xffc02400
115 #define SPI2_CTL 0xffc02400
116 #define SPI2_FLG 0xffc02404
117 #define SPI2_STAT 0xffc02408
118 #define SPI2_TDBR 0xffc0240c
119 #define SPI2_RDBR 0xffc02410
120 #define SPI2_BAUD 0xffc02414
121 #define SPI2_SHADOW 0xffc02418
125 #define ATAPI_CONTROL 0xffc03800
126 #define ATAPI_STATUS 0xffc03804
127 #define ATAPI_DEV_ADDR 0xffc03808
128 #define ATAPI_DEV_TXBUF 0xffc0380c
129 #define ATAPI_DEV_RXBUF 0xffc03810
130 #define ATAPI_INT_MASK 0xffc03814
131 #define ATAPI_INT_STATUS 0xffc03818
132 #define ATAPI_XFER_LEN 0xffc0381c
133 #define ATAPI_LINE_STATUS 0xffc03820
134 #define ATAPI_SM_STATE 0xffc03824
135 #define ATAPI_TERMINATE 0xffc03828
136 #define ATAPI_PIO_TFRCNT 0xffc0382c
137 #define ATAPI_DMA_TFRCNT 0xffc03830
138 #define ATAPI_UMAIN_TFRCNT 0xffc03834
139 #define ATAPI_UDMAOUT_TFRCNT 0xffc03838
140 #define ATAPI_REG_TIM_0 0xffc03840
141 #define ATAPI_PIO_TIM_0 0xffc03844
142 #define ATAPI_PIO_TIM_1 0xffc03848
143 #define ATAPI_MULTI_TIM_0 0xffc03850
144 #define ATAPI_MULTI_TIM_1 0xffc03854
145 #define ATAPI_MULTI_TIM_2 0xffc03858
146 #define ATAPI_ULTRA_TIM_0 0xffc03860
147 #define ATAPI_ULTRA_TIM_1 0xffc03864
148 #define ATAPI_ULTRA_TIM_2 0xffc03868
149 #define ATAPI_ULTRA_TIM_3 0xffc0386c
153 #define SDH_PWR_CTL 0xffc03900
154 #define SDH_CLK_CTL 0xffc03904
155 #define SDH_ARGUMENT 0xffc03908
156 #define SDH_COMMAND 0xffc0390c
157 #define SDH_RESP_CMD 0xffc03910
158 #define SDH_RESPONSE0 0xffc03914
159 #define SDH_RESPONSE1 0xffc03918
160 #define SDH_RESPONSE2 0xffc0391c
161 #define SDH_RESPONSE3 0xffc03920
162 #define SDH_DATA_TIMER 0xffc03924
163 #define SDH_DATA_LGTH 0xffc03928
164 #define SDH_DATA_CTL 0xffc0392c
165 #define SDH_DATA_CNT 0xffc03930
166 #define SDH_STATUS 0xffc03934
167 #define SDH_STATUS_CLR 0xffc03938
168 #define SDH_MASK0 0xffc0393c
169 #define SDH_MASK1 0xffc03940
170 #define SDH_FIFO_CNT 0xffc03948
171 #define SDH_FIFO 0xffc03980
172 #define SDH_E_STATUS 0xffc039c0
173 #define SDH_E_MASK 0xffc039c4
174 #define SDH_CFG 0xffc039c8
175 #define SDH_RD_WAIT_EN 0xffc039cc
176 #define SDH_PID0 0xffc039d0
177 #define SDH_PID1 0xffc039d4
178 #define SDH_PID2 0xffc039d8
179 #define SDH_PID3 0xffc039dc
180 #define SDH_PID4 0xffc039e0
181 #define SDH_PID5 0xffc039e4
182 #define SDH_PID6 0xffc039e8
183 #define SDH_PID7 0xffc039ec
187 #define HOST_CONTROL 0xffc03a00
188 #define HOST_STATUS 0xffc03a04
189 #define HOST_TIMEOUT 0xffc03a08
193 #define USB_FADDR 0xffc03c00
194 #define USB_POWER 0xffc03c04
195 #define USB_INTRTX 0xffc03c08
196 #define USB_INTRRX 0xffc03c0c
197 #define USB_INTRTXE 0xffc03c10
198 #define USB_INTRRXE 0xffc03c14
199 #define USB_INTRUSB 0xffc03c18
200 #define USB_INTRUSBE 0xffc03c1c
201 #define USB_FRAME 0xffc03c20
202 #define USB_INDEX 0xffc03c24
203 #define USB_TESTMODE 0xffc03c28
204 #define USB_GLOBINTR 0xffc03c2c
205 #define USB_GLOBAL_CTL 0xffc03c30
209 #define USB_TX_MAX_PACKET 0xffc03c40
210 #define USB_CSR0 0xffc03c44
211 #define USB_TXCSR 0xffc03c44
212 #define USB_RX_MAX_PACKET 0xffc03c48
213 #define USB_RXCSR 0xffc03c4c
214 #define USB_COUNT0 0xffc03c50
215 #define USB_RXCOUNT 0xffc03c50
216 #define USB_TXTYPE 0xffc03c54
217 #define USB_NAKLIMIT0 0xffc03c58
218 #define USB_TXINTERVAL 0xffc03c58
219 #define USB_RXTYPE 0xffc03c5c
220 #define USB_RXINTERVAL 0xffc03c60
221 #define USB_TXCOUNT 0xffc03c68
225 #define USB_EP0_FIFO 0xffc03c80
226 #define USB_EP1_FIFO 0xffc03c88
227 #define USB_EP2_FIFO 0xffc03c90
228 #define USB_EP3_FIFO 0xffc03c98
229 #define USB_EP4_FIFO 0xffc03ca0
230 #define USB_EP5_FIFO 0xffc03ca8
231 #define USB_EP6_FIFO 0xffc03cb0
232 #define USB_EP7_FIFO 0xffc03cb8
236 #define USB_OTG_DEV_CTL 0xffc03d00
237 #define USB_OTG_VBUS_IRQ 0xffc03d04
238 #define USB_OTG_VBUS_MASK 0xffc03d08
242 #define USB_LINKINFO 0xffc03d48
243 #define USB_VPLEN 0xffc03d4c
244 #define USB_HS_EOF1 0xffc03d50
245 #define USB_FS_EOF1 0xffc03d54
246 #define USB_LS_EOF1 0xffc03d58
250 #define USB_APHY_CNTRL 0xffc03de0
254 #define USB_APHY_CALIB 0xffc03de4
255 #define USB_APHY_CNTRL2 0xffc03de8
259 #define USB_PHY_TEST 0xffc03dec
260 #define USB_PLLOSC_CTRL 0xffc03df0
261 #define USB_SRP_CLKDIV 0xffc03df4
265 #define USB_EP_NI0_TXMAXP 0xffc03e00
266 #define USB_EP_NI0_TXCSR 0xffc03e04
267 #define USB_EP_NI0_RXMAXP 0xffc03e08
268 #define USB_EP_NI0_RXCSR 0xffc03e0c
269 #define USB_EP_NI0_RXCOUNT 0xffc03e10
270 #define USB_EP_NI0_TXTYPE 0xffc03e14
271 #define USB_EP_NI0_TXINTERVAL 0xffc03e18
272 #define USB_EP_NI0_RXTYPE 0xffc03e1c
273 #define USB_EP_NI0_RXINTERVAL 0xffc03e20
274 #define USB_EP_NI0_TXCOUNT 0xffc03e28
278 #define USB_EP_NI1_TXMAXP 0xffc03e40
279 #define USB_EP_NI1_TXCSR 0xffc03e44
280 #define USB_EP_NI1_RXMAXP 0xffc03e48
281 #define USB_EP_NI1_RXCSR 0xffc03e4c
282 #define USB_EP_NI1_RXCOUNT 0xffc03e50
283 #define USB_EP_NI1_TXTYPE 0xffc03e54
284 #define USB_EP_NI1_TXINTERVAL 0xffc03e58
285 #define USB_EP_NI1_RXTYPE 0xffc03e5c
286 #define USB_EP_NI1_RXINTERVAL 0xffc03e60
287 #define USB_EP_NI1_TXCOUNT 0xffc03e68
291 #define USB_EP_NI2_TXMAXP 0xffc03e80
292 #define USB_EP_NI2_TXCSR 0xffc03e84
293 #define USB_EP_NI2_RXMAXP 0xffc03e88
294 #define USB_EP_NI2_RXCSR 0xffc03e8c
295 #define USB_EP_NI2_RXCOUNT 0xffc03e90
296 #define USB_EP_NI2_TXTYPE 0xffc03e94
297 #define USB_EP_NI2_TXINTERVAL 0xffc03e98
298 #define USB_EP_NI2_RXTYPE 0xffc03e9c
299 #define USB_EP_NI2_RXINTERVAL 0xffc03ea0
300 #define USB_EP_NI2_TXCOUNT 0xffc03ea8
304 #define USB_EP_NI3_TXMAXP 0xffc03ec0
305 #define USB_EP_NI3_TXCSR 0xffc03ec4
306 #define USB_EP_NI3_RXMAXP 0xffc03ec8
307 #define USB_EP_NI3_RXCSR 0xffc03ecc
308 #define USB_EP_NI3_RXCOUNT 0xffc03ed0
309 #define USB_EP_NI3_TXTYPE 0xffc03ed4
310 #define USB_EP_NI3_TXINTERVAL 0xffc03ed8
311 #define USB_EP_NI3_RXTYPE 0xffc03edc
312 #define USB_EP_NI3_RXINTERVAL 0xffc03ee0
313 #define USB_EP_NI3_TXCOUNT 0xffc03ee8
317 #define USB_EP_NI4_TXMAXP 0xffc03f00
318 #define USB_EP_NI4_TXCSR 0xffc03f04
319 #define USB_EP_NI4_RXMAXP 0xffc03f08
320 #define USB_EP_NI4_RXCSR 0xffc03f0c
321 #define USB_EP_NI4_RXCOUNT 0xffc03f10
322 #define USB_EP_NI4_TXTYPE 0xffc03f14
323 #define USB_EP_NI4_TXINTERVAL 0xffc03f18
324 #define USB_EP_NI4_RXTYPE 0xffc03f1c
325 #define USB_EP_NI4_RXINTERVAL 0xffc03f20
326 #define USB_EP_NI4_TXCOUNT 0xffc03f28
330 #define USB_EP_NI5_TXMAXP 0xffc03f40
331 #define USB_EP_NI5_TXCSR 0xffc03f44
332 #define USB_EP_NI5_RXMAXP 0xffc03f48
333 #define USB_EP_NI5_RXCSR 0xffc03f4c
334 #define USB_EP_NI5_RXCOUNT 0xffc03f50
335 #define USB_EP_NI5_TXTYPE 0xffc03f54
336 #define USB_EP_NI5_TXINTERVAL 0xffc03f58
337 #define USB_EP_NI5_RXTYPE 0xffc03f5c
338 #define USB_EP_NI5_RXINTERVAL 0xffc03f60
339 #define USB_EP_NI5_TXCOUNT 0xffc03f68
343 #define USB_EP_NI6_TXMAXP 0xffc03f80
344 #define USB_EP_NI6_TXCSR 0xffc03f84
345 #define USB_EP_NI6_RXMAXP 0xffc03f88
346 #define USB_EP_NI6_RXCSR 0xffc03f8c
347 #define USB_EP_NI6_RXCOUNT 0xffc03f90
348 #define USB_EP_NI6_TXTYPE 0xffc03f94
349 #define USB_EP_NI6_TXINTERVAL 0xffc03f98
350 #define USB_EP_NI6_RXTYPE 0xffc03f9c
351 #define USB_EP_NI6_RXINTERVAL 0xffc03fa0
352 #define USB_EP_NI6_TXCOUNT 0xffc03fa8
356 #define USB_EP_NI7_TXMAXP 0xffc03fc0
357 #define USB_EP_NI7_TXCSR 0xffc03fc4
358 #define USB_EP_NI7_RXMAXP 0xffc03fc8
359 #define USB_EP_NI7_RXCSR 0xffc03fcc
360 #define USB_EP_NI7_RXCOUNT 0xffc03fd0
361 #define USB_EP_NI7_TXTYPE 0xffc03fd4
362 #define USB_EP_NI7_TXINTERVAL 0xffc03fd8
363 #define USB_EP_NI7_RXTYPE 0xffc03fdc
364 #define USB_EP_NI7_RXINTERVAL 0xffc03fe0
365 #define USB_EP_NI7_TXCOUNT 0xffc03fe8
367 #define USB_DMA_INTERRUPT 0xffc04000
371 #define USB_DMA0CONTROL 0xffc04004
372 #define USB_DMA0ADDRLOW 0xffc04008
373 #define USB_DMA0ADDRHIGH 0xffc0400c
374 #define USB_DMA0COUNTLOW 0xffc04010
375 #define USB_DMA0COUNTHIGH 0xffc04014
379 #define USB_DMA1CONTROL 0xffc04024
380 #define USB_DMA1ADDRLOW 0xffc04028
381 #define USB_DMA1ADDRHIGH 0xffc0402c
382 #define USB_DMA1COUNTLOW 0xffc04030
383 #define USB_DMA1COUNTHIGH 0xffc04034
387 #define USB_DMA2CONTROL 0xffc04044
388 #define USB_DMA2ADDRLOW 0xffc04048
389 #define USB_DMA2ADDRHIGH 0xffc0404c
390 #define USB_DMA2COUNTLOW 0xffc04050
391 #define USB_DMA2COUNTHIGH 0xffc04054
395 #define USB_DMA3CONTROL 0xffc04064
396 #define USB_DMA3ADDRLOW 0xffc04068
397 #define USB_DMA3ADDRHIGH 0xffc0406c
398 #define USB_DMA3COUNTLOW 0xffc04070
399 #define USB_DMA3COUNTHIGH 0xffc04074
403 #define USB_DMA4CONTROL 0xffc04084
404 #define USB_DMA4ADDRLOW 0xffc04088
405 #define USB_DMA4ADDRHIGH 0xffc0408c
406 #define USB_DMA4COUNTLOW 0xffc04090
407 #define USB_DMA4COUNTHIGH 0xffc04094
411 #define USB_DMA5CONTROL 0xffc040a4
412 #define USB_DMA5ADDRLOW 0xffc040a8
413 #define USB_DMA5ADDRHIGH 0xffc040ac
414 #define USB_DMA5COUNTLOW 0xffc040b0
415 #define USB_DMA5COUNTHIGH 0xffc040b4
419 #define USB_DMA6CONTROL 0xffc040c4
420 #define USB_DMA6ADDRLOW 0xffc040c8
421 #define USB_DMA6ADDRHIGH 0xffc040cc
422 #define USB_DMA6COUNTLOW 0xffc040d0
423 #define USB_DMA6COUNTHIGH 0xffc040d4
427 #define USB_DMA7CONTROL 0xffc040e4
428 #define USB_DMA7ADDRLOW 0xffc040e8
429 #define USB_DMA7ADDRHIGH 0xffc040ec
430 #define USB_DMA7COUNTLOW 0xffc040f0
431 #define USB_DMA7COUNTHIGH 0xffc040f4
435 #define KPAD_CTL 0xffc04100
436 #define KPAD_PRESCALE 0xffc04104
437 #define KPAD_MSEL 0xffc04108
438 #define KPAD_ROWCOL 0xffc0410c
439 #define KPAD_STAT 0xffc04110
440 #define KPAD_SOFTEVAL 0xffc04114
444 #define PIXC_CTL 0xffc04400
445 #define PIXC_PPL 0xffc04404
446 #define PIXC_LPF 0xffc04408
447 #define PIXC_AHSTART 0xffc0440c
448 #define PIXC_AHEND 0xffc04410
449 #define PIXC_AVSTART 0xffc04414
450 #define PIXC_AVEND 0xffc04418
451 #define PIXC_ATRANSP 0xffc0441c
452 #define PIXC_BHSTART 0xffc04420
453 #define PIXC_BHEND 0xffc04424
454 #define PIXC_BVSTART 0xffc04428
455 #define PIXC_BVEND 0xffc0442c
456 #define PIXC_BTRANSP 0xffc04430
457 #define PIXC_INTRSTAT 0xffc0443c
458 #define PIXC_RYCON 0xffc04440
459 #define PIXC_GUCON 0xffc04444
460 #define PIXC_BVCON 0xffc04448
461 #define PIXC_CCBIAS 0xffc0444c
462 #define PIXC_TC 0xffc04450
466 #define HMDMA0_CONTROL 0xffc04500
467 #define HMDMA0_ECINIT 0xffc04504
468 #define HMDMA0_BCINIT 0xffc04508
469 #define HMDMA0_ECURGENT 0xffc0450c
470 #define HMDMA0_ECOVERFLOW 0xffc04510
471 #define HMDMA0_ECOUNT 0xffc04514
472 #define HMDMA0_BCOUNT 0xffc04518
476 #define HMDMA1_CONTROL 0xffc04540
477 #define HMDMA1_ECINIT 0xffc04544
478 #define HMDMA1_BCINIT 0xffc04548
479 #define HMDMA1_ECURGENT 0xffc0454c
480 #define HMDMA1_ECOVERFLOW 0xffc04550
481 #define HMDMA1_ECOUNT 0xffc04554
482 #define HMDMA1_BCOUNT 0xffc04558
496 #define OVR_FORM 0x10
497 #define OUT_FORM 0x20
500 #define IMG_STAT 0x300
501 #define OVR_STAT 0xc00
502 #define WM_LVL 0x3000
506 #define A_HSTART 0xfff
514 #define A_VSTART 0x3ff
526 #define B_HSTART 0xfff
534 #define B_VSTART 0x3ff
546 #define OVR_INT_EN 0x1
547 #define FRM_INT_EN 0x2
548 #define OVR_INT_STAT 0x4
549 #define FRM_INT_STAT 0x8
555 #define A13 0x3ff00000
556 #define RY_MULT4 0x40000000
562 #define A23 0x3ff00000
563 #define GU_MULT4 0x40000000
569 #define A33 0x3ff00000
570 #define BV_MULT4 0x40000000
576 #define A34 0x3ff00000
580 #define RY_TRANS 0xff
581 #define GU_TRANS 0xff00
582 #define BV_TRANS 0xff0000
588 #define DATA_SIZE 0x4
590 #define HRDY_OVR 0x20
591 #define INT_MODE 0x40
599 #define DMA_READY 0x1
601 #define FIFOEMPTY 0x4
602 #define DMA_COMPLETE 0x8
604 #define HSTIMEOUT 0x20
606 #define ALLOW_CNFG 0x80
607 #define DMA_DIR 0x100
612 #define COUNT_TIMEOUT 0x7ff
617 #define KPAD_IRQMODE 0x6
618 #define KPAD_ROWEN 0x1c00
619 #define KPAD_COLEN 0xe000
623 #define KPAD_PRESCALE_VAL 0x3f
627 #define DBON_SCALE 0xff
628 #define COLDRV_SCALE 0xff00
632 #define KPAD_ROW 0xff
633 #define KPAD_COL 0xff00
638 #define KPAD_MROWCOL 0x6
639 #define KPAD_PRESSED 0x8
643 #define KPAD_SOFTEVAL_E 0x2
647 #define PIO_START 0x1
648 #define MULTI_START 0x2
649 #define ULTRA_START 0x4
651 #define IORDY_EN 0x10
652 #define FIFO_FLUSH 0x20
653 #define SOFT_RST 0x40
655 #define TFRCNT_RST 0x100
656 #define END_ON_TERM 0x200
657 #define PIO_USE_DMA 0x400
658 #define UDMAIN_FIFO_THRS 0xf000
662 #define PIO_XFER_ON 0x1
663 #define MULTI_XFER_ON 0x2
664 #define ULTRA_XFER_ON 0x4
665 #define ULTRA_IN_FL 0xf0
669 #define DEV_ADDR 0x1f
673 #define ATAPI_DEV_INT_MASK 0x1
674 #define PIO_DONE_MASK 0x2
675 #define MULTI_DONE_MASK 0x4
676 #define UDMAIN_DONE_MASK 0x8
677 #define UDMAOUT_DONE_MASK 0x10
678 #define HOST_TERM_XFER_MASK 0x20
679 #define MULTI_TERM_MASK 0x40
680 #define UDMAIN_TERM_MASK 0x80
681 #define UDMAOUT_TERM_MASK 0x100
685 #define ATAPI_DEV_INT 0x1
686 #define PIO_DONE_INT 0x2
687 #define MULTI_DONE_INT 0x4
688 #define UDMAIN_DONE_INT 0x8
689 #define UDMAOUT_DONE_INT 0x10
690 #define HOST_TERM_XFER_INT 0x20
691 #define MULTI_TERM_INT 0x40
692 #define UDMAIN_TERM_INT 0x80
693 #define UDMAOUT_TERM_INT 0x100
697 #define ATAPI_INTR 0x1
698 #define ATAPI_DASP 0x2
699 #define ATAPI_CS0N 0x4
700 #define ATAPI_CS1N 0x8
701 #define ATAPI_ADDR 0x70
702 #define ATAPI_DMAREQ 0x80
703 #define ATAPI_DMAACKN 0x100
704 #define ATAPI_DIOWN 0x200
705 #define ATAPI_DIORN 0x400
706 #define ATAPI_IORDY 0x800
710 #define PIO_CSTATE 0xf
711 #define DMA_CSTATE 0xf0
712 #define UDMAIN_CSTATE 0xf00
713 #define UDMAOUT_CSTATE 0xf000
717 #define ATAPI_HOST_TERM 0x1
722 #define TEOC_REG 0xff00
727 #define T2_REG_PIO 0xff0
728 #define T4_REG 0xf000
732 #define TEOC_REG_PIO 0xff
757 #define TCYC_TDVS 0xff00
767 #define READY_PAUSE 0xff00
786 #define TOVF_ERR8 0x10
787 #define TOVF_ERR9 0x20
788 #define TOVF_ERR10 0x40
791 #define TRUN10 0x4000
797 #define FUNCTION_ADDRESS 0x7f
801 #define ENABLE_SUSPENDM 0x1
802 #define SUSPEND_MODE 0x2
803 #define RESUME_MODE 0x4
806 #define HS_ENABLE 0x20
807 #define SOFT_CONN 0x40
808 #define ISO_UPDATE 0x80
837 #define EP4_TX_E 0x10
838 #define EP5_TX_E 0x20
839 #define EP6_TX_E 0x40
840 #define EP7_TX_E 0x80
847 #define EP4_RX_E 0x10
848 #define EP5_RX_E 0x20
849 #define EP6_RX_E 0x40
850 #define EP7_RX_E 0x80
854 #define SUSPEND_B 0x1
856 #define RESET_OR_BABLE_B 0x4
859 #define DISCON_B 0x20
860 #define SESSION_REQ_B 0x40
861 #define VBUS_ERROR_B 0x80
865 #define SUSPEND_BE 0x1
866 #define RESUME_BE 0x2
867 #define RESET_OR_BABLE_BE 0x4
870 #define DISCON_BE 0x20
871 #define SESSION_REQ_BE 0x40
872 #define VBUS_ERROR_BE 0x80
876 #define FRAME_NUMBER 0x7ff
880 #define SELECTED_ENDPOINT 0xf
884 #define GLOBAL_ENA 0x1
885 #define EP1_TX_ENA 0x2
886 #define EP2_TX_ENA 0x4
887 #define EP3_TX_ENA 0x8
888 #define EP4_TX_ENA 0x10
889 #define EP5_TX_ENA 0x20
890 #define EP6_TX_ENA 0x40
891 #define EP7_TX_ENA 0x80
892 #define EP1_RX_ENA 0x100
893 #define EP2_RX_ENA 0x200
894 #define EP3_RX_ENA 0x400
895 #define EP4_RX_ENA 0x800
896 #define EP5_RX_ENA 0x1000
897 #define EP6_RX_ENA 0x2000
898 #define EP7_RX_ENA 0x4000
904 #define HOST_MODE 0x4
909 #define B_DEVICE 0x80
913 #define DRIVE_VBUS_ON 0x1
914 #define DRIVE_VBUS_OFF 0x2
915 #define CHRG_VBUS_START 0x4
916 #define CHRG_VBUS_END 0x8
917 #define DISCHRG_VBUS_START 0x10
918 #define DISCHRG_VBUS_END 0x20
922 #define DRIVE_VBUS_ON_ENA 0x1
923 #define DRIVE_VBUS_OFF_ENA 0x2
924 #define CHRG_VBUS_START_ENA 0x4
925 #define CHRG_VBUS_END_ENA 0x8
926 #define DISCHRG_VBUS_START_ENA 0x10
927 #define DISCHRG_VBUS_END_ENA 0x20
933 #define STALL_SENT 0x4
935 #define SETUPEND 0x10
936 #define SENDSTALL 0x20
937 #define SERVICED_RXPKTRDY 0x40
938 #define SERVICED_SETUPEND 0x80
939 #define FLUSHFIFO 0x100
940 #define STALL_RECEIVED_H 0x4
941 #define SETUPPKT_H 0x8
943 #define REQPKT_H 0x20
944 #define STATUSPKT_H 0x40
945 #define NAK_TIMEOUT_H 0x80
949 #define EP0_RX_COUNT 0x7f
953 #define EP0_NAK_LIMIT 0x1f
957 #define MAX_PACKET_SIZE_T 0x7ff
961 #define MAX_PACKET_SIZE_R 0x7ff
965 #define TXPKTRDY_T 0x1
966 #define FIFO_NOT_EMPTY_T 0x2
967 #define UNDERRUN_T 0x4
968 #define FLUSHFIFO_T 0x8
969 #define STALL_SEND_T 0x10
970 #define STALL_SENT_T 0x20
971 #define CLEAR_DATATOGGLE_T 0x40
972 #define INCOMPTX_T 0x80
973 #define DMAREQMODE_T 0x400
974 #define FORCE_DATATOGGLE_T 0x800
975 #define DMAREQ_ENA_T 0x1000
977 #define AUTOSET_T 0x8000
979 #define STALL_RECEIVED_TH 0x20
980 #define NAK_TIMEOUT_TH 0x80
984 #define TX_COUNT 0x1fff
988 #define RXPKTRDY_R 0x1
989 #define FIFO_FULL_R 0x2
990 #define OVERRUN_R 0x4
991 #define DATAERROR_R 0x8
992 #define FLUSHFIFO_R 0x10
993 #define STALL_SEND_R 0x20
994 #define STALL_SENT_R 0x40
995 #define CLEAR_DATATOGGLE_R 0x80
996 #define INCOMPRX_R 0x100
997 #define DMAREQMODE_R 0x800
998 #define DISNYET_R 0x1000
999 #define DMAREQ_ENA_R 0x2000
1000 #define ISO_R 0x4000
1001 #define AUTOCLEAR_R 0x8000
1002 #define ERROR_RH 0x4
1003 #define REQPKT_RH 0x20
1004 #define STALL_RECEIVED_RH 0x40
1005 #define INCOMPRX_RH 0x100
1006 #define DMAREQMODE_RH 0x800
1007 #define AUTOREQ_RH 0x4000
1011 #define RX_COUNT 0x1fff
1015 #define TARGET_EP_NO_T 0xf
1016 #define PROTOCOL_T 0xc
1020 #define TX_POLL_INTERVAL 0xff
1024 #define TARGET_EP_NO_R 0xf
1025 #define PROTOCOL_R 0xc
1029 #define RX_POLL_INTERVAL 0xff
1033 #define DMA0_INT 0x1
1034 #define DMA1_INT 0x2
1035 #define DMA2_INT 0x4
1036 #define DMA3_INT 0x8
1037 #define DMA4_INT 0x10
1038 #define DMA5_INT 0x20
1039 #define DMA6_INT 0x40
1040 #define DMA7_INT 0x80
1045 #define DIRECTION 0x2
1049 #define BUSERROR 0x100
1053 #define DMA_ADDR_HIGH 0xffff
1057 #define DMA_ADDR_LOW 0xffff
1061 #define DMA_COUNT_HIGH 0xffff
1065 #define DMA_COUNT_LOW 0xffff