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/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/gpio.h>
#include <linux/spinlock.h>
#include <linux/io.h>

Go to the source code of this file.

Data Structures

struct  msp71xx_gpio_chip
 

Macros

#define MSP71XX_CFG_OFFSET(gpio)   (4 * (gpio))
 
#define CONF_MASK   0x0F
 
#define MSP71XX_GPIO_INPUT   0x01
 
#define MSP71XX_GPIO_OUTPUT   0x08
 
#define MSP71XX_GPIO_BASE   0x0B8400000L
 
#define to_msp71xx_gpio_chip(c)   container_of(c, struct msp71xx_gpio_chip, chip)
 
#define MSP71XX_GPIO_BANK(name, dr, cr, base_gpio, num_gpio)
 

Functions

int msp71xx_set_output_drive (unsigned gpio, int value)
 
 EXPORT_SYMBOL (msp71xx_set_output_drive)
 
void __init msp71xx_init_gpio (void)
 

Macro Definition Documentation

#define CONF_MASK   0x0F

Definition at line 22 of file gpio.c.

#define MSP71XX_CFG_OFFSET (   gpio)    (4 * (gpio))

Definition at line 21 of file gpio.c.

#define MSP71XX_GPIO_BANK (   name,
  dr,
  cr,
  base_gpio,
  num_gpio 
)
Value:
{ \
.chip = { \
.label = name, \
.direction_input = msp71xx_direction_input, \
.direction_output = msp71xx_direction_output, \
.get = msp71xx_gpio_get, \
.set = msp71xx_gpio_set, \
.base = base_gpio, \
.ngpio = num_gpio \
}, \
.data_reg = (void __iomem *)(MSP71XX_GPIO_BASE + dr), \
.config_reg = (void __iomem *)(MSP71XX_GPIO_BASE + cr), \
.out_drive_reg = (void __iomem *)(MSP71XX_GPIO_BASE + 0x190), \
}

Definition at line 174 of file gpio.c.

#define MSP71XX_GPIO_BASE   0x0B8400000L

Definition at line 26 of file gpio.c.

#define MSP71XX_GPIO_INPUT   0x01

Definition at line 23 of file gpio.c.

#define MSP71XX_GPIO_OUTPUT   0x08

Definition at line 24 of file gpio.c.

#define to_msp71xx_gpio_chip (   c)    container_of(c, struct msp71xx_gpio_chip, chip)

Definition at line 28 of file gpio.c.

Function Documentation

EXPORT_SYMBOL ( msp71xx_set_output_drive  )
void __init msp71xx_init_gpio ( void  )

Definition at line 208 of file gpio.c.

int msp71xx_set_output_drive ( unsigned  gpio,
int  value 
)

Definition at line 151 of file gpio.c.