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

Go to the source code of this file.

Macros

#define dprintk(level, fmt, arg...)
 
#define I2C_WAIT_DELAY   32
 
#define I2C_WAIT_RETRY   64
 
#define I2C_EXTEND   (1 << 3)
 
#define I2C_NOSTOP   (1 << 4)
 

Functions

 module_param (i2c_debug, int, 0644)
 
 MODULE_PARM_DESC (i2c_debug,"enable debug messages [i2c]")
 
 module_param (i2c_scan, int, 0444)
 
 MODULE_PARM_DESC (i2c_scan,"scan i2c bus at insmod time")
 
int cx23885_i2c_register (struct cx23885_i2c *bus)
 
int cx23885_i2c_unregister (struct cx23885_i2c *bus)
 
void cx23885_av_clk (struct cx23885_dev *dev, int enable)
 

Macro Definition Documentation

#define dprintk (   level,
  fmt,
  arg... 
)
Value:
do { if (i2c_debug >= level)\
printk(KERN_DEBUG "%s/0: " fmt, dev->name, ## arg);\
} while (0)

Definition at line 40 of file cx23885-i2c.c.

#define I2C_EXTEND   (1 << 3)

Definition at line 48 of file cx23885-i2c.c.

#define I2C_NOSTOP   (1 << 4)

Definition at line 49 of file cx23885-i2c.c.

#define I2C_WAIT_DELAY   32

Definition at line 45 of file cx23885-i2c.c.

#define I2C_WAIT_RETRY   64

Definition at line 46 of file cx23885-i2c.c.

Function Documentation

void cx23885_av_clk ( struct cx23885_dev dev,
int  enable 
)

Definition at line 367 of file cx23885-i2c.c.

int cx23885_i2c_register ( struct cx23885_i2c bus)

Definition at line 313 of file cx23885-i2c.c.

int cx23885_i2c_unregister ( struct cx23885_i2c bus)

Definition at line 361 of file cx23885-i2c.c.

module_param ( i2c_debug  ,
int  ,
0644   
)
module_param ( i2c_scan  ,
int  ,
0444   
)
MODULE_PARM_DESC ( i2c_debug  ,
"enable debug messages "  [i2c] 
)
MODULE_PARM_DESC ( i2c_scan  ,
"scan i2c bus at insmod time  
)