1/* 2 Driver for Zarlink MT312 QPSK Frontend 3 4 Copyright (C) 2003 Andreas Oberritter <obi@linuxtv.org> 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 2 of the License, or 9 (at your option) any later version. 10 11 This program is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with this program; if not, write to the Free Software 19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20 21*/ 22 23#ifndef _DVB_FRONTENDS_MT312_PRIV 24#define _DVB_FRONTENDS_MT312_PRIV 25 26enum mt312_reg_addr { 27 QPSK_INT_H = 0, 28 QPSK_INT_M = 1, 29 QPSK_INT_L = 2, 30 FEC_INT = 3, 31 QPSK_STAT_H = 4, 32 QPSK_STAT_L = 5, 33 FEC_STATUS = 6, 34 LNB_FREQ_H = 7, 35 LNB_FREQ_L = 8, 36 M_SNR_H = 9, 37 M_SNR_L = 10, 38 VIT_ERRCNT_H = 11, 39 VIT_ERRCNT_M = 12, 40 VIT_ERRCNT_L = 13, 41 RS_BERCNT_H = 14, 42 RS_BERCNT_M = 15, 43 RS_BERCNT_L = 16, 44 RS_UBC_H = 17, 45 RS_UBC_L = 18, 46 SIG_LEVEL = 19, 47 GPP_CTRL = 20, 48 RESET = 21, 49 DISEQC_MODE = 22, 50 SYM_RATE_H = 23, 51 SYM_RATE_L = 24, 52 VIT_MODE = 25, 53 QPSK_CTRL = 26, 54 GO = 27, 55 IE_QPSK_H = 28, 56 IE_QPSK_M = 29, 57 IE_QPSK_L = 30, 58 IE_FEC = 31, 59 QPSK_STAT_EN = 32, 60 FEC_STAT_EN = 33, 61 SYS_CLK = 34, 62 DISEQC_RATIO = 35, 63 DISEQC_INSTR = 36, 64 FR_LIM = 37, 65 FR_OFF = 38, 66 AGC_CTRL = 39, 67 AGC_INIT = 40, 68 AGC_REF = 41, 69 AGC_MAX = 42, 70 AGC_MIN = 43, 71 AGC_LK_TH = 44, 72 TS_AGC_LK_TH = 45, 73 AGC_PWR_SET = 46, 74 QPSK_MISC = 47, 75 SNR_THS_LOW = 48, 76 SNR_THS_HIGH = 49, 77 TS_SW_RATE = 50, 78 TS_SW_LIM_L = 51, 79 TS_SW_LIM_H = 52, 80 CS_SW_RATE_1 = 53, 81 CS_SW_RATE_2 = 54, 82 CS_SW_RATE_3 = 55, 83 CS_SW_RATE_4 = 56, 84 CS_SW_LIM = 57, 85 TS_LPK = 58, 86 TS_LPK_M = 59, 87 TS_LPK_L = 60, 88 CS_KPROP_H = 61, 89 CS_KPROP_L = 62, 90 CS_KINT_H = 63, 91 CS_KINT_L = 64, 92 QPSK_SCALE = 65, 93 TLD_OUTCLK_TH = 66, 94 TLD_INCLK_TH = 67, 95 FLD_TH = 68, 96 PLD_OUTLK3 = 69, 97 PLD_OUTLK2 = 70, 98 PLD_OUTLK1 = 71, 99 PLD_OUTLK0 = 72, 100 PLD_INLK3 = 73, 101 PLD_INLK2 = 74, 102 PLD_INLK1 = 75, 103 PLD_INLK0 = 76, 104 PLD_ACC_TIME = 77, 105 SWEEP_PAR = 78, 106 STARTUP_TIME = 79, 107 LOSSLOCK_TH = 80, 108 FEC_LOCK_TM = 81, 109 LOSSLOCK_TM = 82, 110 VIT_ERRPER_H = 83, 111 VIT_ERRPER_M = 84, 112 VIT_ERRPER_L = 85, 113 HW_CTRL = 84, /* ZL10313 only */ 114 MPEG_CTRL = 85, /* ZL10313 only */ 115 VIT_SETUP = 86, 116 VIT_REF0 = 87, 117 VIT_REF1 = 88, 118 VIT_REF2 = 89, 119 VIT_REF3 = 90, 120 VIT_REF4 = 91, 121 VIT_REF5 = 92, 122 VIT_REF6 = 93, 123 VIT_MAXERR = 94, 124 BA_SETUPT = 95, 125 OP_CTRL = 96, 126 FEC_SETUP = 97, 127 PROG_SYNC = 98, 128 AFC_SEAR_TH = 99, 129 CSACC_DIF_TH = 100, 130 QPSK_LK_CT = 101, 131 QPSK_ST_CT = 102, 132 MON_CTRL = 103, 133 QPSK_RESET = 104, 134 QPSK_TST_CT = 105, 135 QPSK_TST_ST = 106, 136 TEST_R = 107, 137 AGC_H = 108, 138 AGC_M = 109, 139 AGC_L = 110, 140 FREQ_ERR1_H = 111, 141 FREQ_ERR1_M = 112, 142 FREQ_ERR1_L = 113, 143 FREQ_ERR2_H = 114, 144 FREQ_ERR2_L = 115, 145 SYM_RAT_OP_H = 116, 146 SYM_RAT_OP_L = 117, 147 DESEQC2_INT = 118, 148 DISEQC2_STAT = 119, 149 DISEQC2_FIFO = 120, 150 DISEQC2_CTRL1 = 121, 151 DISEQC2_CTRL2 = 122, 152 MONITOR_H = 123, 153 MONITOR_L = 124, 154 TEST_MODE = 125, 155 ID = 126, 156 CONFIG = 127 157}; 158 159enum mt312_model_id { 160 ID_VP310 = 1, 161 ID_MT312 = 3, 162 ID_ZL10313 = 5, 163}; 164 165#endif /* DVB_FRONTENDS_MT312_PRIV */ 166