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

Go to the source code of this file.

Macros

#define d1printk   if (1 == i2c_debug) printk
 
#define d2printk   if (2 == i2c_debug) printk
 
#define I2C_WAIT_DELAY   32
 
#define I2C_WAIT_RETRY   16
 

Enumerations

enum  i2c_status {
  I2C_NOP, I2C_ON_GOING, I2C_OK, I2C_ABORT,
  IDLE = 0, DONE_STOP = 1, BUSY = 2, TO_SCL = 3,
  TO_ARB = 4, DONE_WRITE = 5, DONE_READ = 6, DONE_WRITE_TO = 7,
  DONE_READ_TO = 8, NO_DEVICE = 9, NO_ACKN = 10, BUS_ERR = 11,
  ARB_LOST = 12, SEQ_ERR = 13, ST_ERR = 14, SW_ERR = 15
}
 
enum  i2c_attr { NOP = 0, STOP = 1, CONTINUE = 2, START = 3 }
 

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 saa7134_i2c_register (struct saa7134_dev *dev)
 
int saa7134_i2c_unregister (struct saa7134_dev *dev)
 

Macro Definition Documentation

#define d1printk   if (1 == i2c_debug) printk

Definition at line 43 of file saa7134-i2c.c.

#define d2printk   if (2 == i2c_debug) printk

Definition at line 44 of file saa7134-i2c.c.

#define I2C_WAIT_DELAY   32

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

#define I2C_WAIT_RETRY   16

Definition at line 47 of file saa7134-i2c.c.

Enumeration Type Documentation

enum i2c_attr
Enumerator:
NOP 
STOP 
CONTINUE 
START 

Definition at line 80 of file saa7134-i2c.c.

enum i2c_status
Enumerator:
I2C_NOP 
I2C_ON_GOING 
I2C_OK 
I2C_ABORT 
IDLE 
DONE_STOP 
BUSY 
TO_SCL 
TO_ARB 
DONE_WRITE 
DONE_READ 
DONE_WRITE_TO 
DONE_READ_TO 
NO_DEVICE 
NO_ACKN 
BUS_ERR 
ARB_LOST 
SEQ_ERR 
ST_ERR 
SW_ERR 

Definition at line 57 of file saa7134-i2c.c.

Function Documentation

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  
)
int saa7134_i2c_register ( struct saa7134_dev dev)

Definition at line 403 of file saa7134-i2c.c.

int saa7134_i2c_unregister ( struct saa7134_dev dev)

Definition at line 424 of file saa7134-i2c.c.