Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
mv_otg.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  mv_otg_ctrl
 
struct  mv_otg_regs
 
struct  mv_otg
 

Macros

#define USBCMD_RUN_STOP   (0x00000001)
 
#define USBCMD_CTRL_RESET   (0x00000002)
 
#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 CAPLENGTH_MASK   (0xff)
 
#define T_A_WAIT_VRISE   100
 
#define T_A_WAIT_BCON   2000
 
#define T_A_AIDL_BDIS   100
 
#define T_A_BIDL_ADIS   20
 
#define T_B_ASE0_BRST   400
 
#define T_B_SE0_SRP   300
 
#define T_B_SRP_FAIL   2000
 
#define T_B_DATA_PLS   10
 
#define T_B_SRP_INIT   100
 
#define T_A_SRP_RSPNS   10
 
#define T_A_DRV_RSM   5
 
#define VUSBHS_MAX_PORTS   8
 

Enumerations

enum  otg_function { OTG_B_DEVICE = 0, OTG_A_DEVICE }
 
enum  mv_otg_timer { A_WAIT_BCON_TIMER = 0, OTG_TIMER_NUM }
 

Macro Definition Documentation

#define CAPLENGTH_MASK   (0xff)

Definition at line 46 of file mv_otg.h.

#define OTGSC_CTRL_DATA_PULSING   0x00000010

Definition at line 23 of file mv_otg.h.

#define OTGSC_CTRL_OTG_TERM   0x00000008

Definition at line 22 of file mv_otg.h.

#define OTGSC_CTRL_VUSB_CHARGE   0x00000002

Definition at line 21 of file mv_otg.h.

#define OTGSC_CTRL_VUSB_DISCHARGE   0x00000001

Definition at line 20 of file mv_otg.h.

#define OTGSC_INTR_1MS_TIMER   0x20000000

Definition at line 43 of file mv_otg.h.

#define OTGSC_INTR_A_SESSION_VALID   0x04000000

Definition at line 40 of file mv_otg.h.

#define OTGSC_INTR_A_VBUS_VALID   0x02000000

Definition at line 39 of file mv_otg.h.

#define OTGSC_INTR_B_SESSION_END   0x10000000

Definition at line 42 of file mv_otg.h.

#define OTGSC_INTR_B_SESSION_VALID   0x08000000

Definition at line 41 of file mv_otg.h.

#define OTGSC_INTR_DATA_PULSING   0x40000000

Definition at line 44 of file mv_otg.h.

#define OTGSC_INTR_USB_ID   0x01000000

Definition at line 38 of file mv_otg.h.

#define OTGSC_INTSTS_1MS   0x00200000

Definition at line 36 of file mv_otg.h.

#define OTGSC_INTSTS_A_SESSION_VALID   0x00040000

Definition at line 33 of file mv_otg.h.

#define OTGSC_INTSTS_A_VBUS_VALID   0x00020000

Definition at line 32 of file mv_otg.h.

#define OTGSC_INTSTS_B_SESSION_END   0x00100000

Definition at line 35 of file mv_otg.h.

#define OTGSC_INTSTS_B_SESSION_VALID   0x00080000

Definition at line 34 of file mv_otg.h.

#define OTGSC_INTSTS_DATA_PULSING   0x00400000

Definition at line 37 of file mv_otg.h.

#define OTGSC_INTSTS_USB_ID   0x00010000

Definition at line 31 of file mv_otg.h.

#define OTGSC_STS_1MS_TOGGLE   0x00002000

Definition at line 29 of file mv_otg.h.

#define OTGSC_STS_A_SESSION_VALID   0x00000400

Definition at line 26 of file mv_otg.h.

#define OTGSC_STS_A_VBUS_VALID   0x00000200

Definition at line 25 of file mv_otg.h.

#define OTGSC_STS_B_SESSION_END   0x00001000

Definition at line 28 of file mv_otg.h.

#define OTGSC_STS_B_SESSION_VALID   0x00000800

Definition at line 27 of file mv_otg.h.

#define OTGSC_STS_DATA_PULSING   0x00004000

Definition at line 30 of file mv_otg.h.

#define OTGSC_STS_USB_ID   0x00000100

Definition at line 24 of file mv_otg.h.

#define T_A_AIDL_BDIS   100

Definition at line 51 of file mv_otg.h.

#define T_A_BIDL_ADIS   20

Definition at line 52 of file mv_otg.h.

#define T_A_DRV_RSM   5

Definition at line 59 of file mv_otg.h.

#define T_A_SRP_RSPNS   10

Definition at line 58 of file mv_otg.h.

#define T_A_WAIT_BCON   2000

Definition at line 50 of file mv_otg.h.

#define T_A_WAIT_VRISE   100

Definition at line 49 of file mv_otg.h.

#define T_B_ASE0_BRST   400

Definition at line 53 of file mv_otg.h.

#define T_B_DATA_PLS   10

Definition at line 56 of file mv_otg.h.

#define T_B_SE0_SRP   300

Definition at line 54 of file mv_otg.h.

#define T_B_SRP_FAIL   2000

Definition at line 55 of file mv_otg.h.

#define T_B_SRP_INIT   100

Definition at line 57 of file mv_otg.h.

#define USBCMD_CTRL_RESET   (0x00000002)

Definition at line 17 of file mv_otg.h.

#define USBCMD_RUN_STOP   (0x00000001)

Definition at line 16 of file mv_otg.h.

#define VUSBHS_MAX_PORTS   8

Definition at line 107 of file mv_otg.h.

Enumeration Type Documentation

Enumerator:
A_WAIT_BCON_TIMER 
OTG_TIMER_NUM 

Definition at line 66 of file mv_otg.h.

Enumerator:
OTG_B_DEVICE 
OTG_A_DEVICE 

Definition at line 61 of file mv_otg.h.