Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
stv0367.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include "stv0367.h"
#include "stv0367_regs.h"
#include "stv0367_priv.h"

Go to the source code of this file.

Data Structures

struct  stv0367cab_state
 
struct  stv0367ter_state
 
struct  stv0367_state
 
struct  st_register
 

Macros

#define dprintk(args...)
 
#define RF_LOOKUP_TABLE_SIZE   31
 
#define RF_LOOKUP_TABLE2_SIZE   16
 

Functions

 module_param_named (debug, stvdebug, int, 0644)
 
 module_param_named (i2c_debug, i2cdebug, int, 0644)
 
u8 stv0367_getbits (u8 reg, u32 label)
 
enum stv0367_ter_signal_type stv0367ter_lock_algo (struct stv0367_state *state)
 
int stv0367ter_init (struct dvb_frontend *fe)
 
struct dvb_frontendstv0367ter_attach (const struct stv0367_config *config, struct i2c_adapter *i2c)
 
 EXPORT_SYMBOL (stv0367ter_attach)
 
enum stv0367cab_mod stv0367cab_SetQamSize (struct stv0367_state *state, u32 SymbolRate, enum stv0367cab_mod QAMSize)
 
int stv0367cab_init (struct dvb_frontend *fe)
 
struct dvb_frontendstv0367cab_attach (const struct stv0367_config *config, struct i2c_adapter *i2c)
 
 EXPORT_SYMBOL (stv0367cab_attach)
 
 MODULE_PARM_DESC (debug,"Set debug")
 
 MODULE_PARM_DESC (i2c_debug,"Set i2c debug")
 
 MODULE_AUTHOR ("Igor M. Liplianin")
 
 MODULE_DESCRIPTION ("ST STV0367 DVB-C/T demodulator driver")
 
 MODULE_LICENSE ("GPL")
 

Variables

s32 stv0367cab_RF_LookUp1 [RF_LOOKUP_TABLE_SIZE][RF_LOOKUP_TABLE_SIZE]
 
s32 stv0367cab_RF_LookUp2 [RF_LOOKUP_TABLE2_SIZE][RF_LOOKUP_TABLE2_SIZE]
 

Macro Definition Documentation

#define dprintk (   args...)
Value:
do { \
if (stvdebug) \
printk(KERN_DEBUG args); \
} while (0)

Definition at line 42 of file stv0367.c.

#define RF_LOOKUP_TABLE2_SIZE   16

Definition at line 552 of file stv0367.c.

#define RF_LOOKUP_TABLE_SIZE   31

Definition at line 551 of file stv0367.c.

Function Documentation

EXPORT_SYMBOL ( stv0367ter_attach  )
EXPORT_SYMBOL ( stv0367cab_attach  )
MODULE_AUTHOR ( "Igor M. Liplianin"  )
MODULE_DESCRIPTION ( "ST STV0367 DVB-C/T demodulator driver )
MODULE_LICENSE ( "GPL"  )
module_param_named ( debug  ,
stvdebug  ,
int  ,
0644   
)
module_param_named ( i2c_debug  ,
i2cdebug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"Set debug  
)
MODULE_PARM_DESC ( i2c_debug  ,
"Set i2c debug  
)
u8 stv0367_getbits ( u8  reg,
u32  label 
)

Definition at line 882 of file stv0367.c.

struct dvb_frontend* stv0367cab_attach ( const struct stv0367_config config,
struct i2c_adapter i2c 
)
read

Definition at line 3407 of file stv0367.c.

int stv0367cab_init ( struct dvb_frontend fe)

Definition at line 2765 of file stv0367.c.

enum stv0367cab_mod stv0367cab_SetQamSize ( struct stv0367_state state,
u32  SymbolRate,
enum stv0367cab_mod  QAMSize 
)

Definition at line 2381 of file stv0367.c.

struct dvb_frontend* stv0367ter_attach ( const struct stv0367_config config,
struct i2c_adapter i2c 
)
read

Definition at line 2292 of file stv0367.c.

int stv0367ter_init ( struct dvb_frontend fe)

Definition at line 1531 of file stv0367.c.

enum stv0367_ter_signal_type stv0367ter_lock_algo ( struct stv0367_state state)

Definition at line 1267 of file stv0367.c.

Variable Documentation

Initial value:
= {
{
48, 50, 51, 53, 54, 56, 57, 58, 60, 61, 62, 63,
64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75,
76, 77, 78, 80, 83, 85, 88,
}, {
22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 46, 47,
49, 50, 52, 53, 54, 55, 56,
}
}

Definition at line 554 of file stv0367.c.

Initial value:
= {
{
28, 29, 31, 32, 34, 35, 36, 37,
38, 39, 40, 41, 42, 43, 44, 45,
}, {
57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 72,
}
}

Definition at line 566 of file stv0367.c.