Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
i2c-stub.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/i2c.h>

Go to the source code of this file.

Data Structures

struct  stub_chip
 

Macros

#define DEBUG   1
 
#define MAX_CHIPS   10
 
#define STUB_FUNC
 

Functions

 module_param_array (chip_addr, ushort, NULL, S_IRUGO)
 
 MODULE_PARM_DESC (chip_addr,"Chip addresses (up to 10, between 0x03 and 0x77)")
 
 module_param (functionality, ulong, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (functionality,"Override functionality bitfield")
 
 MODULE_AUTHOR ("Mark M. Hoffman <[email protected]>")
 
 MODULE_DESCRIPTION ("I2C stub driver")
 
 MODULE_LICENSE ("GPL")
 
 module_init (i2c_stub_init)
 
 module_exit (i2c_stub_exit)
 

Macro Definition Documentation

#define DEBUG   1

Definition at line 22 of file i2c-stub.c.

#define MAX_CHIPS   10

Definition at line 31 of file i2c-stub.c.

#define STUB_FUNC
Value:
I2C_FUNC_SMBUS_BYTE_DATA | I2C_FUNC_SMBUS_WORD_DATA | \
I2C_FUNC_SMBUS_I2C_BLOCK)

Definition at line 32 of file i2c-stub.c.

Function Documentation

MODULE_AUTHOR ( "Mark M. Hoffman <[email protected]>"  )
MODULE_DESCRIPTION ( "I2C stub driver )
module_exit ( i2c_stub_exit  )
module_init ( i2c_stub_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( functionality  ,
ulong  ,
S_IRUGO S_IWUSR 
)
module_param_array ( chip_addr  ,
ushort  ,
NULL  ,
S_IRUGO   
)
MODULE_PARM_DESC ( chip_addr  ,
"Chip addresses (up to 10, between 0x03 and 0x77)"   
)
MODULE_PARM_DESC ( functionality  ,
"Override functionality bitfield  
)