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

Go to the source code of this file.

Data Structures

struct  mv_u3d_cap_regs
 
struct  mv_u3d_op_regs
 
struct  epxcr
 
struct  xferstatus
 
struct  mv_u3d_vuc_regs
 
struct  mv_u3d_ep_context
 
struct  mv_u3d_trb_ctrl
 
struct  mv_u3d_trb_hw
 
struct  mv_u3d_trb
 
struct  mv_u3d
 
struct  mv_u3d_ep
 
struct  mv_u3d_req
 

Macros

#define MV_U3D_EP_CONTEXT_ALIGNMENT   32
 
#define MV_U3D_TRB_ALIGNMENT   16
 
#define MV_U3D_DMA_BOUNDARY   4096
 
#define MV_U3D_EP0_MAX_PKT_SIZE   512
 
#define MV_U3D_WAIT_FOR_SETUP   0
 
#define MV_U3D_DATA_STATE_XMIT   1
 
#define MV_U3D_DATA_STATE_NEED_ZLP   2
 
#define MV_U3D_WAIT_FOR_OUT_STATUS   3
 
#define MV_U3D_DATA_STATE_RECV   4
 
#define MV_U3D_STATUS_STAGE   5
 
#define MV_U3D_EP_MAX_LENGTH_TRANSFER   0x10000
 
#define MV_U3D_USBINT_SETUP   0x00000001
 
#define MV_U3D_USBINT_RX_COMPLETE   0x00000002
 
#define MV_U3D_USBINT_TX_COMPLETE   0x00000004
 
#define MV_U3D_USBINT_UNDER_RUN   0x00000008
 
#define MV_U3D_USBINT_RXDESC_ERR   0x00000010
 
#define MV_U3D_USBINT_TXDESC_ERR   0x00000020
 
#define MV_U3D_USBINT_RX_TRB_COMPLETE   0x00000040
 
#define MV_U3D_USBINT_TX_TRB_COMPLETE   0x00000080
 
#define MV_U3D_USBINT_VBUS_VALID   0x00010000
 
#define MV_U3D_USBINT_STORAGE_CMD_FULL   0x00020000
 
#define MV_U3D_USBINT_LINK_CHG   0x01000000
 
#define MV_U3D_INTR_ENABLE_SETUP   0x00000001
 
#define MV_U3D_INTR_ENABLE_RX_COMPLETE   0x00000002
 
#define MV_U3D_INTR_ENABLE_TX_COMPLETE   0x00000004
 
#define MV_U3D_INTR_ENABLE_UNDER_RUN   0x00000008
 
#define MV_U3D_INTR_ENABLE_RXDESC_ERR   0x00000010
 
#define MV_U3D_INTR_ENABLE_TXDESC_ERR   0x00000020
 
#define MV_U3D_INTR_ENABLE_RX_TRB_COMPLETE   0x00000040
 
#define MV_U3D_INTR_ENABLE_TX_TRB_COMPLETE   0x00000080
 
#define MV_U3D_INTR_ENABLE_RX_BUFFER_ERR   0x00000100
 
#define MV_U3D_INTR_ENABLE_VBUS_VALID   0x00010000
 
#define MV_U3D_INTR_ENABLE_STORAGE_CMD_FULL   0x00020000
 
#define MV_U3D_INTR_ENABLE_LINK_CHG   0x01000000
 
#define MV_U3D_INTR_ENABLE_PRIME_STATUS   0x02000000
 
#define MV_U3D_LINK_CHANGE_LINK_UP   0x00000001
 
#define MV_U3D_LINK_CHANGE_SUSPEND   0x00000002
 
#define MV_U3D_LINK_CHANGE_RESUME   0x00000004
 
#define MV_U3D_LINK_CHANGE_WRESET   0x00000008
 
#define MV_U3D_LINK_CHANGE_HRESET   0x00000010
 
#define MV_U3D_LINK_CHANGE_VBUS_INVALID   0x00000020
 
#define MV_U3D_LINK_CHANGE_INACT   0x00000040
 
#define MV_U3D_LINK_CHANGE_DISABLE_AFTER_U0   0x00000080
 
#define MV_U3D_LINK_CHANGE_U1   0x00000100
 
#define MV_U3D_LINK_CHANGE_U2   0x00000200
 
#define MV_U3D_LINK_CHANGE_U3   0x00000400
 
#define MV_U3D_BRIDGE_SETTING_VBUS_VALID   (1 << 16)
 
#define MV_U3D_CMD_RUN_STOP   0x00000001
 
#define MV_U3D_CMD_CTRL_RESET   0x00000002
 
#define MV_U3D_EPXCR_EP_TYPE_CONTROL   0
 
#define MV_U3D_EPXCR_EP_TYPE_ISOC   1
 
#define MV_U3D_EPXCR_EP_TYPE_BULK   2
 
#define MV_U3D_EPXCR_EP_TYPE_INT   3
 
#define MV_U3D_EPXCR_EP_ENABLE_SHIFT   4
 
#define MV_U3D_EPXCR_MAX_BURST_SIZE_SHIFT   12
 
#define MV_U3D_EPXCR_MAX_PACKET_SIZE_SHIFT   16
 
#define MV_U3D_USB_BULK_BURST_OUT   6
 
#define MV_U3D_USB_BULK_BURST_IN   14
 
#define MV_U3D_EPXCR_EP_FLUSH   (1 << 7)
 
#define MV_U3D_EPXCR_EP_HALT   (1 << 1)
 
#define MV_U3D_EPXCR_EP_INIT   (1)
 
#define MV_U3D_XFERSTATUS_COMPLETE_SHIFT   24
 
#define MV_U3D_COMPLETE_INVALID   0
 
#define MV_U3D_COMPLETE_SUCCESS   1
 
#define MV_U3D_COMPLETE_BUFF_ERR   2
 
#define MV_U3D_COMPLETE_SHORT_PACKET   3
 
#define MV_U3D_COMPLETE_TRB_ERR   5
 
#define MV_U3D_XFERSTATUS_TRB_LENGTH_MASK   (0xFFFFFF)
 
#define MV_U3D_USB_LINK_BYPASS_VBUS   0x8
 
#define MV_U3D_LTSSM_PHY_INIT_DONE   0x80000000
 
#define MV_U3D_LTSSM_NEVER_GO_COMPLIANCE   0x40000000
 
#define MV_U3D_USB3_OP_REGS_OFFSET   0x100
 
#define MV_U3D_USB3_PHY_OFFSET   0xB800
 
#define DCS_ENABLE   0x1
 
#define MV_U3D_RESET_TIMEOUT   10000
 
#define MV_U3D_FLUSH_TIMEOUT   100000
 
#define MV_U3D_OWN_TIMEOUT   10000
 
#define LOOPS_USEC_SHIFT   4
 
#define LOOPS_USEC   (1 << LOOPS_USEC_SHIFT)
 
#define LOOPS(timeout)   ((timeout) >> LOOPS_USEC_SHIFT)
 
#define MV_U3D_EP_DIR_IN   1
 
#define MV_U3D_EP_DIR_OUT   0
 
#define mv_u3d_ep_dir(ep)
 
#define TYPE_NORMAL   1
 
#define TYPE_DATA   3
 
#define TYPE_LINK   6
 

Macro Definition Documentation

#define DCS_ENABLE   0x1

Definition at line 107 of file mv_u3d.h.

#define LOOPS (   timeout)    ((timeout) >> LOOPS_USEC_SHIFT)

Definition at line 115 of file mv_u3d.h.

#define LOOPS_USEC   (1 << LOOPS_USEC_SHIFT)

Definition at line 114 of file mv_u3d.h.

#define LOOPS_USEC_SHIFT   4

Definition at line 113 of file mv_u3d.h.

#define MV_U3D_BRIDGE_SETTING_VBUS_VALID   (1 << 16)

Definition at line 69 of file mv_u3d.h.

#define MV_U3D_CMD_CTRL_RESET   0x00000002

Definition at line 73 of file mv_u3d.h.

#define MV_U3D_CMD_RUN_STOP   0x00000001

Definition at line 72 of file mv_u3d.h.

#define MV_U3D_COMPLETE_BUFF_ERR   2

Definition at line 94 of file mv_u3d.h.

#define MV_U3D_COMPLETE_INVALID   0

Definition at line 92 of file mv_u3d.h.

#define MV_U3D_COMPLETE_SHORT_PACKET   3

Definition at line 95 of file mv_u3d.h.

#define MV_U3D_COMPLETE_SUCCESS   1

Definition at line 93 of file mv_u3d.h.

#define MV_U3D_COMPLETE_TRB_ERR   5

Definition at line 96 of file mv_u3d.h.

#define MV_U3D_DATA_STATE_NEED_ZLP   2

Definition at line 20 of file mv_u3d.h.

#define MV_U3D_DATA_STATE_RECV   4

Definition at line 22 of file mv_u3d.h.

#define MV_U3D_DATA_STATE_XMIT   1

Definition at line 19 of file mv_u3d.h.

#define MV_U3D_DMA_BOUNDARY   4096

Definition at line 14 of file mv_u3d.h.

#define MV_U3D_EP0_MAX_PKT_SIZE   512

Definition at line 15 of file mv_u3d.h.

#define MV_U3D_EP_CONTEXT_ALIGNMENT   32

Definition at line 12 of file mv_u3d.h.

#define mv_u3d_ep_dir (   ep)
Value:
(((ep)->ep_num == 0) ? \
((ep)->u3d->ep0_dir) : ((ep)->direction))

Definition at line 120 of file mv_u3d.h.

#define MV_U3D_EP_DIR_IN   1

Definition at line 118 of file mv_u3d.h.

#define MV_U3D_EP_DIR_OUT   0

Definition at line 119 of file mv_u3d.h.

#define MV_U3D_EP_MAX_LENGTH_TRANSFER   0x10000

Definition at line 25 of file mv_u3d.h.

#define MV_U3D_EPXCR_EP_ENABLE_SHIFT   4

Definition at line 80 of file mv_u3d.h.

#define MV_U3D_EPXCR_EP_FLUSH   (1 << 7)

Definition at line 86 of file mv_u3d.h.

#define MV_U3D_EPXCR_EP_HALT   (1 << 1)

Definition at line 87 of file mv_u3d.h.

#define MV_U3D_EPXCR_EP_INIT   (1)

Definition at line 88 of file mv_u3d.h.

#define MV_U3D_EPXCR_EP_TYPE_BULK   2

Definition at line 78 of file mv_u3d.h.

#define MV_U3D_EPXCR_EP_TYPE_CONTROL   0

Definition at line 76 of file mv_u3d.h.

#define MV_U3D_EPXCR_EP_TYPE_INT   3

Definition at line 79 of file mv_u3d.h.

#define MV_U3D_EPXCR_EP_TYPE_ISOC   1

Definition at line 77 of file mv_u3d.h.

#define MV_U3D_EPXCR_MAX_BURST_SIZE_SHIFT   12

Definition at line 81 of file mv_u3d.h.

#define MV_U3D_EPXCR_MAX_PACKET_SIZE_SHIFT   16

Definition at line 82 of file mv_u3d.h.

#define MV_U3D_FLUSH_TIMEOUT   100000

Definition at line 111 of file mv_u3d.h.

#define MV_U3D_INTR_ENABLE_LINK_CHG   0x01000000

Definition at line 52 of file mv_u3d.h.

#define MV_U3D_INTR_ENABLE_PRIME_STATUS   0x02000000

Definition at line 53 of file mv_u3d.h.

#define MV_U3D_INTR_ENABLE_RX_BUFFER_ERR   0x00000100

Definition at line 49 of file mv_u3d.h.

#define MV_U3D_INTR_ENABLE_RX_COMPLETE   0x00000002

Definition at line 42 of file mv_u3d.h.

#define MV_U3D_INTR_ENABLE_RX_TRB_COMPLETE   0x00000040

Definition at line 47 of file mv_u3d.h.

#define MV_U3D_INTR_ENABLE_RXDESC_ERR   0x00000010

Definition at line 45 of file mv_u3d.h.

#define MV_U3D_INTR_ENABLE_SETUP   0x00000001

Definition at line 41 of file mv_u3d.h.

#define MV_U3D_INTR_ENABLE_STORAGE_CMD_FULL   0x00020000

Definition at line 51 of file mv_u3d.h.

#define MV_U3D_INTR_ENABLE_TX_COMPLETE   0x00000004

Definition at line 43 of file mv_u3d.h.

#define MV_U3D_INTR_ENABLE_TX_TRB_COMPLETE   0x00000080

Definition at line 48 of file mv_u3d.h.

#define MV_U3D_INTR_ENABLE_TXDESC_ERR   0x00000020

Definition at line 46 of file mv_u3d.h.

#define MV_U3D_INTR_ENABLE_UNDER_RUN   0x00000008

Definition at line 44 of file mv_u3d.h.

#define MV_U3D_INTR_ENABLE_VBUS_VALID   0x00010000

Definition at line 50 of file mv_u3d.h.

#define MV_U3D_LINK_CHANGE_DISABLE_AFTER_U0   0x00000080

Definition at line 63 of file mv_u3d.h.

#define MV_U3D_LINK_CHANGE_HRESET   0x00000010

Definition at line 60 of file mv_u3d.h.

#define MV_U3D_LINK_CHANGE_INACT   0x00000040

Definition at line 62 of file mv_u3d.h.

#define MV_U3D_LINK_CHANGE_LINK_UP   0x00000001

Definition at line 56 of file mv_u3d.h.

#define MV_U3D_LINK_CHANGE_RESUME   0x00000004

Definition at line 58 of file mv_u3d.h.

#define MV_U3D_LINK_CHANGE_SUSPEND   0x00000002

Definition at line 57 of file mv_u3d.h.

#define MV_U3D_LINK_CHANGE_U1   0x00000100

Definition at line 64 of file mv_u3d.h.

#define MV_U3D_LINK_CHANGE_U2   0x00000200

Definition at line 65 of file mv_u3d.h.

#define MV_U3D_LINK_CHANGE_U3   0x00000400

Definition at line 66 of file mv_u3d.h.

#define MV_U3D_LINK_CHANGE_VBUS_INVALID   0x00000020

Definition at line 61 of file mv_u3d.h.

#define MV_U3D_LINK_CHANGE_WRESET   0x00000008

Definition at line 59 of file mv_u3d.h.

#define MV_U3D_LTSSM_NEVER_GO_COMPLIANCE   0x40000000

Definition at line 102 of file mv_u3d.h.

#define MV_U3D_LTSSM_PHY_INIT_DONE   0x80000000

Definition at line 101 of file mv_u3d.h.

#define MV_U3D_OWN_TIMEOUT   10000

Definition at line 112 of file mv_u3d.h.

#define MV_U3D_RESET_TIMEOUT   10000

Definition at line 110 of file mv_u3d.h.

#define MV_U3D_STATUS_STAGE   5

Definition at line 23 of file mv_u3d.h.

#define MV_U3D_TRB_ALIGNMENT   16

Definition at line 13 of file mv_u3d.h.

#define MV_U3D_USB3_OP_REGS_OFFSET   0x100

Definition at line 104 of file mv_u3d.h.

#define MV_U3D_USB3_PHY_OFFSET   0xB800

Definition at line 105 of file mv_u3d.h.

#define MV_U3D_USB_BULK_BURST_IN   14

Definition at line 84 of file mv_u3d.h.

#define MV_U3D_USB_BULK_BURST_OUT   6

Definition at line 83 of file mv_u3d.h.

#define MV_U3D_USB_LINK_BYPASS_VBUS   0x8

Definition at line 99 of file mv_u3d.h.

#define MV_U3D_USBINT_LINK_CHG   0x01000000

Definition at line 38 of file mv_u3d.h.

#define MV_U3D_USBINT_RX_COMPLETE   0x00000002

Definition at line 29 of file mv_u3d.h.

#define MV_U3D_USBINT_RX_TRB_COMPLETE   0x00000040

Definition at line 34 of file mv_u3d.h.

#define MV_U3D_USBINT_RXDESC_ERR   0x00000010

Definition at line 32 of file mv_u3d.h.

#define MV_U3D_USBINT_SETUP   0x00000001

Definition at line 28 of file mv_u3d.h.

#define MV_U3D_USBINT_STORAGE_CMD_FULL   0x00020000

Definition at line 37 of file mv_u3d.h.

#define MV_U3D_USBINT_TX_COMPLETE   0x00000004

Definition at line 30 of file mv_u3d.h.

#define MV_U3D_USBINT_TX_TRB_COMPLETE   0x00000080

Definition at line 35 of file mv_u3d.h.

#define MV_U3D_USBINT_TXDESC_ERR   0x00000020

Definition at line 33 of file mv_u3d.h.

#define MV_U3D_USBINT_UNDER_RUN   0x00000008

Definition at line 31 of file mv_u3d.h.

#define MV_U3D_USBINT_VBUS_VALID   0x00010000

Definition at line 36 of file mv_u3d.h.

#define MV_U3D_WAIT_FOR_OUT_STATUS   3

Definition at line 21 of file mv_u3d.h.

#define MV_U3D_WAIT_FOR_SETUP   0

Definition at line 18 of file mv_u3d.h.

#define MV_U3D_XFERSTATUS_COMPLETE_SHIFT   24

Definition at line 91 of file mv_u3d.h.

#define MV_U3D_XFERSTATUS_TRB_LENGTH_MASK   (0xFFFFFF)

Definition at line 97 of file mv_u3d.h.

#define TYPE_DATA   3

Definition at line 217 of file mv_u3d.h.

#define TYPE_LINK   6

Definition at line 218 of file mv_u3d.h.

#define TYPE_NORMAL   1

Definition at line 216 of file mv_u3d.h.