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

Go to the source code of this file.

Macros

#define __ASM_ARCH_GPIO_H   __FILE__
 
#define S5PV210_GPIO_A0_NR   (8)
 
#define S5PV210_GPIO_A1_NR   (4)
 
#define S5PV210_GPIO_B_NR   (8)
 
#define S5PV210_GPIO_C0_NR   (5)
 
#define S5PV210_GPIO_C1_NR   (5)
 
#define S5PV210_GPIO_D0_NR   (4)
 
#define S5PV210_GPIO_D1_NR   (6)
 
#define S5PV210_GPIO_E0_NR   (8)
 
#define S5PV210_GPIO_E1_NR   (5)
 
#define S5PV210_GPIO_F0_NR   (8)
 
#define S5PV210_GPIO_F1_NR   (8)
 
#define S5PV210_GPIO_F2_NR   (8)
 
#define S5PV210_GPIO_F3_NR   (6)
 
#define S5PV210_GPIO_G0_NR   (7)
 
#define S5PV210_GPIO_G1_NR   (7)
 
#define S5PV210_GPIO_G2_NR   (7)
 
#define S5PV210_GPIO_G3_NR   (7)
 
#define S5PV210_GPIO_H0_NR   (8)
 
#define S5PV210_GPIO_H1_NR   (8)
 
#define S5PV210_GPIO_H2_NR   (8)
 
#define S5PV210_GPIO_H3_NR   (8)
 
#define S5PV210_GPIO_I_NR   (7)
 
#define S5PV210_GPIO_J0_NR   (8)
 
#define S5PV210_GPIO_J1_NR   (6)
 
#define S5PV210_GPIO_J2_NR   (8)
 
#define S5PV210_GPIO_J3_NR   (8)
 
#define S5PV210_GPIO_J4_NR   (5)
 
#define S5PV210_GPIO_MP01_NR   (8)
 
#define S5PV210_GPIO_MP02_NR   (4)
 
#define S5PV210_GPIO_MP03_NR   (8)
 
#define S5PV210_GPIO_MP04_NR   (8)
 
#define S5PV210_GPIO_MP05_NR   (8)
 
#define S5PV210_GPIO_NEXT(__gpio)   ((__gpio##_START) + (__gpio##_NR) + CONFIG_S3C_GPIO_SPACE + 1)
 
#define S5PV210_GPA0(_nr)   (S5PV210_GPIO_A0_START + (_nr))
 
#define S5PV210_GPA1(_nr)   (S5PV210_GPIO_A1_START + (_nr))
 
#define S5PV210_GPB(_nr)   (S5PV210_GPIO_B_START + (_nr))
 
#define S5PV210_GPC0(_nr)   (S5PV210_GPIO_C0_START + (_nr))
 
#define S5PV210_GPC1(_nr)   (S5PV210_GPIO_C1_START + (_nr))
 
#define S5PV210_GPD0(_nr)   (S5PV210_GPIO_D0_START + (_nr))
 
#define S5PV210_GPD1(_nr)   (S5PV210_GPIO_D1_START + (_nr))
 
#define S5PV210_GPE0(_nr)   (S5PV210_GPIO_E0_START + (_nr))
 
#define S5PV210_GPE1(_nr)   (S5PV210_GPIO_E1_START + (_nr))
 
#define S5PV210_GPF0(_nr)   (S5PV210_GPIO_F0_START + (_nr))
 
#define S5PV210_GPF1(_nr)   (S5PV210_GPIO_F1_START + (_nr))
 
#define S5PV210_GPF2(_nr)   (S5PV210_GPIO_F2_START + (_nr))
 
#define S5PV210_GPF3(_nr)   (S5PV210_GPIO_F3_START + (_nr))
 
#define S5PV210_GPG0(_nr)   (S5PV210_GPIO_G0_START + (_nr))
 
#define S5PV210_GPG1(_nr)   (S5PV210_GPIO_G1_START + (_nr))
 
#define S5PV210_GPG2(_nr)   (S5PV210_GPIO_G2_START + (_nr))
 
#define S5PV210_GPG3(_nr)   (S5PV210_GPIO_G3_START + (_nr))
 
#define S5PV210_GPH0(_nr)   (S5PV210_GPIO_H0_START + (_nr))
 
#define S5PV210_GPH1(_nr)   (S5PV210_GPIO_H1_START + (_nr))
 
#define S5PV210_GPH2(_nr)   (S5PV210_GPIO_H2_START + (_nr))
 
#define S5PV210_GPH3(_nr)   (S5PV210_GPIO_H3_START + (_nr))
 
#define S5PV210_GPI(_nr)   (S5PV210_GPIO_I_START + (_nr))
 
#define S5PV210_GPJ0(_nr)   (S5PV210_GPIO_J0_START + (_nr))
 
#define S5PV210_GPJ1(_nr)   (S5PV210_GPIO_J1_START + (_nr))
 
#define S5PV210_GPJ2(_nr)   (S5PV210_GPIO_J2_START + (_nr))
 
#define S5PV210_GPJ3(_nr)   (S5PV210_GPIO_J3_START + (_nr))
 
#define S5PV210_GPJ4(_nr)   (S5PV210_GPIO_J4_START + (_nr))
 
#define S5PV210_MP01(_nr)   (S5PV210_GPIO_MP01_START + (_nr))
 
#define S5PV210_MP02(_nr)   (S5PV210_GPIO_MP02_START + (_nr))
 
#define S5PV210_MP03(_nr)   (S5PV210_GPIO_MP03_START + (_nr))
 
#define S5PV210_MP04(_nr)   (S5PV210_GPIO_MP04_START + (_nr))
 
#define S5PV210_MP05(_nr)   (S5PV210_GPIO_MP05_START + (_nr))
 
#define S5PV210_GPIO_END   (S5PV210_MP05(S5PV210_GPIO_MP05_NR) + 1)
 
#define S3C_GPIO_END   S5PV210_GPIO_END
 
#define ARCH_NR_GPIOS
 

Enumerations

enum  s5p_gpio_number {
  S5PC100_GPIO_A0_START = 0, S5PC100_GPIO_A1_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_A0), S5PC100_GPIO_B_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_A1), S5PC100_GPIO_C_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_B),
  S5PC100_GPIO_D_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_C), S5PC100_GPIO_E0_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_D), S5PC100_GPIO_E1_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_E0), S5PC100_GPIO_F0_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_E1),
  S5PC100_GPIO_F1_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_F0), S5PC100_GPIO_F2_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_F1), S5PC100_GPIO_F3_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_F2), S5PC100_GPIO_G0_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_F3),
  S5PC100_GPIO_G1_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_G0), S5PC100_GPIO_G2_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_G1), S5PC100_GPIO_G3_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_G2), S5PC100_GPIO_H0_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_G3),
  S5PC100_GPIO_H1_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_H0), S5PC100_GPIO_H2_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_H1), S5PC100_GPIO_H3_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_H2), S5PC100_GPIO_I_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_H3),
  S5PC100_GPIO_J0_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_I), S5PC100_GPIO_J1_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_J0), S5PC100_GPIO_J2_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_J1), S5PC100_GPIO_J3_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_J2),
  S5PC100_GPIO_J4_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_J3), S5PC100_GPIO_K0_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_J4), S5PC100_GPIO_K1_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_K0), S5PC100_GPIO_K2_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_K1),
  S5PC100_GPIO_K3_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_K2), S5PC100_GPIO_L0_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_K3), S5PC100_GPIO_L1_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_L0), S5PC100_GPIO_L2_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_L1),
  S5PC100_GPIO_L3_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_L2), S5PC100_GPIO_L4_START = S5PC100_GPIO_NEXT(S5PC100_GPIO_L3), S5PC100_GPIO_END = S5PC100_GPIO_NEXT(S5PC100_GPIO_L4), S5PV210_GPIO_A0_START = 0,
  S5PV210_GPIO_A1_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_A0), S5PV210_GPIO_B_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_A1), S5PV210_GPIO_C0_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_B), S5PV210_GPIO_C1_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_C0),
  S5PV210_GPIO_D0_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_C1), S5PV210_GPIO_D1_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_D0), S5PV210_GPIO_E0_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_D1), S5PV210_GPIO_E1_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_E0),
  S5PV210_GPIO_F0_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_E1), S5PV210_GPIO_F1_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_F0), S5PV210_GPIO_F2_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_F1), S5PV210_GPIO_F3_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_F2),
  S5PV210_GPIO_G0_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_F3), S5PV210_GPIO_G1_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_G0), S5PV210_GPIO_G2_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_G1), S5PV210_GPIO_G3_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_G2),
  S5PV210_GPIO_H0_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_G3), S5PV210_GPIO_H1_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_H0), S5PV210_GPIO_H2_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_H1), S5PV210_GPIO_H3_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_H2),
  S5PV210_GPIO_I_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_H3), S5PV210_GPIO_J0_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_I), S5PV210_GPIO_J1_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_J0), S5PV210_GPIO_J2_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_J1),
  S5PV210_GPIO_J3_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_J2), S5PV210_GPIO_J4_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_J3), S5PV210_GPIO_MP01_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_J4), S5PV210_GPIO_MP02_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_MP01),
  S5PV210_GPIO_MP03_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_MP02), S5PV210_GPIO_MP04_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_MP03), S5PV210_GPIO_MP05_START = S5PV210_GPIO_NEXT(S5PV210_GPIO_MP04)
}
 

Macro Definition Documentation

#define __ASM_ARCH_GPIO_H   __FILE__

Definition at line 14 of file gpio.h.

#define ARCH_NR_GPIOS
Value:
CONFIG_SAMSUNG_GPIO_EXTRA + 1)

Definition at line 137 of file gpio.h.

#define S3C_GPIO_END   S5PV210_GPIO_END

Definition at line 134 of file gpio.h.

#define S5PV210_GPA0 (   _nr)    (S5PV210_GPIO_A0_START + (_nr))

Definition at line 99 of file gpio.h.

#define S5PV210_GPA1 (   _nr)    (S5PV210_GPIO_A1_START + (_nr))

Definition at line 100 of file gpio.h.

#define S5PV210_GPB (   _nr)    (S5PV210_GPIO_B_START + (_nr))

Definition at line 101 of file gpio.h.

#define S5PV210_GPC0 (   _nr)    (S5PV210_GPIO_C0_START + (_nr))

Definition at line 102 of file gpio.h.

#define S5PV210_GPC1 (   _nr)    (S5PV210_GPIO_C1_START + (_nr))

Definition at line 103 of file gpio.h.

#define S5PV210_GPD0 (   _nr)    (S5PV210_GPIO_D0_START + (_nr))

Definition at line 104 of file gpio.h.

#define S5PV210_GPD1 (   _nr)    (S5PV210_GPIO_D1_START + (_nr))

Definition at line 105 of file gpio.h.

#define S5PV210_GPE0 (   _nr)    (S5PV210_GPIO_E0_START + (_nr))

Definition at line 106 of file gpio.h.

#define S5PV210_GPE1 (   _nr)    (S5PV210_GPIO_E1_START + (_nr))

Definition at line 107 of file gpio.h.

#define S5PV210_GPF0 (   _nr)    (S5PV210_GPIO_F0_START + (_nr))

Definition at line 108 of file gpio.h.

#define S5PV210_GPF1 (   _nr)    (S5PV210_GPIO_F1_START + (_nr))

Definition at line 109 of file gpio.h.

#define S5PV210_GPF2 (   _nr)    (S5PV210_GPIO_F2_START + (_nr))

Definition at line 110 of file gpio.h.

#define S5PV210_GPF3 (   _nr)    (S5PV210_GPIO_F3_START + (_nr))

Definition at line 111 of file gpio.h.

#define S5PV210_GPG0 (   _nr)    (S5PV210_GPIO_G0_START + (_nr))

Definition at line 112 of file gpio.h.

#define S5PV210_GPG1 (   _nr)    (S5PV210_GPIO_G1_START + (_nr))

Definition at line 113 of file gpio.h.

#define S5PV210_GPG2 (   _nr)    (S5PV210_GPIO_G2_START + (_nr))

Definition at line 114 of file gpio.h.

#define S5PV210_GPG3 (   _nr)    (S5PV210_GPIO_G3_START + (_nr))

Definition at line 115 of file gpio.h.

#define S5PV210_GPH0 (   _nr)    (S5PV210_GPIO_H0_START + (_nr))

Definition at line 116 of file gpio.h.

#define S5PV210_GPH1 (   _nr)    (S5PV210_GPIO_H1_START + (_nr))

Definition at line 117 of file gpio.h.

#define S5PV210_GPH2 (   _nr)    (S5PV210_GPIO_H2_START + (_nr))

Definition at line 118 of file gpio.h.

#define S5PV210_GPH3 (   _nr)    (S5PV210_GPIO_H3_START + (_nr))

Definition at line 119 of file gpio.h.

#define S5PV210_GPI (   _nr)    (S5PV210_GPIO_I_START + (_nr))

Definition at line 120 of file gpio.h.

#define S5PV210_GPIO_A0_NR   (8)

Definition at line 19 of file gpio.h.

#define S5PV210_GPIO_A1_NR   (4)

Definition at line 20 of file gpio.h.

#define S5PV210_GPIO_B_NR   (8)

Definition at line 21 of file gpio.h.

#define S5PV210_GPIO_C0_NR   (5)

Definition at line 22 of file gpio.h.

#define S5PV210_GPIO_C1_NR   (5)

Definition at line 23 of file gpio.h.

#define S5PV210_GPIO_D0_NR   (4)

Definition at line 24 of file gpio.h.

#define S5PV210_GPIO_D1_NR   (6)

Definition at line 25 of file gpio.h.

#define S5PV210_GPIO_E0_NR   (8)

Definition at line 26 of file gpio.h.

#define S5PV210_GPIO_E1_NR   (5)

Definition at line 27 of file gpio.h.

#define S5PV210_GPIO_END   (S5PV210_MP05(S5PV210_GPIO_MP05_NR) + 1)

Definition at line 133 of file gpio.h.

#define S5PV210_GPIO_F0_NR   (8)

Definition at line 28 of file gpio.h.

#define S5PV210_GPIO_F1_NR   (8)

Definition at line 29 of file gpio.h.

#define S5PV210_GPIO_F2_NR   (8)

Definition at line 30 of file gpio.h.

#define S5PV210_GPIO_F3_NR   (6)

Definition at line 31 of file gpio.h.

#define S5PV210_GPIO_G0_NR   (7)

Definition at line 32 of file gpio.h.

#define S5PV210_GPIO_G1_NR   (7)

Definition at line 33 of file gpio.h.

#define S5PV210_GPIO_G2_NR   (7)

Definition at line 34 of file gpio.h.

#define S5PV210_GPIO_G3_NR   (7)

Definition at line 35 of file gpio.h.

#define S5PV210_GPIO_H0_NR   (8)

Definition at line 36 of file gpio.h.

#define S5PV210_GPIO_H1_NR   (8)

Definition at line 37 of file gpio.h.

#define S5PV210_GPIO_H2_NR   (8)

Definition at line 38 of file gpio.h.

#define S5PV210_GPIO_H3_NR   (8)

Definition at line 39 of file gpio.h.

#define S5PV210_GPIO_I_NR   (7)

Definition at line 40 of file gpio.h.

#define S5PV210_GPIO_J0_NR   (8)

Definition at line 41 of file gpio.h.

#define S5PV210_GPIO_J1_NR   (6)

Definition at line 42 of file gpio.h.

#define S5PV210_GPIO_J2_NR   (8)

Definition at line 43 of file gpio.h.

#define S5PV210_GPIO_J3_NR   (8)

Definition at line 44 of file gpio.h.

#define S5PV210_GPIO_J4_NR   (5)

Definition at line 45 of file gpio.h.

#define S5PV210_GPIO_MP01_NR   (8)

Definition at line 47 of file gpio.h.

#define S5PV210_GPIO_MP02_NR   (4)

Definition at line 48 of file gpio.h.

#define S5PV210_GPIO_MP03_NR   (8)

Definition at line 49 of file gpio.h.

#define S5PV210_GPIO_MP04_NR   (8)

Definition at line 50 of file gpio.h.

#define S5PV210_GPIO_MP05_NR   (8)

Definition at line 51 of file gpio.h.

#define S5PV210_GPIO_NEXT (   __gpio)    ((__gpio##_START) + (__gpio##_NR) + CONFIG_S3C_GPIO_SPACE + 1)

Definition at line 60 of file gpio.h.

#define S5PV210_GPJ0 (   _nr)    (S5PV210_GPIO_J0_START + (_nr))

Definition at line 121 of file gpio.h.

#define S5PV210_GPJ1 (   _nr)    (S5PV210_GPIO_J1_START + (_nr))

Definition at line 122 of file gpio.h.

#define S5PV210_GPJ2 (   _nr)    (S5PV210_GPIO_J2_START + (_nr))

Definition at line 123 of file gpio.h.

#define S5PV210_GPJ3 (   _nr)    (S5PV210_GPIO_J3_START + (_nr))

Definition at line 124 of file gpio.h.

#define S5PV210_GPJ4 (   _nr)    (S5PV210_GPIO_J4_START + (_nr))

Definition at line 125 of file gpio.h.

#define S5PV210_MP01 (   _nr)    (S5PV210_GPIO_MP01_START + (_nr))

Definition at line 126 of file gpio.h.

#define S5PV210_MP02 (   _nr)    (S5PV210_GPIO_MP02_START + (_nr))

Definition at line 127 of file gpio.h.

#define S5PV210_MP03 (   _nr)    (S5PV210_GPIO_MP03_START + (_nr))

Definition at line 128 of file gpio.h.

#define S5PV210_MP04 (   _nr)    (S5PV210_GPIO_MP04_START + (_nr))

Definition at line 129 of file gpio.h.

#define S5PV210_MP05 (   _nr)    (S5PV210_GPIO_MP05_START + (_nr))

Definition at line 130 of file gpio.h.

Enumeration Type Documentation

Enumerator:
S5PC100_GPIO_A0_START 
S5PC100_GPIO_A1_START 
S5PC100_GPIO_B_START 
S5PC100_GPIO_C_START 
S5PC100_GPIO_D_START 
S5PC100_GPIO_E0_START 
S5PC100_GPIO_E1_START 
S5PC100_GPIO_F0_START 
S5PC100_GPIO_F1_START 
S5PC100_GPIO_F2_START 
S5PC100_GPIO_F3_START 
S5PC100_GPIO_G0_START 
S5PC100_GPIO_G1_START 
S5PC100_GPIO_G2_START 
S5PC100_GPIO_G3_START 
S5PC100_GPIO_H0_START 
S5PC100_GPIO_H1_START 
S5PC100_GPIO_H2_START 
S5PC100_GPIO_H3_START 
S5PC100_GPIO_I_START 
S5PC100_GPIO_J0_START 
S5PC100_GPIO_J1_START 
S5PC100_GPIO_J2_START 
S5PC100_GPIO_J3_START 
S5PC100_GPIO_J4_START 
S5PC100_GPIO_K0_START 
S5PC100_GPIO_K1_START 
S5PC100_GPIO_K2_START 
S5PC100_GPIO_K3_START 
S5PC100_GPIO_L0_START 
S5PC100_GPIO_L1_START 
S5PC100_GPIO_L2_START 
S5PC100_GPIO_L3_START 
S5PC100_GPIO_L4_START 
S5PC100_GPIO_END 
S5PV210_GPIO_A0_START 
S5PV210_GPIO_A1_START 
S5PV210_GPIO_B_START 
S5PV210_GPIO_C0_START 
S5PV210_GPIO_C1_START 
S5PV210_GPIO_D0_START 
S5PV210_GPIO_D1_START 
S5PV210_GPIO_E0_START 
S5PV210_GPIO_E1_START 
S5PV210_GPIO_F0_START 
S5PV210_GPIO_F1_START 
S5PV210_GPIO_F2_START 
S5PV210_GPIO_F3_START 
S5PV210_GPIO_G0_START 
S5PV210_GPIO_G1_START 
S5PV210_GPIO_G2_START 
S5PV210_GPIO_G3_START 
S5PV210_GPIO_H0_START 
S5PV210_GPIO_H1_START 
S5PV210_GPIO_H2_START 
S5PV210_GPIO_H3_START 
S5PV210_GPIO_I_START 
S5PV210_GPIO_J0_START 
S5PV210_GPIO_J1_START 
S5PV210_GPIO_J2_START 
S5PV210_GPIO_J3_START 
S5PV210_GPIO_J4_START 
S5PV210_GPIO_MP01_START 
S5PV210_GPIO_MP02_START 
S5PV210_GPIO_MP03_START 
S5PV210_GPIO_MP04_START 
S5PV210_GPIO_MP05_START 

Definition at line 63 of file gpio.h.