Lines Matching +full:0 +full:x00c00000
18 #define PORT_CPM 0
24 #define USB_MAX_CTRL_PAYLOAD 0x4000
31 #define USB_DIR_BOTH 0x88
32 #define R_BUF_MAXSIZE 0x800
36 #define USB_MODE_EN 0x01
37 #define USB_MODE_HOST 0x02
38 #define USB_MODE_TEST 0x04
39 #define USB_MODE_SFTE 0x08
40 #define USB_MODE_RESUME 0x40
41 #define USB_MODE_LSS 0x80
44 #define USB_SLVADDR_MASK 0x7F
47 #define USB_EPNUM_MASK 0xF000
51 #define USB_TRANS_CTR 0x0000
52 #define USB_TRANS_INT 0x0100
53 #define USB_TRANS_BULK 0x0200
54 #define USB_TRANS_ISO 0x0300
56 #define USB_EP_MF 0x0020
57 #define USB_EP_RTE 0x0010
60 #define USB_THS_MASK 0x000c
61 #define USB_THS_NORMAL 0x0
62 #define USB_THS_IGNORE_IN 0x0004
63 #define USB_THS_NACK 0x0008
64 #define USB_THS_STALL 0x000c
66 #define USB_RHS_SHIFT 0
67 #define USB_RHS_MASK 0x0003
68 #define USB_RHS_NORMAL 0x0
69 #define USB_RHS_IGNORE_OUT 0x0001
70 #define USB_RHS_NACK 0x0002
71 #define USB_RHS_STALL 0x0003
73 #define USB_RTHS_MASK 0x000f
76 #define USB_CMD_STR_FIFO 0x80
77 #define USB_CMD_FLUSH_FIFO 0x40
78 #define USB_CMD_ISFT 0x20
79 #define USB_CMD_DSFT 0x10
80 #define USB_CMD_EP_MASK 0x03
83 #define USB_E_MSF_MASK 0x0800
84 #define USB_E_SFT_MASK 0x0400
85 #define USB_E_RESET_MASK 0x0200
86 #define USB_E_IDLE_MASK 0x0100
87 #define USB_E_TXE4_MASK 0x0080
88 #define USB_E_TXE3_MASK 0x0040
89 #define USB_E_TXE2_MASK 0x0020
90 #define USB_E_TXE1_MASK 0x0010
91 #define USB_E_SOF_MASK 0x0008
92 #define USB_E_BSY_MASK 0x0004
93 #define USB_E_TXB_MASK 0x0002
94 #define USB_E_RXB_MASK 0x0001
95 #define USBER_ALL_CLEAR 0x0fff
105 #define USB_IDLE_STATUS_MASK 0x01
108 #define USB_USSFT_MASK 0x3FFF
111 #define USB_USFRN_MASK 0xFFFF
144 #define USB_BUSMODE_GBL 0x20
145 #define USB_BUSMODE_BO_MASK 0x18
146 #define USB_BUSMODE_BO_SHIFT 0x3
147 #define USB_BUSMODE_BE 0x2
148 #define USB_BUSMODE_CETM 0x04
149 #define USB_BUSMODE_DTB 0x02
152 #define ep_index(EP) ((EP)->ep.desc->bEndpointAddress & 0xF)
154 #define ep_is_in(EP) ((ep_index(EP) == 0) ? (EP->udc->ep0_dir == \
159 #define WAIT_FOR_SETUP 0
166 #define USBP_TM_CTL 0
185 #define PID_DATA0 0x80000000 /* Data toggle zero */
186 #define PID_DATA1 0x40000000 /* Data toggle one */
187 #define PID_SETUP 0x20000000 /* setup bit */
188 #define SETUP_STATUS 0x10000000 /* setup status bit */
189 #define SETADDR_STATUS 0x08000000 /* setupup address status bit */
190 #define NO_REQ 0x04000000 /* Frame without request */
191 #define HOST_DATA 0x02000000 /* Host data frame */
192 #define FIRST_PACKET_IN_FRAME 0x01000000 /* first packet in the frame */
193 #define TOKEN_FRAME 0x00800000 /* Host token frame */
194 #define ZLP 0x00400000 /* Zero length packet */
195 #define IN_TOKEN_FRAME 0x00200000 /* In token package */
196 #define OUT_TOKEN_FRAME 0x00100000 /* Out token package */
197 #define SETUP_TOKEN_FRAME 0x00080000 /* Setup token package */
198 #define STALL_FRAME 0x00040000 /* Stall handshake */
199 #define NACK_FRAME 0x00020000 /* Nack handshake */
200 #define NO_PID 0x00010000 /* No send PID */
201 #define NO_CRC 0x00008000 /* No send CRC */
202 #define HOST_COMMAND 0x00004000 /* Host command frame */
206 #define FRAME_OK 0x00000000 /* Frame transmitted or received OK */
207 #define FRAME_ERROR 0x80000000 /* Error occurred on frame */
208 #define START_FRAME_LOST 0x40000000 /* START_FRAME_LOST */
209 #define END_FRAME_LOST 0x20000000 /* END_FRAME_LOST */
210 #define RX_ER_NONOCT 0x10000000 /* Rx Non Octet Aligned Packet */
211 #define RX_ER_BITSTUFF 0x08000000 /* Frame Aborted --Received packet
213 #define RX_ER_CRC 0x04000000 /* Received packet with CRC error */
214 #define RX_ER_OVERUN 0x02000000 /* Over-run occurred on reception */
215 #define RX_ER_PID 0x01000000 /* Wrong PID received */
217 #define TX_ER_NAK 0x00800000 /* Received NAK handshake */
218 #define TX_ER_STALL 0x00400000 /* Received STALL handshake */
219 #define TX_ER_TIMEOUT 0x00200000 /* Transmit time out */
220 #define TX_ER_UNDERUN 0x00100000 /* Transmit underrun */
221 #define FRAME_INPROGRESS 0x00080000 /* Frame is being transmitted */
222 #define ER_DATA_UNDERUN 0x00040000 /* Frame is shorter then expected */
223 #define ER_DATA_OVERUN 0x00020000 /* Frame is longer then expected */
240 frame_set_length(frm, 0); in qe_frame_clean()
242 frame_set_info(frm, 0); in qe_frame_clean()
361 #define EP_STATE_IDLE 0
368 #define T_R 0x80000000 /* ready bit */
369 #define T_W 0x20000000 /* wrap bit */
370 #define T_I 0x10000000 /* interrupt on completion */
371 #define T_L 0x08000000 /* last */
372 #define T_TC 0x04000000 /* transmit CRC */
373 #define T_CNF 0x02000000 /* wait for transmit confirm */
374 #define T_LSP 0x01000000 /* Low-speed transaction */
375 #define T_PID 0x00c00000 /* packet id */
376 #define T_NAK 0x00100000 /* No ack. */
377 #define T_STAL 0x00080000 /* Stall received */
378 #define T_TO 0x00040000 /* time out */
379 #define T_UN 0x00020000 /* underrun */
387 #define T_PID_DATA0 0x00800000 /* Data 0 toggle */
388 #define T_PID_DATA1 0x00c00000 /* Data 1 toggle */
393 #define R_E 0x80000000 /* buffer empty */
394 #define R_W 0x20000000 /* wrap bit */
395 #define R_I 0x10000000 /* interrupt on reception */
396 #define R_L 0x08000000 /* last */
397 #define R_F 0x04000000 /* first */
398 #define R_PID 0x00c00000 /* packet id */
399 #define R_NO 0x00100000 /* Rx Non Octet Aligned Packet */
400 #define R_AB 0x00080000 /* Frame Aborted */
401 #define R_CR 0x00040000 /* CRC Error */
402 #define R_OV 0x00020000 /* Overrun */
407 #define R_PID_DATA0 0x00000000
408 #define R_PID_DATA1 0x00400000
409 #define R_PID_SETUP 0x00800000
411 #define CPM_USB_STOP_TX 0x2e600000
412 #define CPM_USB_RESTART_TX 0x2e600000
413 #define CPM_USB_STOP_TX_OPCODE 0x0a
414 #define CPM_USB_RESTART_TX_OPCODE 0x0b