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

Go to the source code of this file.

Data Structures

struct  samsung_gpio_pm
 
struct  samsung_gpio_chip
 

Macros

#define GPIOCON_OFF   (0x00)
 
#define GPIODAT_OFF   (0x04)
 
#define con_4bit_shift(__off)   ((__off) * 4)
 
#define samsung_gpio_pm_1bit   NULL
 
#define samsung_gpio_pm_2bit   NULL
 
#define samsung_gpio_pm_4bit   NULL
 
#define __gpio_pm(x)   NULL
 
#define samsung_gpio_lock(_oc, _fl)   spin_lock_irqsave(&(_oc)->lock, _fl)
 
#define samsung_gpio_unlock(_oc, _fl)   spin_unlock_irqrestore(&(_oc)->lock, _fl)
 

Functions

int samsung_gpiolib_to_irq (struct gpio_chip *chip, unsigned int offset)
 

Variables

struct samsung_gpio_cfg s3c24xx_gpiocfg_default
 

Macro Definition Documentation

#define __gpio_pm (   x)    NULL

Definition at line 118 of file gpio-core.h.

#define con_4bit_shift (   __off)    ((__off) * 4)

Definition at line 17 of file gpio-core.h.

#define GPIOCON_OFF   (0x00)

Definition at line 14 of file gpio-core.h.

#define GPIODAT_OFF   (0x04)

Definition at line 15 of file gpio-core.h.

#define samsung_gpio_lock (   _oc,
  _fl 
)    spin_lock_irqsave(&(_oc)->lock, _fl)

Definition at line 123 of file gpio-core.h.

#define samsung_gpio_pm_1bit   NULL

Definition at line 115 of file gpio-core.h.

#define samsung_gpio_pm_2bit   NULL

Definition at line 116 of file gpio-core.h.

#define samsung_gpio_pm_4bit   NULL

Definition at line 117 of file gpio-core.h.

#define samsung_gpio_unlock (   _oc,
  _fl 
)    spin_unlock_irqrestore(&(_oc)->lock, _fl)

Definition at line 124 of file gpio-core.h.

Function Documentation

int samsung_gpiolib_to_irq ( struct gpio_chip *  chip,
unsigned int  offset 
)

samsung_gpiolib_to_irq - convert gpio pin to irq number : The gpio chip that the pin belongs to. : The offset of the pin in the chip.

This helper returns the irq number calculated from the chip->irq_base and the provided offset.

Definition at line 1118 of file gpio-samsung.c.

Variable Documentation

struct samsung_gpio_cfg s3c24xx_gpiocfg_default

Definition at line 443 of file gpio-samsung.c.