Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
orion-gpio.h File Reference
#include <linux/init.h>
#include <linux/types.h>
#include <linux/irqdomain.h>

Go to the source code of this file.

Macros

#define GPIO_INPUT_OK   (1 << 0)
 
#define GPIO_OUTPUT_OK   (1 << 1)
 

Functions

void orion_gpio_set_unused (unsigned pin)
 
void orion_gpio_set_blink (unsigned pin, int blink)
 
int orion_gpio_led_blink_set (unsigned gpio, int state, unsigned long *delay_on, unsigned long *delay_off)
 
void orion_gpio_set_valid (unsigned pin, int mode)
 
void __init orion_gpio_init (struct device_node *np, int gpio_base, int ngpio, void __iomem *base, int mask_offset, int secondary_irq_base, int irq[4])
 
void __init orion_gpio_of_init (int irq_gpio_base)
 

Macro Definition Documentation

#define GPIO_INPUT_OK   (1 << 0)

Definition at line 25 of file orion-gpio.h.

#define GPIO_OUTPUT_OK   (1 << 1)

Definition at line 26 of file orion-gpio.h.

Function Documentation

void __init orion_gpio_init ( struct device_node np,
int  gpio_base,
int  ngpio,
void __iomem base,
int  mask_offset,
int  secondary_irq_base,
int  irq[4] 
)

Definition at line 442 of file gpio.c.

int orion_gpio_led_blink_set ( unsigned  gpio,
int  state,
unsigned long delay_on,
unsigned long delay_off 
)

Definition at line 309 of file gpio.c.

void __init orion_gpio_of_init ( int  irq_gpio_base)
void orion_gpio_set_blink ( unsigned  pin,
int  blink 
)

Definition at line 292 of file gpio.c.

void orion_gpio_set_unused ( unsigned  pin)

Definition at line 255 of file gpio.c.

void orion_gpio_set_valid ( unsigned  pin,
int  mode 
)

Definition at line 269 of file gpio.c.