Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
gpio-adnp.c File Reference
#include <linux/gpio.h>
#include <linux/i2c.h>
#include <linux/interrupt.h>
#include <linux/irqdomain.h>
#include <linux/module.h>
#include <linux/of_irq.h>
#include <linux/seq_file.h>
#include <linux/slab.h>

Go to the source code of this file.

Data Structures

struct  adnp
 

Macros

#define GPIO_DDR(gpio)   (0x00 << (gpio)->reg_shift)
 
#define GPIO_PLR(gpio)   (0x01 << (gpio)->reg_shift)
 
#define GPIO_IER(gpio)   (0x02 << (gpio)->reg_shift)
 
#define GPIO_ISR(gpio)   (0x03 << (gpio)->reg_shift)
 
#define GPIO_PTR(gpio)   (0x04 << (gpio)->reg_shift)
 

Functions

 MODULE_DEVICE_TABLE (i2c, adnp_i2c_id)
 
 MODULE_DEVICE_TABLE (of, adnp_of_match)
 
 module_i2c_driver (adnp_i2c_driver)
 
 MODULE_DESCRIPTION ("Avionic Design N-bit GPIO expander")
 
 MODULE_AUTHOR ("Thierry Reding <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define GPIO_DDR (   gpio)    (0x00 << (gpio)->reg_shift)

Definition at line 18 of file gpio-adnp.c.

#define GPIO_IER (   gpio)    (0x02 << (gpio)->reg_shift)

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

#define GPIO_ISR (   gpio)    (0x03 << (gpio)->reg_shift)

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

#define GPIO_PLR (   gpio)    (0x01 << (gpio)->reg_shift)

Definition at line 19 of file gpio-adnp.c.

#define GPIO_PTR (   gpio)    (0x04 << (gpio)->reg_shift)

Definition at line 22 of file gpio-adnp.c.

Function Documentation

MODULE_AUTHOR ( "Thierry Reding <[email protected]>"  )
MODULE_DESCRIPTION ( "Avionic Design N-bit GPIO expander"  )
MODULE_DEVICE_TABLE ( i2c  ,
adnp_i2c_id   
)
MODULE_DEVICE_TABLE ( of  ,
adnp_of_match   
)
module_i2c_driver ( adnp_i2c_driver  )
MODULE_LICENSE ( "GPL"  )