Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
gpio.c File Reference
#include <linux/clk.h>
#include <linux/errno.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/io.h>
#include <linux/gpio.h>
#include <mach/hardware.h>

Go to the source code of this file.

Data Structures

struct  nuc900_gpio_chip
 

Macros

#define GPIO_BASE   (W90X900_VA_GPIO)
 
#define GPIO_DIR   (0x04)
 
#define GPIO_OUT   (0x08)
 
#define GPIO_IN   (0x0C)
 
#define GROUPINERV   (0x10)
 
#define GPIO_GPIO(Nb)   (0x00000001 << (Nb))
 
#define to_nuc900_gpio_chip(c)   container_of(c, struct nuc900_gpio_chip, chip)
 
#define NUC900_GPIO_CHIP(name, base_gpio, nr_gpio)
 

Functions

void __init nuc900_init_gpio (int nr_group)
 

Macro Definition Documentation

#define GPIO_BASE   (W90X900_VA_GPIO)

Definition at line 27 of file gpio.c.

#define GPIO_DIR   (0x04)

Definition at line 28 of file gpio.c.

#define GPIO_GPIO (   Nb)    (0x00000001 << (Nb))

Definition at line 32 of file gpio.c.

#define GPIO_IN   (0x0C)

Definition at line 30 of file gpio.c.

#define GPIO_OUT   (0x08)

Definition at line 29 of file gpio.c.

#define GROUPINERV   (0x10)

Definition at line 31 of file gpio.c.

#define NUC900_GPIO_CHIP (   name,
  base_gpio,
  nr_gpio 
)
Value:
{ \
.chip = { \
.label = name, \
.direction_input = nuc900_dir_input, \
.direction_output = nuc900_dir_output, \
.get = nuc900_gpio_get, \
.set = nuc900_gpio_set, \
.base = base_gpio, \
.ngpio = nr_gpio, \
} \
}

Definition at line 35 of file gpio.c.

#define to_nuc900_gpio_chip (   c)    container_of(c, struct nuc900_gpio_chip, chip)

Definition at line 33 of file gpio.c.

Function Documentation

void __init nuc900_init_gpio ( int  nr_group)

Definition at line 143 of file gpio.c.