Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
bttv-i2c.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h>
#include "bttvp.h"
#include <media/v4l2-common.h>
#include <linux/jiffies.h>
#include <asm/io.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define I2C_HW
 

Functions

 module_param (i2c_debug, int, 0644)
 
 MODULE_PARM_DESC (i2c_debug,"configure i2c debug level")
 
 module_param (i2c_hw, int, 0444)
 
 MODULE_PARM_DESC (i2c_hw,"force use of hardware i2c support, ""instead of software bitbang")
 
 module_param (i2c_scan, int, 0444)
 
 MODULE_PARM_DESC (i2c_scan,"scan i2c bus at insmod time")
 
 module_param (i2c_udelay, int, 0444)
 
 MODULE_PARM_DESC (i2c_udelay,"soft i2c delay at insmod time, in usecs ""(should be 5 or higher). Lower value means higher bus speed.")
 
int bttv_I2CRead (struct bttv *btv, unsigned char addr, char *probe_for)
 
int bttv_I2CWrite (struct bttv *btv, unsigned char addr, unsigned char b1, unsigned char b2, int both)
 
void __devinit bttv_readee (struct bttv *btv, unsigned char *eedata, int addr)
 
int __devinit init_bttv_i2c (struct bttv *btv)
 

Macro Definition Documentation

#define I2C_HW
Value:

Definition at line 135 of file bttv-i2c.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 30 of file bttv-i2c.c.

Function Documentation

int bttv_I2CRead ( struct bttv *  btv,
unsigned char  addr,
char probe_for 
)

Definition at line 273 of file bttv-i2c.c.

int bttv_I2CWrite ( struct bttv *  btv,
unsigned char  addr,
unsigned char  b1,
unsigned char  b2,
int  both 
)

Definition at line 298 of file bttv-i2c.c.

void __devinit bttv_readee ( struct bttv *  btv,
unsigned char eedata,
int  addr 
)

Definition at line 315 of file bttv-i2c.c.

int __devinit init_bttv_i2c ( struct bttv *  btv)

Definition at line 350 of file bttv-i2c.c.

module_param ( i2c_debug  ,
int  ,
0644   
)
module_param ( i2c_hw  ,
int  ,
0444   
)
module_param ( i2c_scan  ,
int  ,
0444   
)
module_param ( i2c_udelay  ,
int  ,
0444   
)
MODULE_PARM_DESC ( i2c_debug  ,
"configure i2c debug level  
)
MODULE_PARM_DESC ( i2c_hw  ,
"force use of hardware i2c  support,
""instead of software bitbang"   
)
MODULE_PARM_DESC ( i2c_scan  ,
"scan i2c bus at insmod time  
)
MODULE_PARM_DESC ( i2c_udelay  ,
"soft i2c delay at insmod  time,
in usecs""(should be 5 or higher).Lower value means higher bus speed."   
)