Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
samsung_gpio_cfg Struct Reference

#include <gpio-cfg.h>

Data Fields

unsigned int cfg_eint
 
samsung_gpio_pull_t(* get_pull )(struct samsung_gpio_chip *chip, unsigned offs)
 
int(* set_pull )(struct samsung_gpio_chip *chip, unsigned offs, samsung_gpio_pull_t pull)
 
unsigned(* get_config )(struct samsung_gpio_chip *chip, unsigned offs)
 
int(* set_config )(struct samsung_gpio_chip *chip, unsigned offs, unsigned config)
 

Detailed Description

struct samsung_gpio_cfg GPIO configuration : Configuration setting when used for external interrupt source : Read the current pull configuration for the GPIO : Set the current pull configuraiton for the GPIO : Set the current configuration for the GPIO : Read the current configuration for the GPIO

Each chip can have more than one type of GPIO bank available and some have different capabilites even when they have the same control register layouts. Provide an point to vector control routine and provide any per-bank configuration information that other systems such as the external interrupt code will need.

See Also
samsung_gpio_cfgpin
s3c_gpio_getcfg
s3c_gpio_setpull
s3c_gpio_getpull

Definition at line 54 of file gpio-cfg.h.

Field Documentation

unsigned int cfg_eint

Definition at line 55 of file gpio-cfg.h.

unsigned(* get_config)(struct samsung_gpio_chip *chip, unsigned offs)

Definition at line 61 of file gpio-cfg.h.

Definition at line 57 of file gpio-cfg.h.

int(* set_config)(struct samsung_gpio_chip *chip, unsigned offs, unsigned config)

Definition at line 62 of file gpio-cfg.h.

Definition at line 58 of file gpio-cfg.h.


The documentation for this struct was generated from the following file: