Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
gpio.c File Reference
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/ioport.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/string.h>
#include <linux/poll.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <asm/etraxgpio.h>
#include <arch/svinto.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <arch/io_interface_mux.h>

Go to the source code of this file.

Data Structures

struct  gpio_private
 

Macros

#define GPIO_MAJOR   120 /* experimental MAJOR number */
 
#define D(x)
 
#define DP(x)
 
#define NUM_PORTS   (GPIO_MINOR_B+1)
 
#define CONFIG_ETRAX_PA_CHANGEABLE_DIR   0x00
 
#define CONFIG_ETRAX_PB_CHANGEABLE_DIR   0x00
 
#define CONFIG_ETRAX_PA_CHANGEABLE_BITS   0xFF
 
#define CONFIG_ETRAX_PB_CHANGEABLE_BITS   0xFF
 
#define USE_PORTS(priv)   ((priv)->minor <= GPIO_MINOR_B)
 

Functions

int etrax_gpio_wake_up_check (void)
 
unsigned long setget_input (struct gpio_private *priv, unsigned long arg)
 
unsigned long setget_output (struct gpio_private *priv, unsigned long arg)
 
 module_init (gpio_init)
 

Macro Definition Documentation

#define CONFIG_ETRAX_PA_CHANGEABLE_BITS   0xFF

Definition at line 103 of file gpio.c.

#define CONFIG_ETRAX_PA_CHANGEABLE_DIR   0x00

Definition at line 96 of file gpio.c.

#define CONFIG_ETRAX_PB_CHANGEABLE_BITS   0xFF

Definition at line 106 of file gpio.c.

#define CONFIG_ETRAX_PB_CHANGEABLE_DIR   0x00

Definition at line 99 of file gpio.c.

#define D (   x)

Definition at line 32 of file gpio.c.

#define DP (   x)

Definition at line 38 of file gpio.c.

#define GPIO_MAJOR   120 /* experimental MAJOR number */

Definition at line 30 of file gpio.c.

#define NUM_PORTS   (GPIO_MINOR_B+1)

Definition at line 83 of file gpio.c.

#define USE_PORTS (   priv)    ((priv)->minor <= GPIO_MINOR_B)

Definition at line 140 of file gpio.c.

Function Documentation

int etrax_gpio_wake_up_check ( void  )

Definition at line 185 of file gpio.c.

module_init ( gpio_init  )
unsigned long setget_input ( struct gpio_private priv,
unsigned long  arg 
)
inline

Definition at line 402 of file gpio.c.

unsigned long setget_output ( struct gpio_private priv,
unsigned long  arg 
)
inline

Definition at line 453 of file gpio.c.