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

Go to the source code of this file.

Data Structures

struct  stv0900_inode
 

Functions

 module_param_named (debug, stvdebug, int, 0644)
 
s32 ge2comp (s32 a, s32 width)
 
void stv0900_write_reg (struct stv0900_internal *intp, u16 reg_addr, u8 reg_data)
 
u8 stv0900_read_reg (struct stv0900_internal *intp, u16 reg)
 
void stv0900_write_bits (struct stv0900_internal *intp, u32 label, u8 val)
 
u8 stv0900_get_bits (struct stv0900_internal *intp, u32 label)
 
void stv0900_set_tuner (struct dvb_frontend *fe, u32 frequency, u32 bandwidth)
 
void stv0900_set_bandwidth (struct dvb_frontend *fe, u32 bandwidth)
 
u32 stv0900_get_freq_auto (struct stv0900_internal *intp, int demod)
 
void stv0900_set_tuner_auto (struct stv0900_internal *intp, u32 Frequency, u32 Bandwidth, int demod)
 
int stv0900_get_demod_lock (struct stv0900_internal *intp, enum fe_stv0900_demod_num demod, s32 time_out)
 
void stv0900_stop_all_s2_modcod (struct stv0900_internal *intp, enum fe_stv0900_demod_num demod)
 
void stv0900_activate_s2_modcod (struct stv0900_internal *intp, enum fe_stv0900_demod_num demod)
 
void stv0900_activate_s2_modcod_single (struct stv0900_internal *intp, enum fe_stv0900_demod_num demod)
 
void stv0900_start_search (struct stv0900_internal *intp, enum fe_stv0900_demod_num demod)
 
u8 stv0900_get_optim_carr_loop (s32 srate, enum fe_stv0900_modcode modcode, s32 pilot, u8 chip_id)
 
u8 stv0900_get_optim_short_carr_loop (s32 srate, enum fe_stv0900_modulation modulation, u8 chip_id)
 
struct dvb_frontendstv0900_attach (const struct stv0900_config *config, struct i2c_adapter *i2c, int demod)
 
 EXPORT_SYMBOL (stv0900_attach)
 
 MODULE_PARM_DESC (debug,"Set debug")
 
 MODULE_AUTHOR ("Igor M. Liplianin")
 
 MODULE_DESCRIPTION ("ST STV0900 frontend")
 
 MODULE_LICENSE ("GPL")
 

Variables

int stvdebug = 1
 

Function Documentation

EXPORT_SYMBOL ( stv0900_attach  )
s32 ge2comp ( s32  a,
s32  width 
)

Definition at line 124 of file stv0900_core.c.

MODULE_AUTHOR ( "Igor M. Liplianin"  )
MODULE_DESCRIPTION ( "ST STV0900 frontend"  )
MODULE_LICENSE ( "GPL"  )
module_param_named ( debug  ,
stvdebug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"Set debug  
)
void stv0900_activate_s2_modcod ( struct stv0900_internal intp,
enum fe_stv0900_demod_num  demod 
)

Definition at line 896 of file stv0900_core.c.

void stv0900_activate_s2_modcod_single ( struct stv0900_internal intp,
enum fe_stv0900_demod_num  demod 
)

Definition at line 956 of file stv0900_core.c.

struct dvb_frontend* stv0900_attach ( const struct stv0900_config config,
struct i2c_adapter i2c,
int  demod 
)
read

Definition at line 1894 of file stv0900_core.c.

u8 stv0900_get_bits ( struct stv0900_internal intp,
u32  label 
)

Definition at line 208 of file stv0900_core.c.

int stv0900_get_demod_lock ( struct stv0900_internal intp,
enum fe_stv0900_demod_num  demod,
s32  time_out 
)

Definition at line 845 of file stv0900_core.c.

u32 stv0900_get_freq_auto ( struct stv0900_internal intp,
int  demod 
)

Definition at line 570 of file stv0900_core.c.

u8 stv0900_get_optim_carr_loop ( s32  srate,
enum fe_stv0900_modcode  modcode,
s32  pilot,
u8  chip_id 
)

Definition at line 1092 of file stv0900_core.c.

u8 stv0900_get_optim_short_carr_loop ( s32  srate,
enum fe_stv0900_modulation  modulation,
u8  chip_id 
)

Definition at line 1203 of file stv0900_core.c.

u8 stv0900_read_reg ( struct stv0900_internal intp,
u16  reg 
)

Definition at line 153 of file stv0900_core.c.

void stv0900_set_bandwidth ( struct dvb_frontend fe,
u32  bandwidth 
)

Definition at line 550 of file stv0900_core.c.

void stv0900_set_tuner ( struct dvb_frontend fe,
u32  frequency,
u32  bandwidth 
)

Definition at line 521 of file stv0900_core.c.

void stv0900_set_tuner_auto ( struct stv0900_internal intp,
u32  Frequency,
u32  Bandwidth,
int  demod 
)

Definition at line 592 of file stv0900_core.c.

void stv0900_start_search ( struct stv0900_internal intp,
enum fe_stv0900_demod_num  demod 
)

Definition at line 976 of file stv0900_core.c.

void stv0900_stop_all_s2_modcod ( struct stv0900_internal intp,
enum fe_stv0900_demod_num  demod 
)

Definition at line 882 of file stv0900_core.c.

void stv0900_write_bits ( struct stv0900_internal intp,
u32  label,
u8  val 
)

Definition at line 194 of file stv0900_core.c.

void stv0900_write_reg ( struct stv0900_internal intp,
u16  reg_addr,
u8  reg_data 
)

Definition at line 132 of file stv0900_core.c.

Variable Documentation

int stvdebug = 1

Definition at line 37 of file stv0900_core.c.