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 S3C64XX_GPIO_A_NR   (8)
 
#define S3C64XX_GPIO_B_NR   (7)
 
#define S3C64XX_GPIO_C_NR   (8)
 
#define S3C64XX_GPIO_D_NR   (5)
 
#define S3C64XX_GPIO_E_NR   (5)
 
#define S3C64XX_GPIO_F_NR   (16)
 
#define S3C64XX_GPIO_G_NR   (7)
 
#define S3C64XX_GPIO_H_NR   (10)
 
#define S3C64XX_GPIO_I_NR   (16)
 
#define S3C64XX_GPIO_J_NR   (12)
 
#define S3C64XX_GPIO_K_NR   (16)
 
#define S3C64XX_GPIO_L_NR   (15)
 
#define S3C64XX_GPIO_M_NR   (6)
 
#define S3C64XX_GPIO_N_NR   (16)
 
#define S3C64XX_GPIO_O_NR   (16)
 
#define S3C64XX_GPIO_P_NR   (15)
 
#define S3C64XX_GPIO_Q_NR   (9)
 
#define S3C64XX_GPIO_NEXT(__gpio)   ((__gpio##_START) + (__gpio##_NR) + CONFIG_S3C_GPIO_SPACE + 1)
 
#define S3C64XX_GPA(_nr)   (S3C64XX_GPIO_A_START + (_nr))
 
#define S3C64XX_GPB(_nr)   (S3C64XX_GPIO_B_START + (_nr))
 
#define S3C64XX_GPC(_nr)   (S3C64XX_GPIO_C_START + (_nr))
 
#define S3C64XX_GPD(_nr)   (S3C64XX_GPIO_D_START + (_nr))
 
#define S3C64XX_GPE(_nr)   (S3C64XX_GPIO_E_START + (_nr))
 
#define S3C64XX_GPF(_nr)   (S3C64XX_GPIO_F_START + (_nr))
 
#define S3C64XX_GPG(_nr)   (S3C64XX_GPIO_G_START + (_nr))
 
#define S3C64XX_GPH(_nr)   (S3C64XX_GPIO_H_START + (_nr))
 
#define S3C64XX_GPI(_nr)   (S3C64XX_GPIO_I_START + (_nr))
 
#define S3C64XX_GPJ(_nr)   (S3C64XX_GPIO_J_START + (_nr))
 
#define S3C64XX_GPK(_nr)   (S3C64XX_GPIO_K_START + (_nr))
 
#define S3C64XX_GPL(_nr)   (S3C64XX_GPIO_L_START + (_nr))
 
#define S3C64XX_GPM(_nr)   (S3C64XX_GPIO_M_START + (_nr))
 
#define S3C64XX_GPN(_nr)   (S3C64XX_GPIO_N_START + (_nr))
 
#define S3C64XX_GPO(_nr)   (S3C64XX_GPIO_O_START + (_nr))
 
#define S3C64XX_GPP(_nr)   (S3C64XX_GPIO_P_START + (_nr))
 
#define S3C64XX_GPQ(_nr)   (S3C64XX_GPIO_Q_START + (_nr))
 
#define S3C64XX_GPIO_END   (S3C64XX_GPQ(S3C64XX_GPIO_Q_NR) + 1)
 
#define S3C_GPIO_END   S3C64XX_GPIO_END
 
#define GPIO_BOARD_START   (S3C64XX_GPQ(S3C64XX_GPIO_Q_NR) + 1)
 
#define BOARD_NR_GPIOS   (16 + CONFIG_SAMSUNG_GPIO_EXTRA)
 
#define ARCH_NR_GPIOS   (GPIO_BOARD_START + BOARD_NR_GPIOS)
 

Enumerations

enum  s3c_gpio_number {
  S3C2410_GPIO_A_START = 0, S3C2410_GPIO_B_START = S3C2410_GPIO_NEXT(S3C2410_GPIO_A), S3C2410_GPIO_C_START = S3C2410_GPIO_NEXT(S3C2410_GPIO_B), S3C2410_GPIO_D_START = S3C2410_GPIO_NEXT(S3C2410_GPIO_C),
  S3C2410_GPIO_E_START = S3C2410_GPIO_NEXT(S3C2410_GPIO_D), S3C2410_GPIO_F_START = S3C2410_GPIO_NEXT(S3C2410_GPIO_E), S3C2410_GPIO_G_START = S3C2410_GPIO_NEXT(S3C2410_GPIO_F), S3C2410_GPIO_H_START = S3C2410_GPIO_NEXT(S3C2410_GPIO_G),
  S3C2410_GPIO_J_START = S3C2410_GPIO_NEXT(S3C2410_GPIO_H), S3C2410_GPIO_K_START = S3C2410_GPIO_NEXT(S3C2410_GPIO_J), S3C2410_GPIO_L_START = S3C2410_GPIO_NEXT(S3C2410_GPIO_K), S3C2410_GPIO_M_START = S3C2410_GPIO_NEXT(S3C2410_GPIO_L),
  S3C64XX_GPIO_A_START = 0, S3C64XX_GPIO_B_START = S3C64XX_GPIO_NEXT(S3C64XX_GPIO_A), S3C64XX_GPIO_C_START = S3C64XX_GPIO_NEXT(S3C64XX_GPIO_B), S3C64XX_GPIO_D_START = S3C64XX_GPIO_NEXT(S3C64XX_GPIO_C),
  S3C64XX_GPIO_E_START = S3C64XX_GPIO_NEXT(S3C64XX_GPIO_D), S3C64XX_GPIO_F_START = S3C64XX_GPIO_NEXT(S3C64XX_GPIO_E), S3C64XX_GPIO_G_START = S3C64XX_GPIO_NEXT(S3C64XX_GPIO_F), S3C64XX_GPIO_H_START = S3C64XX_GPIO_NEXT(S3C64XX_GPIO_G),
  S3C64XX_GPIO_I_START = S3C64XX_GPIO_NEXT(S3C64XX_GPIO_H), S3C64XX_GPIO_J_START = S3C64XX_GPIO_NEXT(S3C64XX_GPIO_I), S3C64XX_GPIO_K_START = S3C64XX_GPIO_NEXT(S3C64XX_GPIO_J), S3C64XX_GPIO_L_START = S3C64XX_GPIO_NEXT(S3C64XX_GPIO_K),
  S3C64XX_GPIO_M_START = S3C64XX_GPIO_NEXT(S3C64XX_GPIO_L), S3C64XX_GPIO_N_START = S3C64XX_GPIO_NEXT(S3C64XX_GPIO_M), S3C64XX_GPIO_O_START = S3C64XX_GPIO_NEXT(S3C64XX_GPIO_N), S3C64XX_GPIO_P_START = S3C64XX_GPIO_NEXT(S3C64XX_GPIO_O),
  S3C64XX_GPIO_Q_START = S3C64XX_GPIO_NEXT(S3C64XX_GPIO_P)
}
 

Macro Definition Documentation

#define ARCH_NR_GPIOS   (GPIO_BOARD_START + BOARD_NR_GPIOS)

Definition at line 93 of file gpio.h.

#define BOARD_NR_GPIOS   (16 + CONFIG_SAMSUNG_GPIO_EXTRA)

Definition at line 91 of file gpio.h.

#define GPIO_BOARD_START   (S3C64XX_GPQ(S3C64XX_GPIO_Q_NR) + 1)

Definition at line 89 of file gpio.h.

#define S3C64XX_GPA (   _nr)    (S3C64XX_GPIO_A_START + (_nr))

Definition at line 66 of file gpio.h.

#define S3C64XX_GPB (   _nr)    (S3C64XX_GPIO_B_START + (_nr))

Definition at line 67 of file gpio.h.

#define S3C64XX_GPC (   _nr)    (S3C64XX_GPIO_C_START + (_nr))

Definition at line 68 of file gpio.h.

#define S3C64XX_GPD (   _nr)    (S3C64XX_GPIO_D_START + (_nr))

Definition at line 69 of file gpio.h.

#define S3C64XX_GPE (   _nr)    (S3C64XX_GPIO_E_START + (_nr))

Definition at line 70 of file gpio.h.

#define S3C64XX_GPF (   _nr)    (S3C64XX_GPIO_F_START + (_nr))

Definition at line 71 of file gpio.h.

#define S3C64XX_GPG (   _nr)    (S3C64XX_GPIO_G_START + (_nr))

Definition at line 72 of file gpio.h.

#define S3C64XX_GPH (   _nr)    (S3C64XX_GPIO_H_START + (_nr))

Definition at line 73 of file gpio.h.

#define S3C64XX_GPI (   _nr)    (S3C64XX_GPIO_I_START + (_nr))

Definition at line 74 of file gpio.h.

#define S3C64XX_GPIO_A_NR   (8)

Definition at line 16 of file gpio.h.

#define S3C64XX_GPIO_B_NR   (7)

Definition at line 17 of file gpio.h.

#define S3C64XX_GPIO_C_NR   (8)

Definition at line 18 of file gpio.h.

#define S3C64XX_GPIO_D_NR   (5)

Definition at line 19 of file gpio.h.

#define S3C64XX_GPIO_E_NR   (5)

Definition at line 20 of file gpio.h.

#define S3C64XX_GPIO_END   (S3C64XX_GPQ(S3C64XX_GPIO_Q_NR) + 1)

Definition at line 85 of file gpio.h.

#define S3C64XX_GPIO_F_NR   (16)

Definition at line 21 of file gpio.h.

#define S3C64XX_GPIO_G_NR   (7)

Definition at line 22 of file gpio.h.

#define S3C64XX_GPIO_H_NR   (10)

Definition at line 23 of file gpio.h.

#define S3C64XX_GPIO_I_NR   (16)

Definition at line 24 of file gpio.h.

#define S3C64XX_GPIO_J_NR   (12)

Definition at line 25 of file gpio.h.

#define S3C64XX_GPIO_K_NR   (16)

Definition at line 26 of file gpio.h.

#define S3C64XX_GPIO_L_NR   (15)

Definition at line 27 of file gpio.h.

#define S3C64XX_GPIO_M_NR   (6)

Definition at line 28 of file gpio.h.

#define S3C64XX_GPIO_N_NR   (16)

Definition at line 29 of file gpio.h.

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

Definition at line 41 of file gpio.h.

#define S3C64XX_GPIO_O_NR   (16)

Definition at line 30 of file gpio.h.

#define S3C64XX_GPIO_P_NR   (15)

Definition at line 31 of file gpio.h.

#define S3C64XX_GPIO_Q_NR   (9)

Definition at line 32 of file gpio.h.

#define S3C64XX_GPJ (   _nr)    (S3C64XX_GPIO_J_START + (_nr))

Definition at line 75 of file gpio.h.

#define S3C64XX_GPK (   _nr)    (S3C64XX_GPIO_K_START + (_nr))

Definition at line 76 of file gpio.h.

#define S3C64XX_GPL (   _nr)    (S3C64XX_GPIO_L_START + (_nr))

Definition at line 77 of file gpio.h.

#define S3C64XX_GPM (   _nr)    (S3C64XX_GPIO_M_START + (_nr))

Definition at line 78 of file gpio.h.

#define S3C64XX_GPN (   _nr)    (S3C64XX_GPIO_N_START + (_nr))

Definition at line 79 of file gpio.h.

#define S3C64XX_GPO (   _nr)    (S3C64XX_GPIO_O_START + (_nr))

Definition at line 80 of file gpio.h.

#define S3C64XX_GPP (   _nr)    (S3C64XX_GPIO_P_START + (_nr))

Definition at line 81 of file gpio.h.

#define S3C64XX_GPQ (   _nr)    (S3C64XX_GPIO_Q_START + (_nr))

Definition at line 82 of file gpio.h.

#define S3C_GPIO_END   S3C64XX_GPIO_END

Definition at line 86 of file gpio.h.

Enumeration Type Documentation

Enumerator:
S3C2410_GPIO_A_START 
S3C2410_GPIO_B_START 
S3C2410_GPIO_C_START 
S3C2410_GPIO_D_START 
S3C2410_GPIO_E_START 
S3C2410_GPIO_F_START 
S3C2410_GPIO_G_START 
S3C2410_GPIO_H_START 
S3C2410_GPIO_J_START 
S3C2410_GPIO_K_START 
S3C2410_GPIO_L_START 
S3C2410_GPIO_M_START 
S3C64XX_GPIO_A_START 
S3C64XX_GPIO_B_START 
S3C64XX_GPIO_C_START 
S3C64XX_GPIO_D_START 
S3C64XX_GPIO_E_START 
S3C64XX_GPIO_F_START 
S3C64XX_GPIO_G_START 
S3C64XX_GPIO_H_START 
S3C64XX_GPIO_I_START 
S3C64XX_GPIO_J_START 
S3C64XX_GPIO_K_START 
S3C64XX_GPIO_L_START 
S3C64XX_GPIO_M_START 
S3C64XX_GPIO_N_START 
S3C64XX_GPIO_O_START 
S3C64XX_GPIO_P_START 
S3C64XX_GPIO_Q_START 

Definition at line 44 of file gpio.h.