Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
gpio.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/spinlock.h>
#include <linux/err.h>
#include <asm/types.h>
#include <loongson.h>
#include <linux/gpio.h>

Go to the source code of this file.

Macros

#define STLS2F_N_GPIO   4
 
#define STLS2F_GPIO_IN_OFFSET   16
 

Functions

int gpio_get_value (unsigned gpio)
 
 EXPORT_SYMBOL (gpio_get_value)
 
void gpio_set_value (unsigned gpio, int state)
 
 EXPORT_SYMBOL (gpio_set_value)
 
int gpio_cansleep (unsigned gpio)
 
 EXPORT_SYMBOL (gpio_cansleep)
 
 arch_initcall (ls2f_gpio_setup)
 

Macro Definition Documentation

#define STLS2F_GPIO_IN_OFFSET   16

Definition at line 23 of file gpio.c.

#define STLS2F_N_GPIO   4

Definition at line 22 of file gpio.c.

Function Documentation

arch_initcall ( ls2f_gpio_setup  )
EXPORT_SYMBOL ( gpio_get_value  )
EXPORT_SYMBOL ( gpio_set_value  )
EXPORT_SYMBOL ( gpio_cansleep  )
int gpio_cansleep ( unsigned  gpio)

Definition at line 67 of file gpio.c.

int gpio_get_value ( unsigned  gpio)

Definition at line 27 of file gpio.c.

void gpio_set_value ( unsigned  gpio,
int  state 
)

Definition at line 44 of file gpio.c.