Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | usba_dma_desc |
struct | usba_ep |
struct | usba_request |
struct | usba_udc |
Macros | |
#define | USBA_CTRL 0x0000 |
#define | USBA_FNUM 0x0004 |
#define | USBA_INT_ENB 0x0010 |
#define | USBA_INT_STA 0x0014 |
#define | USBA_INT_CLR 0x0018 |
#define | USBA_EPT_RST 0x001c |
#define | USBA_TST 0x00e0 |
#define | USBA_EPT_CFG 0x0000 |
#define | USBA_EPT_CTL_ENB 0x0004 |
#define | USBA_EPT_CTL_DIS 0x0008 |
#define | USBA_EPT_CTL 0x000c |
#define | USBA_EPT_SET_STA 0x0014 |
#define | USBA_EPT_CLR_STA 0x0018 |
#define | USBA_EPT_STA 0x001c |
#define | USBA_DMA_NXT_DSC 0x0000 |
#define | USBA_DMA_ADDRESS 0x0004 |
#define | USBA_DMA_CONTROL 0x0008 |
#define | USBA_DMA_STATUS 0x000c |
#define | USBA_DEV_ADDR_OFFSET 0 |
#define | USBA_DEV_ADDR_SIZE 7 |
#define | USBA_FADDR_EN (1 << 7) |
#define | USBA_EN_USBA (1 << 8) |
#define | USBA_DETACH (1 << 9) |
#define | USBA_REMOTE_WAKE_UP (1 << 10) |
#define | USBA_PULLD_DIS (1 << 11) |
#define | USBA_MICRO_FRAME_NUM_OFFSET 0 |
#define | USBA_MICRO_FRAME_NUM_SIZE 3 |
#define | USBA_FRAME_NUMBER_OFFSET 3 |
#define | USBA_FRAME_NUMBER_SIZE 11 |
#define | USBA_FRAME_NUM_ERROR (1 << 31) |
#define | USBA_HIGH_SPEED (1 << 0) |
#define | USBA_DET_SUSPEND (1 << 1) |
#define | USBA_MICRO_SOF (1 << 2) |
#define | USBA_SOF (1 << 3) |
#define | USBA_END_OF_RESET (1 << 4) |
#define | USBA_WAKE_UP (1 << 5) |
#define | USBA_END_OF_RESUME (1 << 6) |
#define | USBA_UPSTREAM_RESUME (1 << 7) |
#define | USBA_EPT_INT_OFFSET 8 |
#define | USBA_EPT_INT_SIZE 16 |
#define | USBA_DMA_INT_OFFSET 24 |
#define | USBA_DMA_INT_SIZE 8 |
#define | USBA_RST_OFFSET 0 |
#define | USBA_RST_SIZE 16 |
#define | USBA_SPEED_CFG_OFFSET 0 |
#define | USBA_SPEED_CFG_SIZE 2 |
#define | USBA_TST_J_MODE (1 << 2) |
#define | USBA_TST_K_MODE (1 << 3) |
#define | USBA_TST_PKT_MODE (1 << 4) |
#define | USBA_OPMODE2 (1 << 5) |
#define | USBA_EPT_SIZE_OFFSET 0 |
#define | USBA_EPT_SIZE_SIZE 3 |
#define | USBA_EPT_DIR_IN (1 << 3) |
#define | USBA_EPT_TYPE_OFFSET 4 |
#define | USBA_EPT_TYPE_SIZE 2 |
#define | USBA_BK_NUMBER_OFFSET 6 |
#define | USBA_BK_NUMBER_SIZE 2 |
#define | USBA_NB_TRANS_OFFSET 8 |
#define | USBA_NB_TRANS_SIZE 2 |
#define | USBA_EPT_MAPPED (1 << 31) |
#define | USBA_EPT_ENABLE (1 << 0) |
#define | USBA_AUTO_VALID (1 << 1) |
#define | USBA_INTDIS_DMA (1 << 3) |
#define | USBA_NYET_DIS (1 << 4) |
#define | USBA_DATAX_RX (1 << 6) |
#define | USBA_MDATA_RX (1 << 7) |
#define | USBA_BUSY_BANK_IE (1 << 18) |
#define | USBA_FORCE_STALL (1 << 5) |
#define | USBA_TOGGLE_CLR (1 << 6) |
#define | USBA_TOGGLE_SEQ_OFFSET 6 |
#define | USBA_TOGGLE_SEQ_SIZE 2 |
#define | USBA_ERR_OVFLW (1 << 8) |
#define | USBA_RX_BK_RDY (1 << 9) |
#define | USBA_KILL_BANK (1 << 9) |
#define | USBA_TX_COMPLETE (1 << 10) |
#define | USBA_TX_PK_RDY (1 << 11) |
#define | USBA_ISO_ERR_TRANS (1 << 11) |
#define | USBA_RX_SETUP (1 << 12) |
#define | USBA_ISO_ERR_FLOW (1 << 12) |
#define | USBA_STALL_SENT (1 << 13) |
#define | USBA_ISO_ERR_CRC (1 << 13) |
#define | USBA_ISO_ERR_NBTRANS (1 << 13) |
#define | USBA_NAK_IN (1 << 14) |
#define | USBA_ISO_ERR_FLUSH (1 << 14) |
#define | USBA_NAK_OUT (1 << 15) |
#define | USBA_CURRENT_BANK_OFFSET 16 |
#define | USBA_CURRENT_BANK_SIZE 2 |
#define | USBA_BUSY_BANKS_OFFSET 18 |
#define | USBA_BUSY_BANKS_SIZE 2 |
#define | USBA_BYTE_COUNT_OFFSET 20 |
#define | USBA_BYTE_COUNT_SIZE 11 |
#define | USBA_SHORT_PACKET (1 << 31) |
#define | USBA_DMA_CH_EN (1 << 0) |
#define | USBA_DMA_LINK (1 << 1) |
#define | USBA_DMA_END_TR_EN (1 << 2) |
#define | USBA_DMA_END_BUF_EN (1 << 3) |
#define | USBA_DMA_END_TR_IE (1 << 4) |
#define | USBA_DMA_END_BUF_IE (1 << 5) |
#define | USBA_DMA_DESC_LOAD_IE (1 << 6) |
#define | USBA_DMA_BURST_LOCK (1 << 7) |
#define | USBA_DMA_BUF_LEN_OFFSET 16 |
#define | USBA_DMA_BUF_LEN_SIZE 16 |
#define | USBA_DMA_CH_ACTIVE (1 << 1) |
#define | USBA_DMA_END_TR_ST (1 << 4) |
#define | USBA_DMA_END_BUF_ST (1 << 5) |
#define | USBA_DMA_DESC_LOAD_ST (1 << 6) |
#define | USBA_SPEED_CFG_NORMAL 0 |
#define | USBA_SPEED_CFG_FORCE_HIGH 2 |
#define | USBA_SPEED_CFG_FORCE_FULL 3 |
#define | USBA_EPT_SIZE_8 0 |
#define | USBA_EPT_SIZE_16 1 |
#define | USBA_EPT_SIZE_32 2 |
#define | USBA_EPT_SIZE_64 3 |
#define | USBA_EPT_SIZE_128 4 |
#define | USBA_EPT_SIZE_256 5 |
#define | USBA_EPT_SIZE_512 6 |
#define | USBA_EPT_SIZE_1024 7 |
#define | USBA_EPT_TYPE_CONTROL 0 |
#define | USBA_EPT_TYPE_ISO 1 |
#define | USBA_EPT_TYPE_BULK 2 |
#define | USBA_EPT_TYPE_INT 3 |
#define | USBA_BK_NUMBER_ZERO 0 |
#define | USBA_BK_NUMBER_ONE 1 |
#define | USBA_BK_NUMBER_DOUBLE 2 |
#define | USBA_BK_NUMBER_TRIPLE 3 |
#define | USBA_BF(name, value) |
#define | USBA_BFEXT(name, value) |
#define | USBA_BFINS(name, value, old) |
#define | usba_readl(udc, reg) __raw_readl((udc)->regs + USBA_##reg) |
#define | usba_writel(udc, reg, value) __raw_writel((value), (udc)->regs + USBA_##reg) |
#define | usba_ep_readl(ep, reg) __raw_readl((ep)->ep_regs + USBA_EPT_##reg) |
#define | usba_ep_writel(ep, reg, value) __raw_writel((value), (ep)->ep_regs + USBA_EPT_##reg) |
#define | usba_dma_readl(ep, reg) __raw_readl((ep)->dma_regs + USBA_DMA_##reg) |
#define | usba_dma_writel(ep, reg, value) __raw_writel((value), (ep)->dma_regs + USBA_DMA_##reg) |
#define | USBA_EPT_BASE(x) (0x100 + (x) * 0x20) |
#define | USBA_DMA_BASE(x) (0x300 + (x) * 0x10) |
#define | USBA_FIFO_BASE(x) ((x) << 16) |
#define | USBA_NR_ENDPOINTS 7 |
#define | EP0_FIFO_SIZE 64 |
#define | EP0_EPT_SIZE USBA_EPT_SIZE_64 |
#define | EP0_NR_BANKS 1 |
#define | DMA_ADDR_INVALID (~(dma_addr_t)0) |
#define | FIFO_IOMEM_ID 0 |
#define | CTRL_IOMEM_ID 1 |
#define | DBG_ERR 0x0001 /* report all error returns */ |
#define | DBG_HW 0x0002 /* debug hardware initialization */ |
#define | DBG_GADGET 0x0004 /* calls to/from gadget driver */ |
#define | DBG_INT 0x0008 /* interrupts */ |
#define | DBG_BUS 0x0010 /* report changes in bus state */ |
#define | DBG_QUEUE 0x0020 /* debug request queue processing */ |
#define | DBG_FIFO 0x0040 /* debug FIFO contents */ |
#define | DBG_DMA 0x0080 /* debug DMA handling */ |
#define | DBG_REQ 0x0100 /* print out queued request length */ |
#define | DBG_ALL 0xffff |
#define | DBG_NONE 0x0000 |
#define | DEBUG_LEVEL (DBG_ERR) |
#define | DBG(level, fmt,...) |
#define | ep_is_control(ep) ((ep)->index == 0) |
#define | ep_is_idle(ep) ((ep)->state == EP_STATE_IDLE) |
Enumerations | |
enum | usba_ctrl_state { WAIT_FOR_SETUP, DATA_STAGE_IN, DATA_STAGE_OUT, STATUS_STAGE_IN, STATUS_STAGE_OUT, STATUS_STAGE_ADDR, STATUS_STAGE_TEST } |
#define CTRL_IOMEM_ID 1 |
Definition at line 226 of file atmel_usba_udc.h.
Definition at line 242 of file atmel_usba_udc.h.
#define DBG_ALL 0xffff |
Definition at line 237 of file atmel_usba_udc.h.
#define DBG_BUS 0x0010 /* report changes in bus state */ |
Definition at line 232 of file atmel_usba_udc.h.
#define DBG_DMA 0x0080 /* debug DMA handling */ |
Definition at line 235 of file atmel_usba_udc.h.
#define DBG_ERR 0x0001 /* report all error returns */ |
Definition at line 228 of file atmel_usba_udc.h.
#define DBG_FIFO 0x0040 /* debug FIFO contents */ |
Definition at line 234 of file atmel_usba_udc.h.
#define DBG_GADGET 0x0004 /* calls to/from gadget driver */ |
Definition at line 230 of file atmel_usba_udc.h.
#define DBG_HW 0x0002 /* debug hardware initialization */ |
Definition at line 229 of file atmel_usba_udc.h.
#define DBG_INT 0x0008 /* interrupts */ |
Definition at line 231 of file atmel_usba_udc.h.
#define DBG_NONE 0x0000 |
Definition at line 238 of file atmel_usba_udc.h.
#define DBG_QUEUE 0x0020 /* debug request queue processing */ |
Definition at line 233 of file atmel_usba_udc.h.
#define DBG_REQ 0x0100 /* print out queued request length */ |
Definition at line 236 of file atmel_usba_udc.h.
#define DEBUG_LEVEL (DBG_ERR) |
Definition at line 240 of file atmel_usba_udc.h.
#define DMA_ADDR_INVALID (~(dma_addr_t)0) |
Definition at line 223 of file atmel_usba_udc.h.
#define EP0_EPT_SIZE USBA_EPT_SIZE_64 |
Definition at line 216 of file atmel_usba_udc.h.
#define EP0_FIFO_SIZE 64 |
Definition at line 215 of file atmel_usba_udc.h.
#define EP0_NR_BANKS 1 |
Definition at line 217 of file atmel_usba_udc.h.
#define ep_is_control | ( | ep | ) | ((ep)->index == 0) |
Definition at line 355 of file atmel_usba_udc.h.
#define ep_is_idle | ( | ep | ) | ((ep)->state == EP_STATE_IDLE) |
Definition at line 356 of file atmel_usba_udc.h.
#define FIFO_IOMEM_ID 0 |
Definition at line 225 of file atmel_usba_udc.h.
#define USBA_AUTO_VALID (1 << 1) |
Definition at line 101 of file atmel_usba_udc.h.
Definition at line 182 of file atmel_usba_udc.h.
Definition at line 185 of file atmel_usba_udc.h.
#define USBA_BK_NUMBER_DOUBLE 2 |
Definition at line 178 of file atmel_usba_udc.h.
#define USBA_BK_NUMBER_OFFSET 6 |
Definition at line 93 of file atmel_usba_udc.h.
#define USBA_BK_NUMBER_ONE 1 |
Definition at line 177 of file atmel_usba_udc.h.
#define USBA_BK_NUMBER_SIZE 2 |
Definition at line 94 of file atmel_usba_udc.h.
#define USBA_BK_NUMBER_TRIPLE 3 |
Definition at line 179 of file atmel_usba_udc.h.
#define USBA_BK_NUMBER_ZERO 0 |
Definition at line 176 of file atmel_usba_udc.h.
#define USBA_BUSY_BANK_IE (1 << 18) |
Definition at line 107 of file atmel_usba_udc.h.
#define USBA_BUSY_BANKS_OFFSET 18 |
Definition at line 130 of file atmel_usba_udc.h.
#define USBA_BUSY_BANKS_SIZE 2 |
Definition at line 131 of file atmel_usba_udc.h.
#define USBA_BYTE_COUNT_OFFSET 20 |
Definition at line 132 of file atmel_usba_udc.h.
#define USBA_BYTE_COUNT_SIZE 11 |
Definition at line 133 of file atmel_usba_udc.h.
#define USBA_CTRL 0x0000 |
Definition at line 14 of file atmel_usba_udc.h.
#define USBA_CURRENT_BANK_OFFSET 16 |
Definition at line 128 of file atmel_usba_udc.h.
#define USBA_CURRENT_BANK_SIZE 2 |
Definition at line 129 of file atmel_usba_udc.h.
#define USBA_DATAX_RX (1 << 6) |
Definition at line 104 of file atmel_usba_udc.h.
#define USBA_DET_SUSPEND (1 << 1) |
Definition at line 63 of file atmel_usba_udc.h.
#define USBA_DETACH (1 << 9) |
Definition at line 42 of file atmel_usba_udc.h.
#define USBA_DEV_ADDR_OFFSET 0 |
Definition at line 38 of file atmel_usba_udc.h.
#define USBA_DEV_ADDR_SIZE 7 |
Definition at line 39 of file atmel_usba_udc.h.
#define USBA_DMA_ADDRESS 0x0004 |
Definition at line 33 of file atmel_usba_udc.h.
#define USBA_DMA_BASE | ( | x | ) | (0x300 + (x) * 0x10) |
Definition at line 209 of file atmel_usba_udc.h.
#define USBA_DMA_BUF_LEN_OFFSET 16 |
Definition at line 145 of file atmel_usba_udc.h.
#define USBA_DMA_BUF_LEN_SIZE 16 |
Definition at line 146 of file atmel_usba_udc.h.
#define USBA_DMA_BURST_LOCK (1 << 7) |
Definition at line 144 of file atmel_usba_udc.h.
#define USBA_DMA_CH_ACTIVE (1 << 1) |
Definition at line 149 of file atmel_usba_udc.h.
#define USBA_DMA_CH_EN (1 << 0) |
Definition at line 137 of file atmel_usba_udc.h.
#define USBA_DMA_CONTROL 0x0008 |
Definition at line 34 of file atmel_usba_udc.h.
#define USBA_DMA_DESC_LOAD_IE (1 << 6) |
Definition at line 143 of file atmel_usba_udc.h.
#define USBA_DMA_DESC_LOAD_ST (1 << 6) |
Definition at line 152 of file atmel_usba_udc.h.
#define USBA_DMA_END_BUF_EN (1 << 3) |
Definition at line 140 of file atmel_usba_udc.h.
#define USBA_DMA_END_BUF_IE (1 << 5) |
Definition at line 142 of file atmel_usba_udc.h.
#define USBA_DMA_END_BUF_ST (1 << 5) |
Definition at line 151 of file atmel_usba_udc.h.
#define USBA_DMA_END_TR_EN (1 << 2) |
Definition at line 139 of file atmel_usba_udc.h.
#define USBA_DMA_END_TR_IE (1 << 4) |
Definition at line 141 of file atmel_usba_udc.h.
#define USBA_DMA_END_TR_ST (1 << 4) |
Definition at line 150 of file atmel_usba_udc.h.
#define USBA_DMA_INT_OFFSET 24 |
Definition at line 72 of file atmel_usba_udc.h.
#define USBA_DMA_INT_SIZE 8 |
Definition at line 73 of file atmel_usba_udc.h.
#define USBA_DMA_LINK (1 << 1) |
Definition at line 138 of file atmel_usba_udc.h.
#define USBA_DMA_NXT_DSC 0x0000 |
Definition at line 32 of file atmel_usba_udc.h.
#define usba_dma_readl | ( | ep, | |
reg | |||
) | __raw_readl((ep)->dma_regs + USBA_DMA_##reg) |
Definition at line 202 of file atmel_usba_udc.h.
#define USBA_DMA_STATUS 0x000c |
Definition at line 35 of file atmel_usba_udc.h.
Definition at line 204 of file atmel_usba_udc.h.
#define USBA_EN_USBA (1 << 8) |
Definition at line 41 of file atmel_usba_udc.h.
#define USBA_END_OF_RESET (1 << 4) |
Definition at line 66 of file atmel_usba_udc.h.
#define USBA_END_OF_RESUME (1 << 6) |
Definition at line 68 of file atmel_usba_udc.h.
#define usba_ep_readl | ( | ep, | |
reg | |||
) | __raw_readl((ep)->ep_regs + USBA_EPT_##reg) |
Definition at line 198 of file atmel_usba_udc.h.
#define usba_ep_writel | ( | ep, | |
reg, | |||
value | |||
) | __raw_writel((value), (ep)->ep_regs + USBA_EPT_##reg) |
Definition at line 200 of file atmel_usba_udc.h.
#define USBA_EPT_BASE | ( | x | ) | (0x100 + (x) * 0x20) |
Definition at line 208 of file atmel_usba_udc.h.
#define USBA_EPT_CFG 0x0000 |
Definition at line 23 of file atmel_usba_udc.h.
#define USBA_EPT_CLR_STA 0x0018 |
Definition at line 28 of file atmel_usba_udc.h.
#define USBA_EPT_CTL 0x000c |
Definition at line 26 of file atmel_usba_udc.h.
#define USBA_EPT_CTL_DIS 0x0008 |
Definition at line 25 of file atmel_usba_udc.h.
#define USBA_EPT_CTL_ENB 0x0004 |
Definition at line 24 of file atmel_usba_udc.h.
#define USBA_EPT_DIR_IN (1 << 3) |
Definition at line 90 of file atmel_usba_udc.h.
#define USBA_EPT_ENABLE (1 << 0) |
Definition at line 100 of file atmel_usba_udc.h.
#define USBA_EPT_INT_OFFSET 8 |
Definition at line 70 of file atmel_usba_udc.h.
#define USBA_EPT_INT_SIZE 16 |
Definition at line 71 of file atmel_usba_udc.h.
#define USBA_EPT_MAPPED (1 << 31) |
Definition at line 97 of file atmel_usba_udc.h.
#define USBA_EPT_RST 0x001c |
Definition at line 19 of file atmel_usba_udc.h.
#define USBA_EPT_SET_STA 0x0014 |
Definition at line 27 of file atmel_usba_udc.h.
#define USBA_EPT_SIZE_1024 7 |
Definition at line 167 of file atmel_usba_udc.h.
#define USBA_EPT_SIZE_128 4 |
Definition at line 164 of file atmel_usba_udc.h.
#define USBA_EPT_SIZE_16 1 |
Definition at line 161 of file atmel_usba_udc.h.
#define USBA_EPT_SIZE_256 5 |
Definition at line 165 of file atmel_usba_udc.h.
#define USBA_EPT_SIZE_32 2 |
Definition at line 162 of file atmel_usba_udc.h.
#define USBA_EPT_SIZE_512 6 |
Definition at line 166 of file atmel_usba_udc.h.
#define USBA_EPT_SIZE_64 3 |
Definition at line 163 of file atmel_usba_udc.h.
#define USBA_EPT_SIZE_8 0 |
Definition at line 160 of file atmel_usba_udc.h.
#define USBA_EPT_SIZE_OFFSET 0 |
Definition at line 88 of file atmel_usba_udc.h.
#define USBA_EPT_SIZE_SIZE 3 |
Definition at line 89 of file atmel_usba_udc.h.
#define USBA_EPT_STA 0x001c |
Definition at line 29 of file atmel_usba_udc.h.
#define USBA_EPT_TYPE_BULK 2 |
Definition at line 172 of file atmel_usba_udc.h.
#define USBA_EPT_TYPE_CONTROL 0 |
Definition at line 170 of file atmel_usba_udc.h.
#define USBA_EPT_TYPE_INT 3 |
Definition at line 173 of file atmel_usba_udc.h.
#define USBA_EPT_TYPE_ISO 1 |
Definition at line 171 of file atmel_usba_udc.h.
#define USBA_EPT_TYPE_OFFSET 4 |
Definition at line 91 of file atmel_usba_udc.h.
#define USBA_EPT_TYPE_SIZE 2 |
Definition at line 92 of file atmel_usba_udc.h.
#define USBA_ERR_OVFLW (1 << 8) |
Definition at line 114 of file atmel_usba_udc.h.
#define USBA_FADDR_EN (1 << 7) |
Definition at line 40 of file atmel_usba_udc.h.
Definition at line 210 of file atmel_usba_udc.h.
#define USBA_FNUM 0x0004 |
Definition at line 15 of file atmel_usba_udc.h.
#define USBA_FORCE_STALL (1 << 5) |
Definition at line 110 of file atmel_usba_udc.h.
#define USBA_FRAME_NUM_ERROR (1 << 31) |
Definition at line 59 of file atmel_usba_udc.h.
#define USBA_FRAME_NUMBER_OFFSET 3 |
Definition at line 57 of file atmel_usba_udc.h.
#define USBA_FRAME_NUMBER_SIZE 11 |
Definition at line 58 of file atmel_usba_udc.h.
#define USBA_HIGH_SPEED (1 << 0) |
Definition at line 62 of file atmel_usba_udc.h.
#define USBA_INT_CLR 0x0018 |
Definition at line 18 of file atmel_usba_udc.h.
#define USBA_INT_ENB 0x0010 |
Definition at line 16 of file atmel_usba_udc.h.
#define USBA_INT_STA 0x0014 |
Definition at line 17 of file atmel_usba_udc.h.
#define USBA_INTDIS_DMA (1 << 3) |
Definition at line 102 of file atmel_usba_udc.h.
#define USBA_ISO_ERR_CRC (1 << 13) |
Definition at line 123 of file atmel_usba_udc.h.
#define USBA_ISO_ERR_FLOW (1 << 12) |
Definition at line 121 of file atmel_usba_udc.h.
#define USBA_ISO_ERR_FLUSH (1 << 14) |
Definition at line 126 of file atmel_usba_udc.h.
#define USBA_ISO_ERR_NBTRANS (1 << 13) |
Definition at line 124 of file atmel_usba_udc.h.
#define USBA_ISO_ERR_TRANS (1 << 11) |
Definition at line 119 of file atmel_usba_udc.h.
#define USBA_KILL_BANK (1 << 9) |
Definition at line 116 of file atmel_usba_udc.h.
#define USBA_MDATA_RX (1 << 7) |
Definition at line 105 of file atmel_usba_udc.h.
#define USBA_MICRO_FRAME_NUM_OFFSET 0 |
Definition at line 55 of file atmel_usba_udc.h.
#define USBA_MICRO_FRAME_NUM_SIZE 3 |
Definition at line 56 of file atmel_usba_udc.h.
#define USBA_MICRO_SOF (1 << 2) |
Definition at line 64 of file atmel_usba_udc.h.
#define USBA_NAK_IN (1 << 14) |
Definition at line 125 of file atmel_usba_udc.h.
#define USBA_NAK_OUT (1 << 15) |
Definition at line 127 of file atmel_usba_udc.h.
#define USBA_NB_TRANS_OFFSET 8 |
Definition at line 95 of file atmel_usba_udc.h.
#define USBA_NB_TRANS_SIZE 2 |
Definition at line 96 of file atmel_usba_udc.h.
#define USBA_NR_ENDPOINTS 7 |
Definition at line 213 of file atmel_usba_udc.h.
#define USBA_NYET_DIS (1 << 4) |
Definition at line 103 of file atmel_usba_udc.h.
#define USBA_OPMODE2 (1 << 5) |
Definition at line 85 of file atmel_usba_udc.h.
#define USBA_PULLD_DIS (1 << 11) |
Definition at line 44 of file atmel_usba_udc.h.
Definition at line 194 of file atmel_usba_udc.h.
#define USBA_REMOTE_WAKE_UP (1 << 10) |
Definition at line 43 of file atmel_usba_udc.h.
#define USBA_RST_OFFSET 0 |
Definition at line 76 of file atmel_usba_udc.h.
#define USBA_RST_SIZE 16 |
Definition at line 77 of file atmel_usba_udc.h.
#define USBA_RX_BK_RDY (1 << 9) |
Definition at line 115 of file atmel_usba_udc.h.
#define USBA_RX_SETUP (1 << 12) |
Definition at line 120 of file atmel_usba_udc.h.
#define USBA_SHORT_PACKET (1 << 31) |
Definition at line 134 of file atmel_usba_udc.h.
#define USBA_SOF (1 << 3) |
Definition at line 65 of file atmel_usba_udc.h.
#define USBA_SPEED_CFG_FORCE_FULL 3 |
Definition at line 157 of file atmel_usba_udc.h.
#define USBA_SPEED_CFG_FORCE_HIGH 2 |
Definition at line 156 of file atmel_usba_udc.h.
#define USBA_SPEED_CFG_NORMAL 0 |
Definition at line 155 of file atmel_usba_udc.h.
#define USBA_SPEED_CFG_OFFSET 0 |
Definition at line 80 of file atmel_usba_udc.h.
#define USBA_SPEED_CFG_SIZE 2 |
Definition at line 81 of file atmel_usba_udc.h.
#define USBA_STALL_SENT (1 << 13) |
Definition at line 122 of file atmel_usba_udc.h.
#define USBA_TOGGLE_CLR (1 << 6) |
Definition at line 111 of file atmel_usba_udc.h.
#define USBA_TOGGLE_SEQ_OFFSET 6 |
Definition at line 112 of file atmel_usba_udc.h.
#define USBA_TOGGLE_SEQ_SIZE 2 |
Definition at line 113 of file atmel_usba_udc.h.
#define USBA_TST 0x00e0 |
Definition at line 20 of file atmel_usba_udc.h.
#define USBA_TST_J_MODE (1 << 2) |
Definition at line 82 of file atmel_usba_udc.h.
#define USBA_TST_K_MODE (1 << 3) |
Definition at line 83 of file atmel_usba_udc.h.
#define USBA_TST_PKT_MODE (1 << 4) |
Definition at line 84 of file atmel_usba_udc.h.
#define USBA_TX_COMPLETE (1 << 10) |
Definition at line 117 of file atmel_usba_udc.h.
#define USBA_TX_PK_RDY (1 << 11) |
Definition at line 118 of file atmel_usba_udc.h.
#define USBA_UPSTREAM_RESUME (1 << 7) |
Definition at line 69 of file atmel_usba_udc.h.
#define USBA_WAKE_UP (1 << 5) |
Definition at line 67 of file atmel_usba_udc.h.
Definition at line 196 of file atmel_usba_udc.h.
enum usba_ctrl_state |
WAIT_FOR_SETUP | |
DATA_STAGE_IN | |
DATA_STAGE_OUT | |
STATUS_STAGE_IN | |
STATUS_STAGE_OUT | |
STATUS_STAGE_ADDR | |
STATUS_STAGE_TEST |
Definition at line 248 of file atmel_usba_udc.h.