Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
gpio-ich.c File Reference
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/gpio.h>
#include <linux/platform_device.h>
#include <linux/mfd/lpc_ich.h>

Go to the source code of this file.

Data Structures

struct  ichx_desc
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DRV_NAME   "gpio_ich"
 
#define ICHX_WRITE(val, reg, base_res)   outl(val, (reg) + (base_res)->start)
 
#define ICHX_READ(reg, base_res)   inl((reg) + (base_res)->start)
 

Enumerations

enum  GPIO_REG {
  GPIO_USE_SEL = 0, GPIO_IO_SEL, GPIO_LVL, GPLR = 0,
  GPDR, GPSR, GPCR, GRER,
  GFER, GEDR, GAFR
}
 

Functions

 module_param_named (gpiobase, modparam_gpiobase, int, 0444)
 
 MODULE_PARM_DESC (gpiobase,"The GPIO number base. -1 means dynamic, ""which is the default.")
 
 module_platform_driver (ichx_gpio_driver)
 
 MODULE_AUTHOR ("Peter Tyser <[email protected]>")
 
 MODULE_DESCRIPTION ("GPIO interface for Intel ICH series")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:"DRV_NAME)
 

Macro Definition Documentation

#define DRV_NAME   "gpio_ich"

Definition at line 29 of file gpio-ich.c.

#define ICHX_READ (   reg,
  base_res 
)    inl((reg) + (base_res)->start)

Definition at line 57 of file gpio-ich.c.

#define ICHX_WRITE (   val,
  reg,
  base_res 
)    outl(val, (reg) + (base_res)->start)

Definition at line 56 of file gpio-ich.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 21 of file gpio-ich.c.

Enumeration Type Documentation

enum GPIO_REG
Enumerator:
GPIO_USE_SEL 
GPIO_IO_SEL 
GPIO_LVL 
GPLR 
GPDR 
GPSR 
GPCR 
GRER 
GFER 
GEDR 
GAFR 

Definition at line 40 of file gpio-ich.c.

Function Documentation

MODULE_ALIAS ( "platform:"  DRV_NAME)
MODULE_AUTHOR ( "Peter Tyser <[email protected]>"  )
MODULE_DESCRIPTION ( "GPIO interface for Intel ICH series"  )
MODULE_LICENSE ( "GPL"  )
module_param_named ( gpiobase  ,
modparam_gpiobase  ,
int  ,
0444   
)
MODULE_PARM_DESC ( gpiobase  ,
"The GPIO number base. -1 means  dynamic,
""which is the default."   
)
module_platform_driver ( ichx_gpio_driver  )

Variable Documentation

struct gpio_chip chip

Definition at line 77 of file gpio-ich.c.

Definition at line 80 of file gpio-ich.c.

Definition at line 76 of file gpio-ich.c.

struct resource* gpio_base

Definition at line 78 of file gpio-ich.c.

spinlock_t lock

Definition at line 75 of file gpio-ich.c.

u32 orig_gpio_ctrl

Definition at line 81 of file gpio-ich.c.

struct resource* pm_base

Definition at line 79 of file gpio-ich.c.

u8 use_gpio

Definition at line 82 of file gpio-ich.c.