Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ivtv-i2c.c File Reference
#include "ivtv-driver.h"
#include "ivtv-cards.h"
#include "ivtv-gpio.h"
#include "ivtv-i2c.h"
#include <media/cx25840.h>

Go to the source code of this file.

Macros

#define IVTV_REG_I2C_SETSCL_OFFSET   0x7000
 
#define IVTV_REG_I2C_SETSDA_OFFSET   0x7004
 
#define IVTV_REG_I2C_GETSCL_OFFSET   0x7008
 
#define IVTV_REG_I2C_GETSDA_OFFSET   0x700c
 
#define IVTV_CS53L32A_I2C_ADDR   0x11
 
#define IVTV_M52790_I2C_ADDR   0x48
 
#define IVTV_CX25840_I2C_ADDR   0x44
 
#define IVTV_SAA7115_I2C_ADDR   0x21
 
#define IVTV_SAA7127_I2C_ADDR   0x44
 
#define IVTV_SAA717x_I2C_ADDR   0x21
 
#define IVTV_MSP3400_I2C_ADDR   0x40
 
#define IVTV_HAUPPAUGE_I2C_ADDR   0x50
 
#define IVTV_WM8739_I2C_ADDR   0x1a
 
#define IVTV_WM8775_I2C_ADDR   0x1b
 
#define IVTV_TEA5767_I2C_ADDR   0x60
 
#define IVTV_UPD64031A_I2C_ADDR   0x12
 
#define IVTV_UPD64083_I2C_ADDR   0x5c
 
#define IVTV_VP27SMPX_I2C_ADDR   0x5b
 
#define IVTV_M52790_I2C_ADDR   0x48
 
#define IVTV_AVERMEDIA_IR_RX_I2C_ADDR   0x40
 
#define IVTV_HAUP_EXT_IR_RX_I2C_ADDR   0x1a
 
#define IVTV_HAUP_INT_IR_RX_I2C_ADDR   0x18
 
#define IVTV_Z8F0811_IR_TX_I2C_ADDR   0x70
 
#define IVTV_Z8F0811_IR_RX_I2C_ADDR   0x71
 
#define IVTV_ADAPTEC_IR_ADDR   0x6b
 
#define IVTV_ALGO_BIT_TIMEOUT   (2) /* seconds */
 

Functions

struct i2c_clientivtv_i2c_new_ir_legacy (struct ivtv *itv)
 
int ivtv_i2c_register (struct ivtv *itv, unsigned idx)
 
struct v4l2_subdevivtv_find_hw (struct ivtv *itv, u32 hw)
 
int init_ivtv_i2c (struct ivtv *itv)
 
void exit_ivtv_i2c (struct ivtv *itv)
 

Macro Definition Documentation

#define IVTV_ADAPTEC_IR_ADDR   0x6b

Definition at line 97 of file ivtv-i2c.c.

#define IVTV_ALGO_BIT_TIMEOUT   (2) /* seconds */

Definition at line 692 of file ivtv-i2c.c.

#define IVTV_AVERMEDIA_IR_RX_I2C_ADDR   0x40

Definition at line 92 of file ivtv-i2c.c.

#define IVTV_CS53L32A_I2C_ADDR   0x11

Definition at line 77 of file ivtv-i2c.c.

#define IVTV_CX25840_I2C_ADDR   0x44

Definition at line 79 of file ivtv-i2c.c.

#define IVTV_HAUP_EXT_IR_RX_I2C_ADDR   0x1a

Definition at line 93 of file ivtv-i2c.c.

#define IVTV_HAUP_INT_IR_RX_I2C_ADDR   0x18

Definition at line 94 of file ivtv-i2c.c.

#define IVTV_HAUPPAUGE_I2C_ADDR   0x50

Definition at line 84 of file ivtv-i2c.c.

#define IVTV_M52790_I2C_ADDR   0x48

Definition at line 91 of file ivtv-i2c.c.

#define IVTV_M52790_I2C_ADDR   0x48

Definition at line 91 of file ivtv-i2c.c.

#define IVTV_MSP3400_I2C_ADDR   0x40

Definition at line 83 of file ivtv-i2c.c.

#define IVTV_REG_I2C_GETSCL_OFFSET   0x7008

Definition at line 74 of file ivtv-i2c.c.

#define IVTV_REG_I2C_GETSDA_OFFSET   0x700c

Definition at line 75 of file ivtv-i2c.c.

#define IVTV_REG_I2C_SETSCL_OFFSET   0x7000

Definition at line 72 of file ivtv-i2c.c.

#define IVTV_REG_I2C_SETSDA_OFFSET   0x7004

Definition at line 73 of file ivtv-i2c.c.

#define IVTV_SAA7115_I2C_ADDR   0x21

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

#define IVTV_SAA7127_I2C_ADDR   0x44

Definition at line 81 of file ivtv-i2c.c.

#define IVTV_SAA717x_I2C_ADDR   0x21

Definition at line 82 of file ivtv-i2c.c.

#define IVTV_TEA5767_I2C_ADDR   0x60

Definition at line 87 of file ivtv-i2c.c.

#define IVTV_UPD64031A_I2C_ADDR   0x12

Definition at line 88 of file ivtv-i2c.c.

#define IVTV_UPD64083_I2C_ADDR   0x5c

Definition at line 89 of file ivtv-i2c.c.

#define IVTV_VP27SMPX_I2C_ADDR   0x5b

Definition at line 90 of file ivtv-i2c.c.

#define IVTV_WM8739_I2C_ADDR   0x1a

Definition at line 85 of file ivtv-i2c.c.

#define IVTV_WM8775_I2C_ADDR   0x1b

Definition at line 86 of file ivtv-i2c.c.

#define IVTV_Z8F0811_IR_RX_I2C_ADDR   0x71

Definition at line 96 of file ivtv-i2c.c.

#define IVTV_Z8F0811_IR_TX_I2C_ADDR   0x70

Definition at line 95 of file ivtv-i2c.c.

Function Documentation

void exit_ivtv_i2c ( struct ivtv itv)

Definition at line 755 of file ivtv-i2c.c.

int init_ivtv_i2c ( struct ivtv itv)

Definition at line 708 of file ivtv-i2c.c.

struct v4l2_subdev* ivtv_find_hw ( struct ivtv itv,
u32  hw 
)
read

Definition at line 320 of file ivtv-i2c.c.

struct i2c_client* ivtv_i2c_new_ir_legacy ( struct ivtv itv)
read

Definition at line 238 of file ivtv-i2c.c.

int ivtv_i2c_register ( struct ivtv itv,
unsigned  idx 
)

Definition at line 263 of file ivtv-i2c.c.