Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | usb_device_para |
struct | usb_ep_para |
struct | qe_frame |
struct | qe_req |
struct | qe_ep |
struct | qe_udc |
Macros | |
#define | PORT_CPM 0 |
#define | PORT_QE 1 |
#define | USB_MAX_ENDPOINTS 4 |
#define | USB_MAX_PIPES USB_MAX_ENDPOINTS |
#define | USB_EP0_MAX_SIZE 64 |
#define | USB_MAX_CTRL_PAYLOAD 0x4000 |
#define | USB_BDRING_LEN 16 |
#define | USB_BDRING_LEN_RX 256 |
#define | USB_BDRING_LEN_TX 16 |
#define | MIN_EMPTY_BDS 128 |
#define | MAX_DATA_BDS 8 |
#define | USB_CRC_SIZE 2 |
#define | USB_DIR_BOTH 0x88 |
#define | R_BUF_MAXSIZE 0x800 |
#define | USB_EP_PARA_ALIGNMENT 32 |
#define | USB_MODE_EN 0x01 |
#define | USB_MODE_HOST 0x02 |
#define | USB_MODE_TEST 0x04 |
#define | USB_MODE_SFTE 0x08 |
#define | USB_MODE_RESUME 0x40 |
#define | USB_MODE_LSS 0x80 |
#define | USB_SLVADDR_MASK 0x7F |
#define | USB_EPNUM_MASK 0xF000 |
#define | USB_EPNUM_SHIFT 12 |
#define | USB_TRANS_MODE_SHIFT 8 |
#define | USB_TRANS_CTR 0x0000 |
#define | USB_TRANS_INT 0x0100 |
#define | USB_TRANS_BULK 0x0200 |
#define | USB_TRANS_ISO 0x0300 |
#define | USB_EP_MF 0x0020 |
#define | USB_EP_RTE 0x0010 |
#define | USB_THS_SHIFT 2 |
#define | USB_THS_MASK 0x000c |
#define | USB_THS_NORMAL 0x0 |
#define | USB_THS_IGNORE_IN 0x0004 |
#define | USB_THS_NACK 0x0008 |
#define | USB_THS_STALL 0x000c |
#define | USB_RHS_SHIFT 0 |
#define | USB_RHS_MASK 0x0003 |
#define | USB_RHS_NORMAL 0x0 |
#define | USB_RHS_IGNORE_OUT 0x0001 |
#define | USB_RHS_NACK 0x0002 |
#define | USB_RHS_STALL 0x0003 |
#define | USB_RTHS_MASK 0x000f |
#define | USB_CMD_STR_FIFO 0x80 |
#define | USB_CMD_FLUSH_FIFO 0x40 |
#define | USB_CMD_ISFT 0x20 |
#define | USB_CMD_DSFT 0x10 |
#define | USB_CMD_EP_MASK 0x03 |
#define | USB_E_MSF_MASK 0x0800 |
#define | USB_E_SFT_MASK 0x0400 |
#define | USB_E_RESET_MASK 0x0200 |
#define | USB_E_IDLE_MASK 0x0100 |
#define | USB_E_TXE4_MASK 0x0080 |
#define | USB_E_TXE3_MASK 0x0040 |
#define | USB_E_TXE2_MASK 0x0020 |
#define | USB_E_TXE1_MASK 0x0010 |
#define | USB_E_SOF_MASK 0x0008 |
#define | USB_E_BSY_MASK 0x0004 |
#define | USB_E_TXB_MASK 0x0002 |
#define | USB_E_RXB_MASK 0x0001 |
#define | USBER_ALL_CLEAR 0x0fff |
#define | USB_E_DEFAULT_DEVICE |
#define | USB_E_TXE_MASK |
#define | USB_IDLE_STATUS_MASK 0x01 |
#define | USB_USSFT_MASK 0x3FFF |
#define | USB_USFRN_MASK 0xFFFF |
#define | USB_BUSMODE_GBL 0x20 |
#define | USB_BUSMODE_BO_MASK 0x18 |
#define | USB_BUSMODE_BO_SHIFT 0x3 |
#define | USB_BUSMODE_BE 0x2 |
#define | USB_BUSMODE_CETM 0x04 |
#define | USB_BUSMODE_DTB 0x02 |
#define | ep_index(EP) ((EP)->ep.desc->bEndpointAddress & 0xF) |
#define | ep_maxpacket(EP) ((EP)->ep.maxpacket) |
#define | ep_is_in(EP) |
#define | WAIT_FOR_SETUP 0 |
#define | DATA_STATE_XMIT 1 |
#define | DATA_STATE_NEED_ZLP 2 |
#define | WAIT_FOR_OUT_STATUS 3 |
#define | DATA_STATE_RECV 4 |
#define | USBP_TM_CTL 0 |
#define | USBP_TM_ISO 1 |
#define | USBP_TM_BULK 2 |
#define | USBP_TM_INT 3 |
#define | PID_DATA0 0x80000000 /* Data toggle zero */ |
#define | PID_DATA1 0x40000000 /* Data toggle one */ |
#define | PID_SETUP 0x20000000 /* setup bit */ |
#define | SETUP_STATUS 0x10000000 /* setup status bit */ |
#define | SETADDR_STATUS 0x08000000 /* setupup address status bit */ |
#define | NO_REQ 0x04000000 /* Frame without request */ |
#define | HOST_DATA 0x02000000 /* Host data frame */ |
#define | FIRST_PACKET_IN_FRAME 0x01000000 /* first packet in the frame */ |
#define | TOKEN_FRAME 0x00800000 /* Host token frame */ |
#define | ZLP 0x00400000 /* Zero length packet */ |
#define | IN_TOKEN_FRAME 0x00200000 /* In token package */ |
#define | OUT_TOKEN_FRAME 0x00100000 /* Out token package */ |
#define | SETUP_TOKEN_FRAME 0x00080000 /* Setup token package */ |
#define | STALL_FRAME 0x00040000 /* Stall handshake */ |
#define | NACK_FRAME 0x00020000 /* Nack handshake */ |
#define | NO_PID 0x00010000 /* No send PID */ |
#define | NO_CRC 0x00008000 /* No send CRC */ |
#define | HOST_COMMAND 0x00004000 /* Host command frame */ |
#define | FRAME_OK 0x00000000 /* Frame transmitted or received OK */ |
#define | FRAME_ERROR 0x80000000 /* Error occurred on frame */ |
#define | START_FRAME_LOST 0x40000000 /* START_FRAME_LOST */ |
#define | END_FRAME_LOST 0x20000000 /* END_FRAME_LOST */ |
#define | RX_ER_NONOCT 0x10000000 /* Rx Non Octet Aligned Packet */ |
#define | RX_ER_BITSTUFF |
#define | RX_ER_CRC 0x04000000 /* Received packet with CRC error */ |
#define | RX_ER_OVERUN 0x02000000 /* Over-run occurred on reception */ |
#define | RX_ER_PID 0x01000000 /* Wrong PID received */ |
#define | TX_ER_NAK 0x00800000 /* Received NAK handshake */ |
#define | TX_ER_STALL 0x00400000 /* Received STALL handshake */ |
#define | TX_ER_TIMEOUT 0x00200000 /* Transmit time out */ |
#define | TX_ER_UNDERUN 0x00100000 /* Transmit underrun */ |
#define | FRAME_INPROGRESS 0x00080000 /* Frame is being transmitted */ |
#define | ER_DATA_UNDERUN 0x00040000 /* Frame is shorter then expected */ |
#define | ER_DATA_OVERUN 0x00020000 /* Frame is longer then expected */ |
#define | frame_get_length(frm) (frm->len) |
#define | frame_set_length(frm, leng) (frm->len = leng) |
#define | frame_get_data(frm) (frm->data) |
#define | frame_set_data(frm, dat) (frm->data = dat) |
#define | frame_get_info(frm) (frm->info) |
#define | frame_set_info(frm, inf) (frm->info = inf) |
#define | frame_get_status(frm) (frm->status) |
#define | frame_set_status(frm, stat) (frm->status = stat) |
#define | frame_get_privdata(frm) (frm->privdata) |
#define | frame_set_privdata(frm, dat) (frm->privdata = dat) |
#define | EP_STATE_IDLE 0 |
#define | EP_STATE_NACK 1 |
#define | EP_STATE_STALL 2 |
#define | T_R 0x80000000 /* ready bit */ |
#define | T_W 0x20000000 /* wrap bit */ |
#define | T_I 0x10000000 /* interrupt on completion */ |
#define | T_L 0x08000000 /* last */ |
#define | T_TC 0x04000000 /* transmit CRC */ |
#define | T_CNF 0x02000000 /* wait for transmit confirm */ |
#define | T_LSP 0x01000000 /* Low-speed transaction */ |
#define | T_PID 0x00c00000 /* packet id */ |
#define | T_NAK 0x00100000 /* No ack. */ |
#define | T_STAL 0x00080000 /* Stall received */ |
#define | T_TO 0x00040000 /* time out */ |
#define | T_UN 0x00020000 /* underrun */ |
#define | DEVICE_T_ERROR (T_UN | T_TO) |
#define | HOST_T_ERROR (T_UN | T_TO | T_NAK | T_STAL) |
#define | DEVICE_T_BD_MASK DEVICE_T_ERROR |
#define | HOST_T_BD_MASK HOST_T_ERROR |
#define | T_PID_SHIFT 6 |
#define | T_PID_DATA0 0x00800000 /* Data 0 toggle */ |
#define | T_PID_DATA1 0x00c00000 /* Data 1 toggle */ |
#define | R_E 0x80000000 /* buffer empty */ |
#define | R_W 0x20000000 /* wrap bit */ |
#define | R_I 0x10000000 /* interrupt on reception */ |
#define | R_L 0x08000000 /* last */ |
#define | R_F 0x04000000 /* first */ |
#define | R_PID 0x00c00000 /* packet id */ |
#define | R_NO 0x00100000 /* Rx Non Octet Aligned Packet */ |
#define | R_AB 0x00080000 /* Frame Aborted */ |
#define | R_CR 0x00040000 /* CRC Error */ |
#define | R_OV 0x00020000 /* Overrun */ |
#define | R_ERROR (R_NO | R_AB | R_CR | R_OV) |
#define | R_BD_MASK R_ERROR |
#define | R_PID_DATA0 0x00000000 |
#define | R_PID_DATA1 0x00400000 |
#define | R_PID_SETUP 0x00800000 |
#define | CPM_USB_STOP_TX 0x2e600000 |
#define | CPM_USB_RESTART_TX 0x2e600000 |
#define | CPM_USB_STOP_TX_OPCODE 0x0a |
#define | CPM_USB_RESTART_TX_OPCODE 0x0b |
#define | CPM_USB_EP_SHIFT 5 |
#define CPM_USB_EP_SHIFT 5 |
Definition at line 418 of file fsl_qe_udc.h.
#define CPM_USB_RESTART_TX 0x2e600000 |
Definition at line 415 of file fsl_qe_udc.h.
#define CPM_USB_RESTART_TX_OPCODE 0x0b |
Definition at line 417 of file fsl_qe_udc.h.
#define CPM_USB_STOP_TX 0x2e600000 |
Definition at line 414 of file fsl_qe_udc.h.
#define CPM_USB_STOP_TX_OPCODE 0x0a |
Definition at line 416 of file fsl_qe_udc.h.
#define DATA_STATE_NEED_ZLP 2 |
Definition at line 165 of file fsl_qe_udc.h.
#define DATA_STATE_RECV 4 |
Definition at line 167 of file fsl_qe_udc.h.
#define DATA_STATE_XMIT 1 |
Definition at line 164 of file fsl_qe_udc.h.
#define DEVICE_T_BD_MASK DEVICE_T_ERROR |
Definition at line 386 of file fsl_qe_udc.h.
Definition at line 384 of file fsl_qe_udc.h.
#define END_FRAME_LOST 0x20000000 /* END_FRAME_LOST */ |
Definition at line 213 of file fsl_qe_udc.h.
#define ep_index | ( | EP | ) | ((EP)->ep.desc->bEndpointAddress & 0xF) |
Definition at line 156 of file fsl_qe_udc.h.
#define ep_is_in | ( | EP | ) |
Definition at line 158 of file fsl_qe_udc.h.
Definition at line 157 of file fsl_qe_udc.h.
#define EP_STATE_IDLE 0 |
Definition at line 364 of file fsl_qe_udc.h.
#define EP_STATE_NACK 1 |
Definition at line 365 of file fsl_qe_udc.h.
#define EP_STATE_STALL 2 |
Definition at line 366 of file fsl_qe_udc.h.
#define ER_DATA_OVERUN 0x00020000 /* Frame is longer then expected */ |
Definition at line 226 of file fsl_qe_udc.h.
#define ER_DATA_UNDERUN 0x00040000 /* Frame is shorter then expected */ |
Definition at line 225 of file fsl_qe_udc.h.
#define FIRST_PACKET_IN_FRAME 0x01000000 /* first packet in the frame */ |
Definition at line 196 of file fsl_qe_udc.h.
#define FRAME_ERROR 0x80000000 /* Error occurred on frame */ |
Definition at line 211 of file fsl_qe_udc.h.
#define frame_get_data | ( | frm | ) | (frm->data) |
Definition at line 231 of file fsl_qe_udc.h.
#define frame_get_info | ( | frm | ) | (frm->info) |
Definition at line 233 of file fsl_qe_udc.h.
#define frame_get_length | ( | frm | ) | (frm->len) |
Definition at line 229 of file fsl_qe_udc.h.
#define frame_get_privdata | ( | frm | ) | (frm->privdata) |
Definition at line 237 of file fsl_qe_udc.h.
#define frame_get_status | ( | frm | ) | (frm->status) |
Definition at line 235 of file fsl_qe_udc.h.
#define FRAME_INPROGRESS 0x00080000 /* Frame is being transmitted */ |
Definition at line 224 of file fsl_qe_udc.h.
#define FRAME_OK 0x00000000 /* Frame transmitted or received OK */ |
Definition at line 210 of file fsl_qe_udc.h.
Definition at line 232 of file fsl_qe_udc.h.
#define frame_set_info | ( | frm, | |
inf | |||
) | (frm->info = inf) |
Definition at line 234 of file fsl_qe_udc.h.
#define frame_set_length | ( | frm, | |
leng | |||
) | (frm->len = leng) |
Definition at line 230 of file fsl_qe_udc.h.
Definition at line 238 of file fsl_qe_udc.h.
Definition at line 236 of file fsl_qe_udc.h.
#define HOST_COMMAND 0x00004000 /* Host command frame */ |
Definition at line 206 of file fsl_qe_udc.h.
#define HOST_DATA 0x02000000 /* Host data frame */ |
Definition at line 195 of file fsl_qe_udc.h.
#define HOST_T_BD_MASK HOST_T_ERROR |
Definition at line 387 of file fsl_qe_udc.h.
#define IN_TOKEN_FRAME 0x00200000 /* In token package */ |
Definition at line 199 of file fsl_qe_udc.h.
#define MAX_DATA_BDS 8 |
Definition at line 33 of file fsl_qe_udc.h.
#define MIN_EMPTY_BDS 128 |
Definition at line 32 of file fsl_qe_udc.h.
#define NACK_FRAME 0x00020000 /* Nack handshake */ |
Definition at line 203 of file fsl_qe_udc.h.
#define NO_CRC 0x00008000 /* No send CRC */ |
Definition at line 205 of file fsl_qe_udc.h.
#define NO_PID 0x00010000 /* No send PID */ |
Definition at line 204 of file fsl_qe_udc.h.
#define NO_REQ 0x04000000 /* Frame without request */ |
Definition at line 194 of file fsl_qe_udc.h.
#define OUT_TOKEN_FRAME 0x00100000 /* Out token package */ |
Definition at line 200 of file fsl_qe_udc.h.
#define PID_DATA0 0x80000000 /* Data toggle zero */ |
Definition at line 189 of file fsl_qe_udc.h.
#define PID_DATA1 0x40000000 /* Data toggle one */ |
Definition at line 190 of file fsl_qe_udc.h.
#define PID_SETUP 0x20000000 /* setup bit */ |
Definition at line 191 of file fsl_qe_udc.h.
#define PORT_CPM 0 |
Definition at line 22 of file fsl_qe_udc.h.
#define PORT_QE 1 |
Definition at line 23 of file fsl_qe_udc.h.
#define R_AB 0x00080000 /* Frame Aborted */ |
Definition at line 403 of file fsl_qe_udc.h.
#define R_BD_MASK R_ERROR |
Definition at line 408 of file fsl_qe_udc.h.
#define R_BUF_MAXSIZE 0x800 |
Definition at line 36 of file fsl_qe_udc.h.
#define R_CR 0x00040000 /* CRC Error */ |
Definition at line 404 of file fsl_qe_udc.h.
#define R_E 0x80000000 /* buffer empty */ |
Definition at line 396 of file fsl_qe_udc.h.
#define R_F 0x04000000 /* first */ |
Definition at line 400 of file fsl_qe_udc.h.
#define R_I 0x10000000 /* interrupt on reception */ |
Definition at line 398 of file fsl_qe_udc.h.
#define R_L 0x08000000 /* last */ |
Definition at line 399 of file fsl_qe_udc.h.
#define R_NO 0x00100000 /* Rx Non Octet Aligned Packet */ |
Definition at line 402 of file fsl_qe_udc.h.
#define R_OV 0x00020000 /* Overrun */ |
Definition at line 405 of file fsl_qe_udc.h.
#define R_PID 0x00c00000 /* packet id */ |
Definition at line 401 of file fsl_qe_udc.h.
#define R_PID_DATA0 0x00000000 |
Definition at line 410 of file fsl_qe_udc.h.
#define R_PID_DATA1 0x00400000 |
Definition at line 411 of file fsl_qe_udc.h.
#define R_PID_SETUP 0x00800000 |
Definition at line 412 of file fsl_qe_udc.h.
#define R_W 0x20000000 /* wrap bit */ |
Definition at line 397 of file fsl_qe_udc.h.
#define RX_ER_BITSTUFF |
Definition at line 215 of file fsl_qe_udc.h.
#define RX_ER_CRC 0x04000000 /* Received packet with CRC error */ |
Definition at line 216 of file fsl_qe_udc.h.
#define RX_ER_NONOCT 0x10000000 /* Rx Non Octet Aligned Packet */ |
Definition at line 214 of file fsl_qe_udc.h.
#define RX_ER_OVERUN 0x02000000 /* Over-run occurred on reception */ |
Definition at line 217 of file fsl_qe_udc.h.
#define RX_ER_PID 0x01000000 /* Wrong PID received */ |
Definition at line 218 of file fsl_qe_udc.h.
#define SETADDR_STATUS 0x08000000 /* setupup address status bit */ |
Definition at line 193 of file fsl_qe_udc.h.
#define SETUP_STATUS 0x10000000 /* setup status bit */ |
Definition at line 192 of file fsl_qe_udc.h.
#define SETUP_TOKEN_FRAME 0x00080000 /* Setup token package */ |
Definition at line 201 of file fsl_qe_udc.h.
#define STALL_FRAME 0x00040000 /* Stall handshake */ |
Definition at line 202 of file fsl_qe_udc.h.
#define START_FRAME_LOST 0x40000000 /* START_FRAME_LOST */ |
Definition at line 212 of file fsl_qe_udc.h.
#define T_CNF 0x02000000 /* wait for transmit confirm */ |
Definition at line 376 of file fsl_qe_udc.h.
#define T_I 0x10000000 /* interrupt on completion */ |
Definition at line 373 of file fsl_qe_udc.h.
#define T_L 0x08000000 /* last */ |
Definition at line 374 of file fsl_qe_udc.h.
#define T_LSP 0x01000000 /* Low-speed transaction */ |
Definition at line 377 of file fsl_qe_udc.h.
#define T_NAK 0x00100000 /* No ack. */ |
Definition at line 379 of file fsl_qe_udc.h.
#define T_PID 0x00c00000 /* packet id */ |
Definition at line 378 of file fsl_qe_udc.h.
#define T_PID_DATA0 0x00800000 /* Data 0 toggle */ |
Definition at line 390 of file fsl_qe_udc.h.
#define T_PID_DATA1 0x00c00000 /* Data 1 toggle */ |
Definition at line 391 of file fsl_qe_udc.h.
#define T_PID_SHIFT 6 |
Definition at line 389 of file fsl_qe_udc.h.
#define T_R 0x80000000 /* ready bit */ |
Definition at line 371 of file fsl_qe_udc.h.
#define T_STAL 0x00080000 /* Stall received */ |
Definition at line 380 of file fsl_qe_udc.h.
#define T_TC 0x04000000 /* transmit CRC */ |
Definition at line 375 of file fsl_qe_udc.h.
#define T_TO 0x00040000 /* time out */ |
Definition at line 381 of file fsl_qe_udc.h.
#define T_UN 0x00020000 /* underrun */ |
Definition at line 382 of file fsl_qe_udc.h.
#define T_W 0x20000000 /* wrap bit */ |
Definition at line 372 of file fsl_qe_udc.h.
#define TOKEN_FRAME 0x00800000 /* Host token frame */ |
Definition at line 197 of file fsl_qe_udc.h.
#define TX_ER_NAK 0x00800000 /* Received NAK handshake */ |
Definition at line 220 of file fsl_qe_udc.h.
#define TX_ER_STALL 0x00400000 /* Received STALL handshake */ |
Definition at line 221 of file fsl_qe_udc.h.
#define TX_ER_TIMEOUT 0x00200000 /* Transmit time out */ |
Definition at line 222 of file fsl_qe_udc.h.
#define TX_ER_UNDERUN 0x00100000 /* Transmit underrun */ |
Definition at line 223 of file fsl_qe_udc.h.
#define USB_BDRING_LEN 16 |
Definition at line 29 of file fsl_qe_udc.h.
#define USB_BDRING_LEN_RX 256 |
Definition at line 30 of file fsl_qe_udc.h.
#define USB_BDRING_LEN_TX 16 |
Definition at line 31 of file fsl_qe_udc.h.
#define USB_BUSMODE_BE 0x2 |
Definition at line 151 of file fsl_qe_udc.h.
#define USB_BUSMODE_BO_MASK 0x18 |
Definition at line 149 of file fsl_qe_udc.h.
#define USB_BUSMODE_BO_SHIFT 0x3 |
Definition at line 150 of file fsl_qe_udc.h.
#define USB_BUSMODE_CETM 0x04 |
Definition at line 152 of file fsl_qe_udc.h.
#define USB_BUSMODE_DTB 0x02 |
Definition at line 153 of file fsl_qe_udc.h.
#define USB_BUSMODE_GBL 0x20 |
Definition at line 148 of file fsl_qe_udc.h.
#define USB_CMD_DSFT 0x10 |
Definition at line 83 of file fsl_qe_udc.h.
#define USB_CMD_EP_MASK 0x03 |
Definition at line 84 of file fsl_qe_udc.h.
#define USB_CMD_FLUSH_FIFO 0x40 |
Definition at line 81 of file fsl_qe_udc.h.
#define USB_CMD_ISFT 0x20 |
Definition at line 82 of file fsl_qe_udc.h.
#define USB_CMD_STR_FIFO 0x80 |
Definition at line 80 of file fsl_qe_udc.h.
#define USB_CRC_SIZE 2 |
Definition at line 34 of file fsl_qe_udc.h.
#define USB_DIR_BOTH 0x88 |
Definition at line 35 of file fsl_qe_udc.h.
#define USB_E_BSY_MASK 0x0004 |
Definition at line 96 of file fsl_qe_udc.h.
#define USB_E_DEFAULT_DEVICE |
Definition at line 101 of file fsl_qe_udc.h.
#define USB_E_IDLE_MASK 0x0100 |
Definition at line 90 of file fsl_qe_udc.h.
#define USB_E_MSF_MASK 0x0800 |
Definition at line 87 of file fsl_qe_udc.h.
#define USB_E_RESET_MASK 0x0200 |
Definition at line 89 of file fsl_qe_udc.h.
#define USB_E_RXB_MASK 0x0001 |
Definition at line 98 of file fsl_qe_udc.h.
#define USB_E_SFT_MASK 0x0400 |
Definition at line 88 of file fsl_qe_udc.h.
#define USB_E_SOF_MASK 0x0008 |
Definition at line 95 of file fsl_qe_udc.h.
#define USB_E_TXB_MASK 0x0002 |
Definition at line 97 of file fsl_qe_udc.h.
#define USB_E_TXE1_MASK 0x0010 |
Definition at line 94 of file fsl_qe_udc.h.
#define USB_E_TXE2_MASK 0x0020 |
Definition at line 93 of file fsl_qe_udc.h.
#define USB_E_TXE3_MASK 0x0040 |
Definition at line 92 of file fsl_qe_udc.h.
#define USB_E_TXE4_MASK 0x0080 |
Definition at line 91 of file fsl_qe_udc.h.
#define USB_E_TXE_MASK |
Definition at line 106 of file fsl_qe_udc.h.
#define USB_EP0_MAX_SIZE 64 |
Definition at line 27 of file fsl_qe_udc.h.
#define USB_EP_MF 0x0020 |
Definition at line 60 of file fsl_qe_udc.h.
#define USB_EP_PARA_ALIGNMENT 32 |
Definition at line 37 of file fsl_qe_udc.h.
#define USB_EP_RTE 0x0010 |
Definition at line 61 of file fsl_qe_udc.h.
#define USB_EPNUM_MASK 0xF000 |
Definition at line 51 of file fsl_qe_udc.h.
#define USB_EPNUM_SHIFT 12 |
Definition at line 52 of file fsl_qe_udc.h.
#define USB_IDLE_STATUS_MASK 0x01 |
Definition at line 109 of file fsl_qe_udc.h.
#define USB_MAX_CTRL_PAYLOAD 0x4000 |
Definition at line 28 of file fsl_qe_udc.h.
#define USB_MAX_ENDPOINTS 4 |
Definition at line 25 of file fsl_qe_udc.h.
#define USB_MAX_PIPES USB_MAX_ENDPOINTS |
Definition at line 26 of file fsl_qe_udc.h.
#define USB_MODE_EN 0x01 |
Definition at line 40 of file fsl_qe_udc.h.
#define USB_MODE_HOST 0x02 |
Definition at line 41 of file fsl_qe_udc.h.
#define USB_MODE_LSS 0x80 |
Definition at line 45 of file fsl_qe_udc.h.
#define USB_MODE_RESUME 0x40 |
Definition at line 44 of file fsl_qe_udc.h.
#define USB_MODE_SFTE 0x08 |
Definition at line 43 of file fsl_qe_udc.h.
#define USB_MODE_TEST 0x04 |
Definition at line 42 of file fsl_qe_udc.h.
#define USB_RHS_IGNORE_OUT 0x0001 |
Definition at line 73 of file fsl_qe_udc.h.
#define USB_RHS_MASK 0x0003 |
Definition at line 71 of file fsl_qe_udc.h.
#define USB_RHS_NACK 0x0002 |
Definition at line 74 of file fsl_qe_udc.h.
#define USB_RHS_NORMAL 0x0 |
Definition at line 72 of file fsl_qe_udc.h.
#define USB_RHS_SHIFT 0 |
Definition at line 70 of file fsl_qe_udc.h.
#define USB_RHS_STALL 0x0003 |
Definition at line 75 of file fsl_qe_udc.h.
#define USB_RTHS_MASK 0x000f |
Definition at line 77 of file fsl_qe_udc.h.
#define USB_SLVADDR_MASK 0x7F |
Definition at line 48 of file fsl_qe_udc.h.
#define USB_THS_IGNORE_IN 0x0004 |
Definition at line 66 of file fsl_qe_udc.h.
#define USB_THS_MASK 0x000c |
Definition at line 64 of file fsl_qe_udc.h.
#define USB_THS_NACK 0x0008 |
Definition at line 67 of file fsl_qe_udc.h.
#define USB_THS_NORMAL 0x0 |
Definition at line 65 of file fsl_qe_udc.h.
#define USB_THS_SHIFT 2 |
Definition at line 63 of file fsl_qe_udc.h.
#define USB_THS_STALL 0x000c |
Definition at line 68 of file fsl_qe_udc.h.
#define USB_TRANS_BULK 0x0200 |
Definition at line 57 of file fsl_qe_udc.h.
#define USB_TRANS_CTR 0x0000 |
Definition at line 55 of file fsl_qe_udc.h.
#define USB_TRANS_INT 0x0100 |
Definition at line 56 of file fsl_qe_udc.h.
#define USB_TRANS_ISO 0x0300 |
Definition at line 58 of file fsl_qe_udc.h.
#define USB_TRANS_MODE_SHIFT 8 |
Definition at line 54 of file fsl_qe_udc.h.
#define USB_USFRN_MASK 0xFFFF |
Definition at line 115 of file fsl_qe_udc.h.
#define USB_USSFT_MASK 0x3FFF |
Definition at line 112 of file fsl_qe_udc.h.
#define USBER_ALL_CLEAR 0x0fff |
Definition at line 99 of file fsl_qe_udc.h.
#define USBP_TM_BULK 2 |
Definition at line 172 of file fsl_qe_udc.h.
#define USBP_TM_CTL 0 |
Definition at line 170 of file fsl_qe_udc.h.
#define USBP_TM_INT 3 |
Definition at line 173 of file fsl_qe_udc.h.
#define USBP_TM_ISO 1 |
Definition at line 171 of file fsl_qe_udc.h.
#define WAIT_FOR_OUT_STATUS 3 |
Definition at line 166 of file fsl_qe_udc.h.
#define WAIT_FOR_SETUP 0 |
Definition at line 163 of file fsl_qe_udc.h.
#define ZLP 0x00400000 /* Zero length packet */ |
Definition at line 198 of file fsl_qe_udc.h.