26#define BIT_MASK(base_name) \
27 (((1 << base_name##_WIDTH) - 1) << base_name##_SHIFT)
28#define BIT_ARG(base_name, x) ((x) << base_name##_SHIFT)
46#define USB_TD_NEXT_DTD_POINTER_TERMINATE_SHIFT (0)
47#define USB_TD_NEXT_DTD_POINTER_TERMINATE \
48 ((volatile usb_transfer_descriptor_t *) \
49 (1 << USB_TD_NEXT_DTD_POINTER_TERMINATE_SHIFT))
51#define USB_TD_DTD_TOKEN_TOTAL_BYTES_SHIFT (16)
52#define USB_TD_DTD_TOKEN_TOTAL_BYTES_WIDTH (15)
53#define USB_TD_DTD_TOKEN_TOTAL_BYTES_MASK BIT_MASK(USB_TD_DTD_TOKEN_TOTAL_BYTES)
54#define USB_TD_DTD_TOKEN_TOTAL_BYTES(x) BIT_ARG(USB_TD_DTD_TOKEN_TOTAL_BYTES, (x))
56#define USB_TD_DTD_TOKEN_IOC_SHIFT (15)
57#define USB_TD_DTD_TOKEN_IOC (1 << USB_TD_DTD_TOKEN_IOC_SHIFT)
59#define USB_TD_DTD_TOKEN_MULTO_SHIFT (10)
60#define USB_TD_DTD_TOKEN_MULTO_WIDTH (2)
61#define USB_TD_DTD_TOKEN_MULTO_MASK BIT_MASK(USB_TD_DTD_TOKEN_MULTO)
62#define USB_TD_DTD_TOKEN_MULTO(x) BIT_ARG(USB_TD_DTD_TOKEN_MULTO, (x))
64#define USB_TD_DTD_TOKEN_STATUS_ACTIVE_SHIFT (7)
65#define USB_TD_DTD_TOKEN_STATUS_ACTIVE \
66 (1 << USB_TD_DTD_TOKEN_STATUS_ACTIVE_SHIFT)
68#define USB_TD_DTD_TOKEN_STATUS_HALTED_SHIFT (6)
69#define USB_TD_DTD_TOKEN_STATUS_HALTED \
70 (1 << USB_TD_DTD_TOKEN_STATUS_HALTED_SHIFT)
72#define USB_TD_DTD_TOKEN_STATUS_BUFFER_ERROR_SHIFT (5)
73#define USB_TD_DTD_TOKEN_STATUS_BUFFER_ERROR \
74 (1 << USB_TD_DTD_TOKEN_STATUS_BUFFER_ERROR_SHIFT)
76#define USB_TD_DTD_TOKEN_STATUS_TRANSACTION_ERROR_SHIFT (3)
77#define USB_TD_DTD_TOKEN_STATUS_TRANSACTION_ERROR \
78 (1 << USB_TD_DTD_TOKEN_STATUS_TRANSACTION_ERROR_SHIFT)
88 volatile uint32_t buffer_pointer_page[5];
90 volatile uint8_t setup[8];
91 volatile uint32_t _reserved_1[4];
94#define USB_QH_CAPABILITIES_IOS_SHIFT (15)
95#define USB_QH_CAPABILITIES_IOS (1 << USB_QH_CAPABILITIES_IOS_SHIFT)
97#define USB_QH_CAPABILITIES_MPL_SHIFT (16)
98#define USB_QH_CAPABILITIES_MPL_WIDTH (11)
99#define USB_QH_CAPABILITIES_MPL_MASK BIT_MASK(USB_QH_CAPABILITIES_MPL)
100#define USB_QH_CAPABILITIES_MPL(x) BIT_ARG(USB_QH_CAPABILITIES_MPL, (x))
102#define USB_QH_CAPABILITIES_ZLT_SHIFT (29)
103#define USB_QH_CAPABILITIES_ZLT (1 << USB_QH_CAPABILITIES_ZLT_SHIFT)
105#define USB_QH_CAPABILITIES_MULT_SHIFT (30)
106#define USB_QH_CAPABILITIES_MULT_WIDTH (2)
107#define USB_QH_CAPABILITIES_MULT_MASK BIT_MASK(USB_QH_CAPABILITIES_MULT)
108#define USB_QH_CAPABILITIES_MULT(x) BIT_ARG(USB_QH_CAPABILITIES_MULT, (x))
115#define USB0_CAPLENGTH MMIO32(USB0_BASE + 0x100)
118#define USB0_HCSPARAMS MMIO32(USB0_BASE + 0x104)
121#define USB0_HCCPARAMS MMIO32(USB0_BASE + 0x108)
124#define USB0_DCIVERSION MMIO32(USB0_BASE + 0x120)
127#define USB0_DCCPARAMS MMIO32(USB0_BASE + 0x124)
133#define USB0_USBCMD_D MMIO32(USB0_BASE + 0x140)
136#define USB0_USBCMD_H MMIO32(USB0_BASE + 0x140)
139#define USB0_USBSTS_D MMIO32(USB0_BASE + 0x144)
142#define USB0_USBSTS_H MMIO32(USB0_BASE + 0x144)
145#define USB0_USBINTR_D MMIO32(USB0_BASE + 0x148)
148#define USB0_USBINTR_H MMIO32(USB0_BASE + 0x148)
151#define USB0_FRINDEX_D MMIO32(USB0_BASE + 0x14C)
154#define USB0_FRINDEX_H MMIO32(USB0_BASE + 0x14C)
157#define USB0_DEVICEADDR MMIO32(USB0_BASE + 0x154)
160#define USB0_PERIODICLISTBASE MMIO32(USB0_BASE + 0x154)
163#define USB0_ENDPOINTLISTADDR MMIO32(USB0_BASE + 0x158)
166#define USB0_ASYNCLISTADDR MMIO32(USB0_BASE + 0x158)
169#define USB0_TTCTRL MMIO32(USB0_BASE + 0x15C)
172#define USB0_BURSTSIZE MMIO32(USB0_BASE + 0x160)
175#define USB0_TXFILLTUNING MMIO32(USB0_BASE + 0x164)
178#define USB0_BINTERVAL MMIO32(USB0_BASE + 0x174)
181#define USB0_ENDPTNAK MMIO32(USB0_BASE + 0x178)
184#define USB0_ENDPTNAKEN MMIO32(USB0_BASE + 0x17C)
187#define USB0_PORTSC1_D MMIO32(USB0_BASE + 0x184)
190#define USB0_PORTSC1_H MMIO32(USB0_BASE + 0x184)
193#define USB0_OTGSC MMIO32(USB0_BASE + 0x1A4)
196#define USB0_USBMODE_D MMIO32(USB0_BASE + 0x1A8)
199#define USB0_USBMODE_H MMIO32(USB0_BASE + 0x1A8)
205#define USB0_ENDPTSETUPSTAT MMIO32(USB0_BASE + 0x1AC)
208#define USB0_ENDPTPRIME MMIO32(USB0_BASE + 0x1B0)
211#define USB0_ENDPTFLUSH MMIO32(USB0_BASE + 0x1B4)
214#define USB0_ENDPTSTAT MMIO32(USB0_BASE + 0x1B8)
217#define USB0_ENDPTCOMPLETE MMIO32(USB0_BASE + 0x1BC)
220#define USB0_ENDPTCTRL(logical_ep) MMIO32(USB0_BASE + 0x1C0 + \
224#define USB0_ENDPTCTRL0 USB0_ENDPTCTRL(0)
227#define USB0_ENDPTCTRL1 USB0_ENDPTCTRL(1)
230#define USB0_ENDPTCTRL2 USB0_ENDPTCTRL(2)
233#define USB0_ENDPTCTRL3 USB0_ENDPTCTRL(3)
236#define USB0_ENDPTCTRL4 USB0_ENDPTCTRL(4)
239#define USB0_ENDPTCTRL5 USB0_ENDPTCTRL(5)
245#define USB0_CAPLENGTH_CAPLENGTH_SHIFT (0)
246#define USB0_CAPLENGTH_CAPLENGTH_MASK (0xff << USB0_CAPLENGTH_CAPLENGTH_SHIFT)
247#define USB0_CAPLENGTH_CAPLENGTH(x) ((x) << USB0_CAPLENGTH_CAPLENGTH_SHIFT)
251#define USB0_CAPLENGTH_HCIVERSION_SHIFT (8)
252#define USB0_CAPLENGTH_HCIVERSION_MASK \
253 (0xffff << USB0_CAPLENGTH_HCIVERSION_SHIFT)
254#define USB0_CAPLENGTH_HCIVERSION(x) ((x) << USB0_CAPLENGTH_HCIVERSION_SHIFT)
259#define USB0_HCSPARAMS_N_PORTS_SHIFT (0)
260#define USB0_HCSPARAMS_N_PORTS_MASK (0xf << USB0_HCSPARAMS_N_PORTS_SHIFT)
261#define USB0_HCSPARAMS_N_PORTS(x) ((x) << USB0_HCSPARAMS_N_PORTS_SHIFT)
264#define USB0_HCSPARAMS_PPC_SHIFT (4)
265#define USB0_HCSPARAMS_PPC (1 << USB0_HCSPARAMS_PPC_SHIFT)
268#define USB0_HCSPARAMS_N_PCC_SHIFT (8)
269#define USB0_HCSPARAMS_N_PCC_MASK (0xf << USB0_HCSPARAMS_N_PCC_SHIFT)
270#define USB0_HCSPARAMS_N_PCC(x) ((x) << USB0_HCSPARAMS_N_PCC_SHIFT)
273#define USB0_HCSPARAMS_N_CC_SHIFT (12)
274#define USB0_HCSPARAMS_N_CC_MASK (0xf << USB0_HCSPARAMS_N_CC_SHIFT)
275#define USB0_HCSPARAMS_N_CC(x) ((x) << USB0_HCSPARAMS_N_CC_SHIFT)
278#define USB0_HCSPARAMS_PI_SHIFT (16)
279#define USB0_HCSPARAMS_PI (1 << USB0_HCSPARAMS_PI_SHIFT)
282#define USB0_HCSPARAMS_N_PTT_SHIFT (20)
283#define USB0_HCSPARAMS_N_PTT_MASK (0xf << USB0_HCSPARAMS_N_PTT_SHIFT)
284#define USB0_HCSPARAMS_N_PTT(x) ((x) << USB0_HCSPARAMS_N_PTT_SHIFT)
287#define USB0_HCSPARAMS_N_TT_SHIFT (24)
288#define USB0_HCSPARAMS_N_TT_MASK (0xf << USB0_HCSPARAMS_N_TT_SHIFT)
289#define USB0_HCSPARAMS_N_TT(x) ((x) << USB0_HCSPARAMS_N_TT_SHIFT)
294#define USB0_HCCPARAMS_ADC_SHIFT (0)
295#define USB0_HCCPARAMS_ADC (1 << USB0_HCCPARAMS_ADC_SHIFT)
298#define USB0_HCCPARAMS_PFL_SHIFT (1)
299#define USB0_HCCPARAMS_PFL (1 << USB0_HCCPARAMS_PFL_SHIFT)
302#define USB0_HCCPARAMS_ASP_SHIFT (2)
303#define USB0_HCCPARAMS_ASP (1 << USB0_HCCPARAMS_ASP_SHIFT)
306#define USB0_HCCPARAMS_IST_SHIFT (4)
307#define USB0_HCCPARAMS_IST_MASK (0xf << USB0_HCCPARAMS_IST_SHIFT)
308#define USB0_HCCPARAMS_IST(x) ((x) << USB0_HCCPARAMS_IST_SHIFT)
311#define USB0_HCCPARAMS_EECP_SHIFT (8)
312#define USB0_HCCPARAMS_EECP_MASK (0xf << USB0_HCCPARAMS_EECP_SHIFT)
313#define USB0_HCCPARAMS_EECP(x) ((x) << USB0_HCCPARAMS_EECP_SHIFT)
318#define USB0_DCCPARAMS_DEN_SHIFT (0)
319#define USB0_DCCPARAMS_DEN_MASK (0x1f << USB0_DCCPARAMS_DEN_SHIFT)
320#define USB0_DCCPARAMS_DEN(x) ((x) << USB0_DCCPARAMS_DEN_SHIFT)
323#define USB0_DCCPARAMS_DC_SHIFT (7)
324#define USB0_DCCPARAMS_DC (1 << USB0_DCCPARAMS_DC_SHIFT)
327#define USB0_DCCPARAMS_HC_SHIFT (8)
328#define USB0_DCCPARAMS_HC (1 << USB0_DCCPARAMS_HC_SHIFT)
333#define USB0_USBCMD_D_RS_SHIFT (0)
334#define USB0_USBCMD_D_RS (1 << USB0_USBCMD_D_RS_SHIFT)
337#define USB0_USBCMD_D_RST_SHIFT (1)
338#define USB0_USBCMD_D_RST (1 << USB0_USBCMD_D_RST_SHIFT)
341#define USB0_USBCMD_D_SUTW_SHIFT (13)
342#define USB0_USBCMD_D_SUTW (1 << USB0_USBCMD_D_SUTW_SHIFT)
345#define USB0_USBCMD_D_ATDTW_SHIFT (14)
346#define USB0_USBCMD_D_ATDTW (1 << USB0_USBCMD_D_ATDTW_SHIFT)
349#define USB0_USBCMD_D_ITC_SHIFT (16)
350#define USB0_USBCMD_D_ITC_MASK (0xff << USB0_USBCMD_D_ITC_SHIFT)
351#define USB0_USBCMD_D_ITC(x) ((x) << USB0_USBCMD_D_ITC_SHIFT)
356#define USB0_USBCMD_H_RS_SHIFT (0)
357#define USB0_USBCMD_H_RS (1 << USB0_USBCMD_H_RS_SHIFT)
360#define USB0_USBCMD_H_RST_SHIFT (1)
361#define USB0_USBCMD_H_RST (1 << USB0_USBCMD_H_RST_SHIFT)
364#define USB0_USBCMD_H_FS0_SHIFT (2)
365#define USB0_USBCMD_H_FS0 (1 << USB0_USBCMD_H_FS0_SHIFT)
368#define USB0_USBCMD_H_FS1_SHIFT (3)
369#define USB0_USBCMD_H_FS1 (1 << USB0_USBCMD_H_FS1_SHIFT)
373#define USB0_USBCMD_H_PSE_SHIFT (4)
374#define USB0_USBCMD_H_PSE (1 << USB0_USBCMD_H_PSE_SHIFT)
378#define USB0_USBCMD_H_ASE_SHIFT (5)
379#define USB0_USBCMD_H_ASE (1 << USB0_USBCMD_H_ASE_SHIFT)
383#define USB0_USBCMD_H_IAA_SHIFT (6)
384#define USB0_USBCMD_H_IAA (1 << USB0_USBCMD_H_IAA_SHIFT)
387#define USB0_USBCMD_H_ASP1_0_SHIFT (8)
388#define USB0_USBCMD_H_ASP1_0_MASK (0x3 << USB0_USBCMD_H_ASP1_0_SHIFT)
389#define USB0_USBCMD_H_ASP1_0(x) ((x) << USB0_USBCMD_H_ASP1_0_SHIFT)
392#define USB0_USBCMD_H_ASPE_SHIFT (11)
393#define USB0_USBCMD_H_ASPE (1 << USB0_USBCMD_H_ASPE_SHIFT)
396#define USB0_USBCMD_H_FS2_SHIFT (15)
397#define USB0_USBCMD_H_FS2 (1 << USB0_USBCMD_H_FS2_SHIFT)
400#define USB0_USBCMD_H_ITC_SHIFT (16)
401#define USB0_USBCMD_H_ITC_MASK (0xff << USB0_USBCMD_H_ITC_SHIFT)
402#define USB0_USBCMD_H_ITC(x) ((x) << USB0_USBCMD_H_ITC_SHIFT)
407#define USB0_USBSTS_D_UI_SHIFT (0)
408#define USB0_USBSTS_D_UI (1 << USB0_USBSTS_D_UI_SHIFT)
411#define USB0_USBSTS_D_UEI_SHIFT (1)
412#define USB0_USBSTS_D_UEI (1 << USB0_USBSTS_D_UEI_SHIFT)
415#define USB0_USBSTS_D_PCI_SHIFT (2)
416#define USB0_USBSTS_D_PCI (1 << USB0_USBSTS_D_PCI_SHIFT)
419#define USB0_USBSTS_D_URI_SHIFT (6)
420#define USB0_USBSTS_D_URI (1 << USB0_USBSTS_D_URI_SHIFT)
423#define USB0_USBSTS_D_SRI_SHIFT (7)
424#define USB0_USBSTS_D_SRI (1 << USB0_USBSTS_D_SRI_SHIFT)
427#define USB0_USBSTS_D_SLI_SHIFT (8)
428#define USB0_USBSTS_D_SLI (1 << USB0_USBSTS_D_SLI_SHIFT)
431#define USB0_USBSTS_D_NAKI_SHIFT (16)
432#define USB0_USBSTS_D_NAKI (1 << USB0_USBSTS_D_NAKI_SHIFT)
437#define USB0_USBSTS_H_UI_SHIFT (0)
438#define USB0_USBSTS_H_UI (1 << USB0_USBSTS_H_UI_SHIFT)
441#define USB0_USBSTS_H_UEI_SHIFT (1)
442#define USB0_USBSTS_H_UEI (1 << USB0_USBSTS_H_UEI_SHIFT)
445#define USB0_USBSTS_H_PCI_SHIFT (2)
446#define USB0_USBSTS_H_PCI (1 << USB0_USBSTS_H_PCI_SHIFT)
449#define USB0_USBSTS_H_FRI_SHIFT (3)
450#define USB0_USBSTS_H_FRI (1 << USB0_USBSTS_H_FRI_SHIFT)
453#define USB0_USBSTS_H_AAI_SHIFT (5)
454#define USB0_USBSTS_H_AAI (1 << USB0_USBSTS_H_AAI_SHIFT)
457#define USB0_USBSTS_H_SRI_SHIFT (7)
458#define USB0_USBSTS_H_SRI (1 << USB0_USBSTS_H_SRI_SHIFT)
461#define USB0_USBSTS_H_HCH_SHIFT (12)
462#define USB0_USBSTS_H_HCH (1 << USB0_USBSTS_H_HCH_SHIFT)
465#define USB0_USBSTS_H_RCL_SHIFT (13)
466#define USB0_USBSTS_H_RCL (1 << USB0_USBSTS_H_RCL_SHIFT)
469#define USB0_USBSTS_H_PS_SHIFT (14)
470#define USB0_USBSTS_H_PS (1 << USB0_USBSTS_H_PS_SHIFT)
473#define USB0_USBSTS_H_AS_SHIFT (15)
474#define USB0_USBSTS_H_AS (1 << USB0_USBSTS_H_AS_SHIFT)
477#define USB0_USBSTS_H_UAI_SHIFT (18)
478#define USB0_USBSTS_H_UAI (1 << USB0_USBSTS_H_UAI_SHIFT)
481#define USB0_USBSTS_H_UPI_SHIFT (19)
482#define USB0_USBSTS_H_UPI (1 << USB0_USBSTS_H_UPI_SHIFT)
487#define USB0_USBINTR_D_UE_SHIFT (0)
488#define USB0_USBINTR_D_UE (1 << USB0_USBINTR_D_UE_SHIFT)
491#define USB0_USBINTR_D_UEE_SHIFT (1)
492#define USB0_USBINTR_D_UEE (1 << USB0_USBINTR_D_UEE_SHIFT)
495#define USB0_USBINTR_D_PCE_SHIFT (2)
496#define USB0_USBINTR_D_PCE (1 << USB0_USBINTR_D_PCE_SHIFT)
499#define USB0_USBINTR_D_URE_SHIFT (6)
500#define USB0_USBINTR_D_URE (1 << USB0_USBINTR_D_URE_SHIFT)
503#define USB0_USBINTR_D_SRE_SHIFT (7)
504#define USB0_USBINTR_D_SRE (1 << USB0_USBINTR_D_SRE_SHIFT)
507#define USB0_USBINTR_D_SLE_SHIFT (8)
508#define USB0_USBINTR_D_SLE (1 << USB0_USBINTR_D_SLE_SHIFT)
511#define USB0_USBINTR_D_NAKE_SHIFT (16)
512#define USB0_USBINTR_D_NAKE (1 << USB0_USBINTR_D_NAKE_SHIFT)
517#define USB0_USBINTR_H_UE_SHIFT (0)
518#define USB0_USBINTR_H_UE (1 << USB0_USBINTR_H_UE_SHIFT)
521#define USB0_USBINTR_H_UEE_SHIFT (1)
522#define USB0_USBINTR_H_UEE (1 << USB0_USBINTR_H_UEE_SHIFT)
525#define USB0_USBINTR_H_PCE_SHIFT (2)
526#define USB0_USBINTR_H_PCE (1 << USB0_USBINTR_H_PCE_SHIFT)
529#define USB0_USBINTR_H_FRE_SHIFT (3)
530#define USB0_USBINTR_H_FRE (1 << USB0_USBINTR_H_FRE_SHIFT)
533#define USB0_USBINTR_H_AAE_SHIFT (5)
534#define USB0_USBINTR_H_AAE (1 << USB0_USBINTR_H_AAE_SHIFT)
537#define USB0_USBINTR_H_SRE_SHIFT (7)
538#define USB0_USBINTR_H_SRE (1 << USB0_USBINTR_H_SRE_SHIFT)
541#define USB0_USBINTR_H_UAIE_SHIFT (18)
542#define USB0_USBINTR_H_UAIE (1 << USB0_USBINTR_H_UAIE_SHIFT)
545#define USB0_USBINTR_H_UPIA_SHIFT (19)
546#define USB0_USBINTR_H_UPIA (1 << USB0_USBINTR_H_UPIA_SHIFT)
551#define USB0_FRINDEX_D_FRINDEX2_0_SHIFT (0)
552#define USB0_FRINDEX_D_FRINDEX2_0_MASK (0x7 << USB0_FRINDEX_D_FRINDEX2_0_SHIFT)
553#define USB0_FRINDEX_D_FRINDEX2_0(x) ((x) << USB0_FRINDEX_D_FRINDEX2_0_SHIFT)
556#define USB0_FRINDEX_D_FRINDEX13_3_SHIFT (3)
557#define USB0_FRINDEX_D_FRINDEX13_3_MASK \
558 (0x7ff << USB0_FRINDEX_D_FRINDEX13_3_SHIFT)
559#define USB0_FRINDEX_D_FRINDEX13_3(x) ((x) << USB0_FRINDEX_D_FRINDEX13_3_SHIFT)
564#define USB0_FRINDEX_H_FRINDEX2_0_SHIFT (0)
565#define USB0_FRINDEX_H_FRINDEX2_0_MASK (0x7 << USB0_FRINDEX_H_FRINDEX2_0_SHIFT)
566#define USB0_FRINDEX_H_FRINDEX2_0(x) ((x) << USB0_FRINDEX_H_FRINDEX2_0_SHIFT)
569#define USB0_FRINDEX_H_FRINDEX12_3_SHIFT (3)
570#define USB0_FRINDEX_H_FRINDEX12_3_MASK \
571 (0x3ff << USB0_FRINDEX_H_FRINDEX12_3_SHIFT)
572#define USB0_FRINDEX_H_FRINDEX12_3(x) ((x) << USB0_FRINDEX_H_FRINDEX12_3_SHIFT)
577#define USB0_DEVICEADDR_USBADRA_SHIFT (24)
578#define USB0_DEVICEADDR_USBADRA (1 << USB0_DEVICEADDR_USBADRA_SHIFT)
581#define USB0_DEVICEADDR_USBADR_SHIFT (25)
582#define USB0_DEVICEADDR_USBADR_MASK (0x7f << USB0_DEVICEADDR_USBADR_SHIFT)
583#define USB0_DEVICEADDR_USBADR(x) ((x) << USB0_DEVICEADDR_USBADR_SHIFT)
588#define USB0_PERIODICLISTBASE_PERBASE31_12_SHIFT (12)
589#define USB0_PERIODICLISTBASE_PERBASE31_12_MASK \
590 (0xfffff << USB0_PERIODICLISTBASE_PERBASE31_12_SHIFT)
591#define USB0_PERIODICLISTBASE_PERBASE31_12(x) \
592 ((x) << USB0_PERIODICLISTBASE_PERBASE31_12_SHIFT)
597#define USB0_ENDPOINTLISTADDR_EPBASE31_11_SHIFT (11)
598#define USB0_ENDPOINTLISTADDR_EPBASE31_11_MASK \
599 (0x1fffff << USB0_ENDPOINTLISTADDR_EPBASE31_11_SHIFT)
600#define USB0_ENDPOINTLISTADDR_EPBASE31_11(x) \
601 ((x) << USB0_ENDPOINTLISTADDR_EPBASE31_11_SHIFT)
606#define USB0_ASYNCLISTADDR_ASYBASE31_5_SHIFT (5)
607#define USB0_ASYNCLISTADDR_ASYBASE31_5_MASK \
608 (0x7ffffff << USB0_ASYNCLISTADDR_ASYBASE31_5_SHIFT)
609#define USB0_ASYNCLISTADDR_ASYBASE31_5(x) \
610 ((x) << USB0_ASYNCLISTADDR_ASYBASE31_5_SHIFT)
615#define USB0_TTCTRL_TTHA_SHIFT (24)
616#define USB0_TTCTRL_TTHA_MASK (0x7f << USB0_TTCTRL_TTHA_SHIFT)
617#define USB0_TTCTRL_TTHA(x) ((x) << USB0_TTCTRL_TTHA_SHIFT)
622#define USB0_BURSTSIZE_RXPBURST_SHIFT (0)
623#define USB0_BURSTSIZE_RXPBURST_MASK (0xff << USB0_BURSTSIZE_RXPBURST_SHIFT)
624#define USB0_BURSTSIZE_RXPBURST(x) ((x) << USB0_BURSTSIZE_RXPBURST_SHIFT)
627#define USB0_BURSTSIZE_TXPBURST_SHIFT (8)
628#define USB0_BURSTSIZE_TXPBURST_MASK (0xff << USB0_BURSTSIZE_TXPBURST_SHIFT)
629#define USB0_BURSTSIZE_TXPBURST(x) ((x) << USB0_BURSTSIZE_TXPBURST_SHIFT)
634#define USB0_TXFILLTUNING_TXSCHOH_SHIFT (0)
635#define USB0_TXFILLTUNING_TXSCHOH_MASK (0xff << USB0_TXFILLTUNING_TXSCHOH_SHIFT)
636#define USB0_TXFILLTUNING_TXSCHOH(x) ((x) << USB0_TXFILLTUNING_TXSCHOH_SHIFT)
639#define USB0_TXFILLTUNING_TXSCHEATLTH_SHIFT (8)
640#define USB0_TXFILLTUNING_TXSCHEATLTH_MASK \
641 (0x1f << USB0_TXFILLTUNING_TXSCHEATLTH_SHIFT)
642#define USB0_TXFILLTUNING_TXSCHEATLTH(x) \
643 ((x) << USB0_TXFILLTUNING_TXSCHEATLTH_SHIFT)
646#define USB0_TXFILLTUNING_TXFIFOTHRES_SHIFT (16)
647#define USB0_TXFILLTUNING_TXFIFOTHRES_MASK \
648 (0x3f << USB0_TXFILLTUNING_TXFIFOTHRES_SHIFT)
649#define USB0_TXFILLTUNING_TXFIFOTHRES(x) \
650 ((x) << USB0_TXFILLTUNING_TXFIFOTHRES_SHIFT)
655#define USB0_BINTERVAL_BINT_SHIFT (0)
656#define USB0_BINTERVAL_BINT_MASK (0xf << USB0_BINTERVAL_BINT_SHIFT)
657#define USB0_BINTERVAL_BINT(x) ((x) << USB0_BINTERVAL_BINT_SHIFT)
662#define USB0_ENDPTNAK_EPRN_SHIFT (0)
663#define USB0_ENDPTNAK_EPRN_MASK (0x3f << USB0_ENDPTNAK_EPRN_SHIFT)
664#define USB0_ENDPTNAK_EPRN(x) ((x) << USB0_ENDPTNAK_EPRN_SHIFT)
667#define USB0_ENDPTNAK_EPTN_SHIFT (16)
668#define USB0_ENDPTNAK_EPTN_MASK (0x3f << USB0_ENDPTNAK_EPTN_SHIFT)
669#define USB0_ENDPTNAK_EPTN(x) ((x) << USB0_ENDPTNAK_EPTN_SHIFT)
674#define USB0_ENDPTNAKEN_EPRNE_SHIFT (0)
675#define USB0_ENDPTNAKEN_EPRNE_MASK (0x3f << USB0_ENDPTNAKEN_EPRNE_SHIFT)
676#define USB0_ENDPTNAKEN_EPRNE(x) ((x) << USB0_ENDPTNAKEN_EPRNE_SHIFT)
679#define USB0_ENDPTNAKEN_EPTNE_SHIFT (16)
680#define USB0_ENDPTNAKEN_EPTNE_MASK (0x3f << USB0_ENDPTNAKEN_EPTNE_SHIFT)
681#define USB0_ENDPTNAKEN_EPTNE(x) ((x) << USB0_ENDPTNAKEN_EPTNE_SHIFT)
686#define USB0_PORTSC1_D_CCS_SHIFT (0)
687#define USB0_PORTSC1_D_CCS (1 << USB0_PORTSC1_D_CCS_SHIFT)
690#define USB0_PORTSC1_D_PE_SHIFT (2)
691#define USB0_PORTSC1_D_PE (1 << USB0_PORTSC1_D_PE_SHIFT)
694#define USB0_PORTSC1_D_PEC_SHIFT (3)
695#define USB0_PORTSC1_D_PEC (1 << USB0_PORTSC1_D_PEC_SHIFT)
698#define USB0_PORTSC1_D_FPR_SHIFT (6)
699#define USB0_PORTSC1_D_FPR (1 << USB0_PORTSC1_D_FPR_SHIFT)
702#define USB0_PORTSC1_D_SUSP_SHIFT (7)
703#define USB0_PORTSC1_D_SUSP (1 << USB0_PORTSC1_D_SUSP_SHIFT)
706#define USB0_PORTSC1_D_PR_SHIFT (8)
707#define USB0_PORTSC1_D_PR (1 << USB0_PORTSC1_D_PR_SHIFT)
710#define USB0_PORTSC1_D_HSP_SHIFT (9)
711#define USB0_PORTSC1_D_HSP (1 << USB0_PORTSC1_D_HSP_SHIFT)
714#define USB0_PORTSC1_D_PIC1_0_SHIFT (14)
715#define USB0_PORTSC1_D_PIC1_0_MASK (0x3 << USB0_PORTSC1_D_PIC1_0_SHIFT)
716#define USB0_PORTSC1_D_PIC1_0(x) ((x) << USB0_PORTSC1_D_PIC1_0_SHIFT)
719#define USB0_PORTSC1_D_PTC3_0_SHIFT (16)
720#define USB0_PORTSC1_D_PTC3_0_MASK (0xf << USB0_PORTSC1_D_PTC3_0_SHIFT)
721#define USB0_PORTSC1_D_PTC3_0(x) ((x) << USB0_PORTSC1_D_PTC3_0_SHIFT)
724#define USB0_PORTSC1_D_PHCD_SHIFT (23)
725#define USB0_PORTSC1_D_PHCD (1 << USB0_PORTSC1_D_PHCD_SHIFT)
728#define USB0_PORTSC1_D_PFSC_SHIFT (24)
729#define USB0_PORTSC1_D_PFSC (1 << USB0_PORTSC1_D_PFSC_SHIFT)
732#define USB0_PORTSC1_D_PSPD_SHIFT (26)
733#define USB0_PORTSC1_D_PSPD_MASK (0x3 << USB0_PORTSC1_D_PSPD_SHIFT)
734#define USB0_PORTSC1_D_PSPD(x) ((x) << USB0_PORTSC1_D_PSPD_SHIFT)
739#define USB0_PORTSC1_H_CCS_SHIFT (0)
740#define USB0_PORTSC1_H_CCS (1 << USB0_PORTSC1_H_CCS_SHIFT)
743#define USB0_PORTSC1_H_CSC_SHIFT (1)
744#define USB0_PORTSC1_H_CSC (1 << USB0_PORTSC1_H_CSC_SHIFT)
747#define USB0_PORTSC1_H_PE_SHIFT (2)
748#define USB0_PORTSC1_H_PE (1 << USB0_PORTSC1_H_PE_SHIFT)
751#define USB0_PORTSC1_H_PEC_SHIFT (3)
752#define USB0_PORTSC1_H_PEC (1 << USB0_PORTSC1_H_PEC_SHIFT)
755#define USB0_PORTSC1_H_OCA_SHIFT (4)
756#define USB0_PORTSC1_H_OCA (1 << USB0_PORTSC1_H_OCA_SHIFT)
759#define USB0_PORTSC1_H_OCC_SHIFT (5)
760#define USB0_PORTSC1_H_OCC (1 << USB0_PORTSC1_H_OCC_SHIFT)
763#define USB0_PORTSC1_H_FPR_SHIFT (6)
764#define USB0_PORTSC1_H_FPR (1 << USB0_PORTSC1_H_FPR_SHIFT)
767#define USB0_PORTSC1_H_SUSP_SHIFT (7)
768#define USB0_PORTSC1_H_SUSP (1 << USB0_PORTSC1_H_SUSP_SHIFT)
771#define USB0_PORTSC1_H_PR_SHIFT (8)
772#define USB0_PORTSC1_H_PR (1 << USB0_PORTSC1_H_PR_SHIFT)
775#define USB0_PORTSC1_H_HSP_SHIFT (9)
776#define USB0_PORTSC1_H_HSP (1 << USB0_PORTSC1_H_HSP_SHIFT)
779#define USB0_PORTSC1_H_LS_SHIFT (10)
780#define USB0_PORTSC1_H_LS_MASK (0x3 << USB0_PORTSC1_H_LS_SHIFT)
781#define USB0_PORTSC1_H_LS(x) ((x) << USB0_PORTSC1_H_LS_SHIFT)
784#define USB0_PORTSC1_H_PP_SHIFT (12)
785#define USB0_PORTSC1_H_PP (1 << USB0_PORTSC1_H_PP_SHIFT)
788#define USB0_PORTSC1_H_PIC1_0_SHIFT (14)
789#define USB0_PORTSC1_H_PIC1_0_MASK (0x3 << USB0_PORTSC1_H_PIC1_0_SHIFT)
790#define USB0_PORTSC1_H_PIC1_0(x) ((x) << USB0_PORTSC1_H_PIC1_0_SHIFT)
793#define USB0_PORTSC1_H_PTC3_0_SHIFT (16)
794#define USB0_PORTSC1_H_PTC3_0_MASK (0xf << USB0_PORTSC1_H_PTC3_0_SHIFT)
795#define USB0_PORTSC1_H_PTC3_0(x) ((x) << USB0_PORTSC1_H_PTC3_0_SHIFT)
798#define USB0_PORTSC1_H_WKCN_SHIFT (20)
799#define USB0_PORTSC1_H_WKCN (1 << USB0_PORTSC1_H_WKCN_SHIFT)
802#define USB0_PORTSC1_H_WKDC_SHIFT (21)
803#define USB0_PORTSC1_H_WKDC (1 << USB0_PORTSC1_H_WKDC_SHIFT)
806#define USB0_PORTSC1_H_WKOC_SHIFT (22)
807#define USB0_PORTSC1_H_WKOC (1 << USB0_PORTSC1_H_WKOC_SHIFT)
810#define USB0_PORTSC1_H_PHCD_SHIFT (23)
811#define USB0_PORTSC1_H_PHCD (1 << USB0_PORTSC1_H_PHCD_SHIFT)
814#define USB0_PORTSC1_H_PFSC_SHIFT (24)
815#define USB0_PORTSC1_H_PFSC (1 << USB0_PORTSC1_H_PFSC_SHIFT)
818#define USB0_PORTSC1_H_PSPD_SHIFT (26)
819#define USB0_PORTSC1_H_PSPD_MASK (0x3 << USB0_PORTSC1_H_PSPD_SHIFT)
820#define USB0_PORTSC1_H_PSPD(x) ((x) << USB0_PORTSC1_H_PSPD_SHIFT)
825#define USB0_OTGSC_VD_SHIFT (0)
826#define USB0_OTGSC_VD (1 << USB0_OTGSC_VD_SHIFT)
829#define USB0_OTGSC_VC_SHIFT (1)
830#define USB0_OTGSC_VC (1 << USB0_OTGSC_VC_SHIFT)
833#define USB0_OTGSC_HAAR_SHIFT (2)
834#define USB0_OTGSC_HAAR (1 << USB0_OTGSC_HAAR_SHIFT)
837#define USB0_OTGSC_OT_SHIFT (3)
838#define USB0_OTGSC_OT (1 << USB0_OTGSC_OT_SHIFT)
841#define USB0_OTGSC_DP_SHIFT (4)
842#define USB0_OTGSC_DP (1 << USB0_OTGSC_DP_SHIFT)
845#define USB0_OTGSC_IDPU_SHIFT (5)
846#define USB0_OTGSC_IDPU (1 << USB0_OTGSC_IDPU_SHIFT)
849#define USB0_OTGSC_HADP_SHIFT (6)
850#define USB0_OTGSC_HADP (1 << USB0_OTGSC_HADP_SHIFT)
853#define USB0_OTGSC_HABA_SHIFT (7)
854#define USB0_OTGSC_HABA (1 << USB0_OTGSC_HABA_SHIFT)
857#define USB0_OTGSC_ID_SHIFT (8)
858#define USB0_OTGSC_ID (1 << USB0_OTGSC_ID_SHIFT)
861#define USB0_OTGSC_AVV_SHIFT (9)
862#define USB0_OTGSC_AVV (1 << USB0_OTGSC_AVV_SHIFT)
865#define USB0_OTGSC_ASV_SHIFT (10)
866#define USB0_OTGSC_ASV (1 << USB0_OTGSC_ASV_SHIFT)
869#define USB0_OTGSC_BSV_SHIFT (11)
870#define USB0_OTGSC_BSV (1 << USB0_OTGSC_BSV_SHIFT)
873#define USB0_OTGSC_BSE_SHIFT (12)
874#define USB0_OTGSC_BSE (1 << USB0_OTGSC_BSE_SHIFT)
877#define USB0_OTGSC_MS1T_SHIFT (13)
878#define USB0_OTGSC_MS1T (1 << USB0_OTGSC_MS1T_SHIFT)
881#define USB0_OTGSC_DPS_SHIFT (14)
882#define USB0_OTGSC_DPS (1 << USB0_OTGSC_DPS_SHIFT)
885#define USB0_OTGSC_IDIS_SHIFT (16)
886#define USB0_OTGSC_IDIS (1 << USB0_OTGSC_IDIS_SHIFT)
889#define USB0_OTGSC_AVVIS_SHIFT (17)
890#define USB0_OTGSC_AVVIS (1 << USB0_OTGSC_AVVIS_SHIFT)
893#define USB0_OTGSC_ASVIS_SHIFT (18)
894#define USB0_OTGSC_ASVIS (1 << USB0_OTGSC_ASVIS_SHIFT)
897#define USB0_OTGSC_BSVIS_SHIFT (19)
898#define USB0_OTGSC_BSVIS (1 << USB0_OTGSC_BSVIS_SHIFT)
901#define USB0_OTGSC_BSEIS_SHIFT (20)
902#define USB0_OTGSC_BSEIS (1 << USB0_OTGSC_BSEIS_SHIFT)
905#define USB0_OTGSC_MS1S_SHIFT (21)
906#define USB0_OTGSC_MS1S (1 << USB0_OTGSC_MS1S_SHIFT)
909#define USB0_OTGSC_DPIS_SHIFT (22)
910#define USB0_OTGSC_DPIS (1 << USB0_OTGSC_DPIS_SHIFT)
913#define USB0_OTGSC_IDIE_SHIFT (24)
914#define USB0_OTGSC_IDIE (1 << USB0_OTGSC_IDIE_SHIFT)
917#define USB0_OTGSC_AVVIE_SHIFT (25)
918#define USB0_OTGSC_AVVIE (1 << USB0_OTGSC_AVVIE_SHIFT)
921#define USB0_OTGSC_ASVIE_SHIFT (26)
922#define USB0_OTGSC_ASVIE (1 << USB0_OTGSC_ASVIE_SHIFT)
925#define USB0_OTGSC_BSVIE_SHIFT (27)
926#define USB0_OTGSC_BSVIE (1 << USB0_OTGSC_BSVIE_SHIFT)
929#define USB0_OTGSC_BSEIE_SHIFT (28)
930#define USB0_OTGSC_BSEIE (1 << USB0_OTGSC_BSEIE_SHIFT)
933#define USB0_OTGSC_MS1E_SHIFT (29)
934#define USB0_OTGSC_MS1E (1 << USB0_OTGSC_MS1E_SHIFT)
937#define USB0_OTGSC_DPIE_SHIFT (30)
938#define USB0_OTGSC_DPIE (1 << USB0_OTGSC_DPIE_SHIFT)
943#define USB0_USBMODE_D_CM1_0_SHIFT (0)
944#define USB0_USBMODE_D_CM1_0_MASK (0x3 << USB0_USBMODE_D_CM1_0_SHIFT)
945#define USB0_USBMODE_D_CM1_0(x) ((x) << USB0_USBMODE_D_CM1_0_SHIFT)
948#define USB0_USBMODE_D_ES_SHIFT (2)
949#define USB0_USBMODE_D_ES (1 << USB0_USBMODE_D_ES_SHIFT)
952#define USB0_USBMODE_D_SLOM_SHIFT (3)
953#define USB0_USBMODE_D_SLOM (1 << USB0_USBMODE_D_SLOM_SHIFT)
956#define USB0_USBMODE_D_SDIS_SHIFT (4)
957#define USB0_USBMODE_D_SDIS (1 << USB0_USBMODE_D_SDIS_SHIFT)
962#define USB0_USBMODE_H_CM_SHIFT (0)
963#define USB0_USBMODE_H_CM_MASK (0x3 << USB0_USBMODE_H_CM_SHIFT)
964#define USB0_USBMODE_H_CM(x) ((x) << USB0_USBMODE_H_CM_SHIFT)
967#define USB0_USBMODE_H_ES_SHIFT (2)
968#define USB0_USBMODE_H_ES (1 << USB0_USBMODE_H_ES_SHIFT)
971#define USB0_USBMODE_H_SDIS_SHIFT (4)
972#define USB0_USBMODE_H_SDIS (1 << USB0_USBMODE_H_SDIS_SHIFT)
975#define USB0_USBMODE_H_VBPS_SHIFT (5)
976#define USB0_USBMODE_H_VBPS (1 << USB0_USBMODE_H_VBPS_SHIFT)
981#define USB0_ENDPTSETUPSTAT_ENDPTSETUPSTAT_SHIFT (0)
982#define USB0_ENDPTSETUPSTAT_ENDPTSETUPSTAT_MASK \
983 (0x3f << USB0_ENDPTSETUPSTAT_ENDPTSETUPSTAT_SHIFT)
984#define USB0_ENDPTSETUPSTAT_ENDPTSETUPSTAT(x) \
985 ((x) << USB0_ENDPTSETUPSTAT_ENDPTSETUPSTAT_SHIFT)
990#define USB0_ENDPTPRIME_PERB_SHIFT (0)
991#define USB0_ENDPTPRIME_PERB_MASK (0x3f << USB0_ENDPTPRIME_PERB_SHIFT)
992#define USB0_ENDPTPRIME_PERB(x) ((x) << USB0_ENDPTPRIME_PERB_SHIFT)
995#define USB0_ENDPTPRIME_PETB_SHIFT (16)
996#define USB0_ENDPTPRIME_PETB_MASK (0x3f << USB0_ENDPTPRIME_PETB_SHIFT)
997#define USB0_ENDPTPRIME_PETB(x) ((x) << USB0_ENDPTPRIME_PETB_SHIFT)
1002#define USB0_ENDPTFLUSH_FERB_SHIFT (0)
1003#define USB0_ENDPTFLUSH_FERB_MASK (0x3f << USB0_ENDPTFLUSH_FERB_SHIFT)
1004#define USB0_ENDPTFLUSH_FERB(x) ((x) << USB0_ENDPTFLUSH_FERB_SHIFT)
1007#define USB0_ENDPTFLUSH_FETB_SHIFT (16)
1008#define USB0_ENDPTFLUSH_FETB_MASK (0x3f << USB0_ENDPTFLUSH_FETB_SHIFT)
1009#define USB0_ENDPTFLUSH_FETB(x) ((x) << USB0_ENDPTFLUSH_FETB_SHIFT)
1014#define USB0_ENDPTSTAT_ERBR_SHIFT (0)
1015#define USB0_ENDPTSTAT_ERBR_MASK (0x3f << USB0_ENDPTSTAT_ERBR_SHIFT)
1016#define USB0_ENDPTSTAT_ERBR(x) ((x) << USB0_ENDPTSTAT_ERBR_SHIFT)
1019#define USB0_ENDPTSTAT_ETBR_SHIFT (16)
1020#define USB0_ENDPTSTAT_ETBR_MASK (0x3f << USB0_ENDPTSTAT_ETBR_SHIFT)
1021#define USB0_ENDPTSTAT_ETBR(x) ((x) << USB0_ENDPTSTAT_ETBR_SHIFT)
1026#define USB0_ENDPTCOMPLETE_ERCE_SHIFT (0)
1027#define USB0_ENDPTCOMPLETE_ERCE_MASK (0x3f << USB0_ENDPTCOMPLETE_ERCE_SHIFT)
1028#define USB0_ENDPTCOMPLETE_ERCE(x) ((x) << USB0_ENDPTCOMPLETE_ERCE_SHIFT)
1031#define USB0_ENDPTCOMPLETE_ETCE_SHIFT (16)
1032#define USB0_ENDPTCOMPLETE_ETCE_MASK (0x3f << USB0_ENDPTCOMPLETE_ETCE_SHIFT)
1033#define USB0_ENDPTCOMPLETE_ETCE(x) ((x) << USB0_ENDPTCOMPLETE_ETCE_SHIFT)
1038#define USB0_ENDPTCTRL0_RXS_SHIFT (0)
1039#define USB0_ENDPTCTRL0_RXS (1 << USB0_ENDPTCTRL0_RXS_SHIFT)
1042#define USB0_ENDPTCTRL0_RXT1_0_SHIFT (2)
1043#define USB0_ENDPTCTRL0_RXT1_0_MASK (0x3 << USB0_ENDPTCTRL0_RXT1_0_SHIFT)
1044#define USB0_ENDPTCTRL0_RXT1_0(x) ((x) << USB0_ENDPTCTRL0_RXT1_0_SHIFT)
1047#define USB0_ENDPTCTRL0_RXE_SHIFT (7)
1048#define USB0_ENDPTCTRL0_RXE (1 << USB0_ENDPTCTRL0_RXE_SHIFT)
1051#define USB0_ENDPTCTRL0_TXS_SHIFT (16)
1052#define USB0_ENDPTCTRL0_TXS (1 << USB0_ENDPTCTRL0_TXS_SHIFT)
1055#define USB0_ENDPTCTRL0_TXT1_0_SHIFT (18)
1056#define USB0_ENDPTCTRL0_TXT1_0_MASK (0x3 << USB0_ENDPTCTRL0_TXT1_0_SHIFT)
1057#define USB0_ENDPTCTRL0_TXT1_0(x) ((x) << USB0_ENDPTCTRL0_TXT1_0_SHIFT)
1060#define USB0_ENDPTCTRL0_TXE_SHIFT (23)
1061#define USB0_ENDPTCTRL0_TXE (1 << USB0_ENDPTCTRL0_TXE_SHIFT)
1066#define USB0_ENDPTCTRL1_RXS_SHIFT (0)
1067#define USB0_ENDPTCTRL1_RXS (1 << USB0_ENDPTCTRL1_RXS_SHIFT)
1070#define USB0_ENDPTCTRL1_RXT_SHIFT (2)
1071#define USB0_ENDPTCTRL1_RXT_MASK (0x3 << USB0_ENDPTCTRL1_RXT_SHIFT)
1072#define USB0_ENDPTCTRL1_RXT(x) ((x) << USB0_ENDPTCTRL1_RXT_SHIFT)
1075#define USB0_ENDPTCTRL1_RXI_SHIFT (5)
1076#define USB0_ENDPTCTRL1_RXI (1 << USB0_ENDPTCTRL1_RXI_SHIFT)
1079#define USB0_ENDPTCTRL1_RXR_SHIFT (6)
1080#define USB0_ENDPTCTRL1_RXR (1 << USB0_ENDPTCTRL1_RXR_SHIFT)
1083#define USB0_ENDPTCTRL1_RXE_SHIFT (7)
1084#define USB0_ENDPTCTRL1_RXE (1 << USB0_ENDPTCTRL1_RXE_SHIFT)
1087#define USB0_ENDPTCTRL1_TXS_SHIFT (16)
1088#define USB0_ENDPTCTRL1_TXS (1 << USB0_ENDPTCTRL1_TXS_SHIFT)
1091#define USB0_ENDPTCTRL1_TXT1_0_SHIFT (18)
1092#define USB0_ENDPTCTRL1_TXT1_0_MASK (0x3 << USB0_ENDPTCTRL1_TXT1_0_SHIFT)
1093#define USB0_ENDPTCTRL1_TXT1_0(x) ((x) << USB0_ENDPTCTRL1_TXT1_0_SHIFT)
1096#define USB0_ENDPTCTRL1_TXI_SHIFT (21)
1097#define USB0_ENDPTCTRL1_TXI (1 << USB0_ENDPTCTRL1_TXI_SHIFT)
1100#define USB0_ENDPTCTRL1_TXR_SHIFT (22)
1101#define USB0_ENDPTCTRL1_TXR (1 << USB0_ENDPTCTRL1_TXR_SHIFT)
1104#define USB0_ENDPTCTRL1_TXE_SHIFT (23)
1105#define USB0_ENDPTCTRL1_TXE (1 << USB0_ENDPTCTRL1_TXE_SHIFT)
1110#define USB0_ENDPTCTRL2_RXS_SHIFT (0)
1111#define USB0_ENDPTCTRL2_RXS (1 << USB0_ENDPTCTRL2_RXS_SHIFT)
1114#define USB0_ENDPTCTRL2_RXT_SHIFT (2)
1115#define USB0_ENDPTCTRL2_RXT_MASK (0x3 << USB0_ENDPTCTRL2_RXT_SHIFT)
1116#define USB0_ENDPTCTRL2_RXT(x) ((x) << USB0_ENDPTCTRL2_RXT_SHIFT)
1119#define USB0_ENDPTCTRL2_RXI_SHIFT (5)
1120#define USB0_ENDPTCTRL2_RXI (1 << USB0_ENDPTCTRL2_RXI_SHIFT)
1123#define USB0_ENDPTCTRL2_RXR_SHIFT (6)
1124#define USB0_ENDPTCTRL2_RXR (1 << USB0_ENDPTCTRL2_RXR_SHIFT)
1127#define USB0_ENDPTCTRL2_RXE_SHIFT (7)
1128#define USB0_ENDPTCTRL2_RXE (1 << USB0_ENDPTCTRL2_RXE_SHIFT)
1131#define USB0_ENDPTCTRL2_TXS_SHIFT (16)
1132#define USB0_ENDPTCTRL2_TXS (1 << USB0_ENDPTCTRL2_TXS_SHIFT)
1135#define USB0_ENDPTCTRL2_TXT1_0_SHIFT (18)
1136#define USB0_ENDPTCTRL2_TXT1_0_MASK (0x3 << USB0_ENDPTCTRL2_TXT1_0_SHIFT)
1137#define USB0_ENDPTCTRL2_TXT1_0(x) ((x) << USB0_ENDPTCTRL2_TXT1_0_SHIFT)
1140#define USB0_ENDPTCTRL2_TXI_SHIFT (21)
1141#define USB0_ENDPTCTRL2_TXI (1 << USB0_ENDPTCTRL2_TXI_SHIFT)
1144#define USB0_ENDPTCTRL2_TXR_SHIFT (22)
1145#define USB0_ENDPTCTRL2_TXR (1 << USB0_ENDPTCTRL2_TXR_SHIFT)
1148#define USB0_ENDPTCTRL2_TXE_SHIFT (23)
1149#define USB0_ENDPTCTRL2_TXE (1 << USB0_ENDPTCTRL2_TXE_SHIFT)
1154#define USB0_ENDPTCTRL3_RXS_SHIFT (0)
1155#define USB0_ENDPTCTRL3_RXS (1 << USB0_ENDPTCTRL3_RXS_SHIFT)
1158#define USB0_ENDPTCTRL3_RXT_SHIFT (2)
1159#define USB0_ENDPTCTRL3_RXT_MASK (0x3 << USB0_ENDPTCTRL3_RXT_SHIFT)
1160#define USB0_ENDPTCTRL3_RXT(x) ((x) << USB0_ENDPTCTRL3_RXT_SHIFT)
1163#define USB0_ENDPTCTRL3_RXI_SHIFT (5)
1164#define USB0_ENDPTCTRL3_RXI (1 << USB0_ENDPTCTRL3_RXI_SHIFT)
1167#define USB0_ENDPTCTRL3_RXR_SHIFT (6)
1168#define USB0_ENDPTCTRL3_RXR (1 << USB0_ENDPTCTRL3_RXR_SHIFT)
1171#define USB0_ENDPTCTRL3_RXE_SHIFT (7)
1172#define USB0_ENDPTCTRL3_RXE (1 << USB0_ENDPTCTRL3_RXE_SHIFT)
1175#define USB0_ENDPTCTRL3_TXS_SHIFT (16)
1176#define USB0_ENDPTCTRL3_TXS (1 << USB0_ENDPTCTRL3_TXS_SHIFT)
1179#define USB0_ENDPTCTRL3_TXT1_0_SHIFT (18)
1180#define USB0_ENDPTCTRL3_TXT1_0_MASK (0x3 << USB0_ENDPTCTRL3_TXT1_0_SHIFT)
1181#define USB0_ENDPTCTRL3_TXT1_0(x) ((x) << USB0_ENDPTCTRL3_TXT1_0_SHIFT)
1184#define USB0_ENDPTCTRL3_TXI_SHIFT (21)
1185#define USB0_ENDPTCTRL3_TXI (1 << USB0_ENDPTCTRL3_TXI_SHIFT)
1188#define USB0_ENDPTCTRL3_TXR_SHIFT (22)
1189#define USB0_ENDPTCTRL3_TXR (1 << USB0_ENDPTCTRL3_TXR_SHIFT)
1192#define USB0_ENDPTCTRL3_TXE_SHIFT (23)
1193#define USB0_ENDPTCTRL3_TXE (1 << USB0_ENDPTCTRL3_TXE_SHIFT)
1198#define USB0_ENDPTCTRL4_RXS_SHIFT (0)
1199#define USB0_ENDPTCTRL4_RXS (1 << USB0_ENDPTCTRL4_RXS_SHIFT)
1202#define USB0_ENDPTCTRL4_RXT_SHIFT (2)
1203#define USB0_ENDPTCTRL4_RXT_MASK (0x3 << USB0_ENDPTCTRL4_RXT_SHIFT)
1204#define USB0_ENDPTCTRL4_RXT(x) ((x) << USB0_ENDPTCTRL4_RXT_SHIFT)
1207#define USB0_ENDPTCTRL4_RXI_SHIFT (5)
1208#define USB0_ENDPTCTRL4_RXI (1 << USB0_ENDPTCTRL4_RXI_SHIFT)
1211#define USB0_ENDPTCTRL4_RXR_SHIFT (6)
1212#define USB0_ENDPTCTRL4_RXR (1 << USB0_ENDPTCTRL4_RXR_SHIFT)
1215#define USB0_ENDPTCTRL4_RXE_SHIFT (7)
1216#define USB0_ENDPTCTRL4_RXE (1 << USB0_ENDPTCTRL4_RXE_SHIFT)
1219#define USB0_ENDPTCTRL4_TXS_SHIFT (16)
1220#define USB0_ENDPTCTRL4_TXS (1 << USB0_ENDPTCTRL4_TXS_SHIFT)
1223#define USB0_ENDPTCTRL4_TXT1_0_SHIFT (18)
1224#define USB0_ENDPTCTRL4_TXT1_0_MASK (0x3 << USB0_ENDPTCTRL4_TXT1_0_SHIFT)
1225#define USB0_ENDPTCTRL4_TXT1_0(x) ((x) << USB0_ENDPTCTRL4_TXT1_0_SHIFT)
1228#define USB0_ENDPTCTRL4_TXI_SHIFT (21)
1229#define USB0_ENDPTCTRL4_TXI (1 << USB0_ENDPTCTRL4_TXI_SHIFT)
1232#define USB0_ENDPTCTRL4_TXR_SHIFT (22)
1233#define USB0_ENDPTCTRL4_TXR (1 << USB0_ENDPTCTRL4_TXR_SHIFT)
1236#define USB0_ENDPTCTRL4_TXE_SHIFT (23)
1237#define USB0_ENDPTCTRL4_TXE (1 << USB0_ENDPTCTRL4_TXE_SHIFT)
1242#define USB0_ENDPTCTRL5_RXS_SHIFT (0)
1243#define USB0_ENDPTCTRL5_RXS (1 << USB0_ENDPTCTRL5_RXS_SHIFT)
1246#define USB0_ENDPTCTRL5_RXT_SHIFT (2)
1247#define USB0_ENDPTCTRL5_RXT_MASK (0x3 << USB0_ENDPTCTRL5_RXT_SHIFT)
1248#define USB0_ENDPTCTRL5_RXT(x) ((x) << USB0_ENDPTCTRL5_RXT_SHIFT)
1251#define USB0_ENDPTCTRL5_RXI_SHIFT (5)
1252#define USB0_ENDPTCTRL5_RXI (1 << USB0_ENDPTCTRL5_RXI_SHIFT)
1255#define USB0_ENDPTCTRL5_RXR_SHIFT (6)
1256#define USB0_ENDPTCTRL5_RXR (1 << USB0_ENDPTCTRL5_RXR_SHIFT)
1259#define USB0_ENDPTCTRL5_RXE_SHIFT (7)
1260#define USB0_ENDPTCTRL5_RXE (1 << USB0_ENDPTCTRL5_RXE_SHIFT)
1263#define USB0_ENDPTCTRL5_TXS_SHIFT (16)
1264#define USB0_ENDPTCTRL5_TXS (1 << USB0_ENDPTCTRL5_TXS_SHIFT)
1267#define USB0_ENDPTCTRL5_TXT1_0_SHIFT (18)
1268#define USB0_ENDPTCTRL5_TXT1_0_MASK (0x3 << USB0_ENDPTCTRL5_TXT1_0_SHIFT)
1269#define USB0_ENDPTCTRL5_TXT1_0(x) ((x) << USB0_ENDPTCTRL5_TXT1_0_SHIFT)
1272#define USB0_ENDPTCTRL5_TXI_SHIFT (21)
1273#define USB0_ENDPTCTRL5_TXI (1 << USB0_ENDPTCTRL5_TXI_SHIFT)
1276#define USB0_ENDPTCTRL5_TXR_SHIFT (22)
1277#define USB0_ENDPTCTRL5_TXR (1 << USB0_ENDPTCTRL5_TXR_SHIFT)
1280#define USB0_ENDPTCTRL5_TXE_SHIFT (23)
1281#define USB0_ENDPTCTRL5_TXE (1 << USB0_ENDPTCTRL5_TXE_SHIFT)
1289#define USB0_ENDPTCTRL_RXS_SHIFT (0)
1290#define USB0_ENDPTCTRL_RXS (1 << USB0_ENDPTCTRL_RXS_SHIFT)
1293#define USB0_ENDPTCTRL_RXT_SHIFT (2)
1294#define USB0_ENDPTCTRL_RXT_MASK (0x3 << USB0_ENDPTCTRL_RXT_SHIFT)
1295#define USB0_ENDPTCTRL_RXT(x) ((x) << USB0_ENDPTCTRL_RXT_SHIFT)
1298#define USB0_ENDPTCTRL_RXI_SHIFT (5)
1299#define USB0_ENDPTCTRL_RXI (1 << USB0_ENDPTCTRL_RXI_SHIFT)
1302#define USB0_ENDPTCTRL_RXR_SHIFT (6)
1303#define USB0_ENDPTCTRL_RXR (1 << USB0_ENDPTCTRL_RXR_SHIFT)
1306#define USB0_ENDPTCTRL_RXE_SHIFT (7)
1307#define USB0_ENDPTCTRL_RXE (1 << USB0_ENDPTCTRL_RXE_SHIFT)
1310#define USB0_ENDPTCTRL_TXS_SHIFT (16)
1311#define USB0_ENDPTCTRL_TXS (1 << USB0_ENDPTCTRL_TXS_SHIFT)
1314#define USB0_ENDPTCTRL_TXT1_0_SHIFT (18)
1315#define USB0_ENDPTCTRL_TXT1_0_MASK (0x3 << USB0_ENDPTCTRL_TXT1_0_SHIFT)
1316#define USB0_ENDPTCTRL_TXT1_0(x) ((x) << USB0_ENDPTCTRL_TXT1_0_SHIFT)
1319#define USB0_ENDPTCTRL_TXI_SHIFT (21)
1320#define USB0_ENDPTCTRL_TXI (1 << USB0_ENDPTCTRL_TXI_SHIFT)
1323#define USB0_ENDPTCTRL_TXR_SHIFT (22)
1324#define USB0_ENDPTCTRL_TXR (1 << USB0_ENDPTCTRL_TXR_SHIFT)
1327#define USB0_ENDPTCTRL_TXE_SHIFT (23)
1328#define USB0_ENDPTCTRL_TXE (1 << USB0_ENDPTCTRL_TXE_SHIFT)
volatile uint32_t _reserved_0
volatile uint32_t capabilities
volatile usb_transfer_descriptor_t * next_dtd_pointer
volatile uint32_t total_bytes
volatile usb_transfer_descriptor_t * current_dtd_pointer
volatile uint32_t _reserved
volatile usb_transfer_descriptor_t * next_dtd_pointer
volatile uint32_t buffer_pointer_page[5]
volatile uint32_t total_bytes