Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
dib7000p.c File Reference
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include <linux/mutex.h>
#include "dvb_math.h"
#include "dvb_frontend.h"
#include "dib7000p.h"

Go to the source code of this file.

Data Structures

struct  i2c_device
 
struct  dib7000p_state
 

Macros

#define dprintk(args...)   do { if (debug) { printk(KERN_DEBUG "DiB7000P: "); printk(args); printk("\n"); } } while (0)
 
#define SOC7090   0x7090
 

Enumerations

enum  dib7000p_power_mode { DIB7000P_POWER_ALL = 0, DIB7000P_POWER_ANALOG_ADC, DIB7000P_POWER_INTERFACE_ONLY }
 

Functions

 module_param (debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"turn on debugging (default: 0)")
 
 module_param (buggy_sfn_workaround, int, 0644)
 
 MODULE_PARM_DESC (buggy_sfn_workaround,"Enable work-around for buggy SFNs (default: 0)")
 
int dib7000p_set_wbd_ref (struct dvb_frontend *demod, u16 value)
 
 EXPORT_SYMBOL (dib7000p_set_wbd_ref)
 
int dib7000p_get_agc_values (struct dvb_frontend *fe, u16 *agc_global, u16 *agc1, u16 *agc2, u16 *wbd)
 
 EXPORT_SYMBOL (dib7000p_get_agc_values)
 
int dib7000p_update_pll (struct dvb_frontend *fe, struct dibx000_bandwidth_config *bw)
 
 EXPORT_SYMBOL (dib7000p_update_pll)
 
int dib7000p_set_gpio (struct dvb_frontend *demod, u8 num, u8 dir, u8 val)
 
 EXPORT_SYMBOL (dib7000p_set_gpio)
 
u32 dib7000p_ctrl_timf (struct dvb_frontend *fe, u8 op, u32 timf)
 
 EXPORT_SYMBOL (dib7000p_ctrl_timf)
 
int dib7000pc_detection (struct i2c_adapter *i2c_adap)
 
 EXPORT_SYMBOL (dib7000pc_detection)
 
struct i2c_adapterdib7000p_get_i2c_master (struct dvb_frontend *demod, enum dibx000_i2c_interface intf, int gating)
 
 EXPORT_SYMBOL (dib7000p_get_i2c_master)
 
int dib7000p_pid_filter_ctrl (struct dvb_frontend *fe, u8 onoff)
 
 EXPORT_SYMBOL (dib7000p_pid_filter_ctrl)
 
int dib7000p_pid_filter (struct dvb_frontend *fe, u8 id, u16 pid, u8 onoff)
 
 EXPORT_SYMBOL (dib7000p_pid_filter)
 
int dib7000p_i2c_enumeration (struct i2c_adapter *i2c, int no_of_demods, u8 default_addr, struct dib7000p_config cfg[])
 
 EXPORT_SYMBOL (dib7000p_i2c_enumeration)
 
struct i2c_adapterdib7090_get_i2c_tuner (struct dvb_frontend *fe)
 
 EXPORT_SYMBOL (dib7090_get_i2c_tuner)
 
int dib7090_tuner_sleep (struct dvb_frontend *fe, int onoff)
 
 EXPORT_SYMBOL (dib7090_tuner_sleep)
 
int dib7090_get_adc_power (struct dvb_frontend *fe)
 
 EXPORT_SYMBOL (dib7090_get_adc_power)
 
int dib7090_slave_reset (struct dvb_frontend *fe)
 
 EXPORT_SYMBOL (dib7090_slave_reset)
 
struct dvb_frontenddib7000p_attach (struct i2c_adapter *i2c_adap, u8 i2c_addr, struct dib7000p_config *cfg)
 
 EXPORT_SYMBOL (dib7000p_attach)
 
 MODULE_AUTHOR ("Olivier Grenie <[email protected]>")
 
 MODULE_AUTHOR ("Patrick Boettcher <[email protected]>")
 
 MODULE_DESCRIPTION ("Driver for the DiBcom 7000PC COFDM demodulator")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define dprintk (   args...)    do { if (debug) { printk(KERN_DEBUG "DiB7000P: "); printk(args); printk("\n"); } } while (0)

Definition at line 28 of file dib7000p.c.

#define SOC7090   0x7090

Definition at line 62 of file dib7000p.c.

Enumeration Type Documentation

Enumerator:
DIB7000P_POWER_ALL 
DIB7000P_POWER_ANALOG_ADC 
DIB7000P_POWER_INTERFACE_ONLY 

Definition at line 77 of file dib7000p.c.

Function Documentation

struct dvb_frontend* dib7000p_attach ( struct i2c_adapter i2c_adap,
u8  i2c_addr,
struct dib7000p_config cfg 
)
read

Definition at line 2362 of file dib7000p.c.

u32 dib7000p_ctrl_timf ( struct dvb_frontend fe,
u8  op,
u32  timf 
)

Definition at line 922 of file dib7000p.c.

int dib7000p_get_agc_values ( struct dvb_frontend fe,
u16 agc_global,
u16 agc1,
u16 agc2,
u16 wbd 
)

Definition at line 414 of file dib7000p.c.

struct i2c_adapter* dib7000p_get_i2c_master ( struct dvb_frontend demod,
enum dibx000_i2c_interface  intf,
int  gating 
)
read

Definition at line 1678 of file dib7000p.c.

int dib7000p_i2c_enumeration ( struct i2c_adapter i2c,
int  no_of_demods,
u8  default_addr,
struct dib7000p_config  cfg[] 
)

Definition at line 1703 of file dib7000p.c.

int dib7000p_pid_filter ( struct dvb_frontend fe,
u8  id,
u16  pid,
u8  onoff 
)

Definition at line 1695 of file dib7000p.c.

int dib7000p_pid_filter_ctrl ( struct dvb_frontend fe,
u8  onoff 
)

Definition at line 1685 of file dib7000p.c.

int dib7000p_set_gpio ( struct dvb_frontend demod,
u8  num,
u8  dir,
u8  val 
)

Definition at line 542 of file dib7000p.c.

int dib7000p_set_wbd_ref ( struct dvb_frontend demod,
u16  value 
)

Definition at line 404 of file dib7000p.c.

int dib7000p_update_pll ( struct dvb_frontend fe,
struct dibx000_bandwidth_config bw 
)

Definition at line 474 of file dib7000p.c.

int dib7000pc_detection ( struct i2c_adapter i2c_adap)

Definition at line 1631 of file dib7000p.c.

int dib7090_get_adc_power ( struct dvb_frontend fe)

Definition at line 2342 of file dib7000p.c.

struct i2c_adapter* dib7090_get_i2c_tuner ( struct dvb_frontend fe)
read

Definition at line 2020 of file dib7000p.c.

int dib7090_slave_reset ( struct dvb_frontend fe)

Definition at line 2348 of file dib7000p.c.

int dib7090_tuner_sleep ( struct dvb_frontend fe,
int  onoff 
)

Definition at line 2317 of file dib7000p.c.

EXPORT_SYMBOL ( dib7000p_set_wbd_ref  )
EXPORT_SYMBOL ( dib7000p_get_agc_values  )
EXPORT_SYMBOL ( dib7000p_update_pll  )
EXPORT_SYMBOL ( dib7000p_set_gpio  )
EXPORT_SYMBOL ( dib7000p_ctrl_timf  )
EXPORT_SYMBOL ( dib7000pc_detection  )
EXPORT_SYMBOL ( dib7000p_get_i2c_master  )
EXPORT_SYMBOL ( dib7000p_pid_filter_ctrl  )
EXPORT_SYMBOL ( dib7000p_pid_filter  )
EXPORT_SYMBOL ( dib7000p_i2c_enumeration  )
EXPORT_SYMBOL ( dib7090_get_i2c_tuner  )
EXPORT_SYMBOL ( dib7090_tuner_sleep  )
EXPORT_SYMBOL ( dib7090_get_adc_power  )
EXPORT_SYMBOL ( dib7090_slave_reset  )
EXPORT_SYMBOL ( dib7000p_attach  )
MODULE_AUTHOR ( "Olivier Grenie <[email protected]>"  )
MODULE_AUTHOR ( "Patrick Boettcher <[email protected]>"  )
MODULE_DESCRIPTION ( "Driver for the DiBcom 7000PC COFDM demodulator"  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
0644   
)
module_param ( buggy_sfn_workaround  ,
int  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"turn on debugging (default: 0)"   
)
MODULE_PARM_DESC ( buggy_sfn_workaround  ,
"Enable work-around for buggy SFNs (default: 0)"   
)