Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
stv0900_priv.h File Reference
#include <linux/i2c.h>

Go to the source code of this file.

Data Structures

struct  stv000_lookpoint
 
struct  stv0900_table
 
struct  stv0900_init_params
 
struct  stv0900_search_params
 
struct  stv0900_signal_info
 
struct  stv0900_internal
 
struct  stv0900_state
 

Macros

#define ABS(X)   ((X) < 0 ? (-1 * (X)) : (X))
 
#define INRANGE(X, Y, Z)
 
#define MAKEWORD(X, Y)   (((X) << 8) + (Y))
 
#define LSB(X)   (((X) & 0xFF))
 
#define MSB(Y)   (((Y) >> 8) & 0xFF)
 
#define TRUE   (1 == 1)
 
#define FALSE   (!TRUE)
 
#define dprintk(args...)
 
#define STV0900_MAXLOOKUPSIZE   500
 
#define STV0900_BLIND_SEARCH_AGC2_TH   700
 
#define STV0900_BLIND_SEARCH_AGC2_TH_CUT30   1400
 
#define IQPOWER_THRESHOLD   30
 

Enumerations

enum  fe_stv0900_error {
  STV0900_NO_ERROR = 0, STV0900_INVALID_HANDLE, STV0900_BAD_PARAMETER, STV0900_I2C_ERROR,
  STV0900_SEARCH_FAILED
}
 
enum  fe_stv0900_clock_type {
  STV0900_USE_REGISTERS_DEFAULT, STV0900_SERIAL_PUNCT_CLOCK, STV0900_SERIAL_CONT_CLOCK, STV0900_PARALLEL_PUNCT_CLOCK,
  STV0900_DVBCI_CLOCK
}
 
enum  fe_stv0900_search_state { STV0900_SEARCH = 0, STV0900_PLH_DETECTED, STV0900_DVBS2_FOUND, STV0900_DVBS_FOUND }
 
enum  fe_stv0900_ldpc_state { STV0900_PATH1_OFF_PATH2_OFF = 0, STV0900_PATH1_ON_PATH2_OFF = 1, STV0900_PATH1_OFF_PATH2_ON = 2, STV0900_PATH1_ON_PATH2_ON = 3 }
 
enum  fe_stv0900_signal_type {
  STV0900_NOAGC1 = 0, STV0900_AGC1OK, STV0900_NOTIMING, STV0900_ANALOGCARRIER,
  STV0900_TIMINGOK, STV0900_NOAGC2, STV0900_AGC2OK, STV0900_NOCARRIER,
  STV0900_CARRIEROK, STV0900_NODATA, STV0900_DATAOK, STV0900_OUTOFRANGE,
  STV0900_RANGEOK
}
 
enum  fe_stv0900_demod_num { STV0900_DEMOD_1, STV0900_DEMOD_2 }
 
enum  fe_stv0900_tracking_standard {
  STV0900_DVBS1_STANDARD, STV0900_DVBS2_STANDARD, STV0900_DSS_STANDARD, STV0900_TURBOCODE_STANDARD,
  STV0900_UNKNOWN_STANDARD
}
 
enum  fe_stv0900_search_standard {
  STV0900_AUTO_SEARCH, STV0900_SEARCH_DVBS1, STV0900_SEARCH_DVBS2, STV0900_SEARCH_DSS,
  STV0900_SEARCH_TURBOCODE
}
 
enum  fe_stv0900_search_algo { STV0900_BLIND_SEARCH, STV0900_COLD_START, STV0900_WARM_START }
 
enum  fe_stv0900_modulation {
  STV0900_QPSK, STV0900_8PSK, STV0900_16APSK, STV0900_32APSK,
  STV0900_UNKNOWN
}
 
enum  fe_stv0900_modcode {
  STV0900_DUMMY_PLF, STV0900_QPSK_14, STV0900_QPSK_13, STV0900_QPSK_25,
  STV0900_QPSK_12, STV0900_QPSK_35, STV0900_QPSK_23, STV0900_QPSK_34,
  STV0900_QPSK_45, STV0900_QPSK_56, STV0900_QPSK_89, STV0900_QPSK_910,
  STV0900_8PSK_35, STV0900_8PSK_23, STV0900_8PSK_34, STV0900_8PSK_56,
  STV0900_8PSK_89, STV0900_8PSK_910, STV0900_16APSK_23, STV0900_16APSK_34,
  STV0900_16APSK_45, STV0900_16APSK_56, STV0900_16APSK_89, STV0900_16APSK_910,
  STV0900_32APSK_34, STV0900_32APSK_45, STV0900_32APSK_56, STV0900_32APSK_89,
  STV0900_32APSK_910, STV0900_MODCODE_UNKNOWN
}
 
enum  fe_stv0900_fec {
  STV0900_FEC_1_2 = 0, STV0900_FEC_2_3, STV0900_FEC_3_4, STV0900_FEC_4_5,
  STV0900_FEC_5_6, STV0900_FEC_6_7, STV0900_FEC_7_8, STV0900_FEC_8_9,
  STV0900_FEC_UNKNOWN
}
 
enum  fe_stv0900_frame_length { STV0900_LONG_FRAME, STV0900_SHORT_FRAME }
 
enum  fe_stv0900_pilot { STV0900_PILOTS_OFF, STV0900_PILOTS_ON }
 
enum  fe_stv0900_rolloff { STV0900_35, STV0900_25, STV0900_20 }
 
enum  fe_stv0900_search_iq { STV0900_IQ_AUTO, STV0900_IQ_AUTO_NORMAL_FIRST, STV0900_IQ_FORCE_NORMAL, STV0900_IQ_FORCE_SWAPPED }
 
enum  stv0900_iq_inversion { STV0900_IQ_NORMAL, STV0900_IQ_SWAPPED }
 
enum  fe_stv0900_diseqc_mode {
  STV0900_22KHZ_Continues = 0, STV0900_DISEQC_2_3_PWM = 2, STV0900_DISEQC_3_3_PWM = 3, STV0900_DISEQC_2_3_ENVELOP = 4,
  STV0900_DISEQC_3_3_ENVELOP = 5
}
 
enum  fe_stv0900_demod_mode { STV0900_SINGLE = 0, STV0900_DUAL }
 

Functions

s32 ge2comp (s32 a, s32 width)
 
void stv0900_write_reg (struct stv0900_internal *i_params, u16 reg_addr, u8 reg_data)
 
u8 stv0900_read_reg (struct stv0900_internal *i_params, u16 reg_addr)
 
void stv0900_write_bits (struct stv0900_internal *i_params, u32 label, u8 val)
 
u8 stv0900_get_bits (struct stv0900_internal *i_params, u32 label)
 
int stv0900_get_demod_lock (struct stv0900_internal *i_params, enum fe_stv0900_demod_num demod, s32 time_out)
 
int stv0900_check_signal_presence (struct stv0900_internal *i_params, enum fe_stv0900_demod_num demod)
 
enum fe_stv0900_signal_type stv0900_algo (struct dvb_frontend *fe)
 
void stv0900_set_tuner (struct dvb_frontend *fe, u32 frequency, u32 bandwidth)
 
void stv0900_set_bandwidth (struct dvb_frontend *fe, u32 bandwidth)
 
void stv0900_start_search (struct stv0900_internal *i_params, 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)
 
void stv0900_stop_all_s2_modcod (struct stv0900_internal *i_params, enum fe_stv0900_demod_num demod)
 
void stv0900_activate_s2_modcod (struct stv0900_internal *i_params, enum fe_stv0900_demod_num demod)
 
void stv0900_activate_s2_modcod_single (struct stv0900_internal *i_params, enum fe_stv0900_demod_num demod)
 
enum fe_stv0900_tracking_standard stv0900_get_standard (struct dvb_frontend *fe, enum fe_stv0900_demod_num demod)
 
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)
 

Variables

int stvdebug
 

Macro Definition Documentation

#define ABS (   X)    ((X) < 0 ? (-1 * (X)) : (X))

Definition at line 31 of file stv0900_priv.h.

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

Definition at line 49 of file stv0900_priv.h.

#define FALSE   (!TRUE)

Definition at line 46 of file stv0900_priv.h.

#define INRANGE (   X,
  Y,
  Z 
)
Value:
((((X) <= (Y)) && ((Y) <= (Z))) \
|| (((Z) <= (Y)) && ((Y) <= (X))) ? 1 : 0)

Definition at line 32 of file stv0900_priv.h.

#define IQPOWER_THRESHOLD   30

Definition at line 58 of file stv0900_priv.h.

#define LSB (   X)    (((X) & 0xFF))

Definition at line 39 of file stv0900_priv.h.

#define MAKEWORD (   X,
 
)    (((X) << 8) + (Y))

Definition at line 36 of file stv0900_priv.h.

#define MSB (   Y)    (((Y) >> 8) & 0xFF)

Definition at line 40 of file stv0900_priv.h.

#define STV0900_BLIND_SEARCH_AGC2_TH   700

Definition at line 56 of file stv0900_priv.h.

#define STV0900_BLIND_SEARCH_AGC2_TH_CUT30   1400

Definition at line 57 of file stv0900_priv.h.

#define STV0900_MAXLOOKUPSIZE   500

Definition at line 55 of file stv0900_priv.h.

#define TRUE   (1 == 1)

Definition at line 43 of file stv0900_priv.h.

Enumeration Type Documentation

Enumerator:
STV0900_USE_REGISTERS_DEFAULT 
STV0900_SERIAL_PUNCT_CLOCK 
STV0900_SERIAL_CONT_CLOCK 
STV0900_PARALLEL_PUNCT_CLOCK 
STV0900_DVBCI_CLOCK 

Definition at line 80 of file stv0900_priv.h.

Enumerator:
STV0900_SINGLE 
STV0900_DUAL 

Definition at line 235 of file stv0900_priv.h.

Enumerator:
STV0900_DEMOD_1 
STV0900_DEMOD_2 

Definition at line 119 of file stv0900_priv.h.

Enumerator:
STV0900_22KHZ_Continues 
STV0900_DISEQC_2_3_PWM 
STV0900_DISEQC_3_3_PWM 
STV0900_DISEQC_2_3_ENVELOP 
STV0900_DISEQC_3_3_ENVELOP 

Definition at line 227 of file stv0900_priv.h.

Enumerator:
STV0900_NO_ERROR 
STV0900_INVALID_HANDLE 
STV0900_BAD_PARAMETER 
STV0900_I2C_ERROR 
STV0900_SEARCH_FAILED 

Definition at line 72 of file stv0900_priv.h.

Enumerator:
STV0900_FEC_1_2 
STV0900_FEC_2_3 
STV0900_FEC_3_4 
STV0900_FEC_4_5 
STV0900_FEC_5_6 
STV0900_FEC_6_7 
STV0900_FEC_7_8 
STV0900_FEC_8_9 
STV0900_FEC_UNKNOWN 

Definition at line 187 of file stv0900_priv.h.

Enumerator:
STV0900_LONG_FRAME 
STV0900_SHORT_FRAME 

Definition at line 199 of file stv0900_priv.h.

Enumerator:
STV0900_PATH1_OFF_PATH2_OFF 
STV0900_PATH1_ON_PATH2_OFF 
STV0900_PATH1_OFF_PATH2_ON 
STV0900_PATH1_ON_PATH2_ON 

Definition at line 96 of file stv0900_priv.h.

Enumerator:
STV0900_DUMMY_PLF 
STV0900_QPSK_14 
STV0900_QPSK_13 
STV0900_QPSK_25 
STV0900_QPSK_12 
STV0900_QPSK_35 
STV0900_QPSK_23 
STV0900_QPSK_34 
STV0900_QPSK_45 
STV0900_QPSK_56 
STV0900_QPSK_89 
STV0900_QPSK_910 
STV0900_8PSK_35 
STV0900_8PSK_23 
STV0900_8PSK_34 
STV0900_8PSK_56 
STV0900_8PSK_89 
STV0900_8PSK_910 
STV0900_16APSK_23 
STV0900_16APSK_34 
STV0900_16APSK_45 
STV0900_16APSK_56 
STV0900_16APSK_89 
STV0900_16APSK_910 
STV0900_32APSK_34 
STV0900_32APSK_45 
STV0900_32APSK_56 
STV0900_32APSK_89 
STV0900_32APSK_910 
STV0900_MODCODE_UNKNOWN 

Definition at line 154 of file stv0900_priv.h.

Enumerator:
STV0900_QPSK 
STV0900_8PSK 
STV0900_16APSK 
STV0900_32APSK 
STV0900_UNKNOWN 

Definition at line 146 of file stv0900_priv.h.

Enumerator:
STV0900_PILOTS_OFF 
STV0900_PILOTS_ON 

Definition at line 204 of file stv0900_priv.h.

Enumerator:
STV0900_35 
STV0900_25 
STV0900_20 

Definition at line 209 of file stv0900_priv.h.

Enumerator:
STV0900_BLIND_SEARCH 
STV0900_COLD_START 
STV0900_WARM_START 

Definition at line 140 of file stv0900_priv.h.

Enumerator:
STV0900_IQ_AUTO 
STV0900_IQ_AUTO_NORMAL_FIRST 
STV0900_IQ_FORCE_NORMAL 
STV0900_IQ_FORCE_SWAPPED 

Definition at line 215 of file stv0900_priv.h.

Enumerator:
STV0900_AUTO_SEARCH 
STV0900_SEARCH_DVBS1 
STV0900_SEARCH_DVBS2 
STV0900_SEARCH_DSS 
STV0900_SEARCH_TURBOCODE 

Definition at line 132 of file stv0900_priv.h.

Enumerator:
STV0900_SEARCH 
STV0900_PLH_DETECTED 
STV0900_DVBS2_FOUND 
STV0900_DVBS_FOUND 

Definition at line 88 of file stv0900_priv.h.

Enumerator:
STV0900_NOAGC1 
STV0900_AGC1OK 
STV0900_NOTIMING 
STV0900_ANALOGCARRIER 
STV0900_TIMINGOK 
STV0900_NOAGC2 
STV0900_AGC2OK 
STV0900_NOCARRIER 
STV0900_CARRIEROK 
STV0900_NODATA 
STV0900_DATAOK 
STV0900_OUTOFRANGE 
STV0900_RANGEOK 

Definition at line 103 of file stv0900_priv.h.

Enumerator:
STV0900_DVBS1_STANDARD 
STV0900_DVBS2_STANDARD 
STV0900_DSS_STANDARD 
STV0900_TURBOCODE_STANDARD 
STV0900_UNKNOWN_STANDARD 

Definition at line 124 of file stv0900_priv.h.

Enumerator:
STV0900_IQ_NORMAL 
STV0900_IQ_SWAPPED 

Definition at line 222 of file stv0900_priv.h.

Function Documentation

s32 ge2comp ( s32  a,
s32  width 
)

Definition at line 124 of file stv0900_core.c.

void stv0900_activate_s2_modcod ( struct stv0900_internal i_params,
enum fe_stv0900_demod_num  demod 
)

Definition at line 896 of file stv0900_core.c.

void stv0900_activate_s2_modcod_single ( struct stv0900_internal i_params,
enum fe_stv0900_demod_num  demod 
)

Definition at line 956 of file stv0900_core.c.

enum fe_stv0900_signal_type stv0900_algo ( struct dvb_frontend fe)

Definition at line 1821 of file stv0900_sw.c.

int stv0900_check_signal_presence ( struct stv0900_internal i_params,
enum fe_stv0900_demod_num  demod 
)

Definition at line 38 of file stv0900_sw.c.

u8 stv0900_get_bits ( struct stv0900_internal i_params,
u32  label 
)

Definition at line 208 of file stv0900_core.c.

int stv0900_get_demod_lock ( struct stv0900_internal i_params,
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.

enum fe_stv0900_tracking_standard stv0900_get_standard ( struct dvb_frontend fe,
enum fe_stv0900_demod_num  demod 
)

Definition at line 1110 of file stv0900_sw.c.

u8 stv0900_read_reg ( struct stv0900_internal i_params,
u16  reg_addr 
)

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 i_params,
enum fe_stv0900_demod_num  demod 
)

Definition at line 976 of file stv0900_core.c.

void stv0900_stop_all_s2_modcod ( struct stv0900_internal i_params,
enum fe_stv0900_demod_num  demod 
)

Definition at line 882 of file stv0900_core.c.

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

Definition at line 194 of file stv0900_core.c.

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

Definition at line 132 of file stv0900_core.c.

Variable Documentation

int stvdebug

Definition at line 37 of file stv0900_core.c.