Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
gpio-em.c File Reference
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/spinlock.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/irqdomain.h>
#include <linux/bitops.h>
#include <linux/err.h>
#include <linux/gpio.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/platform_data/gpio-em.h>

Go to the source code of this file.

Data Structures

struct  em_gio_priv
 

Macros

#define GIO_E1   0x00
 
#define GIO_E0   0x04
 
#define GIO_EM   0x04
 
#define GIO_OL   0x08
 
#define GIO_OH   0x0c
 
#define GIO_I   0x10
 
#define GIO_IIA   0x14
 
#define GIO_IEN   0x18
 
#define GIO_IDS   0x1c
 
#define GIO_IIM   0x1c
 
#define GIO_RAW   0x20
 
#define GIO_MST   0x24
 
#define GIO_IIR   0x28
 
#define GIO_IDT0   0x40
 
#define GIO_IDT1   0x44
 
#define GIO_IDT2   0x48
 
#define GIO_IDT3   0x4c
 
#define GIO_RAWBL   0x50
 
#define GIO_RAWBH   0x54
 
#define GIO_IRBL   0x58
 
#define GIO_IRBH   0x5c
 
#define GIO_IDT(n)   (GIO_IDT0 + ((n) * 4))
 
#define GIO_ASYNC(x)   (x + 8)
 

Functions

 module_platform_driver (em_gio_device_driver)
 
 MODULE_AUTHOR ("Magnus Damm")
 
 MODULE_DESCRIPTION ("Renesas Emma Mobile GIO Driver")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define GIO_ASYNC (   x)    (x + 8)

Definition at line 102 of file gpio-em.c.

#define GIO_E0   0x04

Definition at line 47 of file gpio-em.c.

#define GIO_E1   0x00

Definition at line 46 of file gpio-em.c.

#define GIO_EM   0x04

Definition at line 48 of file gpio-em.c.

#define GIO_I   0x10

Definition at line 51 of file gpio-em.c.

#define GIO_IDS   0x1c

Definition at line 54 of file gpio-em.c.

#define GIO_IDT (   n)    (GIO_IDT0 + ((n) * 4))

Definition at line 69 of file gpio-em.c.

#define GIO_IDT0   0x40

Definition at line 60 of file gpio-em.c.

#define GIO_IDT1   0x44

Definition at line 61 of file gpio-em.c.

#define GIO_IDT2   0x48

Definition at line 62 of file gpio-em.c.

#define GIO_IDT3   0x4c

Definition at line 63 of file gpio-em.c.

#define GIO_IEN   0x18

Definition at line 53 of file gpio-em.c.

#define GIO_IIA   0x14

Definition at line 52 of file gpio-em.c.

#define GIO_IIM   0x1c

Definition at line 55 of file gpio-em.c.

#define GIO_IIR   0x28

Definition at line 58 of file gpio-em.c.

#define GIO_IRBH   0x5c

Definition at line 67 of file gpio-em.c.

#define GIO_IRBL   0x58

Definition at line 66 of file gpio-em.c.

#define GIO_MST   0x24

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

#define GIO_OH   0x0c

Definition at line 50 of file gpio-em.c.

#define GIO_OL   0x08

Definition at line 49 of file gpio-em.c.

#define GIO_RAW   0x20

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

#define GIO_RAWBH   0x54

Definition at line 65 of file gpio-em.c.

#define GIO_RAWBL   0x50

Definition at line 64 of file gpio-em.c.

Function Documentation

MODULE_AUTHOR ( "Magnus Damm"  )
MODULE_DESCRIPTION ( "Renesas Emma Mobile GIO Driver"  )
MODULE_LICENSE ( "GPL v2 )
module_platform_driver ( em_gio_device_driver  )