Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
fusb300_udc.h File Reference
#include <linux/kernel.h>

Go to the source code of this file.

Data Structures

struct  fusb300_ep_info
 
struct  fusb300_request
 
struct  fusb300_ep
 
struct  fusb300
 

Macros

#define __FUSB300_UDC_H_
 
#define FUSB300_OFFSET_GCR   0x00
 
#define FUSB300_OFFSET_GTM   0x04
 
#define FUSB300_OFFSET_DAR   0x08
 
#define FUSB300_OFFSET_CSR   0x0C
 
#define FUSB300_OFFSET_CXPORT   0x10
 
#define FUSB300_OFFSET_EPSET0(n)   (0x20 + (n - 1) * 0x30)
 
#define FUSB300_OFFSET_EPSET1(n)   (0x24 + (n - 1) * 0x30)
 
#define FUSB300_OFFSET_EPSET2(n)   (0x28 + (n - 1) * 0x30)
 
#define FUSB300_OFFSET_EPFFR(n)   (0x2c + (n - 1) * 0x30)
 
#define FUSB300_OFFSET_EPSTRID(n)   (0x40 + (n - 1) * 0x30)
 
#define FUSB300_OFFSET_HSPTM   0x300
 
#define FUSB300_OFFSET_HSCR   0x304
 
#define FUSB300_OFFSET_SSCR0   0x308
 
#define FUSB300_OFFSET_SSCR1   0x30C
 
#define FUSB300_OFFSET_TT   0x310
 
#define FUSB300_OFFSET_DEVNOTF   0x314
 
#define FUSB300_OFFSET_DNC1   0x318
 
#define FUSB300_OFFSET_CS   0x31C
 
#define FUSB300_OFFSET_SOF   0x324
 
#define FUSB300_OFFSET_EFCS   0x328
 
#define FUSB300_OFFSET_IGR0   0x400
 
#define FUSB300_OFFSET_IGR1   0x404
 
#define FUSB300_OFFSET_IGR2   0x408
 
#define FUSB300_OFFSET_IGR3   0x40C
 
#define FUSB300_OFFSET_IGR4   0x410
 
#define FUSB300_OFFSET_IGR5   0x414
 
#define FUSB300_OFFSET_IGER0   0x420
 
#define FUSB300_OFFSET_IGER1   0x424
 
#define FUSB300_OFFSET_IGER2   0x428
 
#define FUSB300_OFFSET_IGER3   0x42C
 
#define FUSB300_OFFSET_IGER4   0x430
 
#define FUSB300_OFFSET_IGER5   0x434
 
#define FUSB300_OFFSET_DMAHMER   0x500
 
#define FUSB300_OFFSET_EPPRDRDY   0x504
 
#define FUSB300_OFFSET_DMAEPMR   0x508
 
#define FUSB300_OFFSET_DMAENR   0x50C
 
#define FUSB300_OFFSET_DMAAPR   0x510
 
#define FUSB300_OFFSET_AHBCR   0x514
 
#define FUSB300_OFFSET_EPPRD_W0(n)   (0x520 + (n - 1) * 0x10)
 
#define FUSB300_OFFSET_EPPRD_W1(n)   (0x524 + (n - 1) * 0x10)
 
#define FUSB300_OFFSET_EPPRD_W2(n)   (0x528 + (n - 1) * 0x10)
 
#define FUSB300_OFFSET_EPRD_PTR(n)   (0x52C + (n - 1) * 0x10)
 
#define FUSB300_OFFSET_BUFDBG_START   0x800
 
#define FUSB300_OFFSET_BUFDBG_END   0xBFC
 
#define FUSB300_OFFSET_EPPORT(n)   (0x1010 + (n - 1) * 0x10)
 
#define FUSB300_GCR_SF_RST   (1 << 8)
 
#define FUSB300_GCR_VBUS_STATUS   (1 << 7)
 
#define FUSB300_GCR_FORCE_HS_SUSP   (1 << 6)
 
#define FUSB300_GCR_SYNC_FIFO1_CLR   (1 << 5)
 
#define FUSB300_GCR_SYNC_FIFO0_CLR   (1 << 4)
 
#define FUSB300_GCR_FIFOCLR   (1 << 3)
 
#define FUSB300_GCR_GLINTEN   (1 << 2)
 
#define FUSB300_GCR_DEVEN_FS   0x3
 
#define FUSB300_GCR_DEVEN_HS   0x2
 
#define FUSB300_GCR_DEVEN_SS   0x1
 
#define FUSB300_GCR_DEVDIS   0x0
 
#define FUSB300_GCR_DEVEN_MSK   0x3
 
#define FUSB300_GTM_TST_DIS_SOFGEN   (1 << 16)
 
#define FUSB300_GTM_TST_CUR_EP_ENTRY(n)   ((n & 0xF) << 12)
 
#define FUSB300_GTM_TST_EP_ENTRY(n)   ((n & 0xF) << 8)
 
#define FUSB300_GTM_TST_EP_NUM(n)   ((n & 0xF) << 4)
 
#define FUSB300_GTM_TST_FIFO_DEG   (1 << 1)
 
#define FUSB300_GTM_TSTMODE   (1 << 0)
 
#define FUSB300_DAR_SETCONFG   (1 << 7)
 
#define FUSB300_DAR_DRVADDR(x)   (x & 0x7F)
 
#define FUSB300_DAR_DRVADDR_MSK   0x7F
 
#define FUSB300_CSR_LEN(x)   ((x & 0xFFFF) << 8)
 
#define FUSB300_CSR_LEN_MSK   (0xFFFF << 8)
 
#define FUSB300_CSR_EMP   (1 << 4)
 
#define FUSB300_CSR_FUL   (1 << 3)
 
#define FUSB300_CSR_CLR   (1 << 2)
 
#define FUSB300_CSR_STL   (1 << 1)
 
#define FUSB300_CSR_DONE   (1 << 0)
 
#define FUSB300_EPSET0_CLRSEQNUM   (1 << 2)
 
#define FUSB300_EPSET0_EPn_TX0BYTE   (1 << 1)
 
#define FUSB300_EPSET0_STL   (1 << 0)
 
#define FUSB300_EPSET1_START_ENTRY(x)   ((x & 0xFF) << 24)
 
#define FUSB300_EPSET1_START_ENTRY_MSK   (0xFF << 24)
 
#define FUSB300_EPSET1_FIFOENTRY(x)   ((x & 0x1F) << 12)
 
#define FUSB300_EPSET1_FIFOENTRY_MSK   (0x1f << 12)
 
#define FUSB300_EPSET1_INTERVAL(x)   ((x & 0x7) << 6)
 
#define FUSB300_EPSET1_BWNUM(x)   ((x & 0x3) << 4)
 
#define FUSB300_EPSET1_TYPEISO   (1 << 2)
 
#define FUSB300_EPSET1_TYPEBLK   (2 << 2)
 
#define FUSB300_EPSET1_TYPEINT   (3 << 2)
 
#define FUSB300_EPSET1_TYPE(x)   ((x & 0x3) << 2)
 
#define FUSB300_EPSET1_TYPE_MSK   (0x3 << 2)
 
#define FUSB300_EPSET1_DIROUT   (0 << 1)
 
#define FUSB300_EPSET1_DIRIN   (1 << 1)
 
#define FUSB300_EPSET1_DIR(x)   ((x & 0x1) << 1)
 
#define FUSB300_EPSET1_DIRIN   (1 << 1)
 
#define FUSB300_EPSET1_DIR_MSK   ((0x1) << 1)
 
#define FUSB300_EPSET1_ACTDIS   0
 
#define FUSB300_EPSET1_ACTEN   1
 
#define FUSB300_EPSET2_ADDROFS(x)   ((x & 0x7FFF) << 16)
 
#define FUSB300_EPSET2_ADDROFS_MSK   (0x7fff << 16)
 
#define FUSB300_EPSET2_MPS(x)   (x & 0x7FF)
 
#define FUSB300_EPSET2_MPS_MSK   0x7FF
 
#define FUSB300_FFR_RST   (1 << 31)
 
#define FUSB300_FF_FUL   (1 << 30)
 
#define FUSB300_FF_EMPTY   (1 << 29)
 
#define FUSB300_FFR_BYCNT   0x1FFFF
 
#define FUSB300_STRID_STREN   (1 << 16)
 
#define FUSB300_STRID_STRID(x)   (x & 0xFFFF)
 
#define FUSB300_HSPTM_TSTPKDONE   (1 << 4)
 
#define FUSB300_HSPTM_TSTPKT   (1 << 3)
 
#define FUSB300_HSPTM_TSTSET0NAK   (1 << 2)
 
#define FUSB300_HSPTM_TSTKSTA   (1 << 1)
 
#define FUSB300_HSPTM_TSTJSTA   (1 << 0)
 
#define FUSB300_HSCR_HS_LPM_PERMIT   (1 << 8)
 
#define FUSB300_HSCR_HS_LPM_RMWKUP   (1 << 7)
 
#define FUSB300_HSCR_CAP_LPM_RMWKUP   (1 << 6)
 
#define FUSB300_HSCR_HS_GOSUSP   (1 << 5)
 
#define FUSB300_HSCR_HS_GORMWKU   (1 << 4)
 
#define FUSB300_HSCR_CAP_RMWKUP   (1 << 3)
 
#define FUSB300_HSCR_IDLECNT_0MS   0
 
#define FUSB300_HSCR_IDLECNT_1MS   1
 
#define FUSB300_HSCR_IDLECNT_2MS   2
 
#define FUSB300_HSCR_IDLECNT_3MS   3
 
#define FUSB300_HSCR_IDLECNT_4MS   4
 
#define FUSB300_HSCR_IDLECNT_5MS   5
 
#define FUSB300_HSCR_IDLECNT_6MS   6
 
#define FUSB300_HSCR_IDLECNT_7MS   7
 
#define FUSB300_SSCR0_MAX_INTERVAL(x)   ((x & 0x7) << 4)
 
#define FUSB300_SSCR0_U2_FUN_EN   (1 << 1)
 
#define FUSB300_SSCR0_U1_FUN_EN   (1 << 0)
 
#define FUSB300_SSCR1_GO_U3_DONE   (1 << 8)
 
#define FUSB300_SSCR1_TXDEEMPH_LEVEL   (1 << 7)
 
#define FUSB300_SSCR1_DIS_SCRMB   (1 << 6)
 
#define FUSB300_SSCR1_FORCE_RECOVERY   (1 << 5)
 
#define FUSB300_SSCR1_U3_WAKEUP_EN   (1 << 4)
 
#define FUSB300_SSCR1_U2_EXIT_EN   (1 << 3)
 
#define FUSB300_SSCR1_U1_EXIT_EN   (1 << 2)
 
#define FUSB300_SSCR1_U2_ENTRY_EN   (1 << 1)
 
#define FUSB300_SSCR1_U1_ENTRY_EN   (1 << 0)
 
#define FUSB300_SSCR2_SS_TX_SWING   (1 << 25)
 
#define FUSB300_SSCR2_FORCE_LINKPM_ACCEPT   (1 << 24)
 
#define FUSB300_SSCR2_U2_INACT_TIMEOUT(x)   ((x & 0xFF) << 16)
 
#define FUSB300_SSCR2_U1TIMEOUT(x)   ((x & 0xFF) << 8)
 
#define FUSB300_SSCR2_U2TIMEOUT(x)   (x & 0xFF)
 
#define FUSB300_DEVNOTF_CONTEXT0(x)   ((x & 0xFFFFFF) << 8)
 
#define FUSB300_DEVNOTF_TYPE_DIS   0
 
#define FUSB300_DEVNOTF_TYPE_FUNCWAKE   1
 
#define FUSB300_DEVNOTF_TYPE_LTM   2
 
#define FUSB300_DEVNOTF_TYPE_BUSINT_ADJMSG   3
 
#define FUSB300_BFMARB_ARB_M1   (1 << 3)
 
#define FUSB300_BFMARB_ARB_M0   (1 << 2)
 
#define FUSB300_BFMARB_ARB_S1   (1 << 1)
 
#define FUSB300_BFMARB_ARB_S0   1
 
#define FUSB300_VSIC_VCTLOAD_N   (1 << 8)
 
#define FUSB300_VSIC_VCTL(x)   (x & 0x3F)
 
#define FUSB300_SOF_MASK_TIMER_HS   0x044c
 
#define FUSB300_SOF_MASK_TIMER_FS   0x2710
 
#define FUSB300_EFCS_PM_STATE_U3   3
 
#define FUSB300_EFCS_PM_STATE_U2   2
 
#define FUSB300_EFCS_PM_STATE_U1   1
 
#define FUSB300_EFCS_PM_STATE_U0   0
 
#define FUSB300_IGR0_EP15_PRD_INT   (1 << 31)
 
#define FUSB300_IGR0_EP14_PRD_INT   (1 << 30)
 
#define FUSB300_IGR0_EP13_PRD_INT   (1 << 29)
 
#define FUSB300_IGR0_EP12_PRD_INT   (1 << 28)
 
#define FUSB300_IGR0_EP11_PRD_INT   (1 << 27)
 
#define FUSB300_IGR0_EP10_PRD_INT   (1 << 26)
 
#define FUSB300_IGR0_EP9_PRD_INT   (1 << 25)
 
#define FUSB300_IGR0_EP8_PRD_INT   (1 << 24)
 
#define FUSB300_IGR0_EP7_PRD_INT   (1 << 23)
 
#define FUSB300_IGR0_EP6_PRD_INT   (1 << 22)
 
#define FUSB300_IGR0_EP5_PRD_INT   (1 << 21)
 
#define FUSB300_IGR0_EP4_PRD_INT   (1 << 20)
 
#define FUSB300_IGR0_EP3_PRD_INT   (1 << 19)
 
#define FUSB300_IGR0_EP2_PRD_INT   (1 << 18)
 
#define FUSB300_IGR0_EP1_PRD_INT   (1 << 17)
 
#define FUSB300_IGR0_EPn_PRD_INT(n)   (1 << (n + 16))
 
#define FUSB300_IGR0_EP15_FIFO_INT   (1 << 15)
 
#define FUSB300_IGR0_EP14_FIFO_INT   (1 << 14)
 
#define FUSB300_IGR0_EP13_FIFO_INT   (1 << 13)
 
#define FUSB300_IGR0_EP12_FIFO_INT   (1 << 12)
 
#define FUSB300_IGR0_EP11_FIFO_INT   (1 << 11)
 
#define FUSB300_IGR0_EP10_FIFO_INT   (1 << 10)
 
#define FUSB300_IGR0_EP9_FIFO_INT   (1 << 9)
 
#define FUSB300_IGR0_EP8_FIFO_INT   (1 << 8)
 
#define FUSB300_IGR0_EP7_FIFO_INT   (1 << 7)
 
#define FUSB300_IGR0_EP6_FIFO_INT   (1 << 6)
 
#define FUSB300_IGR0_EP5_FIFO_INT   (1 << 5)
 
#define FUSB300_IGR0_EP4_FIFO_INT   (1 << 4)
 
#define FUSB300_IGR0_EP3_FIFO_INT   (1 << 3)
 
#define FUSB300_IGR0_EP2_FIFO_INT   (1 << 2)
 
#define FUSB300_IGR0_EP1_FIFO_INT   (1 << 1)
 
#define FUSB300_IGR0_EPn_FIFO_INT(n)   (1 << n)
 
#define FUSB300_IGR1_INTGRP5   (1 << 31)
 
#define FUSB300_IGR1_VBUS_CHG_INT   (1 << 30)
 
#define FUSB300_IGR1_SYNF1_EMPTY_INT   (1 << 29)
 
#define FUSB300_IGR1_SYNF0_EMPTY_INT   (1 << 28)
 
#define FUSB300_IGR1_U3_EXIT_FAIL_INT   (1 << 27)
 
#define FUSB300_IGR1_U2_EXIT_FAIL_INT   (1 << 26)
 
#define FUSB300_IGR1_U1_EXIT_FAIL_INT   (1 << 25)
 
#define FUSB300_IGR1_U2_ENTRY_FAIL_INT   (1 << 24)
 
#define FUSB300_IGR1_U1_ENTRY_FAIL_INT   (1 << 23)
 
#define FUSB300_IGR1_U3_EXIT_INT   (1 << 22)
 
#define FUSB300_IGR1_U2_EXIT_INT   (1 << 21)
 
#define FUSB300_IGR1_U1_EXIT_INT   (1 << 20)
 
#define FUSB300_IGR1_U3_ENTRY_INT   (1 << 19)
 
#define FUSB300_IGR1_U2_ENTRY_INT   (1 << 18)
 
#define FUSB300_IGR1_U1_ENTRY_INT   (1 << 17)
 
#define FUSB300_IGR1_HOT_RST_INT   (1 << 16)
 
#define FUSB300_IGR1_WARM_RST_INT   (1 << 15)
 
#define FUSB300_IGR1_RESM_INT   (1 << 14)
 
#define FUSB300_IGR1_SUSP_INT   (1 << 13)
 
#define FUSB300_IGR1_HS_LPM_INT   (1 << 12)
 
#define FUSB300_IGR1_USBRST_INT   (1 << 11)
 
#define FUSB300_IGR1_DEV_MODE_CHG_INT   (1 << 9)
 
#define FUSB300_IGR1_CX_COMABT_INT   (1 << 8)
 
#define FUSB300_IGR1_CX_COMFAIL_INT   (1 << 7)
 
#define FUSB300_IGR1_CX_CMDEND_INT   (1 << 6)
 
#define FUSB300_IGR1_CX_OUT_INT   (1 << 5)
 
#define FUSB300_IGR1_CX_IN_INT   (1 << 4)
 
#define FUSB300_IGR1_CX_SETUP_INT   (1 << 3)
 
#define FUSB300_IGR1_INTGRP4   (1 << 2)
 
#define FUSB300_IGR1_INTGRP3   (1 << 1)
 
#define FUSB300_IGR1_INTGRP2   (1 << 0)
 
#define FUSB300_IGR2_EP6_STR_ACCEPT_INT   (1 << 29)
 
#define FUSB300_IGR2_EP6_STR_RESUME_INT   (1 << 28)
 
#define FUSB300_IGR2_EP6_STR_REQ_INT   (1 << 27)
 
#define FUSB300_IGR2_EP6_STR_NOTRDY_INT   (1 << 26)
 
#define FUSB300_IGR2_EP6_STR_PRIME_INT   (1 << 25)
 
#define FUSB300_IGR2_EP5_STR_ACCEPT_INT   (1 << 24)
 
#define FUSB300_IGR2_EP5_STR_RESUME_INT   (1 << 23)
 
#define FUSB300_IGR2_EP5_STR_REQ_INT   (1 << 22)
 
#define FUSB300_IGR2_EP5_STR_NOTRDY_INT   (1 << 21)
 
#define FUSB300_IGR2_EP5_STR_PRIME_INT   (1 << 20)
 
#define FUSB300_IGR2_EP4_STR_ACCEPT_INT   (1 << 19)
 
#define FUSB300_IGR2_EP4_STR_RESUME_INT   (1 << 18)
 
#define FUSB300_IGR2_EP4_STR_REQ_INT   (1 << 17)
 
#define FUSB300_IGR2_EP4_STR_NOTRDY_INT   (1 << 16)
 
#define FUSB300_IGR2_EP4_STR_PRIME_INT   (1 << 15)
 
#define FUSB300_IGR2_EP3_STR_ACCEPT_INT   (1 << 14)
 
#define FUSB300_IGR2_EP3_STR_RESUME_INT   (1 << 13)
 
#define FUSB300_IGR2_EP3_STR_REQ_INT   (1 << 12)
 
#define FUSB300_IGR2_EP3_STR_NOTRDY_INT   (1 << 11)
 
#define FUSB300_IGR2_EP3_STR_PRIME_INT   (1 << 10)
 
#define FUSB300_IGR2_EP2_STR_ACCEPT_INT   (1 << 9)
 
#define FUSB300_IGR2_EP2_STR_RESUME_INT   (1 << 8)
 
#define FUSB300_IGR2_EP2_STR_REQ_INT   (1 << 7)
 
#define FUSB300_IGR2_EP2_STR_NOTRDY_INT   (1 << 6)
 
#define FUSB300_IGR2_EP2_STR_PRIME_INT   (1 << 5)
 
#define FUSB300_IGR2_EP1_STR_ACCEPT_INT   (1 << 4)
 
#define FUSB300_IGR2_EP1_STR_RESUME_INT   (1 << 3)
 
#define FUSB300_IGR2_EP1_STR_REQ_INT   (1 << 2)
 
#define FUSB300_IGR2_EP1_STR_NOTRDY_INT   (1 << 1)
 
#define FUSB300_IGR2_EP1_STR_PRIME_INT   (1 << 0)
 
#define FUSB300_IGR2_EP_STR_ACCEPT_INT(n)   (1 << (5 * n - 1))
 
#define FUSB300_IGR2_EP_STR_RESUME_INT(n)   (1 << (5 * n - 2))
 
#define FUSB300_IGR2_EP_STR_REQ_INT(n)   (1 << (5 * n - 3))
 
#define FUSB300_IGR2_EP_STR_NOTRDY_INT(n)   (1 << (5 * n - 4))
 
#define FUSB300_IGR2_EP_STR_PRIME_INT(n)   (1 << (5 * n - 5))
 
#define FUSB300_IGR3_EP12_STR_ACCEPT_INT   (1 << 29)
 
#define FUSB300_IGR3_EP12_STR_RESUME_INT   (1 << 28)
 
#define FUSB300_IGR3_EP12_STR_REQ_INT   (1 << 27)
 
#define FUSB300_IGR3_EP12_STR_NOTRDY_INT   (1 << 26)
 
#define FUSB300_IGR3_EP12_STR_PRIME_INT   (1 << 25)
 
#define FUSB300_IGR3_EP11_STR_ACCEPT_INT   (1 << 24)
 
#define FUSB300_IGR3_EP11_STR_RESUME_INT   (1 << 23)
 
#define FUSB300_IGR3_EP11_STR_REQ_INT   (1 << 22)
 
#define FUSB300_IGR3_EP11_STR_NOTRDY_INT   (1 << 21)
 
#define FUSB300_IGR3_EP11_STR_PRIME_INT   (1 << 20)
 
#define FUSB300_IGR3_EP10_STR_ACCEPT_INT   (1 << 19)
 
#define FUSB300_IGR3_EP10_STR_RESUME_INT   (1 << 18)
 
#define FUSB300_IGR3_EP10_STR_REQ_INT   (1 << 17)
 
#define FUSB300_IGR3_EP10_STR_NOTRDY_INT   (1 << 16)
 
#define FUSB300_IGR3_EP10_STR_PRIME_INT   (1 << 15)
 
#define FUSB300_IGR3_EP9_STR_ACCEPT_INT   (1 << 14)
 
#define FUSB300_IGR3_EP9_STR_RESUME_INT   (1 << 13)
 
#define FUSB300_IGR3_EP9_STR_REQ_INT   (1 << 12)
 
#define FUSB300_IGR3_EP9_STR_NOTRDY_INT   (1 << 11)
 
#define FUSB300_IGR3_EP9_STR_PRIME_INT   (1 << 10)
 
#define FUSB300_IGR3_EP8_STR_ACCEPT_INT   (1 << 9)
 
#define FUSB300_IGR3_EP8_STR_RESUME_INT   (1 << 8)
 
#define FUSB300_IGR3_EP8_STR_REQ_INT   (1 << 7)
 
#define FUSB300_IGR3_EP8_STR_NOTRDY_INT   (1 << 6)
 
#define FUSB300_IGR3_EP8_STR_PRIME_INT   (1 << 5)
 
#define FUSB300_IGR3_EP7_STR_ACCEPT_INT   (1 << 4)
 
#define FUSB300_IGR3_EP7_STR_RESUME_INT   (1 << 3)
 
#define FUSB300_IGR3_EP7_STR_REQ_INT   (1 << 2)
 
#define FUSB300_IGR3_EP7_STR_NOTRDY_INT   (1 << 1)
 
#define FUSB300_IGR3_EP7_STR_PRIME_INT   (1 << 0)
 
#define FUSB300_IGR3_EP_STR_ACCEPT_INT(n)   (1 << (5 * (n - 6) - 1))
 
#define FUSB300_IGR3_EP_STR_RESUME_INT(n)   (1 << (5 * (n - 6) - 2))
 
#define FUSB300_IGR3_EP_STR_REQ_INT(n)   (1 << (5 * (n - 6) - 3))
 
#define FUSB300_IGR3_EP_STR_NOTRDY_INT(n)   (1 << (5 * (n - 6) - 4))
 
#define FUSB300_IGR3_EP_STR_PRIME_INT(n)   (1 << (5 * (n - 6) - 5))
 
#define FUSB300_IGR4_EP15_RX0_INT   (1 << 31)
 
#define FUSB300_IGR4_EP14_RX0_INT   (1 << 30)
 
#define FUSB300_IGR4_EP13_RX0_INT   (1 << 29)
 
#define FUSB300_IGR4_EP12_RX0_INT   (1 << 28)
 
#define FUSB300_IGR4_EP11_RX0_INT   (1 << 27)
 
#define FUSB300_IGR4_EP10_RX0_INT   (1 << 26)
 
#define FUSB300_IGR4_EP9_RX0_INT   (1 << 25)
 
#define FUSB300_IGR4_EP8_RX0_INT   (1 << 24)
 
#define FUSB300_IGR4_EP7_RX0_INT   (1 << 23)
 
#define FUSB300_IGR4_EP6_RX0_INT   (1 << 22)
 
#define FUSB300_IGR4_EP5_RX0_INT   (1 << 21)
 
#define FUSB300_IGR4_EP4_RX0_INT   (1 << 20)
 
#define FUSB300_IGR4_EP3_RX0_INT   (1 << 19)
 
#define FUSB300_IGR4_EP2_RX0_INT   (1 << 18)
 
#define FUSB300_IGR4_EP1_RX0_INT   (1 << 17)
 
#define FUSB300_IGR4_EP_RX0_INT(x)   (1 << (x + 16))
 
#define FUSB300_IGR4_EP15_STR_ACCEPT_INT   (1 << 14)
 
#define FUSB300_IGR4_EP15_STR_RESUME_INT   (1 << 13)
 
#define FUSB300_IGR4_EP15_STR_REQ_INT   (1 << 12)
 
#define FUSB300_IGR4_EP15_STR_NOTRDY_INT   (1 << 11)
 
#define FUSB300_IGR4_EP15_STR_PRIME_INT   (1 << 10)
 
#define FUSB300_IGR4_EP14_STR_ACCEPT_INT   (1 << 9)
 
#define FUSB300_IGR4_EP14_STR_RESUME_INT   (1 << 8)
 
#define FUSB300_IGR4_EP14_STR_REQ_INT   (1 << 7)
 
#define FUSB300_IGR4_EP14_STR_NOTRDY_INT   (1 << 6)
 
#define FUSB300_IGR4_EP14_STR_PRIME_INT   (1 << 5)
 
#define FUSB300_IGR4_EP13_STR_ACCEPT_INT   (1 << 4)
 
#define FUSB300_IGR4_EP13_STR_RESUME_INT   (1 << 3)
 
#define FUSB300_IGR4_EP13_STR_REQ_INT   (1 << 2)
 
#define FUSB300_IGR4_EP13_STR_NOTRDY_INT   (1 << 1)
 
#define FUSB300_IGR4_EP13_STR_PRIME_INT   (1 << 0)
 
#define FUSB300_IGR4_EP_STR_ACCEPT_INT(n)   (1 << (5 * (n - 12) - 1))
 
#define FUSB300_IGR4_EP_STR_RESUME_INT(n)   (1 << (5 * (n - 12) - 2))
 
#define FUSB300_IGR4_EP_STR_REQ_INT(n)   (1 << (5 * (n - 12) - 3))
 
#define FUSB300_IGR4_EP_STR_NOTRDY_INT(n)   (1 << (5 * (n - 12) - 4))
 
#define FUSB300_IGR4_EP_STR_PRIME_INT(n)   (1 << (5 * (n - 12) - 5))
 
#define FUSB300_IGR5_EP_STL_INT(n)   (1 << n)
 
#define FUSB300_IGER0_EEP15_PRD_INT   (1 << 31)
 
#define FUSB300_IGER0_EEP14_PRD_INT   (1 << 30)
 
#define FUSB300_IGER0_EEP13_PRD_INT   (1 << 29)
 
#define FUSB300_IGER0_EEP12_PRD_INT   (1 << 28)
 
#define FUSB300_IGER0_EEP11_PRD_INT   (1 << 27)
 
#define FUSB300_IGER0_EEP10_PRD_INT   (1 << 26)
 
#define FUSB300_IGER0_EEP9_PRD_INT   (1 << 25)
 
#define FUSB300_IGER0_EP8_PRD_INT   (1 << 24)
 
#define FUSB300_IGER0_EEP7_PRD_INT   (1 << 23)
 
#define FUSB300_IGER0_EEP6_PRD_INT   (1 << 22)
 
#define FUSB300_IGER0_EEP5_PRD_INT   (1 << 21)
 
#define FUSB300_IGER0_EEP4_PRD_INT   (1 << 20)
 
#define FUSB300_IGER0_EEP3_PRD_INT   (1 << 19)
 
#define FUSB300_IGER0_EEP2_PRD_INT   (1 << 18)
 
#define FUSB300_IGER0_EEP1_PRD_INT   (1 << 17)
 
#define FUSB300_IGER0_EEPn_PRD_INT(n)   (1 << (n + 16))
 
#define FUSB300_IGER0_EEP15_FIFO_INT   (1 << 15)
 
#define FUSB300_IGER0_EEP14_FIFO_INT   (1 << 14)
 
#define FUSB300_IGER0_EEP13_FIFO_INT   (1 << 13)
 
#define FUSB300_IGER0_EEP12_FIFO_INT   (1 << 12)
 
#define FUSB300_IGER0_EEP11_FIFO_INT   (1 << 11)
 
#define FUSB300_IGER0_EEP10_FIFO_INT   (1 << 10)
 
#define FUSB300_IGER0_EEP9_FIFO_INT   (1 << 9)
 
#define FUSB300_IGER0_EEP8_FIFO_INT   (1 << 8)
 
#define FUSB300_IGER0_EEP7_FIFO_INT   (1 << 7)
 
#define FUSB300_IGER0_EEP6_FIFO_INT   (1 << 6)
 
#define FUSB300_IGER0_EEP5_FIFO_INT   (1 << 5)
 
#define FUSB300_IGER0_EEP4_FIFO_INT   (1 << 4)
 
#define FUSB300_IGER0_EEP3_FIFO_INT   (1 << 3)
 
#define FUSB300_IGER0_EEP2_FIFO_INT   (1 << 2)
 
#define FUSB300_IGER0_EEP1_FIFO_INT   (1 << 1)
 
#define FUSB300_IGER0_EEPn_FIFO_INT(n)   (1 << n)
 
#define FUSB300_IGER1_EINT_GRP5   (1 << 31)
 
#define FUSB300_IGER1_VBUS_CHG_INT   (1 << 30)
 
#define FUSB300_IGER1_SYNF1_EMPTY_INT   (1 << 29)
 
#define FUSB300_IGER1_SYNF0_EMPTY_INT   (1 << 28)
 
#define FUSB300_IGER1_U3_EXIT_FAIL_INT   (1 << 27)
 
#define FUSB300_IGER1_U2_EXIT_FAIL_INT   (1 << 26)
 
#define FUSB300_IGER1_U1_EXIT_FAIL_INT   (1 << 25)
 
#define FUSB300_IGER1_U2_ENTRY_FAIL_INT   (1 << 24)
 
#define FUSB300_IGER1_U1_ENTRY_FAIL_INT   (1 << 23)
 
#define FUSB300_IGER1_U3_EXIT_INT   (1 << 22)
 
#define FUSB300_IGER1_U2_EXIT_INT   (1 << 21)
 
#define FUSB300_IGER1_U1_EXIT_INT   (1 << 20)
 
#define FUSB300_IGER1_U3_ENTRY_INT   (1 << 19)
 
#define FUSB300_IGER1_U2_ENTRY_INT   (1 << 18)
 
#define FUSB300_IGER1_U1_ENTRY_INT   (1 << 17)
 
#define FUSB300_IGER1_HOT_RST_INT   (1 << 16)
 
#define FUSB300_IGER1_WARM_RST_INT   (1 << 15)
 
#define FUSB300_IGER1_RESM_INT   (1 << 14)
 
#define FUSB300_IGER1_SUSP_INT   (1 << 13)
 
#define FUSB300_IGER1_LPM_INT   (1 << 12)
 
#define FUSB300_IGER1_HS_RST_INT   (1 << 11)
 
#define FUSB300_IGER1_EDEV_MODE_CHG_INT   (1 << 9)
 
#define FUSB300_IGER1_CX_COMABT_INT   (1 << 8)
 
#define FUSB300_IGER1_CX_COMFAIL_INT   (1 << 7)
 
#define FUSB300_IGER1_CX_CMDEND_INT   (1 << 6)
 
#define FUSB300_IGER1_CX_OUT_INT   (1 << 5)
 
#define FUSB300_IGER1_CX_IN_INT   (1 << 4)
 
#define FUSB300_IGER1_CX_SETUP_INT   (1 << 3)
 
#define FUSB300_IGER1_INTGRP4   (1 << 2)
 
#define FUSB300_IGER1_INTGRP3   (1 << 1)
 
#define FUSB300_IGER1_INTGRP2   (1 << 0)
 
#define FUSB300_IGER2_EEP_STR_ACCEPT_INT(n)   (1 << (5 * n - 1))
 
#define FUSB300_IGER2_EEP_STR_RESUME_INT(n)   (1 << (5 * n - 2))
 
#define FUSB300_IGER2_EEP_STR_REQ_INT(n)   (1 << (5 * n - 3))
 
#define FUSB300_IGER2_EEP_STR_NOTRDY_INT(n)   (1 << (5 * n - 4))
 
#define FUSB300_IGER2_EEP_STR_PRIME_INT(n)   (1 << (5 * n - 5))
 
#define FUSB300_IGER3_EEP_STR_ACCEPT_INT(n)   (1 << (5 * (n - 6) - 1))
 
#define FUSB300_IGER3_EEP_STR_RESUME_INT(n)   (1 << (5 * (n - 6) - 2))
 
#define FUSB300_IGER3_EEP_STR_REQ_INT(n)   (1 << (5 * (n - 6) - 3))
 
#define FUSB300_IGER3_EEP_STR_NOTRDY_INT(n)   (1 << (5 * (n - 6) - 4))
 
#define FUSB300_IGER3_EEP_STR_PRIME_INT(n)   (1 << (5 * (n - 6) - 5))
 
#define FUSB300_IGER4_EEP_RX0_INT(n)   (1 << (n + 16))
 
#define FUSB300_IGER4_EEP_STR_ACCEPT_INT(n)   (1 << (5 * (n - 6) - 1))
 
#define FUSB300_IGER4_EEP_STR_RESUME_INT(n)   (1 << (5 * (n - 6) - 2))
 
#define FUSB300_IGER4_EEP_STR_REQ_INT(n)   (1 << (5 * (n - 6) - 3))
 
#define FUSB300_IGER4_EEP_STR_NOTRDY_INT(n)   (1 << (5 * (n - 6) - 4))
 
#define FUSB300_IGER4_EEP_STR_PRIME_INT(n)   (1 << (5 * (n - 6) - 5))
 
#define FUSB300_EPPRDR_EP15_PRD_RDY   (1 << 15)
 
#define FUSB300_EPPRDR_EP14_PRD_RDY   (1 << 14)
 
#define FUSB300_EPPRDR_EP13_PRD_RDY   (1 << 13)
 
#define FUSB300_EPPRDR_EP12_PRD_RDY   (1 << 12)
 
#define FUSB300_EPPRDR_EP11_PRD_RDY   (1 << 11)
 
#define FUSB300_EPPRDR_EP10_PRD_RDY   (1 << 10)
 
#define FUSB300_EPPRDR_EP9_PRD_RDY   (1 << 9)
 
#define FUSB300_EPPRDR_EP8_PRD_RDY   (1 << 8)
 
#define FUSB300_EPPRDR_EP7_PRD_RDY   (1 << 7)
 
#define FUSB300_EPPRDR_EP6_PRD_RDY   (1 << 6)
 
#define FUSB300_EPPRDR_EP5_PRD_RDY   (1 << 5)
 
#define FUSB300_EPPRDR_EP4_PRD_RDY   (1 << 4)
 
#define FUSB300_EPPRDR_EP3_PRD_RDY   (1 << 3)
 
#define FUSB300_EPPRDR_EP2_PRD_RDY   (1 << 2)
 
#define FUSB300_EPPRDR_EP1_PRD_RDY   (1 << 1)
 
#define FUSB300_EPPRDR_EP_PRD_RDY(n)   (1 << n)
 
#define FUSB300_AHBBCR_S1_SPLIT_ON   (1 << 17)
 
#define FUSB300_AHBBCR_S0_SPLIT_ON   (1 << 16)
 
#define FUSB300_AHBBCR_S1_1entry   (0 << 12)
 
#define FUSB300_AHBBCR_S1_4entry   (3 << 12)
 
#define FUSB300_AHBBCR_S1_8entry   (5 << 12)
 
#define FUSB300_AHBBCR_S1_16entry   (7 << 12)
 
#define FUSB300_AHBBCR_S0_1entry   (0 << 8)
 
#define FUSB300_AHBBCR_S0_4entry   (3 << 8)
 
#define FUSB300_AHBBCR_S0_8entry   (5 << 8)
 
#define FUSB300_AHBBCR_S0_16entry   (7 << 8)
 
#define FUSB300_AHBBCR_M1_BURST_SINGLE   (0 << 4)
 
#define FUSB300_AHBBCR_M1_BURST_INCR   (1 << 4)
 
#define FUSB300_AHBBCR_M1_BURST_INCR4   (3 << 4)
 
#define FUSB300_AHBBCR_M1_BURST_INCR8   (5 << 4)
 
#define FUSB300_AHBBCR_M1_BURST_INCR16   (7 << 4)
 
#define FUSB300_AHBBCR_M0_BURST_SINGLE   0
 
#define FUSB300_AHBBCR_M0_BURST_INCR   1
 
#define FUSB300_AHBBCR_M0_BURST_INCR4   3
 
#define FUSB300_AHBBCR_M0_BURST_INCR8   5
 
#define FUSB300_AHBBCR_M0_BURST_INCR16   7
 
#define FUSB300_IGER5_EEP_STL_INT(n)   (1 << n)
 
#define FUSB300_EPPRD0_M   (1 << 30)
 
#define FUSB300_EPPRD0_O   (1 << 29)
 
#define FUSB300_EPPRD0_F   (1 << 28)
 
#define FUSB300_EPPRD0_I   (1 << 27)
 
#define FUSB300_EPPRD0_A   (1 << 26)
 
#define FUSB300_EPPRD0_L   (1 << 25)
 
#define FUSB300_EPPRD0_H   (1 << 24)
 
#define FUSB300_EPPRD0_BTC(n)   (n & 0xFFFFFF)
 
#define FUSB300_MAX_NUM_EP   16
 
#define FUSB300_FIFO_ENTRY_NUM   8
 
#define FUSB300_MAX_FIFO_ENTRY   8
 
#define SS_CTL_MAX_PACKET_SIZE   0x200
 
#define SS_BULK_MAX_PACKET_SIZE   0x400
 
#define SS_INT_MAX_PACKET_SIZE   0x400
 
#define SS_ISO_MAX_PACKET_SIZE   0x400
 
#define HS_BULK_MAX_PACKET_SIZE   0x200
 
#define HS_CTL_MAX_PACKET_SIZE   0x40
 
#define HS_INT_MAX_PACKET_SIZE   0x400
 
#define HS_ISO_MAX_PACKET_SIZE   0x400
 

Macro Definition Documentation

#define __FUSB300_UDC_H_

Definition at line 15 of file fusb300_udc.h.

#define FUSB300_AHBBCR_M0_BURST_INCR   1

Definition at line 591 of file fusb300_udc.h.

#define FUSB300_AHBBCR_M0_BURST_INCR16   7

Definition at line 594 of file fusb300_udc.h.

#define FUSB300_AHBBCR_M0_BURST_INCR4   3

Definition at line 592 of file fusb300_udc.h.

#define FUSB300_AHBBCR_M0_BURST_INCR8   5

Definition at line 593 of file fusb300_udc.h.

#define FUSB300_AHBBCR_M0_BURST_SINGLE   0

Definition at line 590 of file fusb300_udc.h.

#define FUSB300_AHBBCR_M1_BURST_INCR   (1 << 4)

Definition at line 586 of file fusb300_udc.h.

#define FUSB300_AHBBCR_M1_BURST_INCR16   (7 << 4)

Definition at line 589 of file fusb300_udc.h.

#define FUSB300_AHBBCR_M1_BURST_INCR4   (3 << 4)

Definition at line 587 of file fusb300_udc.h.

#define FUSB300_AHBBCR_M1_BURST_INCR8   (5 << 4)

Definition at line 588 of file fusb300_udc.h.

#define FUSB300_AHBBCR_M1_BURST_SINGLE   (0 << 4)

Definition at line 585 of file fusb300_udc.h.

#define FUSB300_AHBBCR_S0_16entry   (7 << 8)

Definition at line 584 of file fusb300_udc.h.

#define FUSB300_AHBBCR_S0_1entry   (0 << 8)

Definition at line 581 of file fusb300_udc.h.

#define FUSB300_AHBBCR_S0_4entry   (3 << 8)

Definition at line 582 of file fusb300_udc.h.

#define FUSB300_AHBBCR_S0_8entry   (5 << 8)

Definition at line 583 of file fusb300_udc.h.

#define FUSB300_AHBBCR_S0_SPLIT_ON   (1 << 16)

Definition at line 576 of file fusb300_udc.h.

#define FUSB300_AHBBCR_S1_16entry   (7 << 12)

Definition at line 580 of file fusb300_udc.h.

#define FUSB300_AHBBCR_S1_1entry   (0 << 12)

Definition at line 577 of file fusb300_udc.h.

#define FUSB300_AHBBCR_S1_4entry   (3 << 12)

Definition at line 578 of file fusb300_udc.h.

#define FUSB300_AHBBCR_S1_8entry   (5 << 12)

Definition at line 579 of file fusb300_udc.h.

#define FUSB300_AHBBCR_S1_SPLIT_ON   (1 << 17)

Definition at line 575 of file fusb300_udc.h.

#define FUSB300_BFMARB_ARB_M0   (1 << 2)

Definition at line 231 of file fusb300_udc.h.

#define FUSB300_BFMARB_ARB_M1   (1 << 3)

Definition at line 230 of file fusb300_udc.h.

#define FUSB300_BFMARB_ARB_S0   1

Definition at line 233 of file fusb300_udc.h.

#define FUSB300_BFMARB_ARB_S1   (1 << 1)

Definition at line 232 of file fusb300_udc.h.

#define FUSB300_CSR_CLR   (1 << 2)

Definition at line 107 of file fusb300_udc.h.

#define FUSB300_CSR_DONE   (1 << 0)

Definition at line 109 of file fusb300_udc.h.

#define FUSB300_CSR_EMP   (1 << 4)

Definition at line 105 of file fusb300_udc.h.

#define FUSB300_CSR_FUL   (1 << 3)

Definition at line 106 of file fusb300_udc.h.

#define FUSB300_CSR_LEN (   x)    ((x & 0xFFFF) << 8)

Definition at line 103 of file fusb300_udc.h.

#define FUSB300_CSR_LEN_MSK   (0xFFFF << 8)

Definition at line 104 of file fusb300_udc.h.

#define FUSB300_CSR_STL   (1 << 1)

Definition at line 108 of file fusb300_udc.h.

#define FUSB300_DAR_DRVADDR (   x)    (x & 0x7F)

Definition at line 96 of file fusb300_udc.h.

#define FUSB300_DAR_DRVADDR_MSK   0x7F

Definition at line 97 of file fusb300_udc.h.

#define FUSB300_DAR_SETCONFG   (1 << 7)

Definition at line 95 of file fusb300_udc.h.

#define FUSB300_DEVNOTF_CONTEXT0 (   x)    ((x & 0xFFFFFF) << 8)

Definition at line 221 of file fusb300_udc.h.

#define FUSB300_DEVNOTF_TYPE_BUSINT_ADJMSG   3

Definition at line 225 of file fusb300_udc.h.

#define FUSB300_DEVNOTF_TYPE_DIS   0

Definition at line 222 of file fusb300_udc.h.

#define FUSB300_DEVNOTF_TYPE_FUNCWAKE   1

Definition at line 223 of file fusb300_udc.h.

#define FUSB300_DEVNOTF_TYPE_LTM   2

Definition at line 224 of file fusb300_udc.h.

#define FUSB300_EFCS_PM_STATE_U0   0

Definition at line 253 of file fusb300_udc.h.

#define FUSB300_EFCS_PM_STATE_U1   1

Definition at line 252 of file fusb300_udc.h.

#define FUSB300_EFCS_PM_STATE_U2   2

Definition at line 251 of file fusb300_udc.h.

#define FUSB300_EFCS_PM_STATE_U3   3

Definition at line 250 of file fusb300_udc.h.

#define FUSB300_EPPRD0_A   (1 << 26)

Definition at line 603 of file fusb300_udc.h.

#define FUSB300_EPPRD0_BTC (   n)    (n & 0xFFFFFF)

Definition at line 607 of file fusb300_udc.h.

#define FUSB300_EPPRD0_F   (1 << 28)

Definition at line 601 of file fusb300_udc.h.

#define FUSB300_EPPRD0_H   (1 << 24)

Definition at line 606 of file fusb300_udc.h.

#define FUSB300_EPPRD0_I   (1 << 27)

Definition at line 602 of file fusb300_udc.h.

#define FUSB300_EPPRD0_L   (1 << 25)

Definition at line 605 of file fusb300_udc.h.

#define FUSB300_EPPRD0_M   (1 << 30)

Definition at line 598 of file fusb300_udc.h.

#define FUSB300_EPPRD0_O   (1 << 29)

Definition at line 599 of file fusb300_udc.h.

#define FUSB300_EPPRDR_EP10_PRD_RDY   (1 << 10)

Definition at line 562 of file fusb300_udc.h.

#define FUSB300_EPPRDR_EP11_PRD_RDY   (1 << 11)

Definition at line 561 of file fusb300_udc.h.

#define FUSB300_EPPRDR_EP12_PRD_RDY   (1 << 12)

Definition at line 560 of file fusb300_udc.h.

#define FUSB300_EPPRDR_EP13_PRD_RDY   (1 << 13)

Definition at line 559 of file fusb300_udc.h.

#define FUSB300_EPPRDR_EP14_PRD_RDY   (1 << 14)

Definition at line 558 of file fusb300_udc.h.

#define FUSB300_EPPRDR_EP15_PRD_RDY   (1 << 15)

Definition at line 557 of file fusb300_udc.h.

#define FUSB300_EPPRDR_EP1_PRD_RDY   (1 << 1)

Definition at line 571 of file fusb300_udc.h.

#define FUSB300_EPPRDR_EP2_PRD_RDY   (1 << 2)

Definition at line 570 of file fusb300_udc.h.

#define FUSB300_EPPRDR_EP3_PRD_RDY   (1 << 3)

Definition at line 569 of file fusb300_udc.h.

#define FUSB300_EPPRDR_EP4_PRD_RDY   (1 << 4)

Definition at line 568 of file fusb300_udc.h.

#define FUSB300_EPPRDR_EP5_PRD_RDY   (1 << 5)

Definition at line 567 of file fusb300_udc.h.

#define FUSB300_EPPRDR_EP6_PRD_RDY   (1 << 6)

Definition at line 566 of file fusb300_udc.h.

#define FUSB300_EPPRDR_EP7_PRD_RDY   (1 << 7)

Definition at line 565 of file fusb300_udc.h.

#define FUSB300_EPPRDR_EP8_PRD_RDY   (1 << 8)

Definition at line 564 of file fusb300_udc.h.

#define FUSB300_EPPRDR_EP9_PRD_RDY   (1 << 9)

Definition at line 563 of file fusb300_udc.h.

#define FUSB300_EPPRDR_EP_PRD_RDY (   n)    (1 << n)

Definition at line 572 of file fusb300_udc.h.

#define FUSB300_EPSET0_CLRSEQNUM   (1 << 2)

Definition at line 114 of file fusb300_udc.h.

#define FUSB300_EPSET0_EPn_TX0BYTE   (1 << 1)

Definition at line 115 of file fusb300_udc.h.

#define FUSB300_EPSET0_STL   (1 << 0)

Definition at line 116 of file fusb300_udc.h.

#define FUSB300_EPSET1_ACTDIS   0

Definition at line 137 of file fusb300_udc.h.

#define FUSB300_EPSET1_ACTEN   1

Definition at line 138 of file fusb300_udc.h.

#define FUSB300_EPSET1_BWNUM (   x)    ((x & 0x3) << 4)

Definition at line 126 of file fusb300_udc.h.

#define FUSB300_EPSET1_DIR (   x)    ((x & 0x1) << 1)

Definition at line 134 of file fusb300_udc.h.

#define FUSB300_EPSET1_DIR_MSK   ((0x1) << 1)

Definition at line 136 of file fusb300_udc.h.

#define FUSB300_EPSET1_DIRIN   (1 << 1)

Definition at line 135 of file fusb300_udc.h.

#define FUSB300_EPSET1_DIRIN   (1 << 1)

Definition at line 135 of file fusb300_udc.h.

#define FUSB300_EPSET1_DIROUT   (0 << 1)

Definition at line 132 of file fusb300_udc.h.

#define FUSB300_EPSET1_FIFOENTRY (   x)    ((x & 0x1F) << 12)

Definition at line 123 of file fusb300_udc.h.

#define FUSB300_EPSET1_FIFOENTRY_MSK   (0x1f << 12)

Definition at line 124 of file fusb300_udc.h.

#define FUSB300_EPSET1_INTERVAL (   x)    ((x & 0x7) << 6)

Definition at line 125 of file fusb300_udc.h.

#define FUSB300_EPSET1_START_ENTRY (   x)    ((x & 0xFF) << 24)

Definition at line 121 of file fusb300_udc.h.

#define FUSB300_EPSET1_START_ENTRY_MSK   (0xFF << 24)

Definition at line 122 of file fusb300_udc.h.

#define FUSB300_EPSET1_TYPE (   x)    ((x & 0x3) << 2)

Definition at line 130 of file fusb300_udc.h.

#define FUSB300_EPSET1_TYPE_MSK   (0x3 << 2)

Definition at line 131 of file fusb300_udc.h.

#define FUSB300_EPSET1_TYPEBLK   (2 << 2)

Definition at line 128 of file fusb300_udc.h.

#define FUSB300_EPSET1_TYPEINT   (3 << 2)

Definition at line 129 of file fusb300_udc.h.

#define FUSB300_EPSET1_TYPEISO   (1 << 2)

Definition at line 127 of file fusb300_udc.h.

#define FUSB300_EPSET2_ADDROFS (   x)    ((x & 0x7FFF) << 16)

Definition at line 143 of file fusb300_udc.h.

#define FUSB300_EPSET2_ADDROFS_MSK   (0x7fff << 16)

Definition at line 144 of file fusb300_udc.h.

#define FUSB300_EPSET2_MPS (   x)    (x & 0x7FF)

Definition at line 145 of file fusb300_udc.h.

#define FUSB300_EPSET2_MPS_MSK   0x7FF

Definition at line 146 of file fusb300_udc.h.

#define FUSB300_FF_EMPTY   (1 << 29)

Definition at line 153 of file fusb300_udc.h.

#define FUSB300_FF_FUL   (1 << 30)

Definition at line 152 of file fusb300_udc.h.

#define FUSB300_FFR_BYCNT   0x1FFFF

Definition at line 154 of file fusb300_udc.h.

#define FUSB300_FFR_RST   (1 << 31)

Definition at line 151 of file fusb300_udc.h.

#define FUSB300_FIFO_ENTRY_NUM   8

Definition at line 612 of file fusb300_udc.h.

#define FUSB300_GCR_DEVDIS   0x0

Definition at line 78 of file fusb300_udc.h.

#define FUSB300_GCR_DEVEN_FS   0x3

Definition at line 75 of file fusb300_udc.h.

#define FUSB300_GCR_DEVEN_HS   0x2

Definition at line 76 of file fusb300_udc.h.

#define FUSB300_GCR_DEVEN_MSK   0x3

Definition at line 79 of file fusb300_udc.h.

#define FUSB300_GCR_DEVEN_SS   0x1

Definition at line 77 of file fusb300_udc.h.

#define FUSB300_GCR_FIFOCLR   (1 << 3)

Definition at line 73 of file fusb300_udc.h.

#define FUSB300_GCR_FORCE_HS_SUSP   (1 << 6)

Definition at line 70 of file fusb300_udc.h.

#define FUSB300_GCR_GLINTEN   (1 << 2)

Definition at line 74 of file fusb300_udc.h.

#define FUSB300_GCR_SF_RST   (1 << 8)

Definition at line 68 of file fusb300_udc.h.

#define FUSB300_GCR_SYNC_FIFO0_CLR   (1 << 4)

Definition at line 72 of file fusb300_udc.h.

#define FUSB300_GCR_SYNC_FIFO1_CLR   (1 << 5)

Definition at line 71 of file fusb300_udc.h.

#define FUSB300_GCR_VBUS_STATUS   (1 << 7)

Definition at line 69 of file fusb300_udc.h.

#define FUSB300_GTM_TST_CUR_EP_ENTRY (   n)    ((n & 0xF) << 12)

Definition at line 86 of file fusb300_udc.h.

#define FUSB300_GTM_TST_DIS_SOFGEN   (1 << 16)

Definition at line 85 of file fusb300_udc.h.

#define FUSB300_GTM_TST_EP_ENTRY (   n)    ((n & 0xF) << 8)

Definition at line 87 of file fusb300_udc.h.

#define FUSB300_GTM_TST_EP_NUM (   n)    ((n & 0xF) << 4)

Definition at line 88 of file fusb300_udc.h.

#define FUSB300_GTM_TST_FIFO_DEG   (1 << 1)

Definition at line 89 of file fusb300_udc.h.

#define FUSB300_GTM_TSTMODE   (1 << 0)

Definition at line 90 of file fusb300_udc.h.

#define FUSB300_HSCR_CAP_LPM_RMWKUP   (1 << 6)

Definition at line 176 of file fusb300_udc.h.

#define FUSB300_HSCR_CAP_RMWKUP   (1 << 3)

Definition at line 179 of file fusb300_udc.h.

#define FUSB300_HSCR_HS_GORMWKU   (1 << 4)

Definition at line 178 of file fusb300_udc.h.

#define FUSB300_HSCR_HS_GOSUSP   (1 << 5)

Definition at line 177 of file fusb300_udc.h.

#define FUSB300_HSCR_HS_LPM_PERMIT   (1 << 8)

Definition at line 174 of file fusb300_udc.h.

#define FUSB300_HSCR_HS_LPM_RMWKUP   (1 << 7)

Definition at line 175 of file fusb300_udc.h.

#define FUSB300_HSCR_IDLECNT_0MS   0

Definition at line 180 of file fusb300_udc.h.

#define FUSB300_HSCR_IDLECNT_1MS   1

Definition at line 181 of file fusb300_udc.h.

#define FUSB300_HSCR_IDLECNT_2MS   2

Definition at line 182 of file fusb300_udc.h.

#define FUSB300_HSCR_IDLECNT_3MS   3

Definition at line 183 of file fusb300_udc.h.

#define FUSB300_HSCR_IDLECNT_4MS   4

Definition at line 184 of file fusb300_udc.h.

#define FUSB300_HSCR_IDLECNT_5MS   5

Definition at line 185 of file fusb300_udc.h.

#define FUSB300_HSCR_IDLECNT_6MS   6

Definition at line 186 of file fusb300_udc.h.

#define FUSB300_HSCR_IDLECNT_7MS   7

Definition at line 187 of file fusb300_udc.h.

#define FUSB300_HSPTM_TSTJSTA   (1 << 0)

Definition at line 169 of file fusb300_udc.h.

#define FUSB300_HSPTM_TSTKSTA   (1 << 1)

Definition at line 168 of file fusb300_udc.h.

#define FUSB300_HSPTM_TSTPKDONE   (1 << 4)

Definition at line 165 of file fusb300_udc.h.

#define FUSB300_HSPTM_TSTPKT   (1 << 3)

Definition at line 166 of file fusb300_udc.h.

#define FUSB300_HSPTM_TSTSET0NAK   (1 << 2)

Definition at line 167 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP10_FIFO_INT   (1 << 10)

Definition at line 478 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP10_PRD_INT   (1 << 26)

Definition at line 461 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP11_FIFO_INT   (1 << 11)

Definition at line 477 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP11_PRD_INT   (1 << 27)

Definition at line 460 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP12_FIFO_INT   (1 << 12)

Definition at line 476 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP12_PRD_INT   (1 << 28)

Definition at line 459 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP13_FIFO_INT   (1 << 13)

Definition at line 475 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP13_PRD_INT   (1 << 29)

Definition at line 458 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP14_FIFO_INT   (1 << 14)

Definition at line 474 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP14_PRD_INT   (1 << 30)

Definition at line 457 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP15_FIFO_INT   (1 << 15)

Definition at line 473 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP15_PRD_INT   (1 << 31)

Definition at line 456 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP1_FIFO_INT   (1 << 1)

Definition at line 487 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP1_PRD_INT   (1 << 17)

Definition at line 470 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP2_FIFO_INT   (1 << 2)

Definition at line 486 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP2_PRD_INT   (1 << 18)

Definition at line 469 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP3_FIFO_INT   (1 << 3)

Definition at line 485 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP3_PRD_INT   (1 << 19)

Definition at line 468 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP4_FIFO_INT   (1 << 4)

Definition at line 484 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP4_PRD_INT   (1 << 20)

Definition at line 467 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP5_FIFO_INT   (1 << 5)

Definition at line 483 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP5_PRD_INT   (1 << 21)

Definition at line 466 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP6_FIFO_INT   (1 << 6)

Definition at line 482 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP6_PRD_INT   (1 << 22)

Definition at line 465 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP7_FIFO_INT   (1 << 7)

Definition at line 481 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP7_PRD_INT   (1 << 23)

Definition at line 464 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP8_FIFO_INT   (1 << 8)

Definition at line 480 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP9_FIFO_INT   (1 << 9)

Definition at line 479 of file fusb300_udc.h.

#define FUSB300_IGER0_EEP9_PRD_INT   (1 << 25)

Definition at line 462 of file fusb300_udc.h.

#define FUSB300_IGER0_EEPn_FIFO_INT (   n)    (1 << n)

Definition at line 488 of file fusb300_udc.h.

#define FUSB300_IGER0_EEPn_PRD_INT (   n)    (1 << (n + 16))

Definition at line 471 of file fusb300_udc.h.

#define FUSB300_IGER0_EP8_PRD_INT   (1 << 24)

Definition at line 463 of file fusb300_udc.h.

#define FUSB300_IGER1_CX_CMDEND_INT   (1 << 6)

Definition at line 517 of file fusb300_udc.h.

#define FUSB300_IGER1_CX_COMABT_INT   (1 << 8)

Definition at line 515 of file fusb300_udc.h.

#define FUSB300_IGER1_CX_COMFAIL_INT   (1 << 7)

Definition at line 516 of file fusb300_udc.h.

#define FUSB300_IGER1_CX_IN_INT   (1 << 4)

Definition at line 519 of file fusb300_udc.h.

#define FUSB300_IGER1_CX_OUT_INT   (1 << 5)

Definition at line 518 of file fusb300_udc.h.

#define FUSB300_IGER1_CX_SETUP_INT   (1 << 3)

Definition at line 520 of file fusb300_udc.h.

#define FUSB300_IGER1_EDEV_MODE_CHG_INT   (1 << 9)

Definition at line 514 of file fusb300_udc.h.

#define FUSB300_IGER1_EINT_GRP5   (1 << 31)

Definition at line 493 of file fusb300_udc.h.

#define FUSB300_IGER1_HOT_RST_INT   (1 << 16)

Definition at line 508 of file fusb300_udc.h.

#define FUSB300_IGER1_HS_RST_INT   (1 << 11)

Definition at line 513 of file fusb300_udc.h.

#define FUSB300_IGER1_INTGRP2   (1 << 0)

Definition at line 523 of file fusb300_udc.h.

#define FUSB300_IGER1_INTGRP3   (1 << 1)

Definition at line 522 of file fusb300_udc.h.

#define FUSB300_IGER1_INTGRP4   (1 << 2)

Definition at line 521 of file fusb300_udc.h.

#define FUSB300_IGER1_LPM_INT   (1 << 12)

Definition at line 512 of file fusb300_udc.h.

#define FUSB300_IGER1_RESM_INT   (1 << 14)

Definition at line 510 of file fusb300_udc.h.

#define FUSB300_IGER1_SUSP_INT   (1 << 13)

Definition at line 511 of file fusb300_udc.h.

#define FUSB300_IGER1_SYNF0_EMPTY_INT   (1 << 28)

Definition at line 496 of file fusb300_udc.h.

#define FUSB300_IGER1_SYNF1_EMPTY_INT   (1 << 29)

Definition at line 495 of file fusb300_udc.h.

#define FUSB300_IGER1_U1_ENTRY_FAIL_INT   (1 << 23)

Definition at line 501 of file fusb300_udc.h.

#define FUSB300_IGER1_U1_ENTRY_INT   (1 << 17)

Definition at line 507 of file fusb300_udc.h.

#define FUSB300_IGER1_U1_EXIT_FAIL_INT   (1 << 25)

Definition at line 499 of file fusb300_udc.h.

#define FUSB300_IGER1_U1_EXIT_INT   (1 << 20)

Definition at line 504 of file fusb300_udc.h.

#define FUSB300_IGER1_U2_ENTRY_FAIL_INT   (1 << 24)

Definition at line 500 of file fusb300_udc.h.

#define FUSB300_IGER1_U2_ENTRY_INT   (1 << 18)

Definition at line 506 of file fusb300_udc.h.

#define FUSB300_IGER1_U2_EXIT_FAIL_INT   (1 << 26)

Definition at line 498 of file fusb300_udc.h.

#define FUSB300_IGER1_U2_EXIT_INT   (1 << 21)

Definition at line 503 of file fusb300_udc.h.

#define FUSB300_IGER1_U3_ENTRY_INT   (1 << 19)

Definition at line 505 of file fusb300_udc.h.

#define FUSB300_IGER1_U3_EXIT_FAIL_INT   (1 << 27)

Definition at line 497 of file fusb300_udc.h.

#define FUSB300_IGER1_U3_EXIT_INT   (1 << 22)

Definition at line 502 of file fusb300_udc.h.

#define FUSB300_IGER1_VBUS_CHG_INT   (1 << 30)

Definition at line 494 of file fusb300_udc.h.

#define FUSB300_IGER1_WARM_RST_INT   (1 << 15)

Definition at line 509 of file fusb300_udc.h.

#define FUSB300_IGER2_EEP_STR_ACCEPT_INT (   n)    (1 << (5 * n - 1))

Definition at line 528 of file fusb300_udc.h.

#define FUSB300_IGER2_EEP_STR_NOTRDY_INT (   n)    (1 << (5 * n - 4))

Definition at line 531 of file fusb300_udc.h.

#define FUSB300_IGER2_EEP_STR_PRIME_INT (   n)    (1 << (5 * n - 5))

Definition at line 532 of file fusb300_udc.h.

#define FUSB300_IGER2_EEP_STR_REQ_INT (   n)    (1 << (5 * n - 3))

Definition at line 530 of file fusb300_udc.h.

#define FUSB300_IGER2_EEP_STR_RESUME_INT (   n)    (1 << (5 * n - 2))

Definition at line 529 of file fusb300_udc.h.

#define FUSB300_IGER3_EEP_STR_ACCEPT_INT (   n)    (1 << (5 * (n - 6) - 1))

Definition at line 538 of file fusb300_udc.h.

#define FUSB300_IGER3_EEP_STR_NOTRDY_INT (   n)    (1 << (5 * (n - 6) - 4))

Definition at line 541 of file fusb300_udc.h.

#define FUSB300_IGER3_EEP_STR_PRIME_INT (   n)    (1 << (5 * (n - 6) - 5))

Definition at line 542 of file fusb300_udc.h.

#define FUSB300_IGER3_EEP_STR_REQ_INT (   n)    (1 << (5 * (n - 6) - 3))

Definition at line 540 of file fusb300_udc.h.

#define FUSB300_IGER3_EEP_STR_RESUME_INT (   n)    (1 << (5 * (n - 6) - 2))

Definition at line 539 of file fusb300_udc.h.

#define FUSB300_IGER4_EEP_RX0_INT (   n)    (1 << (n + 16))

Definition at line 548 of file fusb300_udc.h.

#define FUSB300_IGER4_EEP_STR_ACCEPT_INT (   n)    (1 << (5 * (n - 6) - 1))

Definition at line 549 of file fusb300_udc.h.

#define FUSB300_IGER4_EEP_STR_NOTRDY_INT (   n)    (1 << (5 * (n - 6) - 4))

Definition at line 552 of file fusb300_udc.h.

#define FUSB300_IGER4_EEP_STR_PRIME_INT (   n)    (1 << (5 * (n - 6) - 5))

Definition at line 553 of file fusb300_udc.h.

#define FUSB300_IGER4_EEP_STR_REQ_INT (   n)    (1 << (5 * (n - 6) - 3))

Definition at line 551 of file fusb300_udc.h.

#define FUSB300_IGER4_EEP_STR_RESUME_INT (   n)    (1 << (5 * (n - 6) - 2))

Definition at line 550 of file fusb300_udc.h.

#define FUSB300_IGER5_EEP_STL_INT (   n)    (1 << n)

Definition at line 595 of file fusb300_udc.h.

#define FUSB300_IGR0_EP10_FIFO_INT   (1 << 10)

Definition at line 280 of file fusb300_udc.h.

#define FUSB300_IGR0_EP10_PRD_INT   (1 << 26)

Definition at line 263 of file fusb300_udc.h.

#define FUSB300_IGR0_EP11_FIFO_INT   (1 << 11)

Definition at line 279 of file fusb300_udc.h.

#define FUSB300_IGR0_EP11_PRD_INT   (1 << 27)

Definition at line 262 of file fusb300_udc.h.

#define FUSB300_IGR0_EP12_FIFO_INT   (1 << 12)

Definition at line 278 of file fusb300_udc.h.

#define FUSB300_IGR0_EP12_PRD_INT   (1 << 28)

Definition at line 261 of file fusb300_udc.h.

#define FUSB300_IGR0_EP13_FIFO_INT   (1 << 13)

Definition at line 277 of file fusb300_udc.h.

#define FUSB300_IGR0_EP13_PRD_INT   (1 << 29)

Definition at line 260 of file fusb300_udc.h.

#define FUSB300_IGR0_EP14_FIFO_INT   (1 << 14)

Definition at line 276 of file fusb300_udc.h.

#define FUSB300_IGR0_EP14_PRD_INT   (1 << 30)

Definition at line 259 of file fusb300_udc.h.

#define FUSB300_IGR0_EP15_FIFO_INT   (1 << 15)

Definition at line 275 of file fusb300_udc.h.

#define FUSB300_IGR0_EP15_PRD_INT   (1 << 31)

Definition at line 258 of file fusb300_udc.h.

#define FUSB300_IGR0_EP1_FIFO_INT   (1 << 1)

Definition at line 289 of file fusb300_udc.h.

#define FUSB300_IGR0_EP1_PRD_INT   (1 << 17)

Definition at line 272 of file fusb300_udc.h.

#define FUSB300_IGR0_EP2_FIFO_INT   (1 << 2)

Definition at line 288 of file fusb300_udc.h.

#define FUSB300_IGR0_EP2_PRD_INT   (1 << 18)

Definition at line 271 of file fusb300_udc.h.

#define FUSB300_IGR0_EP3_FIFO_INT   (1 << 3)

Definition at line 287 of file fusb300_udc.h.

#define FUSB300_IGR0_EP3_PRD_INT   (1 << 19)

Definition at line 270 of file fusb300_udc.h.

#define FUSB300_IGR0_EP4_FIFO_INT   (1 << 4)

Definition at line 286 of file fusb300_udc.h.

#define FUSB300_IGR0_EP4_PRD_INT   (1 << 20)

Definition at line 269 of file fusb300_udc.h.

#define FUSB300_IGR0_EP5_FIFO_INT   (1 << 5)

Definition at line 285 of file fusb300_udc.h.

#define FUSB300_IGR0_EP5_PRD_INT   (1 << 21)

Definition at line 268 of file fusb300_udc.h.

#define FUSB300_IGR0_EP6_FIFO_INT   (1 << 6)

Definition at line 284 of file fusb300_udc.h.

#define FUSB300_IGR0_EP6_PRD_INT   (1 << 22)

Definition at line 267 of file fusb300_udc.h.

#define FUSB300_IGR0_EP7_FIFO_INT   (1 << 7)

Definition at line 283 of file fusb300_udc.h.

#define FUSB300_IGR0_EP7_PRD_INT   (1 << 23)

Definition at line 266 of file fusb300_udc.h.

#define FUSB300_IGR0_EP8_FIFO_INT   (1 << 8)

Definition at line 282 of file fusb300_udc.h.

#define FUSB300_IGR0_EP8_PRD_INT   (1 << 24)

Definition at line 265 of file fusb300_udc.h.

#define FUSB300_IGR0_EP9_FIFO_INT   (1 << 9)

Definition at line 281 of file fusb300_udc.h.

#define FUSB300_IGR0_EP9_PRD_INT   (1 << 25)

Definition at line 264 of file fusb300_udc.h.

#define FUSB300_IGR0_EPn_FIFO_INT (   n)    (1 << n)

Definition at line 290 of file fusb300_udc.h.

#define FUSB300_IGR0_EPn_PRD_INT (   n)    (1 << (n + 16))

Definition at line 273 of file fusb300_udc.h.

#define FUSB300_IGR1_CX_CMDEND_INT   (1 << 6)

Definition at line 319 of file fusb300_udc.h.

#define FUSB300_IGR1_CX_COMABT_INT   (1 << 8)

Definition at line 317 of file fusb300_udc.h.

#define FUSB300_IGR1_CX_COMFAIL_INT   (1 << 7)

Definition at line 318 of file fusb300_udc.h.

#define FUSB300_IGR1_CX_IN_INT   (1 << 4)

Definition at line 321 of file fusb300_udc.h.

#define FUSB300_IGR1_CX_OUT_INT   (1 << 5)

Definition at line 320 of file fusb300_udc.h.

#define FUSB300_IGR1_CX_SETUP_INT   (1 << 3)

Definition at line 322 of file fusb300_udc.h.

#define FUSB300_IGR1_DEV_MODE_CHG_INT   (1 << 9)

Definition at line 316 of file fusb300_udc.h.

#define FUSB300_IGR1_HOT_RST_INT   (1 << 16)

Definition at line 310 of file fusb300_udc.h.

#define FUSB300_IGR1_HS_LPM_INT   (1 << 12)

Definition at line 314 of file fusb300_udc.h.

#define FUSB300_IGR1_INTGRP2   (1 << 0)

Definition at line 325 of file fusb300_udc.h.

#define FUSB300_IGR1_INTGRP3   (1 << 1)

Definition at line 324 of file fusb300_udc.h.

#define FUSB300_IGR1_INTGRP4   (1 << 2)

Definition at line 323 of file fusb300_udc.h.

#define FUSB300_IGR1_INTGRP5   (1 << 31)

Definition at line 295 of file fusb300_udc.h.

#define FUSB300_IGR1_RESM_INT   (1 << 14)

Definition at line 312 of file fusb300_udc.h.

#define FUSB300_IGR1_SUSP_INT   (1 << 13)

Definition at line 313 of file fusb300_udc.h.

#define FUSB300_IGR1_SYNF0_EMPTY_INT   (1 << 28)

Definition at line 298 of file fusb300_udc.h.

#define FUSB300_IGR1_SYNF1_EMPTY_INT   (1 << 29)

Definition at line 297 of file fusb300_udc.h.

#define FUSB300_IGR1_U1_ENTRY_FAIL_INT   (1 << 23)

Definition at line 303 of file fusb300_udc.h.

#define FUSB300_IGR1_U1_ENTRY_INT   (1 << 17)

Definition at line 309 of file fusb300_udc.h.

#define FUSB300_IGR1_U1_EXIT_FAIL_INT   (1 << 25)

Definition at line 301 of file fusb300_udc.h.

#define FUSB300_IGR1_U1_EXIT_INT   (1 << 20)

Definition at line 306 of file fusb300_udc.h.

#define FUSB300_IGR1_U2_ENTRY_FAIL_INT   (1 << 24)

Definition at line 302 of file fusb300_udc.h.

#define FUSB300_IGR1_U2_ENTRY_INT   (1 << 18)

Definition at line 308 of file fusb300_udc.h.

#define FUSB300_IGR1_U2_EXIT_FAIL_INT   (1 << 26)

Definition at line 300 of file fusb300_udc.h.

#define FUSB300_IGR1_U2_EXIT_INT   (1 << 21)

Definition at line 305 of file fusb300_udc.h.

#define FUSB300_IGR1_U3_ENTRY_INT   (1 << 19)

Definition at line 307 of file fusb300_udc.h.

#define FUSB300_IGR1_U3_EXIT_FAIL_INT   (1 << 27)

Definition at line 299 of file fusb300_udc.h.

#define FUSB300_IGR1_U3_EXIT_INT   (1 << 22)

Definition at line 304 of file fusb300_udc.h.

#define FUSB300_IGR1_USBRST_INT   (1 << 11)

Definition at line 315 of file fusb300_udc.h.

#define FUSB300_IGR1_VBUS_CHG_INT   (1 << 30)

Definition at line 296 of file fusb300_udc.h.

#define FUSB300_IGR1_WARM_RST_INT   (1 << 15)

Definition at line 311 of file fusb300_udc.h.

#define FUSB300_IGR2_EP1_STR_ACCEPT_INT   (1 << 4)

Definition at line 355 of file fusb300_udc.h.

#define FUSB300_IGR2_EP1_STR_NOTRDY_INT   (1 << 1)

Definition at line 358 of file fusb300_udc.h.

#define FUSB300_IGR2_EP1_STR_PRIME_INT   (1 << 0)

Definition at line 359 of file fusb300_udc.h.

#define FUSB300_IGR2_EP1_STR_REQ_INT   (1 << 2)

Definition at line 357 of file fusb300_udc.h.

#define FUSB300_IGR2_EP1_STR_RESUME_INT   (1 << 3)

Definition at line 356 of file fusb300_udc.h.

#define FUSB300_IGR2_EP2_STR_ACCEPT_INT   (1 << 9)

Definition at line 350 of file fusb300_udc.h.

#define FUSB300_IGR2_EP2_STR_NOTRDY_INT   (1 << 6)

Definition at line 353 of file fusb300_udc.h.

#define FUSB300_IGR2_EP2_STR_PRIME_INT   (1 << 5)

Definition at line 354 of file fusb300_udc.h.

#define FUSB300_IGR2_EP2_STR_REQ_INT   (1 << 7)

Definition at line 352 of file fusb300_udc.h.

#define FUSB300_IGR2_EP2_STR_RESUME_INT   (1 << 8)

Definition at line 351 of file fusb300_udc.h.

#define FUSB300_IGR2_EP3_STR_ACCEPT_INT   (1 << 14)

Definition at line 345 of file fusb300_udc.h.

#define FUSB300_IGR2_EP3_STR_NOTRDY_INT   (1 << 11)

Definition at line 348 of file fusb300_udc.h.

#define FUSB300_IGR2_EP3_STR_PRIME_INT   (1 << 10)

Definition at line 349 of file fusb300_udc.h.

#define FUSB300_IGR2_EP3_STR_REQ_INT   (1 << 12)

Definition at line 347 of file fusb300_udc.h.

#define FUSB300_IGR2_EP3_STR_RESUME_INT   (1 << 13)

Definition at line 346 of file fusb300_udc.h.

#define FUSB300_IGR2_EP4_STR_ACCEPT_INT   (1 << 19)

Definition at line 340 of file fusb300_udc.h.

#define FUSB300_IGR2_EP4_STR_NOTRDY_INT   (1 << 16)

Definition at line 343 of file fusb300_udc.h.

#define FUSB300_IGR2_EP4_STR_PRIME_INT   (1 << 15)

Definition at line 344 of file fusb300_udc.h.

#define FUSB300_IGR2_EP4_STR_REQ_INT   (1 << 17)

Definition at line 342 of file fusb300_udc.h.

#define FUSB300_IGR2_EP4_STR_RESUME_INT   (1 << 18)

Definition at line 341 of file fusb300_udc.h.

#define FUSB300_IGR2_EP5_STR_ACCEPT_INT   (1 << 24)

Definition at line 335 of file fusb300_udc.h.

#define FUSB300_IGR2_EP5_STR_NOTRDY_INT   (1 << 21)

Definition at line 338 of file fusb300_udc.h.

#define FUSB300_IGR2_EP5_STR_PRIME_INT   (1 << 20)

Definition at line 339 of file fusb300_udc.h.

#define FUSB300_IGR2_EP5_STR_REQ_INT   (1 << 22)

Definition at line 337 of file fusb300_udc.h.

#define FUSB300_IGR2_EP5_STR_RESUME_INT   (1 << 23)

Definition at line 336 of file fusb300_udc.h.

#define FUSB300_IGR2_EP6_STR_ACCEPT_INT   (1 << 29)

Definition at line 330 of file fusb300_udc.h.

#define FUSB300_IGR2_EP6_STR_NOTRDY_INT   (1 << 26)

Definition at line 333 of file fusb300_udc.h.

#define FUSB300_IGR2_EP6_STR_PRIME_INT   (1 << 25)

Definition at line 334 of file fusb300_udc.h.

#define FUSB300_IGR2_EP6_STR_REQ_INT   (1 << 27)

Definition at line 332 of file fusb300_udc.h.

#define FUSB300_IGR2_EP6_STR_RESUME_INT   (1 << 28)

Definition at line 331 of file fusb300_udc.h.

#define FUSB300_IGR2_EP_STR_ACCEPT_INT (   n)    (1 << (5 * n - 1))

Definition at line 361 of file fusb300_udc.h.

#define FUSB300_IGR2_EP_STR_NOTRDY_INT (   n)    (1 << (5 * n - 4))

Definition at line 364 of file fusb300_udc.h.

#define FUSB300_IGR2_EP_STR_PRIME_INT (   n)    (1 << (5 * n - 5))

Definition at line 365 of file fusb300_udc.h.

#define FUSB300_IGR2_EP_STR_REQ_INT (   n)    (1 << (5 * n - 3))

Definition at line 363 of file fusb300_udc.h.

#define FUSB300_IGR2_EP_STR_RESUME_INT (   n)    (1 << (5 * n - 2))

Definition at line 362 of file fusb300_udc.h.

#define FUSB300_IGR3_EP10_STR_ACCEPT_INT   (1 << 19)

Definition at line 380 of file fusb300_udc.h.

#define FUSB300_IGR3_EP10_STR_NOTRDY_INT   (1 << 16)

Definition at line 383 of file fusb300_udc.h.

#define FUSB300_IGR3_EP10_STR_PRIME_INT   (1 << 15)

Definition at line 384 of file fusb300_udc.h.

#define FUSB300_IGR3_EP10_STR_REQ_INT   (1 << 17)

Definition at line 382 of file fusb300_udc.h.

#define FUSB300_IGR3_EP10_STR_RESUME_INT   (1 << 18)

Definition at line 381 of file fusb300_udc.h.

#define FUSB300_IGR3_EP11_STR_ACCEPT_INT   (1 << 24)

Definition at line 375 of file fusb300_udc.h.

#define FUSB300_IGR3_EP11_STR_NOTRDY_INT   (1 << 21)

Definition at line 378 of file fusb300_udc.h.

#define FUSB300_IGR3_EP11_STR_PRIME_INT   (1 << 20)

Definition at line 379 of file fusb300_udc.h.

#define FUSB300_IGR3_EP11_STR_REQ_INT   (1 << 22)

Definition at line 377 of file fusb300_udc.h.

#define FUSB300_IGR3_EP11_STR_RESUME_INT   (1 << 23)

Definition at line 376 of file fusb300_udc.h.

#define FUSB300_IGR3_EP12_STR_ACCEPT_INT   (1 << 29)

Definition at line 370 of file fusb300_udc.h.

#define FUSB300_IGR3_EP12_STR_NOTRDY_INT   (1 << 26)

Definition at line 373 of file fusb300_udc.h.

#define FUSB300_IGR3_EP12_STR_PRIME_INT   (1 << 25)

Definition at line 374 of file fusb300_udc.h.

#define FUSB300_IGR3_EP12_STR_REQ_INT   (1 << 27)

Definition at line 372 of file fusb300_udc.h.

#define FUSB300_IGR3_EP12_STR_RESUME_INT   (1 << 28)

Definition at line 371 of file fusb300_udc.h.

#define FUSB300_IGR3_EP7_STR_ACCEPT_INT   (1 << 4)

Definition at line 395 of file fusb300_udc.h.

#define FUSB300_IGR3_EP7_STR_NOTRDY_INT   (1 << 1)

Definition at line 398 of file fusb300_udc.h.

#define FUSB300_IGR3_EP7_STR_PRIME_INT   (1 << 0)

Definition at line 399 of file fusb300_udc.h.

#define FUSB300_IGR3_EP7_STR_REQ_INT   (1 << 2)

Definition at line 397 of file fusb300_udc.h.

#define FUSB300_IGR3_EP7_STR_RESUME_INT   (1 << 3)

Definition at line 396 of file fusb300_udc.h.

#define FUSB300_IGR3_EP8_STR_ACCEPT_INT   (1 << 9)

Definition at line 390 of file fusb300_udc.h.

#define FUSB300_IGR3_EP8_STR_NOTRDY_INT   (1 << 6)

Definition at line 393 of file fusb300_udc.h.

#define FUSB300_IGR3_EP8_STR_PRIME_INT   (1 << 5)

Definition at line 394 of file fusb300_udc.h.

#define FUSB300_IGR3_EP8_STR_REQ_INT   (1 << 7)

Definition at line 392 of file fusb300_udc.h.

#define FUSB300_IGR3_EP8_STR_RESUME_INT   (1 << 8)

Definition at line 391 of file fusb300_udc.h.

#define FUSB300_IGR3_EP9_STR_ACCEPT_INT   (1 << 14)

Definition at line 385 of file fusb300_udc.h.

#define FUSB300_IGR3_EP9_STR_NOTRDY_INT   (1 << 11)

Definition at line 388 of file fusb300_udc.h.

#define FUSB300_IGR3_EP9_STR_PRIME_INT   (1 << 10)

Definition at line 389 of file fusb300_udc.h.

#define FUSB300_IGR3_EP9_STR_REQ_INT   (1 << 12)

Definition at line 387 of file fusb300_udc.h.

#define FUSB300_IGR3_EP9_STR_RESUME_INT   (1 << 13)

Definition at line 386 of file fusb300_udc.h.

#define FUSB300_IGR3_EP_STR_ACCEPT_INT (   n)    (1 << (5 * (n - 6) - 1))

Definition at line 401 of file fusb300_udc.h.

#define FUSB300_IGR3_EP_STR_NOTRDY_INT (   n)    (1 << (5 * (n - 6) - 4))

Definition at line 404 of file fusb300_udc.h.

#define FUSB300_IGR3_EP_STR_PRIME_INT (   n)    (1 << (5 * (n - 6) - 5))

Definition at line 405 of file fusb300_udc.h.

#define FUSB300_IGR3_EP_STR_REQ_INT (   n)    (1 << (5 * (n - 6) - 3))

Definition at line 403 of file fusb300_udc.h.

#define FUSB300_IGR3_EP_STR_RESUME_INT (   n)    (1 << (5 * (n - 6) - 2))

Definition at line 402 of file fusb300_udc.h.

#define FUSB300_IGR4_EP10_RX0_INT   (1 << 26)

Definition at line 415 of file fusb300_udc.h.

#define FUSB300_IGR4_EP11_RX0_INT   (1 << 27)

Definition at line 414 of file fusb300_udc.h.

#define FUSB300_IGR4_EP12_RX0_INT   (1 << 28)

Definition at line 413 of file fusb300_udc.h.

#define FUSB300_IGR4_EP13_RX0_INT   (1 << 29)

Definition at line 412 of file fusb300_udc.h.

#define FUSB300_IGR4_EP13_STR_ACCEPT_INT   (1 << 4)

Definition at line 436 of file fusb300_udc.h.

#define FUSB300_IGR4_EP13_STR_NOTRDY_INT   (1 << 1)

Definition at line 439 of file fusb300_udc.h.

#define FUSB300_IGR4_EP13_STR_PRIME_INT   (1 << 0)

Definition at line 440 of file fusb300_udc.h.

#define FUSB300_IGR4_EP13_STR_REQ_INT   (1 << 2)

Definition at line 438 of file fusb300_udc.h.

#define FUSB300_IGR4_EP13_STR_RESUME_INT   (1 << 3)

Definition at line 437 of file fusb300_udc.h.

#define FUSB300_IGR4_EP14_RX0_INT   (1 << 30)

Definition at line 411 of file fusb300_udc.h.

#define FUSB300_IGR4_EP14_STR_ACCEPT_INT   (1 << 9)

Definition at line 431 of file fusb300_udc.h.

#define FUSB300_IGR4_EP14_STR_NOTRDY_INT   (1 << 6)

Definition at line 434 of file fusb300_udc.h.

#define FUSB300_IGR4_EP14_STR_PRIME_INT   (1 << 5)

Definition at line 435 of file fusb300_udc.h.

#define FUSB300_IGR4_EP14_STR_REQ_INT   (1 << 7)

Definition at line 433 of file fusb300_udc.h.

#define FUSB300_IGR4_EP14_STR_RESUME_INT   (1 << 8)

Definition at line 432 of file fusb300_udc.h.

#define FUSB300_IGR4_EP15_RX0_INT   (1 << 31)

Definition at line 410 of file fusb300_udc.h.

#define FUSB300_IGR4_EP15_STR_ACCEPT_INT   (1 << 14)

Definition at line 426 of file fusb300_udc.h.

#define FUSB300_IGR4_EP15_STR_NOTRDY_INT   (1 << 11)

Definition at line 429 of file fusb300_udc.h.

#define FUSB300_IGR4_EP15_STR_PRIME_INT   (1 << 10)

Definition at line 430 of file fusb300_udc.h.

#define FUSB300_IGR4_EP15_STR_REQ_INT   (1 << 12)

Definition at line 428 of file fusb300_udc.h.

#define FUSB300_IGR4_EP15_STR_RESUME_INT   (1 << 13)

Definition at line 427 of file fusb300_udc.h.

#define FUSB300_IGR4_EP1_RX0_INT   (1 << 17)

Definition at line 424 of file fusb300_udc.h.

#define FUSB300_IGR4_EP2_RX0_INT   (1 << 18)

Definition at line 423 of file fusb300_udc.h.

#define FUSB300_IGR4_EP3_RX0_INT   (1 << 19)

Definition at line 422 of file fusb300_udc.h.

#define FUSB300_IGR4_EP4_RX0_INT   (1 << 20)

Definition at line 421 of file fusb300_udc.h.

#define FUSB300_IGR4_EP5_RX0_INT   (1 << 21)

Definition at line 420 of file fusb300_udc.h.

#define FUSB300_IGR4_EP6_RX0_INT   (1 << 22)

Definition at line 419 of file fusb300_udc.h.

#define FUSB300_IGR4_EP7_RX0_INT   (1 << 23)

Definition at line 418 of file fusb300_udc.h.

#define FUSB300_IGR4_EP8_RX0_INT   (1 << 24)

Definition at line 417 of file fusb300_udc.h.

#define FUSB300_IGR4_EP9_RX0_INT   (1 << 25)

Definition at line 416 of file fusb300_udc.h.

#define FUSB300_IGR4_EP_RX0_INT (   x)    (1 << (x + 16))

Definition at line 425 of file fusb300_udc.h.

#define FUSB300_IGR4_EP_STR_ACCEPT_INT (   n)    (1 << (5 * (n - 12) - 1))

Definition at line 442 of file fusb300_udc.h.

#define FUSB300_IGR4_EP_STR_NOTRDY_INT (   n)    (1 << (5 * (n - 12) - 4))

Definition at line 445 of file fusb300_udc.h.

#define FUSB300_IGR4_EP_STR_PRIME_INT (   n)    (1 << (5 * (n - 12) - 5))

Definition at line 446 of file fusb300_udc.h.

#define FUSB300_IGR4_EP_STR_REQ_INT (   n)    (1 << (5 * (n - 12) - 3))

Definition at line 444 of file fusb300_udc.h.

#define FUSB300_IGR4_EP_STR_RESUME_INT (   n)    (1 << (5 * (n - 12) - 2))

Definition at line 443 of file fusb300_udc.h.

#define FUSB300_IGR5_EP_STL_INT (   n)    (1 << n)

Definition at line 451 of file fusb300_udc.h.

#define FUSB300_MAX_FIFO_ENTRY   8

Definition at line 613 of file fusb300_udc.h.

#define FUSB300_MAX_NUM_EP   16

Definition at line 610 of file fusb300_udc.h.

#define FUSB300_OFFSET_AHBCR   0x514

Definition at line 56 of file fusb300_udc.h.

#define FUSB300_OFFSET_BUFDBG_END   0xBFC

Definition at line 62 of file fusb300_udc.h.

#define FUSB300_OFFSET_BUFDBG_START   0x800

Definition at line 61 of file fusb300_udc.h.

#define FUSB300_OFFSET_CS   0x31C

Definition at line 36 of file fusb300_udc.h.

#define FUSB300_OFFSET_CSR   0x0C

Definition at line 22 of file fusb300_udc.h.

#define FUSB300_OFFSET_CXPORT   0x10

Definition at line 23 of file fusb300_udc.h.

#define FUSB300_OFFSET_DAR   0x08

Definition at line 21 of file fusb300_udc.h.

#define FUSB300_OFFSET_DEVNOTF   0x314

Definition at line 34 of file fusb300_udc.h.

#define FUSB300_OFFSET_DMAAPR   0x510

Definition at line 55 of file fusb300_udc.h.

#define FUSB300_OFFSET_DMAENR   0x50C

Definition at line 54 of file fusb300_udc.h.

#define FUSB300_OFFSET_DMAEPMR   0x508

Definition at line 53 of file fusb300_udc.h.

#define FUSB300_OFFSET_DMAHMER   0x500

Definition at line 51 of file fusb300_udc.h.

#define FUSB300_OFFSET_DNC1   0x318

Definition at line 35 of file fusb300_udc.h.

#define FUSB300_OFFSET_EFCS   0x328

Definition at line 38 of file fusb300_udc.h.

#define FUSB300_OFFSET_EPFFR (   n)    (0x2c + (n - 1) * 0x30)

Definition at line 27 of file fusb300_udc.h.

#define FUSB300_OFFSET_EPPORT (   n)    (0x1010 + (n - 1) * 0x10)

Definition at line 63 of file fusb300_udc.h.

#define FUSB300_OFFSET_EPPRD_W0 (   n)    (0x520 + (n - 1) * 0x10)

Definition at line 57 of file fusb300_udc.h.

#define FUSB300_OFFSET_EPPRD_W1 (   n)    (0x524 + (n - 1) * 0x10)

Definition at line 58 of file fusb300_udc.h.

#define FUSB300_OFFSET_EPPRD_W2 (   n)    (0x528 + (n - 1) * 0x10)

Definition at line 59 of file fusb300_udc.h.

#define FUSB300_OFFSET_EPPRDRDY   0x504

Definition at line 52 of file fusb300_udc.h.

#define FUSB300_OFFSET_EPRD_PTR (   n)    (0x52C + (n - 1) * 0x10)

Definition at line 60 of file fusb300_udc.h.

#define FUSB300_OFFSET_EPSET0 (   n)    (0x20 + (n - 1) * 0x30)

Definition at line 24 of file fusb300_udc.h.

#define FUSB300_OFFSET_EPSET1 (   n)    (0x24 + (n - 1) * 0x30)

Definition at line 25 of file fusb300_udc.h.

#define FUSB300_OFFSET_EPSET2 (   n)    (0x28 + (n - 1) * 0x30)

Definition at line 26 of file fusb300_udc.h.

#define FUSB300_OFFSET_EPSTRID (   n)    (0x40 + (n - 1) * 0x30)

Definition at line 28 of file fusb300_udc.h.

#define FUSB300_OFFSET_GCR   0x00

Definition at line 19 of file fusb300_udc.h.

#define FUSB300_OFFSET_GTM   0x04

Definition at line 20 of file fusb300_udc.h.

#define FUSB300_OFFSET_HSCR   0x304

Definition at line 30 of file fusb300_udc.h.

#define FUSB300_OFFSET_HSPTM   0x300

Definition at line 29 of file fusb300_udc.h.

#define FUSB300_OFFSET_IGER0   0x420

Definition at line 45 of file fusb300_udc.h.

#define FUSB300_OFFSET_IGER1   0x424

Definition at line 46 of file fusb300_udc.h.

#define FUSB300_OFFSET_IGER2   0x428

Definition at line 47 of file fusb300_udc.h.

#define FUSB300_OFFSET_IGER3   0x42C

Definition at line 48 of file fusb300_udc.h.

#define FUSB300_OFFSET_IGER4   0x430

Definition at line 49 of file fusb300_udc.h.

#define FUSB300_OFFSET_IGER5   0x434

Definition at line 50 of file fusb300_udc.h.

#define FUSB300_OFFSET_IGR0   0x400

Definition at line 39 of file fusb300_udc.h.

#define FUSB300_OFFSET_IGR1   0x404

Definition at line 40 of file fusb300_udc.h.

#define FUSB300_OFFSET_IGR2   0x408

Definition at line 41 of file fusb300_udc.h.

#define FUSB300_OFFSET_IGR3   0x40C

Definition at line 42 of file fusb300_udc.h.

#define FUSB300_OFFSET_IGR4   0x410

Definition at line 43 of file fusb300_udc.h.

#define FUSB300_OFFSET_IGR5   0x414

Definition at line 44 of file fusb300_udc.h.

#define FUSB300_OFFSET_SOF   0x324

Definition at line 37 of file fusb300_udc.h.

#define FUSB300_OFFSET_SSCR0   0x308

Definition at line 31 of file fusb300_udc.h.

#define FUSB300_OFFSET_SSCR1   0x30C

Definition at line 32 of file fusb300_udc.h.

#define FUSB300_OFFSET_TT   0x310

Definition at line 33 of file fusb300_udc.h.

#define FUSB300_SOF_MASK_TIMER_FS   0x2710

Definition at line 245 of file fusb300_udc.h.

#define FUSB300_SOF_MASK_TIMER_HS   0x044c

Definition at line 244 of file fusb300_udc.h.

#define FUSB300_SSCR0_MAX_INTERVAL (   x)    ((x & 0x7) << 4)

Definition at line 192 of file fusb300_udc.h.

#define FUSB300_SSCR0_U1_FUN_EN   (1 << 0)

Definition at line 194 of file fusb300_udc.h.

#define FUSB300_SSCR0_U2_FUN_EN   (1 << 1)

Definition at line 193 of file fusb300_udc.h.

#define FUSB300_SSCR1_DIS_SCRMB   (1 << 6)

Definition at line 201 of file fusb300_udc.h.

#define FUSB300_SSCR1_FORCE_RECOVERY   (1 << 5)

Definition at line 202 of file fusb300_udc.h.

#define FUSB300_SSCR1_GO_U3_DONE   (1 << 8)

Definition at line 199 of file fusb300_udc.h.

#define FUSB300_SSCR1_TXDEEMPH_LEVEL   (1 << 7)

Definition at line 200 of file fusb300_udc.h.

#define FUSB300_SSCR1_U1_ENTRY_EN   (1 << 0)

Definition at line 207 of file fusb300_udc.h.

#define FUSB300_SSCR1_U1_EXIT_EN   (1 << 2)

Definition at line 205 of file fusb300_udc.h.

#define FUSB300_SSCR1_U2_ENTRY_EN   (1 << 1)

Definition at line 206 of file fusb300_udc.h.

#define FUSB300_SSCR1_U2_EXIT_EN   (1 << 3)

Definition at line 204 of file fusb300_udc.h.

#define FUSB300_SSCR1_U3_WAKEUP_EN   (1 << 4)

Definition at line 203 of file fusb300_udc.h.

#define FUSB300_SSCR2_FORCE_LINKPM_ACCEPT   (1 << 24)

Definition at line 213 of file fusb300_udc.h.

#define FUSB300_SSCR2_SS_TX_SWING   (1 << 25)

Definition at line 212 of file fusb300_udc.h.

#define FUSB300_SSCR2_U1TIMEOUT (   x)    ((x & 0xFF) << 8)

Definition at line 215 of file fusb300_udc.h.

#define FUSB300_SSCR2_U2_INACT_TIMEOUT (   x)    ((x & 0xFF) << 16)

Definition at line 214 of file fusb300_udc.h.

#define FUSB300_SSCR2_U2TIMEOUT (   x)    (x & 0xFF)

Definition at line 216 of file fusb300_udc.h.

#define FUSB300_STRID_STREN   (1 << 16)

Definition at line 159 of file fusb300_udc.h.

#define FUSB300_STRID_STRID (   x)    (x & 0xFFFF)

Definition at line 160 of file fusb300_udc.h.

#define FUSB300_VSIC_VCTL (   x)    (x & 0x3F)

Definition at line 239 of file fusb300_udc.h.

#define FUSB300_VSIC_VCTLOAD_N   (1 << 8)

Definition at line 238 of file fusb300_udc.h.

#define HS_BULK_MAX_PACKET_SIZE   0x200

Definition at line 620 of file fusb300_udc.h.

#define HS_CTL_MAX_PACKET_SIZE   0x40

Definition at line 621 of file fusb300_udc.h.

#define HS_INT_MAX_PACKET_SIZE   0x400

Definition at line 622 of file fusb300_udc.h.

#define HS_ISO_MAX_PACKET_SIZE   0x400

Definition at line 623 of file fusb300_udc.h.

#define SS_BULK_MAX_PACKET_SIZE   0x400

Definition at line 616 of file fusb300_udc.h.

#define SS_CTL_MAX_PACKET_SIZE   0x200

Definition at line 615 of file fusb300_udc.h.

#define SS_INT_MAX_PACKET_SIZE   0x400

Definition at line 617 of file fusb300_udc.h.

#define SS_ISO_MAX_PACKET_SIZE   0x400

Definition at line 618 of file fusb300_udc.h.