Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cx18-i2c.c File Reference
#include "cx18-driver.h"
#include "cx18-io.h"
#include "cx18-cards.h"
#include "cx18-gpio.h"
#include "cx18-i2c.h"
#include "cx18-irq.h"

Go to the source code of this file.

Macros

#define CX18_REG_I2C_1_WR   0xf15000
 
#define CX18_REG_I2C_1_RD   0xf15008
 
#define CX18_REG_I2C_2_WR   0xf25100
 
#define CX18_REG_I2C_2_RD   0xf25108
 
#define SETSCL_BIT   0x0001
 
#define SETSDL_BIT   0x0002
 
#define GETSCL_BIT   0x0004
 
#define GETSDL_BIT   0x0008
 
#define CX18_CS5345_I2C_ADDR   0x4c
 
#define CX18_Z8F0811_IR_TX_I2C_ADDR   0x70
 
#define CX18_Z8F0811_IR_RX_I2C_ADDR   0x71
 
#define CX18_SCL_PERIOD   (10) /* usecs. 10 usec is period for a 100 KHz clock */
 
#define CX18_ALGO_BIT_TIMEOUT   (2) /* seconds */
 

Functions

int cx18_i2c_register (struct cx18 *cx, unsigned idx)
 
struct v4l2_subdevcx18_find_hw (struct cx18 *cx, u32 hw)
 
int init_cx18_i2c (struct cx18 *cx)
 
void exit_cx18_i2c (struct cx18 *cx)
 

Macro Definition Documentation

#define CX18_ALGO_BIT_TIMEOUT   (2) /* seconds */

Definition at line 224 of file cx18-i2c.c.

#define CX18_CS5345_I2C_ADDR   0x4c

Definition at line 42 of file cx18-i2c.c.

#define CX18_REG_I2C_1_RD   0xf15008

Definition at line 33 of file cx18-i2c.c.

#define CX18_REG_I2C_1_WR   0xf15000

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

#define CX18_REG_I2C_2_RD   0xf25108

Definition at line 35 of file cx18-i2c.c.

#define CX18_REG_I2C_2_WR   0xf25100

Definition at line 34 of file cx18-i2c.c.

#define CX18_SCL_PERIOD   (10) /* usecs. 10 usec is period for a 100 KHz clock */

Definition at line 223 of file cx18-i2c.c.

#define CX18_Z8F0811_IR_RX_I2C_ADDR   0x71

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

#define CX18_Z8F0811_IR_TX_I2C_ADDR   0x70

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

#define GETSCL_BIT   0x0004

Definition at line 39 of file cx18-i2c.c.

#define GETSDL_BIT   0x0008

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

#define SETSCL_BIT   0x0001

Definition at line 37 of file cx18-i2c.c.

#define SETSDL_BIT   0x0002

Definition at line 38 of file cx18-i2c.c.

Function Documentation

struct v4l2_subdev* cx18_find_hw ( struct cx18 cx,
u32  hw 
)
read

Definition at line 155 of file cx18-i2c.c.

int cx18_i2c_register ( struct cx18 cx,
unsigned  idx 
)

Definition at line 111 of file cx18-i2c.c.

void exit_cx18_i2c ( struct cx18 cx)

Definition at line 309 of file cx18-i2c.c.

int init_cx18_i2c ( struct cx18 cx)

Definition at line 236 of file cx18-i2c.c.