Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
gpio-janz-ttl.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/gpio.h>
#include <linux/slab.h>
#include <linux/mfd/janz.h>

Go to the source code of this file.

Data Structures

struct  ttl_control_regs
 
struct  ttl_module
 

Macros

#define DRV_NAME   "janz-ttl"
 
#define PORTA_DIRECTION   0x23
 
#define PORTB_DIRECTION   0x2B
 
#define PORTC_DIRECTION   0x06
 
#define PORTA_IOCTL   0x24
 
#define PORTB_IOCTL   0x2C
 
#define PORTC_IOCTL   0x07
 
#define MASTER_INT_CTL   0x00
 
#define MASTER_CONF_CTL   0x01
 
#define CONF_PAE   (1 << 2)
 
#define CONF_PBE   (1 << 7)
 
#define CONF_PCE   (1 << 4)
 

Functions

 module_platform_driver (ttl_driver)
 
 MODULE_AUTHOR ("Ira W. Snyder <[email protected]>")
 
 MODULE_DESCRIPTION ("Janz MODULbus VMOD-TTL Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:janz-ttl")
 

Macro Definition Documentation

#define CONF_PAE   (1 << 2)

Definition at line 36 of file gpio-janz-ttl.c.

#define CONF_PBE   (1 << 7)

Definition at line 37 of file gpio-janz-ttl.c.

#define CONF_PCE   (1 << 4)

Definition at line 38 of file gpio-janz-ttl.c.

#define DRV_NAME   "janz-ttl"

Definition at line 24 of file gpio-janz-ttl.c.

#define MASTER_CONF_CTL   0x01

Definition at line 34 of file gpio-janz-ttl.c.

#define MASTER_INT_CTL   0x00

Definition at line 33 of file gpio-janz-ttl.c.

#define PORTA_DIRECTION   0x23

Definition at line 26 of file gpio-janz-ttl.c.

#define PORTA_IOCTL   0x24

Definition at line 29 of file gpio-janz-ttl.c.

#define PORTB_DIRECTION   0x2B

Definition at line 27 of file gpio-janz-ttl.c.

#define PORTB_IOCTL   0x2C

Definition at line 30 of file gpio-janz-ttl.c.

#define PORTC_DIRECTION   0x06

Definition at line 28 of file gpio-janz-ttl.c.

#define PORTC_IOCTL   0x07

Definition at line 31 of file gpio-janz-ttl.c.

Function Documentation

MODULE_ALIAS ( "platform:janz-ttl )
MODULE_AUTHOR ( "Ira W. Snyder <[email protected]>"  )
MODULE_DESCRIPTION ( "Janz MODULbus VMOD-TTL Driver"  )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( ttl_driver  )