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

Go to the source code of this file.

Data Structures

struct  rb532_gpio_reg
 

Macros

#define NR_BUILTIN_GPIO   32
 
#define gpio_get_value   __gpio_get_value
 
#define gpio_set_value   __gpio_set_value
 
#define gpio_cansleep   __gpio_cansleep
 
#define gpio_to_irq(gpio)   (8 + 4 * 32 + gpio)
 
#define irq_to_gpio(irq)   (irq - (8 + 4 * 32))
 
#define RC32434_UART0_SOUT   (1 << 0)
 
#define RC32434_UART0_SIN   (1 << 1)
 
#define RC32434_UART0_RTS   (1 << 2)
 
#define RC32434_UART0_CTS   (1 << 3)
 
#define RC32434_MP_BIT_22   (1 << 4)
 
#define RC32434_MP_BIT_23   (1 << 5)
 
#define RC32434_MP_BIT_24   (1 << 6)
 
#define RC32434_MP_BIT_25   (1 << 7)
 
#define RC32434_CPU_GPIO   (1 << 8)
 
#define RC32434_AF_SPARE_6   (1 << 9)
 
#define RC32434_AF_SPARE_4   (1 << 10)
 
#define RC32434_AF_SPARE_3   (1 << 11)
 
#define RC32434_AF_SPARE_2   (1 << 12)
 
#define RC32434_PCI_MSU_GPIO   (1 << 13)
 
#define GPIO_RDY   8
 
#define GPIO_WPX   9
 
#define GPIO_ALE   10
 
#define GPIO_CLE   11
 
#define CF_GPIO_NUM   13
 
#define GPIO_BTN_S1   1
 

Functions

void rb532_gpio_set_ilevel (int bit, unsigned gpio)
 
void rb532_gpio_set_istat (int bit, unsigned gpio)
 
void rb532_gpio_set_func (unsigned gpio)
 

Macro Definition Documentation

#define CF_GPIO_NUM   13

Definition at line 81 of file gpio.h.

#define GPIO_ALE   10

Definition at line 77 of file gpio.h.

#define GPIO_BTN_S1   1

Definition at line 84 of file gpio.h.

#define gpio_cansleep   __gpio_cansleep

Definition at line 23 of file gpio.h.

#define GPIO_CLE   11

Definition at line 78 of file gpio.h.

#define gpio_get_value   __gpio_get_value

Definition at line 21 of file gpio.h.

#define GPIO_RDY   8

Definition at line 75 of file gpio.h.

#define gpio_set_value   __gpio_set_value

Definition at line 22 of file gpio.h.

#define gpio_to_irq (   gpio)    (8 + 4 * 32 + gpio)

Definition at line 25 of file gpio.h.

#define GPIO_WPX   9

Definition at line 76 of file gpio.h.

#define irq_to_gpio (   irq)    (irq - (8 + 4 * 32))

Definition at line 26 of file gpio.h.

#define NR_BUILTIN_GPIO   32

Definition at line 19 of file gpio.h.

#define RC32434_AF_SPARE_2   (1 << 12)

Definition at line 69 of file gpio.h.

#define RC32434_AF_SPARE_3   (1 << 11)

Definition at line 68 of file gpio.h.

#define RC32434_AF_SPARE_4   (1 << 10)

Definition at line 67 of file gpio.h.

#define RC32434_AF_SPARE_6   (1 << 9)

Definition at line 66 of file gpio.h.

#define RC32434_CPU_GPIO   (1 << 8)

Definition at line 63 of file gpio.h.

#define RC32434_MP_BIT_22   (1 << 4)

Definition at line 57 of file gpio.h.

#define RC32434_MP_BIT_23   (1 << 5)

Definition at line 58 of file gpio.h.

#define RC32434_MP_BIT_24   (1 << 6)

Definition at line 59 of file gpio.h.

#define RC32434_MP_BIT_25   (1 << 7)

Definition at line 60 of file gpio.h.

#define RC32434_PCI_MSU_GPIO   (1 << 13)

Definition at line 72 of file gpio.h.

#define RC32434_UART0_CTS   (1 << 3)

Definition at line 54 of file gpio.h.

#define RC32434_UART0_RTS   (1 << 2)

Definition at line 53 of file gpio.h.

#define RC32434_UART0_SIN   (1 << 1)

Definition at line 52 of file gpio.h.

#define RC32434_UART0_SOUT   (1 << 0)

Definition at line 51 of file gpio.h.

Function Documentation

void rb532_gpio_set_func ( unsigned  gpio)

Definition at line 178 of file gpio.c.

void rb532_gpio_set_ilevel ( int  bit,
unsigned  gpio 
)

Definition at line 160 of file gpio.c.

void rb532_gpio_set_istat ( int  bit,
unsigned  gpio 
)

Definition at line 169 of file gpio.c.