Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations
mt352_priv.h File Reference

Go to the source code of this file.

Macros

#define ID_MT352   0x13
 
#define msb(x)   (((x) >> 8) & 0xff)
 
#define lsb(x)   ((x) & 0xff)
 
#define IF_FREQUENCYx6   217 /* 6 * 36.16666666667MHz */
 

Enumerations

enum  mt352_reg_addr {
  STATUS_0 = 0x00, STATUS_1 = 0x01, STATUS_2 = 0x02, STATUS_3 = 0x03,
  STATUS_4 = 0x04, INTERRUPT_0 = 0x05, INTERRUPT_1 = 0x06, INTERRUPT_2 = 0x07,
  INTERRUPT_3 = 0x08, SNR = 0x09, VIT_ERR_CNT_2 = 0x0A, VIT_ERR_CNT_1 = 0x0B,
  VIT_ERR_CNT_0 = 0x0C, RS_ERR_CNT_2 = 0x0D, RS_ERR_CNT_1 = 0x0E, RS_ERR_CNT_0 = 0x0F,
  RS_UBC_1 = 0x10, RS_UBC_0 = 0x11, AGC_GAIN_3 = 0x12, AGC_GAIN_2 = 0x13,
  AGC_GAIN_1 = 0x14, AGC_GAIN_0 = 0x15, FREQ_OFFSET_2 = 0x17, FREQ_OFFSET_1 = 0x18,
  FREQ_OFFSET_0 = 0x19, TIMING_OFFSET_1 = 0x1A, TIMING_OFFSET_0 = 0x1B, CHAN_FREQ_1 = 0x1C,
  CHAN_FREQ_0 = 0x1D, TPS_RECEIVED_1 = 0x1E, TPS_RECEIVED_0 = 0x1F, TPS_CURRENT_1 = 0x20,
  TPS_CURRENT_0 = 0x21, TPS_CELL_ID_1 = 0x22, TPS_CELL_ID_0 = 0x23, TPS_MISC_DATA_2 = 0x24,
  TPS_MISC_DATA_1 = 0x25, TPS_MISC_DATA_0 = 0x26, RESET = 0x50, TPS_GIVEN_1 = 0x51,
  TPS_GIVEN_0 = 0x52, ACQ_CTL = 0x53, TRL_NOMINAL_RATE_1 = 0x54, TRL_NOMINAL_RATE_0 = 0x55,
  INPUT_FREQ_1 = 0x56, INPUT_FREQ_0 = 0x57, TUNER_ADDR = 0x58, CHAN_START_1 = 0x59,
  CHAN_START_0 = 0x5A, CONT_1 = 0x5B, CONT_0 = 0x5C, TUNER_GO = 0x5D,
  STATUS_EN_0 = 0x5F, STATUS_EN_1 = 0x60, INTERRUPT_EN_0 = 0x61, INTERRUPT_EN_1 = 0x62,
  INTERRUPT_EN_2 = 0x63, INTERRUPT_EN_3 = 0x64, AGC_TARGET = 0x67, AGC_CTL = 0x68,
  CAPT_RANGE = 0x75, SNR_SELECT_1 = 0x79, SNR_SELECT_0 = 0x7A, RS_ERR_PER_1 = 0x7C,
  RS_ERR_PER_0 = 0x7D, CHIP_ID = 0x7F, CHAN_STOP_1 = 0x80, CHAN_STOP_0 = 0x81,
  CHAN_STEP_1 = 0x82, CHAN_STEP_0 = 0x83, FEC_LOCK_TIME = 0x85, OFDM_LOCK_TIME = 0x86,
  ACQ_DELAY = 0x87, SCAN_CTL = 0x88, CLOCK_CTL = 0x89, CONFIG = 0x8A,
  MCLK_RATIO = 0x8B, GPP_CTL = 0x8C, ADC_CTL_1 = 0x8E, ADC_CTL_0 = 0x8F
}
 

Macro Definition Documentation

#define ID_MT352   0x13

Definition at line 36 of file mt352_priv.h.

#define IF_FREQUENCYx6   217 /* 6 * 36.16666666667MHz */

Definition at line 125 of file mt352_priv.h.

#define lsb (   x)    ((x) & 0xff)

Definition at line 39 of file mt352_priv.h.

#define msb (   x)    (((x) >> 8) & 0xff)

Definition at line 38 of file mt352_priv.h.

Enumeration Type Documentation

Enumerator:
STATUS_0 
STATUS_1 
STATUS_2 
STATUS_3 
STATUS_4 
INTERRUPT_0 
INTERRUPT_1 
INTERRUPT_2 
INTERRUPT_3 
SNR 
VIT_ERR_CNT_2 
VIT_ERR_CNT_1 
VIT_ERR_CNT_0 
RS_ERR_CNT_2 
RS_ERR_CNT_1 
RS_ERR_CNT_0 
RS_UBC_1 
RS_UBC_0 
AGC_GAIN_3 
AGC_GAIN_2 
AGC_GAIN_1 
AGC_GAIN_0 
FREQ_OFFSET_2 
FREQ_OFFSET_1 
FREQ_OFFSET_0 
TIMING_OFFSET_1 
TIMING_OFFSET_0 
CHAN_FREQ_1 
CHAN_FREQ_0 
TPS_RECEIVED_1 
TPS_RECEIVED_0 
TPS_CURRENT_1 
TPS_CURRENT_0 
TPS_CELL_ID_1 
TPS_CELL_ID_0 
TPS_MISC_DATA_2 
TPS_MISC_DATA_1 
TPS_MISC_DATA_0 
RESET 
TPS_GIVEN_1 
TPS_GIVEN_0 
ACQ_CTL 
TRL_NOMINAL_RATE_1 
TRL_NOMINAL_RATE_0 
INPUT_FREQ_1 
INPUT_FREQ_0 
TUNER_ADDR 
CHAN_START_1 
CHAN_START_0 
CONT_1 
CONT_0 
TUNER_GO 
STATUS_EN_0 
STATUS_EN_1 
INTERRUPT_EN_0 
INTERRUPT_EN_1 
INTERRUPT_EN_2 
INTERRUPT_EN_3 
AGC_TARGET 
AGC_CTL 
CAPT_RANGE 
SNR_SELECT_1 
SNR_SELECT_0 
RS_ERR_PER_1 
RS_ERR_PER_0 
CHIP_ID 
CHAN_STOP_1 
CHAN_STOP_0 
CHAN_STEP_1 
CHAN_STEP_0 
FEC_LOCK_TIME 
OFDM_LOCK_TIME 
ACQ_DELAY 
SCAN_CTL 
CLOCK_CTL 
CONFIG 
MCLK_RATIO 
GPP_CTL 
ADC_CTL_1 
ADC_CTL_0 

Definition at line 41 of file mt352_priv.h.