Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
gpio-davinci.h File Reference
#include <linux/io.h>
#include <linux/spinlock.h>
#include <asm-generic/gpio.h>
#include <mach/irqs.h>
#include <mach/common.h>

Go to the source code of this file.

Data Structures

struct  davinci_gpio_controller
 

Macros

#define DAVINCI_GPIO_BASE   0x01C67000
 
#define GPIO(X)   (X) /* 0 <= X <= (DAVINCI_N_GPIO - 1) */
 
#define GPIO_TO_PIN(bank, gpio)   (16 * (bank) + (gpio))
 

Enumerations

enum  davinci_gpio_type { GPIO_TYPE_DAVINCI = 0, GPIO_TYPE_TNETV107X }
 

Macro Definition Documentation

#define DAVINCI_GPIO_BASE   0x01C67000

Definition at line 24 of file gpio-davinci.h.

#define GPIO (   X)    (X) /* 0 <= X <= (DAVINCI_N_GPIO - 1) */

Definition at line 50 of file gpio-davinci.h.

#define GPIO_TO_PIN (   bank,
  gpio 
)    (16 * (bank) + (gpio))

Definition at line 53 of file gpio-davinci.h.

Enumeration Type Documentation

Enumerator:
GPIO_TYPE_DAVINCI 
GPIO_TYPE_TNETV107X 

Definition at line 26 of file gpio-davinci.h.