Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
| 26 | enum 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 | VIT_SETUP = 86, |
| 114 | VIT_REF0 = 87, |
| 115 | VIT_REF1 = 88, |
| 116 | VIT_REF2 = 89, |
| 117 | VIT_REF3 = 90, |
| 118 | VIT_REF4 = 91, |
| 119 | VIT_REF5 = 92, |
| 120 | VIT_REF6 = 93, |
| 121 | VIT_MAXERR = 94, |
| 122 | BA_SETUPT = 95, |
| 123 | OP_CTRL = 96, |
| 124 | FEC_SETUP = 97, |
| 125 | PROG_SYNC = 98, |
| 126 | AFC_SEAR_TH = 99, |
| 127 | CSACC_DIF_TH = 100, |
| 128 | QPSK_LK_CT = 101, |
| 129 | QPSK_ST_CT = 102, |
| 130 | MON_CTRL = 103, |
| 131 | QPSK_RESET = 104, |
| 132 | QPSK_TST_CT = 105, |
| 133 | QPSK_TST_ST = 106, |
| 134 | TEST_R = 107, |
| 135 | AGC_H = 108, |
| 136 | AGC_M = 109, |
| 137 | AGC_L = 110, |
| 138 | FREQ_ERR1_H = 111, |
| 139 | FREQ_ERR1_M = 112, |
| 140 | FREQ_ERR1_L = 113, |
| 141 | FREQ_ERR2_H = 114, |
| 142 | FREQ_ERR2_L = 115, |
| 143 | SYM_RAT_OP_H = 116, |
| 144 | SYM_RAT_OP_L = 117, |
| 145 | DESEQC2_INT = 118, |
| 146 | DISEQC2_STAT = 119, |
| 147 | DISEQC2_FIFO = 120, |
| 148 | DISEQC2_CTRL1 = 121, |
| 149 | DISEQC2_CTRL2 = 122, |
| 150 | MONITOR_H = 123, |
| 151 | MONITOR_L = 124, |
| 152 | TEST_MODE = 125, |
| 153 | ID = 126, |
| 154 | CONFIG = 127 |
| 155 | }; |
| 156 | |
| 157 | enum mt312_model_id { |
| 158 | ID_VP310 = 1, |
| 159 | ID_MT312 = 3 |
| 160 | }; |
| 161 | |
| 162 | #endif /* DVB_FRONTENDS_MT312_PRIV */ |