Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
board-trout-gpio.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/gpio.h>
#include "board-trout.h"

Go to the source code of this file.

Data Structures

struct  msm_gpio_chip
 

Macros

#define to_msm_gpio_chip(c)   container_of(c, struct msm_gpio_chip, chip)
 
#define TROUT_GPIO_BANK(name, reg_num, base_gpio, shadow_val)
 

Functions

int trout_gpio_irq_set_wake (struct irq_data *d, unsigned int on)
 
int __init trout_init_gpio (void)
 
 postcore_initcall (trout_init_gpio)
 

Macro Definition Documentation

#define to_msm_gpio_chip (   c)    container_of(c, struct msm_gpio_chip, chip)

Definition at line 38 of file board-trout-gpio.c.

#define TROUT_GPIO_BANK (   name,
  reg_num,
  base_gpio,
  shadow_val 
)
Value:
{ \
.chip = { \
.label = name, \
.direction_input = msm_gpiolib_direction_input,\
.direction_output = msm_gpiolib_direction_output, \
.get = msm_gpiolib_get, \
.set = msm_gpiolib_set, \
.to_irq = trout_gpio_to_irq, \
.base = base_gpio, \
.ngpio = 8, \
}, \
.reg = (void *) reg_num + TROUT_CPLD_BASE, \
.shadow = shadow_val, \
}

Definition at line 80 of file board-trout-gpio.c.

Function Documentation

postcore_initcall ( trout_init_gpio  )
int trout_gpio_irq_set_wake ( struct irq_data d,
unsigned int  on 
)

Definition at line 155 of file board-trout-gpio.c.

int __init trout_init_gpio ( void  )

Definition at line 213 of file board-trout-gpio.c.