Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
gpio-cs5535.c File Reference
#include <linux/kernel.h>
#include <linux/spinlock.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/gpio.h>
#include <linux/io.h>
#include <linux/cs5535.h>
#include <asm/msr.h>

Go to the source code of this file.

Data Structures

struct  cs5535_gpio_chip
 

Macros

#define DRV_NAME   "cs5535-gpio"
 
#define GPIO_DEFAULT_MASK   0x0F7FFFFF
 

Functions

 module_param_named (mask, mask, ulong, 0444)
 
 MODULE_PARM_DESC (mask,"GPIO channel mask.")
 
void cs5535_gpio_set (unsigned offset, unsigned int reg)
 
 EXPORT_SYMBOL_GPL (cs5535_gpio_set)
 
void cs5535_gpio_clear (unsigned offset, unsigned int reg)
 
 EXPORT_SYMBOL_GPL (cs5535_gpio_clear)
 
int cs5535_gpio_isset (unsigned offset, unsigned int reg)
 
 EXPORT_SYMBOL_GPL (cs5535_gpio_isset)
 
int cs5535_gpio_set_irq (unsigned group, unsigned irq)
 
 EXPORT_SYMBOL_GPL (cs5535_gpio_set_irq)
 
void cs5535_gpio_setup_event (unsigned offset, int pair, int pme)
 
 EXPORT_SYMBOL_GPL (cs5535_gpio_setup_event)
 
 module_platform_driver (cs5535_gpio_driver)
 
 MODULE_AUTHOR ("Andres Salomon <[email protected]>")
 
 MODULE_DESCRIPTION ("AMD CS5535/CS5536 GPIO driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:"DRV_NAME)
 

Macro Definition Documentation

#define DRV_NAME   "cs5535-gpio"

Definition at line 20 of file gpio-cs5535.c.

#define GPIO_DEFAULT_MASK   0x0F7FFFFF

Definition at line 39 of file gpio-cs5535.c.

Function Documentation

void cs5535_gpio_clear ( unsigned  offset,
unsigned int  reg 
)

Definition at line 115 of file gpio-cs5535.c.

int cs5535_gpio_isset ( unsigned  offset,
unsigned int  reg 
)

Definition at line 126 of file gpio-cs5535.c.

void cs5535_gpio_set ( unsigned  offset,
unsigned int  reg 
)

Definition at line 93 of file gpio-cs5535.c.

int cs5535_gpio_set_irq ( unsigned  group,
unsigned  irq 
)

Definition at line 147 of file gpio-cs5535.c.

void cs5535_gpio_setup_event ( unsigned  offset,
int  pair,
int  pme 
)

Definition at line 164 of file gpio-cs5535.c.

EXPORT_SYMBOL_GPL ( cs5535_gpio_set  )
EXPORT_SYMBOL_GPL ( cs5535_gpio_clear  )
EXPORT_SYMBOL_GPL ( cs5535_gpio_isset  )
EXPORT_SYMBOL_GPL ( cs5535_gpio_set_irq  )
EXPORT_SYMBOL_GPL ( cs5535_gpio_setup_event  )
MODULE_ALIAS ( "platform:"  DRV_NAME)
MODULE_AUTHOR ( "Andres Salomon <[email protected]>"  )
MODULE_DESCRIPTION ( "AMD CS5535/CS5536 GPIO driver )
MODULE_LICENSE ( "GPL"  )
module_param_named ( mask  ,
mask  ,
ulong  ,
0444   
)
MODULE_PARM_DESC ( mask  ,
"GPIO channel mask."   
)
module_platform_driver ( cs5535_gpio_driver  )