Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
gpio-mpc8xxx.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/spinlock.h>
#include <linux/io.h>
#include <linux/of.h>
#include <linux/of_gpio.h>
#include <linux/gpio.h>
#include <linux/slab.h>
#include <linux/irq.h>

Go to the source code of this file.

Data Structures

struct  mpc8xxx_gpio_chip
 

Macros

#define MPC8XXX_GPIO_PINS   32
 
#define GPIO_DIR   0x00
 
#define GPIO_ODR   0x04
 
#define GPIO_DAT   0x08
 
#define GPIO_IER   0x0c
 
#define GPIO_IMR   0x10
 
#define GPIO_ICR   0x14
 
#define GPIO_ICR2   0x18
 

Functions

 arch_initcall (mpc8xxx_add_gpiochips)
 

Macro Definition Documentation

#define GPIO_DAT   0x08

Definition at line 25 of file gpio-mpc8xxx.c.

#define GPIO_DIR   0x00

Definition at line 23 of file gpio-mpc8xxx.c.

#define GPIO_ICR   0x14

Definition at line 28 of file gpio-mpc8xxx.c.

#define GPIO_ICR2   0x18

Definition at line 29 of file gpio-mpc8xxx.c.

#define GPIO_IER   0x0c

Definition at line 26 of file gpio-mpc8xxx.c.

#define GPIO_IMR   0x10

Definition at line 27 of file gpio-mpc8xxx.c.

#define GPIO_ODR   0x04

Definition at line 24 of file gpio-mpc8xxx.c.

#define MPC8XXX_GPIO_PINS   32

Definition at line 21 of file gpio-mpc8xxx.c.

Function Documentation

arch_initcall ( mpc8xxx_add_gpiochips  )