Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
fsl_usb2_udc.h File Reference

Go to the source code of this file.

Data Structures

struct  usb_dr_device
 
struct  usb_dr_host
 
struct  usb_sys_interface
 
struct  ep_queue_head
 
struct  ep_td_struct
 
struct  fsl_req
 
struct  fsl_ep
 
struct  fsl_udc
 

Macros

#define USB_MAX_CTRL_PAYLOAD   64
 
#define USB_DR_SYS_OFFSET   0x400
 
#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 DCCPARAMS_DC   0x00000080
 
#define DCCPARAMS_DEN_MASK   0x0000001f
 
#define USB_FRINDEX_MASKS   0x3fff
 
#define USB_CMD_RUN_STOP   0x00000001
 
#define USB_CMD_CTRL_RESET   0x00000002
 
#define USB_CMD_PERIODIC_SCHEDULE_EN   0x00000010
 
#define USB_CMD_ASYNC_SCHEDULE_EN   0x00000020
 
#define USB_CMD_INT_AA_DOORBELL   0x00000040
 
#define USB_CMD_ASP   0x00000300
 
#define USB_CMD_ASYNC_SCH_PARK_EN   0x00000800
 
#define USB_CMD_SUTW   0x00002000
 
#define USB_CMD_ATDTW   0x00004000
 
#define USB_CMD_ITC   0x00FF0000
 
#define USB_CMD_FRAME_SIZE_1024   0x00000000
 
#define USB_CMD_FRAME_SIZE_512   0x00000004
 
#define USB_CMD_FRAME_SIZE_256   0x00000008
 
#define USB_CMD_FRAME_SIZE_128   0x0000000C
 
#define USB_CMD_FRAME_SIZE_64   0x00008000
 
#define USB_CMD_FRAME_SIZE_32   0x00008004
 
#define USB_CMD_FRAME_SIZE_16   0x00008008
 
#define USB_CMD_FRAME_SIZE_8   0x0000800C
 
#define USB_CMD_ASP_00   0x00000000
 
#define USB_CMD_ASP_01   0x00000100
 
#define USB_CMD_ASP_10   0x00000200
 
#define USB_CMD_ASP_11   0x00000300
 
#define USB_CMD_ASP_BIT_POS   8
 
#define USB_CMD_ITC_NO_THRESHOLD   0x00000000
 
#define USB_CMD_ITC_1_MICRO_FRM   0x00010000
 
#define USB_CMD_ITC_2_MICRO_FRM   0x00020000
 
#define USB_CMD_ITC_4_MICRO_FRM   0x00040000
 
#define USB_CMD_ITC_8_MICRO_FRM   0x00080000
 
#define USB_CMD_ITC_16_MICRO_FRM   0x00100000
 
#define USB_CMD_ITC_32_MICRO_FRM   0x00200000
 
#define USB_CMD_ITC_64_MICRO_FRM   0x00400000
 
#define USB_CMD_ITC_BIT_POS   16
 
#define USB_STS_INT   0x00000001
 
#define USB_STS_ERR   0x00000002
 
#define USB_STS_PORT_CHANGE   0x00000004
 
#define USB_STS_FRM_LST_ROLL   0x00000008
 
#define USB_STS_SYS_ERR   0x00000010
 
#define USB_STS_IAA   0x00000020
 
#define USB_STS_RESET   0x00000040
 
#define USB_STS_SOF   0x00000080
 
#define USB_STS_SUSPEND   0x00000100
 
#define USB_STS_HC_HALTED   0x00001000
 
#define USB_STS_RCL   0x00002000
 
#define USB_STS_PERIODIC_SCHEDULE   0x00004000
 
#define USB_STS_ASYNC_SCHEDULE   0x00008000
 
#define USB_INTR_INT_EN   0x00000001
 
#define USB_INTR_ERR_INT_EN   0x00000002
 
#define USB_INTR_PTC_DETECT_EN   0x00000004
 
#define USB_INTR_FRM_LST_ROLL_EN   0x00000008
 
#define USB_INTR_SYS_ERR_EN   0x00000010
 
#define USB_INTR_ASYN_ADV_EN   0x00000020
 
#define USB_INTR_RESET_EN   0x00000040
 
#define USB_INTR_SOF_EN   0x00000080
 
#define USB_INTR_DEVICE_SUSPEND   0x00000100
 
#define USB_DEVICE_ADDRESS_MASK   0xFE000000
 
#define USB_DEVICE_ADDRESS_BIT_POS   25
 
#define USB_EP_LIST_ADDRESS_MASK   0xfffff800
 
#define PORTSCX_CURRENT_CONNECT_STATUS   0x00000001
 
#define PORTSCX_CONNECT_STATUS_CHANGE   0x00000002
 
#define PORTSCX_PORT_ENABLE   0x00000004
 
#define PORTSCX_PORT_EN_DIS_CHANGE   0x00000008
 
#define PORTSCX_OVER_CURRENT_ACT   0x00000010
 
#define PORTSCX_OVER_CURRENT_CHG   0x00000020
 
#define PORTSCX_PORT_FORCE_RESUME   0x00000040
 
#define PORTSCX_PORT_SUSPEND   0x00000080
 
#define PORTSCX_PORT_RESET   0x00000100
 
#define PORTSCX_LINE_STATUS_BITS   0x00000C00
 
#define PORTSCX_PORT_POWER   0x00001000
 
#define PORTSCX_PORT_INDICTOR_CTRL   0x0000C000
 
#define PORTSCX_PORT_TEST_CTRL   0x000F0000
 
#define PORTSCX_WAKE_ON_CONNECT_EN   0x00100000
 
#define PORTSCX_WAKE_ON_CONNECT_DIS   0x00200000
 
#define PORTSCX_WAKE_ON_OVER_CURRENT   0x00400000
 
#define PORTSCX_PHY_LOW_POWER_SPD   0x00800000
 
#define PORTSCX_PORT_FORCE_FULL_SPEED   0x01000000
 
#define PORTSCX_PORT_SPEED_MASK   0x0C000000
 
#define PORTSCX_PORT_WIDTH   0x10000000
 
#define PORTSCX_PHY_TYPE_SEL   0xC0000000
 
#define PORTSCX_LINE_STATUS_SE0   0x00000000
 
#define PORTSCX_LINE_STATUS_JSTATE   0x00000400
 
#define PORTSCX_LINE_STATUS_KSTATE   0x00000800
 
#define PORTSCX_LINE_STATUS_UNDEF   0x00000C00
 
#define PORTSCX_LINE_STATUS_BIT_POS   10
 
#define PORTSCX_PIC_OFF   0x00000000
 
#define PORTSCX_PIC_AMBER   0x00004000
 
#define PORTSCX_PIC_GREEN   0x00008000
 
#define PORTSCX_PIC_UNDEF   0x0000C000
 
#define PORTSCX_PIC_BIT_POS   14
 
#define PORTSCX_PTC_DISABLE   0x00000000
 
#define PORTSCX_PTC_JSTATE   0x00010000
 
#define PORTSCX_PTC_KSTATE   0x00020000
 
#define PORTSCX_PTC_SEQNAK   0x00030000
 
#define PORTSCX_PTC_PACKET   0x00040000
 
#define PORTSCX_PTC_FORCE_EN   0x00050000
 
#define PORTSCX_PTC_BIT_POS   16
 
#define PORTSCX_PORT_SPEED_FULL   0x00000000
 
#define PORTSCX_PORT_SPEED_LOW   0x04000000
 
#define PORTSCX_PORT_SPEED_HIGH   0x08000000
 
#define PORTSCX_PORT_SPEED_UNDEF   0x0C000000
 
#define PORTSCX_SPEED_BIT_POS   26
 
#define PORTSCX_PTW   0x10000000
 
#define PORTSCX_PTW_8BIT   0x00000000
 
#define PORTSCX_PTW_16BIT   0x10000000
 
#define PORTSCX_PTS_UTMI   0x00000000
 
#define PORTSCX_PTS_ULPI   0x80000000
 
#define PORTSCX_PTS_FSLS   0xC0000000
 
#define PORTSCX_PTS_BIT_POS   30
 
#define OTGSC_CTRL_VUSB_DISCHARGE   0x00000001
 
#define OTGSC_CTRL_VUSB_CHARGE   0x00000002
 
#define OTGSC_CTRL_OTG_TERM   0x00000008
 
#define OTGSC_CTRL_DATA_PULSING   0x00000010
 
#define OTGSC_STS_USB_ID   0x00000100
 
#define OTGSC_STS_A_VBUS_VALID   0x00000200
 
#define OTGSC_STS_A_SESSION_VALID   0x00000400
 
#define OTGSC_STS_B_SESSION_VALID   0x00000800
 
#define OTGSC_STS_B_SESSION_END   0x00001000
 
#define OTGSC_STS_1MS_TOGGLE   0x00002000
 
#define OTGSC_STS_DATA_PULSING   0x00004000
 
#define OTGSC_INTSTS_USB_ID   0x00010000
 
#define OTGSC_INTSTS_A_VBUS_VALID   0x00020000
 
#define OTGSC_INTSTS_A_SESSION_VALID   0x00040000
 
#define OTGSC_INTSTS_B_SESSION_VALID   0x00080000
 
#define OTGSC_INTSTS_B_SESSION_END   0x00100000
 
#define OTGSC_INTSTS_1MS   0x00200000
 
#define OTGSC_INTSTS_DATA_PULSING   0x00400000
 
#define OTGSC_INTR_USB_ID   0x01000000
 
#define OTGSC_INTR_A_VBUS_VALID   0x02000000
 
#define OTGSC_INTR_A_SESSION_VALID   0x04000000
 
#define OTGSC_INTR_B_SESSION_VALID   0x08000000
 
#define OTGSC_INTR_B_SESSION_END   0x10000000
 
#define OTGSC_INTR_1MS_TIMER   0x20000000
 
#define OTGSC_INTR_DATA_PULSING   0x40000000
 
#define USB_MODE_CTRL_MODE_IDLE   0x00000000
 
#define USB_MODE_CTRL_MODE_DEVICE   0x00000002
 
#define USB_MODE_CTRL_MODE_HOST   0x00000003
 
#define USB_MODE_CTRL_MODE_MASK   0x00000003
 
#define USB_MODE_CTRL_MODE_RSV   0x00000001
 
#define USB_MODE_ES   0x00000004 /* Endian Select */
 
#define USB_MODE_SETUP_LOCK_OFF   0x00000008
 
#define USB_MODE_STREAM_DISABLE   0x00000010
 
#define EPFLUSH_TX_OFFSET   0x00010000
 
#define EPFLUSH_RX_OFFSET   0x00000000
 
#define EP_SETUP_STATUS_MASK   0x0000003F
 
#define EP_SETUP_STATUS_EP0   0x00000001
 
#define EPCTRL_TX_ENABLE   0x00800000
 
#define EPCTRL_TX_DATA_TOGGLE_RST   0x00400000 /* Not EP0 */
 
#define EPCTRL_TX_DATA_TOGGLE_INH   0x00200000 /* Not EP0 */
 
#define EPCTRL_TX_TYPE   0x000C0000
 
#define EPCTRL_TX_DATA_SOURCE   0x00020000 /* Not EP0 */
 
#define EPCTRL_TX_EP_STALL   0x00010000
 
#define EPCTRL_RX_ENABLE   0x00000080
 
#define EPCTRL_RX_DATA_TOGGLE_RST   0x00000040 /* Not EP0 */
 
#define EPCTRL_RX_DATA_TOGGLE_INH   0x00000020 /* Not EP0 */
 
#define EPCTRL_RX_TYPE   0x0000000C
 
#define EPCTRL_RX_DATA_SINK   0x00000002 /* Not EP0 */
 
#define EPCTRL_RX_EP_STALL   0x00000001
 
#define EPCTRL_EP_TYPE_CONTROL   0
 
#define EPCTRL_EP_TYPE_ISO   1
 
#define EPCTRL_EP_TYPE_BULK   2
 
#define EPCTRL_EP_TYPE_INTERRUPT   3
 
#define EPCTRL_TX_EP_TYPE_SHIFT   18
 
#define EPCTRL_RX_EP_TYPE_SHIFT   2
 
#define SNOOP_ADDRESS_MASK   0xFFFFF000
 
#define SNOOP_SIZE_ZERO   0x00 /* snooping disable */
 
#define SNOOP_SIZE_4KB   0x0B /* 4KB snoop size */
 
#define SNOOP_SIZE_8KB   0x0C
 
#define SNOOP_SIZE_16KB   0x0D
 
#define SNOOP_SIZE_32KB   0x0E
 
#define SNOOP_SIZE_64KB   0x0F
 
#define SNOOP_SIZE_128KB   0x10
 
#define SNOOP_SIZE_256KB   0x11
 
#define SNOOP_SIZE_512KB   0x12
 
#define SNOOP_SIZE_1MB   0x13
 
#define SNOOP_SIZE_2MB   0x14
 
#define SNOOP_SIZE_4MB   0x15
 
#define SNOOP_SIZE_8MB   0x16
 
#define SNOOP_SIZE_16MB   0x17
 
#define SNOOP_SIZE_32MB   0x18
 
#define SNOOP_SIZE_64MB   0x19
 
#define SNOOP_SIZE_128MB   0x1A
 
#define SNOOP_SIZE_256MB   0x1B
 
#define SNOOP_SIZE_512MB   0x1C
 
#define SNOOP_SIZE_1GB   0x1D
 
#define SNOOP_SIZE_2GB   0x1E /* 2GB snoop size */
 
#define PRI_CTRL_PRI_LVL1   0x0000000C
 
#define PRI_CTRL_PRI_LVL0   0x00000003
 
#define SI_CTRL_ERR_DISABLE   0x00000010
 
#define SI_CTRL_IDRC_DISABLE   0x00000008
 
#define SI_CTRL_RD_SAFE_EN   0x00000004
 
#define SI_CTRL_RD_PREFETCH_DISABLE   0x00000002
 
#define SI_CTRL_RD_PREFEFETCH_VAL   0x00000001
 
#define USB_CTRL_IOENB   0x00000004
 
#define USB_CTRL_ULPI_INT0EN   0x00000001
 
#define USB_CTRL_UTMI_PHY_EN   0x00000200
 
#define USB_CTRL_USB_EN   0x00000004
 
#define USB_CTRL_ULPI_PHY_CLK_SEL   0x00000400
 
#define EP_QUEUE_HEAD_MULT_POS   30
 
#define EP_QUEUE_HEAD_ZLT_SEL   0x20000000
 
#define EP_QUEUE_HEAD_MAX_PKT_LEN_POS   16
 
#define EP_QUEUE_HEAD_MAX_PKT_LEN(ep_info)   (((ep_info)>>16)&0x07ff)
 
#define EP_QUEUE_HEAD_IOS   0x00008000
 
#define EP_QUEUE_HEAD_NEXT_TERMINATE   0x00000001
 
#define EP_QUEUE_HEAD_IOC   0x00008000
 
#define EP_QUEUE_HEAD_MULTO   0x00000C00
 
#define EP_QUEUE_HEAD_STATUS_HALT   0x00000040
 
#define EP_QUEUE_HEAD_STATUS_ACTIVE   0x00000080
 
#define EP_QUEUE_CURRENT_OFFSET_MASK   0x00000FFF
 
#define EP_QUEUE_HEAD_NEXT_POINTER_MASK   0xFFFFFFE0
 
#define EP_QUEUE_FRINDEX_MASK   0x000007FF
 
#define EP_MAX_LENGTH_TRANSFER   0x4000
 
#define DTD_NEXT_TERMINATE   0x00000001
 
#define DTD_IOC   0x00008000
 
#define DTD_STATUS_ACTIVE   0x00000080
 
#define DTD_STATUS_HALTED   0x00000040
 
#define DTD_STATUS_DATA_BUFF_ERR   0x00000020
 
#define DTD_STATUS_TRANSACTION_ERR   0x00000008
 
#define DTD_RESERVED_FIELDS   0x80007300
 
#define DTD_ADDR_MASK   0xFFFFFFE0
 
#define DTD_PACKET_SIZE   0x7FFF0000
 
#define DTD_LENGTH_BIT_POS   16
 
#define DTD_ERROR_MASK
 
#define DTD_ALIGNMENT   0x20
 
#define QH_ALIGNMENT   2048
 
#define UDC_DMA_BOUNDARY   0x1000
 
#define REQ_UNCOMPLETE   1
 
#define EP_DIR_IN   1
 
#define EP_DIR_OUT   0
 
#define DBG(fmt, args...)   do{}while(0)
 
#define VDBG(stuff...)   do{}while(0)
 
#define ERR(stuff...)   pr_err("udc: " stuff)
 
#define WARNING(stuff...)   pr_warning("udc: " stuff)
 
#define INFO(stuff...)   pr_info("udc: " stuff)
 
#define USB_RECV   0 /* OUT EP */
 
#define USB_SEND   1 /* IN EP */
 
#define ep_index(EP)   ((EP)->ep.desc->bEndpointAddress&0xF)
 
#define ep_maxpacket(EP)   ((EP)->ep.maxpacket)
 
#define ep_is_in(EP)
 
#define get_ep_by_pipe(udc, pipe)
 
#define get_pipe_by_windex(windex)
 
#define get_pipe_by_ep(EP)   (ep_index(EP) * 2 + ep_is_in(EP))
 

Macro Definition Documentation

#define DATA_STATE_NEED_ZLP   2

Definition at line 108 of file fsl_usb2_udc.h.

#define DATA_STATE_RECV   4

Definition at line 110 of file fsl_usb2_udc.h.

#define DATA_STATE_XMIT   1

Definition at line 107 of file fsl_usb2_udc.h.

#define DBG (   fmt,
  args... 
)    do{}while(0)

Definition at line 516 of file fsl_usb2_udc.h.

#define DCCPARAMS_DC   0x00000080

Definition at line 113 of file fsl_usb2_udc.h.

#define DCCPARAMS_DEN_MASK   0x0000001f

Definition at line 114 of file fsl_usb2_udc.h.

#define DTD_ADDR_MASK   0xFFFFFFE0

Definition at line 427 of file fsl_usb2_udc.h.

#define DTD_ALIGNMENT   0x20

Definition at line 434 of file fsl_usb2_udc.h.

#define DTD_ERROR_MASK
Value:
DTD_STATUS_DATA_BUFF_ERR | \
DTD_STATUS_TRANSACTION_ERR)

Definition at line 430 of file fsl_usb2_udc.h.

#define DTD_IOC   0x00008000

Definition at line 421 of file fsl_usb2_udc.h.

#define DTD_LENGTH_BIT_POS   16

Definition at line 429 of file fsl_usb2_udc.h.

#define DTD_NEXT_TERMINATE   0x00000001

Definition at line 420 of file fsl_usb2_udc.h.

#define DTD_PACKET_SIZE   0x7FFF0000

Definition at line 428 of file fsl_usb2_udc.h.

#define DTD_RESERVED_FIELDS   0x80007300

Definition at line 426 of file fsl_usb2_udc.h.

#define DTD_STATUS_ACTIVE   0x00000080

Definition at line 422 of file fsl_usb2_udc.h.

#define DTD_STATUS_DATA_BUFF_ERR   0x00000020

Definition at line 424 of file fsl_usb2_udc.h.

#define DTD_STATUS_HALTED   0x00000040

Definition at line 423 of file fsl_usb2_udc.h.

#define DTD_STATUS_TRANSACTION_ERR   0x00000008

Definition at line 425 of file fsl_usb2_udc.h.

#define EP_DIR_IN   1

Definition at line 470 of file fsl_usb2_udc.h.

#define EP_DIR_OUT   0

Definition at line 471 of file fsl_usb2_udc.h.

#define ep_index (   EP)    ((EP)->ep.desc->bEndpointAddress&0xF)

Definition at line 571 of file fsl_usb2_udc.h.

#define ep_is_in (   EP)
Value:
( (ep_index(EP) == 0) ? (EP->udc->ep0_dir == \
USB_DIR_IN) : ((EP)->ep.desc->bEndpointAddress \

Definition at line 573 of file fsl_usb2_udc.h.

#define EP_MAX_LENGTH_TRANSFER   0x4000

Definition at line 398 of file fsl_usb2_udc.h.

#define ep_maxpacket (   EP)    ((EP)->ep.maxpacket)

Definition at line 572 of file fsl_usb2_udc.h.

#define EP_QUEUE_CURRENT_OFFSET_MASK   0x00000FFF

Definition at line 395 of file fsl_usb2_udc.h.

#define EP_QUEUE_FRINDEX_MASK   0x000007FF

Definition at line 397 of file fsl_usb2_udc.h.

#define EP_QUEUE_HEAD_IOC   0x00008000

Definition at line 391 of file fsl_usb2_udc.h.

#define EP_QUEUE_HEAD_IOS   0x00008000

Definition at line 389 of file fsl_usb2_udc.h.

#define EP_QUEUE_HEAD_MAX_PKT_LEN (   ep_info)    (((ep_info)>>16)&0x07ff)

Definition at line 388 of file fsl_usb2_udc.h.

#define EP_QUEUE_HEAD_MAX_PKT_LEN_POS   16

Definition at line 387 of file fsl_usb2_udc.h.

#define EP_QUEUE_HEAD_MULT_POS   30

Definition at line 385 of file fsl_usb2_udc.h.

#define EP_QUEUE_HEAD_MULTO   0x00000C00

Definition at line 392 of file fsl_usb2_udc.h.

#define EP_QUEUE_HEAD_NEXT_POINTER_MASK   0xFFFFFFE0

Definition at line 396 of file fsl_usb2_udc.h.

#define EP_QUEUE_HEAD_NEXT_TERMINATE   0x00000001

Definition at line 390 of file fsl_usb2_udc.h.

#define EP_QUEUE_HEAD_STATUS_ACTIVE   0x00000080

Definition at line 394 of file fsl_usb2_udc.h.

#define EP_QUEUE_HEAD_STATUS_HALT   0x00000040

Definition at line 393 of file fsl_usb2_udc.h.

#define EP_QUEUE_HEAD_ZLT_SEL   0x20000000

Definition at line 386 of file fsl_usb2_udc.h.

#define EP_SETUP_STATUS_EP0   0x00000001

Definition at line 297 of file fsl_usb2_udc.h.

#define EP_SETUP_STATUS_MASK   0x0000003F

Definition at line 296 of file fsl_usb2_udc.h.

#define EPCTRL_EP_TYPE_BULK   2

Definition at line 316 of file fsl_usb2_udc.h.

#define EPCTRL_EP_TYPE_CONTROL   0

Definition at line 314 of file fsl_usb2_udc.h.

#define EPCTRL_EP_TYPE_INTERRUPT   3

Definition at line 317 of file fsl_usb2_udc.h.

#define EPCTRL_EP_TYPE_ISO   1

Definition at line 315 of file fsl_usb2_udc.h.

#define EPCTRL_RX_DATA_SINK   0x00000002 /* Not EP0 */

Definition at line 310 of file fsl_usb2_udc.h.

#define EPCTRL_RX_DATA_TOGGLE_INH   0x00000020 /* Not EP0 */

Definition at line 308 of file fsl_usb2_udc.h.

#define EPCTRL_RX_DATA_TOGGLE_RST   0x00000040 /* Not EP0 */

Definition at line 307 of file fsl_usb2_udc.h.

#define EPCTRL_RX_ENABLE   0x00000080

Definition at line 306 of file fsl_usb2_udc.h.

#define EPCTRL_RX_EP_STALL   0x00000001

Definition at line 311 of file fsl_usb2_udc.h.

#define EPCTRL_RX_EP_TYPE_SHIFT   2

Definition at line 319 of file fsl_usb2_udc.h.

#define EPCTRL_RX_TYPE   0x0000000C

Definition at line 309 of file fsl_usb2_udc.h.

#define EPCTRL_TX_DATA_SOURCE   0x00020000 /* Not EP0 */

Definition at line 304 of file fsl_usb2_udc.h.

#define EPCTRL_TX_DATA_TOGGLE_INH   0x00200000 /* Not EP0 */

Definition at line 302 of file fsl_usb2_udc.h.

#define EPCTRL_TX_DATA_TOGGLE_RST   0x00400000 /* Not EP0 */

Definition at line 301 of file fsl_usb2_udc.h.

#define EPCTRL_TX_ENABLE   0x00800000

Definition at line 300 of file fsl_usb2_udc.h.

#define EPCTRL_TX_EP_STALL   0x00010000

Definition at line 305 of file fsl_usb2_udc.h.

#define EPCTRL_TX_EP_TYPE_SHIFT   18

Definition at line 318 of file fsl_usb2_udc.h.

#define EPCTRL_TX_TYPE   0x000C0000

Definition at line 303 of file fsl_usb2_udc.h.

#define EPFLUSH_RX_OFFSET   0x00000000

Definition at line 293 of file fsl_usb2_udc.h.

#define EPFLUSH_TX_OFFSET   0x00010000

Definition at line 292 of file fsl_usb2_udc.h.

#define ERR (   stuff...)    pr_err("udc: " stuff)

Definition at line 553 of file fsl_usb2_udc.h.

#define get_ep_by_pipe (   udc,
  pipe 
)
Value:
((pipe == 1)? &udc->eps[0]: \
&udc->eps[pipe])

Definition at line 576 of file fsl_usb2_udc.h.

#define get_pipe_by_ep (   EP)    (ep_index(EP) * 2 + ep_is_in(EP))

Definition at line 580 of file fsl_usb2_udc.h.

#define get_pipe_by_windex (   windex)
Value:
* 2 + ((windex & USB_DIR_IN) ? 1 : 0))

Definition at line 578 of file fsl_usb2_udc.h.

#define INFO (   stuff...)    pr_info("udc: " stuff)

Definition at line 555 of file fsl_usb2_udc.h.

#define OTGSC_CTRL_DATA_PULSING   0x00000010

Definition at line 259 of file fsl_usb2_udc.h.

#define OTGSC_CTRL_OTG_TERM   0x00000008

Definition at line 258 of file fsl_usb2_udc.h.

#define OTGSC_CTRL_VUSB_CHARGE   0x00000002

Definition at line 257 of file fsl_usb2_udc.h.

#define OTGSC_CTRL_VUSB_DISCHARGE   0x00000001

Definition at line 256 of file fsl_usb2_udc.h.

#define OTGSC_INTR_1MS_TIMER   0x20000000

Definition at line 279 of file fsl_usb2_udc.h.

#define OTGSC_INTR_A_SESSION_VALID   0x04000000

Definition at line 276 of file fsl_usb2_udc.h.

#define OTGSC_INTR_A_VBUS_VALID   0x02000000

Definition at line 275 of file fsl_usb2_udc.h.

#define OTGSC_INTR_B_SESSION_END   0x10000000

Definition at line 278 of file fsl_usb2_udc.h.

#define OTGSC_INTR_B_SESSION_VALID   0x08000000

Definition at line 277 of file fsl_usb2_udc.h.

#define OTGSC_INTR_DATA_PULSING   0x40000000

Definition at line 280 of file fsl_usb2_udc.h.

#define OTGSC_INTR_USB_ID   0x01000000

Definition at line 274 of file fsl_usb2_udc.h.

#define OTGSC_INTSTS_1MS   0x00200000

Definition at line 272 of file fsl_usb2_udc.h.

#define OTGSC_INTSTS_A_SESSION_VALID   0x00040000

Definition at line 269 of file fsl_usb2_udc.h.

#define OTGSC_INTSTS_A_VBUS_VALID   0x00020000

Definition at line 268 of file fsl_usb2_udc.h.

#define OTGSC_INTSTS_B_SESSION_END   0x00100000

Definition at line 271 of file fsl_usb2_udc.h.

#define OTGSC_INTSTS_B_SESSION_VALID   0x00080000

Definition at line 270 of file fsl_usb2_udc.h.

#define OTGSC_INTSTS_DATA_PULSING   0x00400000

Definition at line 273 of file fsl_usb2_udc.h.

#define OTGSC_INTSTS_USB_ID   0x00010000

Definition at line 267 of file fsl_usb2_udc.h.

#define OTGSC_STS_1MS_TOGGLE   0x00002000

Definition at line 265 of file fsl_usb2_udc.h.

#define OTGSC_STS_A_SESSION_VALID   0x00000400

Definition at line 262 of file fsl_usb2_udc.h.

#define OTGSC_STS_A_VBUS_VALID   0x00000200

Definition at line 261 of file fsl_usb2_udc.h.

#define OTGSC_STS_B_SESSION_END   0x00001000

Definition at line 264 of file fsl_usb2_udc.h.

#define OTGSC_STS_B_SESSION_VALID   0x00000800

Definition at line 263 of file fsl_usb2_udc.h.

#define OTGSC_STS_DATA_PULSING   0x00004000

Definition at line 266 of file fsl_usb2_udc.h.

#define OTGSC_STS_USB_ID   0x00000100

Definition at line 260 of file fsl_usb2_udc.h.

#define PORTSCX_CONNECT_STATUS_CHANGE   0x00000002

Definition at line 193 of file fsl_usb2_udc.h.

#define PORTSCX_CURRENT_CONNECT_STATUS   0x00000001

Definition at line 192 of file fsl_usb2_udc.h.

#define PORTSCX_LINE_STATUS_BIT_POS   10

Definition at line 219 of file fsl_usb2_udc.h.

#define PORTSCX_LINE_STATUS_BITS   0x00000C00

Definition at line 201 of file fsl_usb2_udc.h.

#define PORTSCX_LINE_STATUS_JSTATE   0x00000400

Definition at line 216 of file fsl_usb2_udc.h.

#define PORTSCX_LINE_STATUS_KSTATE   0x00000800

Definition at line 217 of file fsl_usb2_udc.h.

#define PORTSCX_LINE_STATUS_SE0   0x00000000

Definition at line 215 of file fsl_usb2_udc.h.

#define PORTSCX_LINE_STATUS_UNDEF   0x00000C00

Definition at line 218 of file fsl_usb2_udc.h.

#define PORTSCX_OVER_CURRENT_ACT   0x00000010

Definition at line 196 of file fsl_usb2_udc.h.

#define PORTSCX_OVER_CURRENT_CHG   0x00000020

Definition at line 197 of file fsl_usb2_udc.h.

#define PORTSCX_PHY_LOW_POWER_SPD   0x00800000

Definition at line 208 of file fsl_usb2_udc.h.

#define PORTSCX_PHY_TYPE_SEL   0xC0000000

Definition at line 212 of file fsl_usb2_udc.h.

#define PORTSCX_PIC_AMBER   0x00004000

Definition at line 223 of file fsl_usb2_udc.h.

#define PORTSCX_PIC_BIT_POS   14

Definition at line 226 of file fsl_usb2_udc.h.

#define PORTSCX_PIC_GREEN   0x00008000

Definition at line 224 of file fsl_usb2_udc.h.

#define PORTSCX_PIC_OFF   0x00000000

Definition at line 222 of file fsl_usb2_udc.h.

#define PORTSCX_PIC_UNDEF   0x0000C000

Definition at line 225 of file fsl_usb2_udc.h.

#define PORTSCX_PORT_EN_DIS_CHANGE   0x00000008

Definition at line 195 of file fsl_usb2_udc.h.

#define PORTSCX_PORT_ENABLE   0x00000004

Definition at line 194 of file fsl_usb2_udc.h.

#define PORTSCX_PORT_FORCE_FULL_SPEED   0x01000000

Definition at line 209 of file fsl_usb2_udc.h.

#define PORTSCX_PORT_FORCE_RESUME   0x00000040

Definition at line 198 of file fsl_usb2_udc.h.

#define PORTSCX_PORT_INDICTOR_CTRL   0x0000C000

Definition at line 203 of file fsl_usb2_udc.h.

#define PORTSCX_PORT_POWER   0x00001000

Definition at line 202 of file fsl_usb2_udc.h.

#define PORTSCX_PORT_RESET   0x00000100

Definition at line 200 of file fsl_usb2_udc.h.

#define PORTSCX_PORT_SPEED_FULL   0x00000000

Definition at line 238 of file fsl_usb2_udc.h.

#define PORTSCX_PORT_SPEED_HIGH   0x08000000

Definition at line 240 of file fsl_usb2_udc.h.

#define PORTSCX_PORT_SPEED_LOW   0x04000000

Definition at line 239 of file fsl_usb2_udc.h.

#define PORTSCX_PORT_SPEED_MASK   0x0C000000

Definition at line 210 of file fsl_usb2_udc.h.

#define PORTSCX_PORT_SPEED_UNDEF   0x0C000000

Definition at line 241 of file fsl_usb2_udc.h.

#define PORTSCX_PORT_SUSPEND   0x00000080

Definition at line 199 of file fsl_usb2_udc.h.

#define PORTSCX_PORT_TEST_CTRL   0x000F0000

Definition at line 204 of file fsl_usb2_udc.h.

#define PORTSCX_PORT_WIDTH   0x10000000

Definition at line 211 of file fsl_usb2_udc.h.

#define PORTSCX_PTC_BIT_POS   16

Definition at line 235 of file fsl_usb2_udc.h.

#define PORTSCX_PTC_DISABLE   0x00000000

Definition at line 229 of file fsl_usb2_udc.h.

#define PORTSCX_PTC_FORCE_EN   0x00050000

Definition at line 234 of file fsl_usb2_udc.h.

#define PORTSCX_PTC_JSTATE   0x00010000

Definition at line 230 of file fsl_usb2_udc.h.

#define PORTSCX_PTC_KSTATE   0x00020000

Definition at line 231 of file fsl_usb2_udc.h.

#define PORTSCX_PTC_PACKET   0x00040000

Definition at line 233 of file fsl_usb2_udc.h.

#define PORTSCX_PTC_SEQNAK   0x00030000

Definition at line 232 of file fsl_usb2_udc.h.

#define PORTSCX_PTS_BIT_POS   30

Definition at line 253 of file fsl_usb2_udc.h.

#define PORTSCX_PTS_FSLS   0xC0000000

Definition at line 252 of file fsl_usb2_udc.h.

#define PORTSCX_PTS_ULPI   0x80000000

Definition at line 251 of file fsl_usb2_udc.h.

#define PORTSCX_PTS_UTMI   0x00000000

Definition at line 250 of file fsl_usb2_udc.h.

#define PORTSCX_PTW   0x10000000

Definition at line 245 of file fsl_usb2_udc.h.

#define PORTSCX_PTW_16BIT   0x10000000

Definition at line 247 of file fsl_usb2_udc.h.

#define PORTSCX_PTW_8BIT   0x00000000

Definition at line 246 of file fsl_usb2_udc.h.

#define PORTSCX_SPEED_BIT_POS   26

Definition at line 242 of file fsl_usb2_udc.h.

#define PORTSCX_WAKE_ON_CONNECT_DIS   0x00200000

Definition at line 206 of file fsl_usb2_udc.h.

#define PORTSCX_WAKE_ON_CONNECT_EN   0x00100000

Definition at line 205 of file fsl_usb2_udc.h.

#define PORTSCX_WAKE_ON_OVER_CURRENT   0x00400000

Definition at line 207 of file fsl_usb2_udc.h.

#define PRI_CTRL_PRI_LVL0   0x00000003

Definition at line 347 of file fsl_usb2_udc.h.

#define PRI_CTRL_PRI_LVL1   0x0000000C

Definition at line 346 of file fsl_usb2_udc.h.

#define QH_ALIGNMENT   2048

Definition at line 435 of file fsl_usb2_udc.h.

#define REQ_UNCOMPLETE   1

Definition at line 457 of file fsl_usb2_udc.h.

#define SI_CTRL_ERR_DISABLE   0x00000010

Definition at line 350 of file fsl_usb2_udc.h.

#define SI_CTRL_IDRC_DISABLE   0x00000008

Definition at line 351 of file fsl_usb2_udc.h.

#define SI_CTRL_RD_PREFEFETCH_VAL   0x00000001

Definition at line 354 of file fsl_usb2_udc.h.

#define SI_CTRL_RD_PREFETCH_DISABLE   0x00000002

Definition at line 353 of file fsl_usb2_udc.h.

#define SI_CTRL_RD_SAFE_EN   0x00000004

Definition at line 352 of file fsl_usb2_udc.h.

#define SNOOP_ADDRESS_MASK   0xFFFFF000

Definition at line 322 of file fsl_usb2_udc.h.

#define SNOOP_SIZE_128KB   0x10

Definition at line 329 of file fsl_usb2_udc.h.

#define SNOOP_SIZE_128MB   0x1A

Definition at line 339 of file fsl_usb2_udc.h.

#define SNOOP_SIZE_16KB   0x0D

Definition at line 326 of file fsl_usb2_udc.h.

#define SNOOP_SIZE_16MB   0x17

Definition at line 336 of file fsl_usb2_udc.h.

#define SNOOP_SIZE_1GB   0x1D

Definition at line 342 of file fsl_usb2_udc.h.

#define SNOOP_SIZE_1MB   0x13

Definition at line 332 of file fsl_usb2_udc.h.

#define SNOOP_SIZE_256KB   0x11

Definition at line 330 of file fsl_usb2_udc.h.

#define SNOOP_SIZE_256MB   0x1B

Definition at line 340 of file fsl_usb2_udc.h.

#define SNOOP_SIZE_2GB   0x1E /* 2GB snoop size */

Definition at line 343 of file fsl_usb2_udc.h.

#define SNOOP_SIZE_2MB   0x14

Definition at line 333 of file fsl_usb2_udc.h.

#define SNOOP_SIZE_32KB   0x0E

Definition at line 327 of file fsl_usb2_udc.h.

#define SNOOP_SIZE_32MB   0x18

Definition at line 337 of file fsl_usb2_udc.h.

#define SNOOP_SIZE_4KB   0x0B /* 4KB snoop size */

Definition at line 324 of file fsl_usb2_udc.h.

#define SNOOP_SIZE_4MB   0x15

Definition at line 334 of file fsl_usb2_udc.h.

#define SNOOP_SIZE_512KB   0x12

Definition at line 331 of file fsl_usb2_udc.h.

#define SNOOP_SIZE_512MB   0x1C

Definition at line 341 of file fsl_usb2_udc.h.

#define SNOOP_SIZE_64KB   0x0F

Definition at line 328 of file fsl_usb2_udc.h.

#define SNOOP_SIZE_64MB   0x19

Definition at line 338 of file fsl_usb2_udc.h.

#define SNOOP_SIZE_8KB   0x0C

Definition at line 325 of file fsl_usb2_udc.h.

#define SNOOP_SIZE_8MB   0x16

Definition at line 335 of file fsl_usb2_udc.h.

#define SNOOP_SIZE_ZERO   0x00 /* snooping disable */

Definition at line 323 of file fsl_usb2_udc.h.

#define UDC_DMA_BOUNDARY   0x1000

Definition at line 438 of file fsl_usb2_udc.h.

#define USB_CMD_ASP   0x00000300

Definition at line 124 of file fsl_usb2_udc.h.

#define USB_CMD_ASP_00   0x00000000

Definition at line 141 of file fsl_usb2_udc.h.

#define USB_CMD_ASP_01   0x00000100

Definition at line 142 of file fsl_usb2_udc.h.

#define USB_CMD_ASP_10   0x00000200

Definition at line 143 of file fsl_usb2_udc.h.

#define USB_CMD_ASP_11   0x00000300

Definition at line 144 of file fsl_usb2_udc.h.

#define USB_CMD_ASP_BIT_POS   8

Definition at line 145 of file fsl_usb2_udc.h.

#define USB_CMD_ASYNC_SCH_PARK_EN   0x00000800

Definition at line 125 of file fsl_usb2_udc.h.

#define USB_CMD_ASYNC_SCHEDULE_EN   0x00000020

Definition at line 122 of file fsl_usb2_udc.h.

#define USB_CMD_ATDTW   0x00004000

Definition at line 127 of file fsl_usb2_udc.h.

#define USB_CMD_CTRL_RESET   0x00000002

Definition at line 120 of file fsl_usb2_udc.h.

#define USB_CMD_FRAME_SIZE_1024   0x00000000

Definition at line 131 of file fsl_usb2_udc.h.

#define USB_CMD_FRAME_SIZE_128   0x0000000C

Definition at line 134 of file fsl_usb2_udc.h.

#define USB_CMD_FRAME_SIZE_16   0x00008008

Definition at line 137 of file fsl_usb2_udc.h.

#define USB_CMD_FRAME_SIZE_256   0x00000008

Definition at line 133 of file fsl_usb2_udc.h.

#define USB_CMD_FRAME_SIZE_32   0x00008004

Definition at line 136 of file fsl_usb2_udc.h.

#define USB_CMD_FRAME_SIZE_512   0x00000004

Definition at line 132 of file fsl_usb2_udc.h.

#define USB_CMD_FRAME_SIZE_64   0x00008000

Definition at line 135 of file fsl_usb2_udc.h.

#define USB_CMD_FRAME_SIZE_8   0x0000800C

Definition at line 138 of file fsl_usb2_udc.h.

#define USB_CMD_INT_AA_DOORBELL   0x00000040

Definition at line 123 of file fsl_usb2_udc.h.

#define USB_CMD_ITC   0x00FF0000

Definition at line 128 of file fsl_usb2_udc.h.

#define USB_CMD_ITC_16_MICRO_FRM   0x00100000

Definition at line 153 of file fsl_usb2_udc.h.

#define USB_CMD_ITC_1_MICRO_FRM   0x00010000

Definition at line 149 of file fsl_usb2_udc.h.

#define USB_CMD_ITC_2_MICRO_FRM   0x00020000

Definition at line 150 of file fsl_usb2_udc.h.

#define USB_CMD_ITC_32_MICRO_FRM   0x00200000

Definition at line 154 of file fsl_usb2_udc.h.

#define USB_CMD_ITC_4_MICRO_FRM   0x00040000

Definition at line 151 of file fsl_usb2_udc.h.

#define USB_CMD_ITC_64_MICRO_FRM   0x00400000

Definition at line 155 of file fsl_usb2_udc.h.

#define USB_CMD_ITC_8_MICRO_FRM   0x00080000

Definition at line 152 of file fsl_usb2_udc.h.

#define USB_CMD_ITC_BIT_POS   16

Definition at line 156 of file fsl_usb2_udc.h.

#define USB_CMD_ITC_NO_THRESHOLD   0x00000000

Definition at line 148 of file fsl_usb2_udc.h.

#define USB_CMD_PERIODIC_SCHEDULE_EN   0x00000010

Definition at line 121 of file fsl_usb2_udc.h.

#define USB_CMD_RUN_STOP   0x00000001

Definition at line 119 of file fsl_usb2_udc.h.

#define USB_CMD_SUTW   0x00002000

Definition at line 126 of file fsl_usb2_udc.h.

#define USB_CTRL_IOENB   0x00000004

Definition at line 357 of file fsl_usb2_udc.h.

#define USB_CTRL_ULPI_INT0EN   0x00000001

Definition at line 358 of file fsl_usb2_udc.h.

#define USB_CTRL_ULPI_PHY_CLK_SEL   0x00000400

Definition at line 361 of file fsl_usb2_udc.h.

#define USB_CTRL_USB_EN   0x00000004

Definition at line 360 of file fsl_usb2_udc.h.

#define USB_CTRL_UTMI_PHY_EN   0x00000200

Definition at line 359 of file fsl_usb2_udc.h.

#define USB_DEVICE_ADDRESS_BIT_POS   25

Definition at line 186 of file fsl_usb2_udc.h.

#define USB_DEVICE_ADDRESS_MASK   0xFE000000

Definition at line 185 of file fsl_usb2_udc.h.

#define USB_DR_SYS_OFFSET   0x400

Definition at line 18 of file fsl_usb2_udc.h.

#define USB_EP_LIST_ADDRESS_MASK   0xfffff800

Definition at line 189 of file fsl_usb2_udc.h.

#define USB_FRINDEX_MASKS   0x3fff

Definition at line 117 of file fsl_usb2_udc.h.

#define USB_INTR_ASYN_ADV_EN   0x00000020

Definition at line 179 of file fsl_usb2_udc.h.

#define USB_INTR_DEVICE_SUSPEND   0x00000100

Definition at line 182 of file fsl_usb2_udc.h.

#define USB_INTR_ERR_INT_EN   0x00000002

Definition at line 175 of file fsl_usb2_udc.h.

#define USB_INTR_FRM_LST_ROLL_EN   0x00000008

Definition at line 177 of file fsl_usb2_udc.h.

#define USB_INTR_INT_EN   0x00000001

Definition at line 174 of file fsl_usb2_udc.h.

#define USB_INTR_PTC_DETECT_EN   0x00000004

Definition at line 176 of file fsl_usb2_udc.h.

#define USB_INTR_RESET_EN   0x00000040

Definition at line 180 of file fsl_usb2_udc.h.

#define USB_INTR_SOF_EN   0x00000080

Definition at line 181 of file fsl_usb2_udc.h.

#define USB_INTR_SYS_ERR_EN   0x00000010

Definition at line 178 of file fsl_usb2_udc.h.

#define USB_MAX_CTRL_PAYLOAD   64

Definition at line 17 of file fsl_usb2_udc.h.

#define USB_MODE_CTRL_MODE_DEVICE   0x00000002

Definition at line 284 of file fsl_usb2_udc.h.

#define USB_MODE_CTRL_MODE_HOST   0x00000003

Definition at line 285 of file fsl_usb2_udc.h.

#define USB_MODE_CTRL_MODE_IDLE   0x00000000

Definition at line 283 of file fsl_usb2_udc.h.

#define USB_MODE_CTRL_MODE_MASK   0x00000003

Definition at line 286 of file fsl_usb2_udc.h.

#define USB_MODE_CTRL_MODE_RSV   0x00000001

Definition at line 287 of file fsl_usb2_udc.h.

#define USB_MODE_ES   0x00000004 /* Endian Select */

Definition at line 288 of file fsl_usb2_udc.h.

#define USB_MODE_SETUP_LOCK_OFF   0x00000008

Definition at line 289 of file fsl_usb2_udc.h.

#define USB_MODE_STREAM_DISABLE   0x00000010

Definition at line 290 of file fsl_usb2_udc.h.

#define USB_RECV   0 /* OUT EP */

Definition at line 565 of file fsl_usb2_udc.h.

#define USB_SEND   1 /* IN EP */

Definition at line 566 of file fsl_usb2_udc.h.

#define USB_STS_ASYNC_SCHEDULE   0x00008000

Definition at line 171 of file fsl_usb2_udc.h.

#define USB_STS_ERR   0x00000002

Definition at line 160 of file fsl_usb2_udc.h.

#define USB_STS_FRM_LST_ROLL   0x00000008

Definition at line 162 of file fsl_usb2_udc.h.

#define USB_STS_HC_HALTED   0x00001000

Definition at line 168 of file fsl_usb2_udc.h.

#define USB_STS_IAA   0x00000020

Definition at line 164 of file fsl_usb2_udc.h.

#define USB_STS_INT   0x00000001

Definition at line 159 of file fsl_usb2_udc.h.

#define USB_STS_PERIODIC_SCHEDULE   0x00004000

Definition at line 170 of file fsl_usb2_udc.h.

#define USB_STS_PORT_CHANGE   0x00000004

Definition at line 161 of file fsl_usb2_udc.h.

#define USB_STS_RCL   0x00002000

Definition at line 169 of file fsl_usb2_udc.h.

#define USB_STS_RESET   0x00000040

Definition at line 165 of file fsl_usb2_udc.h.

#define USB_STS_SOF   0x00000080

Definition at line 166 of file fsl_usb2_udc.h.

#define USB_STS_SUSPEND   0x00000100

Definition at line 167 of file fsl_usb2_udc.h.

#define USB_STS_SYS_ERR   0x00000010

Definition at line 163 of file fsl_usb2_udc.h.

#define VDBG (   stuff...)    do{}while(0)

Definition at line 550 of file fsl_usb2_udc.h.

#define WAIT_FOR_OUT_STATUS   3

Definition at line 109 of file fsl_usb2_udc.h.

#define WAIT_FOR_SETUP   0

Definition at line 106 of file fsl_usb2_udc.h.

#define WARNING (   stuff...)    pr_warning("udc: " stuff)

Definition at line 554 of file fsl_usb2_udc.h.