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

Go to the source code of this file.

Macros

#define bit_dbg(level, dev, format, args...)   do {} while (0)
 
#define setsda(adap, val)   adap->setsda(adap->data, val)
 
#define setscl(adap, val)   adap->setscl(adap->data, val)
 
#define getsda(adap)   adap->getsda(adap->data)
 
#define getscl(adap)   adap->getscl(adap->data)
 

Functions

 module_param (bit_test, int, S_IRUGO)
 
 MODULE_PARM_DESC (bit_test,"lines testing - 0 off; 1 report; 2 fail if stuck")
 
 EXPORT_SYMBOL (i2c_bit_algo)
 
int i2c_bit_add_bus (struct i2c_adapter *adap)
 
 EXPORT_SYMBOL (i2c_bit_add_bus)
 
int i2c_bit_add_numbered_bus (struct i2c_adapter *adap)
 
 EXPORT_SYMBOL (i2c_bit_add_numbered_bus)
 
 MODULE_AUTHOR ("Simon G. Vogl <[email protected]linz.ac.at>")
 
 MODULE_DESCRIPTION ("I2C-Bus bit-banging algorithm")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct i2c_algorithm i2c_bit_algo
 

Macro Definition Documentation

#define bit_dbg (   level,
  dev,
  format,
  args... 
)    do {} while (0)

Definition at line 44 of file i2c-algo-bit.c.

#define getscl (   adap)    adap->getscl(adap->data)

Definition at line 66 of file i2c-algo-bit.c.

#define getsda (   adap)    adap->getsda(adap->data)

Definition at line 65 of file i2c-algo-bit.c.

#define setscl (   adap,
  val 
)    adap->setscl(adap->data, val)

Definition at line 64 of file i2c-algo-bit.c.

#define setsda (   adap,
  val 
)    adap->setsda(adap->data, val)

Definition at line 63 of file i2c-algo-bit.c.

Function Documentation

EXPORT_SYMBOL ( i2c_bit_algo  )
EXPORT_SYMBOL ( i2c_bit_add_bus  )
EXPORT_SYMBOL ( i2c_bit_add_numbered_bus  )
int i2c_bit_add_bus ( struct i2c_adapter adap)

Definition at line 657 of file i2c-algo-bit.c.

int i2c_bit_add_numbered_bus ( struct i2c_adapter adap)

Definition at line 663 of file i2c-algo-bit.c.

MODULE_AUTHOR ( "Simon G. Vogl <[email protected]linz.ac.at>"  )
MODULE_DESCRIPTION ( "I2C-Bus bit-banging algorithm )
MODULE_LICENSE ( "GPL"  )
module_param ( bit_test  ,
int  ,
S_IRUGO   
)
MODULE_PARM_DESC ( bit_test  ,
"lines testing - 0 off; 1 report; 2 fail if stuck"   
)

Variable Documentation

struct i2c_algorithm i2c_bit_algo
Initial value:
= {
.master_xfer = bit_xfer,
.functionality = bit_func,
}

Definition at line 620 of file i2c-algo-bit.c.