Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
dib8000.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 "dib8000.h"

Go to the source code of this file.

Data Structures

struct  i2c_device
 
struct  dib8000_state
 

Macros

#define LAYER_ALL   -1
 
#define LAYER_A   1
 
#define LAYER_B   2
 
#define LAYER_C   3
 
#define FE_CALLBACK_TIME_NEVER   0xffffffff
 
#define MAX_NUMBER_OF_FRONTENDS   6
 
#define dprintk(args...)   do { if (debug) { printk(KERN_DEBUG "DiB8000: "); printk(args); printk("\n"); } } while (0)
 
#define FE_STATUS_TUNE_FAILED   0
 

Enumerations

enum  dib8000_power_mode { DIB8000_POWER_ALL = 0, DIB8000_POWER_INTERFACE_ONLY }
 

Functions

 module_param (debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"turn on debugging (default: 0)")
 
int dib8000_set_wbd_ref (struct dvb_frontend *fe, u16 value)
 
 EXPORT_SYMBOL (dib8000_set_wbd_ref)
 
int dib8000_update_pll (struct dvb_frontend *fe, struct dibx000_bandwidth_config *pll)
 
 EXPORT_SYMBOL (dib8000_update_pll)
 
int dib8000_set_gpio (struct dvb_frontend *fe, u8 num, u8 dir, u8 val)
 
 EXPORT_SYMBOL (dib8000_set_gpio)
 
void dib8000_pwm_agc_reset (struct dvb_frontend *fe)
 
 EXPORT_SYMBOL (dib8000_pwm_agc_reset)
 
struct i2c_adapterdib8096p_get_i2c_tuner (struct dvb_frontend *fe)
 
 EXPORT_SYMBOL (dib8096p_get_i2c_tuner)
 
int dib8096p_tuner_sleep (struct dvb_frontend *fe, int onoff)
 
 EXPORT_SYMBOL (dib8096p_tuner_sleep)
 
s32 dib8000_get_adc_power (struct dvb_frontend *fe, u8 mode)
 
 EXPORT_SYMBOL (dib8000_get_adc_power)
 
int dib8090p_get_dc_power (struct dvb_frontend *fe, u8 IQ)
 
 EXPORT_SYMBOL (dib8090p_get_dc_power)
 
u32 dib8000_ctrl_timf (struct dvb_frontend *fe, uint8_t op, uint32_t timf)
 
 EXPORT_SYMBOL (dib8000_ctrl_timf)
 
enum frontend_tune_state dib8000_get_tune_state (struct dvb_frontend *fe)
 
 EXPORT_SYMBOL (dib8000_get_tune_state)
 
int dib8000_set_tune_state (struct dvb_frontend *fe, enum frontend_tune_state tune_state)
 
 EXPORT_SYMBOL (dib8000_set_tune_state)
 
int dib8000_set_slave_frontend (struct dvb_frontend *fe, struct dvb_frontend *fe_slave)
 
 EXPORT_SYMBOL (dib8000_set_slave_frontend)
 
int dib8000_remove_slave_frontend (struct dvb_frontend *fe)
 
 EXPORT_SYMBOL (dib8000_remove_slave_frontend)
 
struct dvb_frontenddib8000_get_slave_frontend (struct dvb_frontend *fe, int slave_index)
 
 EXPORT_SYMBOL (dib8000_get_slave_frontend)
 
int dib8000_i2c_enumeration (struct i2c_adapter *host, int no_of_demods, u8 default_addr, u8 first_addr, u8 is_dib8096p)
 
 EXPORT_SYMBOL (dib8000_i2c_enumeration)
 
struct i2c_adapterdib8000_get_i2c_master (struct dvb_frontend *fe, enum dibx000_i2c_interface intf, int gating)
 
 EXPORT_SYMBOL (dib8000_get_i2c_master)
 
int dib8000_pid_filter_ctrl (struct dvb_frontend *fe, u8 onoff)
 
 EXPORT_SYMBOL (dib8000_pid_filter_ctrl)
 
int dib8000_pid_filter (struct dvb_frontend *fe, u8 id, u16 pid, u8 onoff)
 
 EXPORT_SYMBOL (dib8000_pid_filter)
 
struct dvb_frontenddib8000_attach (struct i2c_adapter *i2c_adap, u8 i2c_addr, struct dib8000_config *cfg)
 
 EXPORT_SYMBOL (dib8000_attach)
 
 MODULE_AUTHOR ("Olivier Grenie <[email protected], ""Patrick Boettcher <[email protected]>")
 
 MODULE_DESCRIPTION ("Driver for the DiBcom 8000 ISDB-T demodulator")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

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

Definition at line 33 of file dib8000.c.

#define FE_CALLBACK_TIME_NEVER   0xffffffff

Definition at line 26 of file dib8000.c.

#define FE_STATUS_TUNE_FAILED   0

Definition at line 35 of file dib8000.c.

#define LAYER_A   1

Definition at line 22 of file dib8000.c.

#define LAYER_ALL   -1

Definition at line 21 of file dib8000.c.

#define LAYER_B   2

Definition at line 23 of file dib8000.c.

#define LAYER_C   3

Definition at line 24 of file dib8000.c.

#define MAX_NUMBER_OF_FRONTENDS   6

Definition at line 27 of file dib8000.c.

Enumeration Type Documentation

Enumerator:
DIB8000_POWER_ALL 
DIB8000_POWER_INTERFACE_ONLY 

Definition at line 90 of file dib8000.c.

Function Documentation

struct dvb_frontend* dib8000_attach ( struct i2c_adapter i2c_adap,
u8  i2c_addr,
struct dib8000_config cfg 
)
read

Definition at line 3495 of file dib8000.c.

u32 dib8000_ctrl_timf ( struct dvb_frontend fe,
uint8_t  op,
uint32_t  timf 
)

Definition at line 1847 of file dib8000.c.

s32 dib8000_get_adc_power ( struct dvb_frontend fe,
u8  mode 
)

Definition at line 1798 of file dib8000.c.

struct i2c_adapter* dib8000_get_i2c_master ( struct dvb_frontend fe,
enum dibx000_i2c_interface  intf,
int  gating 
)
read

Definition at line 3438 of file dib8000.c.

struct dvb_frontend* dib8000_get_slave_frontend ( struct dvb_frontend fe,
int  slave_index 
)
read

Definition at line 3327 of file dib8000.c.

enum frontend_tune_state dib8000_get_tune_state ( struct dvb_frontend fe)

Definition at line 2800 of file dib8000.c.

int dib8000_i2c_enumeration ( struct i2c_adapter host,
int  no_of_demods,
u8  default_addr,
u8  first_addr,
u8  is_dib8096p 
)

Definition at line 3338 of file dib8000.c.

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

Definition at line 3457 of file dib8000.c.

int dib8000_pid_filter_ctrl ( struct dvb_frontend fe,
u8  onoff 
)

Definition at line 3446 of file dib8000.c.

void dib8000_pwm_agc_reset ( struct dvb_frontend fe)

Definition at line 1108 of file dib8000.c.

int dib8000_remove_slave_frontend ( struct dvb_frontend fe)

Definition at line 3309 of file dib8000.c.

int dib8000_set_gpio ( struct dvb_frontend fe,
u8  num,
u8  dir,
u8  val 
)

Definition at line 771 of file dib8000.c.

int dib8000_set_slave_frontend ( struct dvb_frontend fe,
struct dvb_frontend fe_slave 
)

Definition at line 3291 of file dib8000.c.

int dib8000_set_tune_state ( struct dvb_frontend fe,
enum frontend_tune_state  tune_state 
)

Definition at line 2807 of file dib8000.c.

int dib8000_set_wbd_ref ( struct dvb_frontend fe,
u16  value 
)

Definition at line 604 of file dib8000.c.

int dib8000_update_pll ( struct dvb_frontend fe,
struct dibx000_bandwidth_config pll 
)

Definition at line 687 of file dib8000.c.

int dib8090p_get_dc_power ( struct dvb_frontend fe,
u8  IQ 
)

Definition at line 1818 of file dib8000.c.

struct i2c_adapter* dib8096p_get_i2c_tuner ( struct dvb_frontend fe)
read

Definition at line 1760 of file dib8000.c.

int dib8096p_tuner_sleep ( struct dvb_frontend fe,
int  onoff 
)

Definition at line 1767 of file dib8000.c.

EXPORT_SYMBOL ( dib8000_set_wbd_ref  )
EXPORT_SYMBOL ( dib8000_update_pll  )
EXPORT_SYMBOL ( dib8000_set_gpio  )
EXPORT_SYMBOL ( dib8000_pwm_agc_reset  )
EXPORT_SYMBOL ( dib8096p_get_i2c_tuner  )
EXPORT_SYMBOL ( dib8096p_tuner_sleep  )
EXPORT_SYMBOL ( dib8000_get_adc_power  )
EXPORT_SYMBOL ( dib8090p_get_dc_power  )
EXPORT_SYMBOL ( dib8000_ctrl_timf  )
EXPORT_SYMBOL ( dib8000_get_tune_state  )
EXPORT_SYMBOL ( dib8000_set_tune_state  )
EXPORT_SYMBOL ( dib8000_set_slave_frontend  )
EXPORT_SYMBOL ( dib8000_remove_slave_frontend  )
EXPORT_SYMBOL ( dib8000_get_slave_frontend  )
EXPORT_SYMBOL ( dib8000_i2c_enumeration  )
EXPORT_SYMBOL ( dib8000_get_i2c_master  )
EXPORT_SYMBOL ( dib8000_pid_filter_ctrl  )
EXPORT_SYMBOL ( dib8000_pid_filter  )
EXPORT_SYMBOL ( dib8000_attach  )
MODULE_AUTHOR ( )
MODULE_DESCRIPTION ( "Driver for the DiBcom 8000 ISDB-T demodulator"  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"turn on debugging (default: 0)"   
)