Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
gpio-mcp23s08.c File Reference
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/mutex.h>
#include <linux/module.h>
#include <linux/gpio.h>
#include <linux/i2c.h>
#include <linux/spi/spi.h>
#include <linux/spi/mcp23s08.h>
#include <linux/slab.h>
#include <asm/byteorder.h>

Go to the source code of this file.

Data Structures

struct  mcp23s08_ops
 
struct  mcp23s08
 
struct  mcp23s08_driver_data
 

Macros

#define MCP_TYPE_S08   0
 
#define MCP_TYPE_S17   1
 
#define MCP_TYPE_008   2
 
#define MCP_TYPE_017   3
 
#define MCP_IODIR   0x00 /* init/reset: all ones */
 
#define MCP_IPOL   0x01
 
#define MCP_GPINTEN   0x02
 
#define MCP_DEFVAL   0x03
 
#define MCP_INTCON   0x04
 
#define MCP_IOCON   0x05
 
#define IOCON_SEQOP   (1 << 5)
 
#define IOCON_HAEN   (1 << 3)
 
#define IOCON_ODR   (1 << 2)
 
#define IOCON_INTPOL   (1 << 1)
 
#define MCP_GPPU   0x06
 
#define MCP_INTF   0x07
 
#define MCP_INTCAP   0x08
 
#define MCP_GPIO   0x09
 
#define MCP_OLAT   0x0a
 
#define mcp23s08_dbg_show   NULL
 

Functions

 subsys_initcall (mcp23s08_init)
 
 module_exit (mcp23s08_exit)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define IOCON_HAEN   (1 << 3)

Definition at line 36 of file gpio-mcp23s08.c.

#define IOCON_INTPOL   (1 << 1)

Definition at line 38 of file gpio-mcp23s08.c.

#define IOCON_ODR   (1 << 2)

Definition at line 37 of file gpio-mcp23s08.c.

#define IOCON_SEQOP   (1 << 5)

Definition at line 35 of file gpio-mcp23s08.c.

#define mcp23s08_dbg_show   NULL

Definition at line 365 of file gpio-mcp23s08.c.

#define MCP_DEFVAL   0x03

Definition at line 32 of file gpio-mcp23s08.c.

#define MCP_GPINTEN   0x02

Definition at line 31 of file gpio-mcp23s08.c.

#define MCP_GPIO   0x09

Definition at line 42 of file gpio-mcp23s08.c.

#define MCP_GPPU   0x06

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

#define MCP_INTCAP   0x08

Definition at line 41 of file gpio-mcp23s08.c.

#define MCP_INTCON   0x04

Definition at line 33 of file gpio-mcp23s08.c.

#define MCP_INTF   0x07

Definition at line 40 of file gpio-mcp23s08.c.

#define MCP_IOCON   0x05

Definition at line 34 of file gpio-mcp23s08.c.

#define MCP_IODIR   0x00 /* init/reset: all ones */

Definition at line 29 of file gpio-mcp23s08.c.

#define MCP_IPOL   0x01

Definition at line 30 of file gpio-mcp23s08.c.

#define MCP_OLAT   0x0a

Definition at line 43 of file gpio-mcp23s08.c.

#define MCP_TYPE_008   2

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

#define MCP_TYPE_017   3

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

#define MCP_TYPE_S08   0

MCP types supported by driver

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

#define MCP_TYPE_S17   1

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

Function Documentation

module_exit ( mcp23s08_exit  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( mcp23s08_init  )