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

Go to the source code of this file.

Data Structures

struct  dib0070_state
struct  dib0070_tuning
struct  dib0070_lna_match


#define dprintk(args...)
#define DIB0070_P1D   0x00
#define DIB0070_P1F   0x01
#define DIB0070_P1G   0x03
#define DIB0070S_P1A   0x02
#define HARD_RESET(state)
#define LPF   100
#define pgm_read_word(w)   (*w)


 module_param (debug, int, 0644)
 MODULE_PARM_DESC (debug,"turn on debugging (default: 0)")
void dib0070_ctrl_agc_filter (struct dvb_frontend *fe, u8 open)
 EXPORT_SYMBOL (dib0070_ctrl_agc_filter)
u8 dib0070_get_rf_output (struct dvb_frontend *fe)
 EXPORT_SYMBOL (dib0070_get_rf_output)
int dib0070_set_rf_output (struct dvb_frontend *fe, u8 no)
 EXPORT_SYMBOL (dib0070_set_rf_output)
u16 dib0070_wbd_offset (struct dvb_frontend *fe)
 EXPORT_SYMBOL (dib0070_wbd_offset)
struct dvb_frontenddib0070_attach (struct dvb_frontend *fe, struct i2c_adapter *i2c, struct dib0070_config *cfg)
 EXPORT_SYMBOL (dib0070_attach)
 MODULE_AUTHOR ("Patrick Boettcher <[email protected]>")
 MODULE_DESCRIPTION ("Driver for the DiBcom 0070 base-band RF Tuner")

Macro Definition Documentation

#define DIB0070_P1D   0x00

Definition at line 49 of file dib0070.c.

#define DIB0070_P1F   0x01

Definition at line 50 of file dib0070.c.

#define DIB0070_P1G   0x03

Definition at line 51 of file dib0070.c.

#define DIB0070S_P1A   0x02

Definition at line 52 of file dib0070.c.

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

Definition at line 41 of file dib0070.c.

#define HARD_RESET (   state)
do { \
state->cfg->sleep(state->fe, 0); \
if (state->cfg->reset) { \
state->cfg->reset(state->fe,1); msleep(10); \
state->cfg->reset(state->fe,0); msleep(10); \
} \
} while (0)

Definition at line 145 of file dib0070.c.

#define LPF   100

Definition at line 337 of file dib0070.c.

#define pgm_read_word (   w)    (*w)

Definition at line 651 of file dib0070.c.

Function Documentation

struct dvb_frontend* dib0070_attach ( struct dvb_frontend fe,
struct i2c_adapter i2c,
struct dib0070_config cfg 

Definition at line 750 of file dib0070.c.

void dib0070_ctrl_agc_filter ( struct dvb_frontend fe,
u8  open 

Definition at line 251 of file dib0070.c.

u8 dib0070_get_rf_output ( struct dvb_frontend fe)

Definition at line 553 of file dib0070.c.

int dib0070_set_rf_output ( struct dvb_frontend fe,
u8  no 

Definition at line 560 of file dib0070.c.

u16 dib0070_wbd_offset ( struct dvb_frontend fe)

Definition at line 634 of file dib0070.c.

EXPORT_SYMBOL ( dib0070_ctrl_agc_filter  )
EXPORT_SYMBOL ( dib0070_get_rf_output  )
EXPORT_SYMBOL ( dib0070_set_rf_output  )
EXPORT_SYMBOL ( dib0070_wbd_offset  )
EXPORT_SYMBOL ( dib0070_attach  )
MODULE_AUTHOR ( "Patrick Boettcher <[email protected]>"  )
MODULE_DESCRIPTION ( "Driver for the DiBcom 0070 base-band RF Tuner"  )
module_param ( debug  ,
int  ,
"turn on debugging (default: 0)"