1*74ba9207SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */ 29a0bf528SMauro Carvalho Chehab /* 39a0bf528SMauro Carvalho Chehab Driver for Zarlink MT312 QPSK Frontend 49a0bf528SMauro Carvalho Chehab 59a0bf528SMauro Carvalho Chehab Copyright (C) 2003 Andreas Oberritter <obi@linuxtv.org> 69a0bf528SMauro Carvalho Chehab 79a0bf528SMauro Carvalho Chehab 89a0bf528SMauro Carvalho Chehab */ 99a0bf528SMauro Carvalho Chehab 109a0bf528SMauro Carvalho Chehab #ifndef _DVB_FRONTENDS_MT312_PRIV 119a0bf528SMauro Carvalho Chehab #define _DVB_FRONTENDS_MT312_PRIV 129a0bf528SMauro Carvalho Chehab 139a0bf528SMauro Carvalho Chehab enum mt312_reg_addr { 149a0bf528SMauro Carvalho Chehab QPSK_INT_H = 0, 159a0bf528SMauro Carvalho Chehab QPSK_INT_M = 1, 169a0bf528SMauro Carvalho Chehab QPSK_INT_L = 2, 179a0bf528SMauro Carvalho Chehab FEC_INT = 3, 189a0bf528SMauro Carvalho Chehab QPSK_STAT_H = 4, 199a0bf528SMauro Carvalho Chehab QPSK_STAT_L = 5, 209a0bf528SMauro Carvalho Chehab FEC_STATUS = 6, 219a0bf528SMauro Carvalho Chehab LNB_FREQ_H = 7, 229a0bf528SMauro Carvalho Chehab LNB_FREQ_L = 8, 239a0bf528SMauro Carvalho Chehab M_SNR_H = 9, 249a0bf528SMauro Carvalho Chehab M_SNR_L = 10, 259a0bf528SMauro Carvalho Chehab VIT_ERRCNT_H = 11, 269a0bf528SMauro Carvalho Chehab VIT_ERRCNT_M = 12, 279a0bf528SMauro Carvalho Chehab VIT_ERRCNT_L = 13, 289a0bf528SMauro Carvalho Chehab RS_BERCNT_H = 14, 299a0bf528SMauro Carvalho Chehab RS_BERCNT_M = 15, 309a0bf528SMauro Carvalho Chehab RS_BERCNT_L = 16, 319a0bf528SMauro Carvalho Chehab RS_UBC_H = 17, 329a0bf528SMauro Carvalho Chehab RS_UBC_L = 18, 339a0bf528SMauro Carvalho Chehab SIG_LEVEL = 19, 349a0bf528SMauro Carvalho Chehab GPP_CTRL = 20, 359a0bf528SMauro Carvalho Chehab RESET = 21, 369a0bf528SMauro Carvalho Chehab DISEQC_MODE = 22, 379a0bf528SMauro Carvalho Chehab SYM_RATE_H = 23, 389a0bf528SMauro Carvalho Chehab SYM_RATE_L = 24, 399a0bf528SMauro Carvalho Chehab VIT_MODE = 25, 409a0bf528SMauro Carvalho Chehab QPSK_CTRL = 26, 419a0bf528SMauro Carvalho Chehab GO = 27, 429a0bf528SMauro Carvalho Chehab IE_QPSK_H = 28, 439a0bf528SMauro Carvalho Chehab IE_QPSK_M = 29, 449a0bf528SMauro Carvalho Chehab IE_QPSK_L = 30, 459a0bf528SMauro Carvalho Chehab IE_FEC = 31, 469a0bf528SMauro Carvalho Chehab QPSK_STAT_EN = 32, 479a0bf528SMauro Carvalho Chehab FEC_STAT_EN = 33, 489a0bf528SMauro Carvalho Chehab SYS_CLK = 34, 499a0bf528SMauro Carvalho Chehab DISEQC_RATIO = 35, 509a0bf528SMauro Carvalho Chehab DISEQC_INSTR = 36, 519a0bf528SMauro Carvalho Chehab FR_LIM = 37, 529a0bf528SMauro Carvalho Chehab FR_OFF = 38, 539a0bf528SMauro Carvalho Chehab AGC_CTRL = 39, 549a0bf528SMauro Carvalho Chehab AGC_INIT = 40, 559a0bf528SMauro Carvalho Chehab AGC_REF = 41, 569a0bf528SMauro Carvalho Chehab AGC_MAX = 42, 579a0bf528SMauro Carvalho Chehab AGC_MIN = 43, 589a0bf528SMauro Carvalho Chehab AGC_LK_TH = 44, 599a0bf528SMauro Carvalho Chehab TS_AGC_LK_TH = 45, 609a0bf528SMauro Carvalho Chehab AGC_PWR_SET = 46, 619a0bf528SMauro Carvalho Chehab QPSK_MISC = 47, 629a0bf528SMauro Carvalho Chehab SNR_THS_LOW = 48, 639a0bf528SMauro Carvalho Chehab SNR_THS_HIGH = 49, 649a0bf528SMauro Carvalho Chehab TS_SW_RATE = 50, 659a0bf528SMauro Carvalho Chehab TS_SW_LIM_L = 51, 669a0bf528SMauro Carvalho Chehab TS_SW_LIM_H = 52, 679a0bf528SMauro Carvalho Chehab CS_SW_RATE_1 = 53, 689a0bf528SMauro Carvalho Chehab CS_SW_RATE_2 = 54, 699a0bf528SMauro Carvalho Chehab CS_SW_RATE_3 = 55, 709a0bf528SMauro Carvalho Chehab CS_SW_RATE_4 = 56, 719a0bf528SMauro Carvalho Chehab CS_SW_LIM = 57, 729a0bf528SMauro Carvalho Chehab TS_LPK = 58, 739a0bf528SMauro Carvalho Chehab TS_LPK_M = 59, 749a0bf528SMauro Carvalho Chehab TS_LPK_L = 60, 759a0bf528SMauro Carvalho Chehab CS_KPROP_H = 61, 769a0bf528SMauro Carvalho Chehab CS_KPROP_L = 62, 779a0bf528SMauro Carvalho Chehab CS_KINT_H = 63, 789a0bf528SMauro Carvalho Chehab CS_KINT_L = 64, 799a0bf528SMauro Carvalho Chehab QPSK_SCALE = 65, 809a0bf528SMauro Carvalho Chehab TLD_OUTCLK_TH = 66, 819a0bf528SMauro Carvalho Chehab TLD_INCLK_TH = 67, 829a0bf528SMauro Carvalho Chehab FLD_TH = 68, 839a0bf528SMauro Carvalho Chehab PLD_OUTLK3 = 69, 849a0bf528SMauro Carvalho Chehab PLD_OUTLK2 = 70, 859a0bf528SMauro Carvalho Chehab PLD_OUTLK1 = 71, 869a0bf528SMauro Carvalho Chehab PLD_OUTLK0 = 72, 879a0bf528SMauro Carvalho Chehab PLD_INLK3 = 73, 889a0bf528SMauro Carvalho Chehab PLD_INLK2 = 74, 899a0bf528SMauro Carvalho Chehab PLD_INLK1 = 75, 909a0bf528SMauro Carvalho Chehab PLD_INLK0 = 76, 919a0bf528SMauro Carvalho Chehab PLD_ACC_TIME = 77, 929a0bf528SMauro Carvalho Chehab SWEEP_PAR = 78, 939a0bf528SMauro Carvalho Chehab STARTUP_TIME = 79, 949a0bf528SMauro Carvalho Chehab LOSSLOCK_TH = 80, 959a0bf528SMauro Carvalho Chehab FEC_LOCK_TM = 81, 969a0bf528SMauro Carvalho Chehab LOSSLOCK_TM = 82, 979a0bf528SMauro Carvalho Chehab VIT_ERRPER_H = 83, 989a0bf528SMauro Carvalho Chehab VIT_ERRPER_M = 84, 999a0bf528SMauro Carvalho Chehab VIT_ERRPER_L = 85, 1009a0bf528SMauro Carvalho Chehab HW_CTRL = 84, /* ZL10313 only */ 1019a0bf528SMauro Carvalho Chehab MPEG_CTRL = 85, /* ZL10313 only */ 1029a0bf528SMauro Carvalho Chehab VIT_SETUP = 86, 1039a0bf528SMauro Carvalho Chehab VIT_REF0 = 87, 1049a0bf528SMauro Carvalho Chehab VIT_REF1 = 88, 1059a0bf528SMauro Carvalho Chehab VIT_REF2 = 89, 1069a0bf528SMauro Carvalho Chehab VIT_REF3 = 90, 1079a0bf528SMauro Carvalho Chehab VIT_REF4 = 91, 1089a0bf528SMauro Carvalho Chehab VIT_REF5 = 92, 1099a0bf528SMauro Carvalho Chehab VIT_REF6 = 93, 1109a0bf528SMauro Carvalho Chehab VIT_MAXERR = 94, 1119a0bf528SMauro Carvalho Chehab BA_SETUPT = 95, 1129a0bf528SMauro Carvalho Chehab OP_CTRL = 96, 1139a0bf528SMauro Carvalho Chehab FEC_SETUP = 97, 1149a0bf528SMauro Carvalho Chehab PROG_SYNC = 98, 1159a0bf528SMauro Carvalho Chehab AFC_SEAR_TH = 99, 1169a0bf528SMauro Carvalho Chehab CSACC_DIF_TH = 100, 1179a0bf528SMauro Carvalho Chehab QPSK_LK_CT = 101, 1189a0bf528SMauro Carvalho Chehab QPSK_ST_CT = 102, 1199a0bf528SMauro Carvalho Chehab MON_CTRL = 103, 1209a0bf528SMauro Carvalho Chehab QPSK_RESET = 104, 1219a0bf528SMauro Carvalho Chehab QPSK_TST_CT = 105, 1229a0bf528SMauro Carvalho Chehab QPSK_TST_ST = 106, 1239a0bf528SMauro Carvalho Chehab TEST_R = 107, 1249a0bf528SMauro Carvalho Chehab AGC_H = 108, 1259a0bf528SMauro Carvalho Chehab AGC_M = 109, 1269a0bf528SMauro Carvalho Chehab AGC_L = 110, 1279a0bf528SMauro Carvalho Chehab FREQ_ERR1_H = 111, 1289a0bf528SMauro Carvalho Chehab FREQ_ERR1_M = 112, 1299a0bf528SMauro Carvalho Chehab FREQ_ERR1_L = 113, 1309a0bf528SMauro Carvalho Chehab FREQ_ERR2_H = 114, 1319a0bf528SMauro Carvalho Chehab FREQ_ERR2_L = 115, 1329a0bf528SMauro Carvalho Chehab SYM_RAT_OP_H = 116, 1339a0bf528SMauro Carvalho Chehab SYM_RAT_OP_L = 117, 1349a0bf528SMauro Carvalho Chehab DESEQC2_INT = 118, 1359a0bf528SMauro Carvalho Chehab DISEQC2_STAT = 119, 1369a0bf528SMauro Carvalho Chehab DISEQC2_FIFO = 120, 1379a0bf528SMauro Carvalho Chehab DISEQC2_CTRL1 = 121, 1389a0bf528SMauro Carvalho Chehab DISEQC2_CTRL2 = 122, 1399a0bf528SMauro Carvalho Chehab MONITOR_H = 123, 1409a0bf528SMauro Carvalho Chehab MONITOR_L = 124, 1419a0bf528SMauro Carvalho Chehab TEST_MODE = 125, 1429a0bf528SMauro Carvalho Chehab ID = 126, 1439a0bf528SMauro Carvalho Chehab CONFIG = 127 1449a0bf528SMauro Carvalho Chehab }; 1459a0bf528SMauro Carvalho Chehab 1469a0bf528SMauro Carvalho Chehab enum mt312_model_id { 1479a0bf528SMauro Carvalho Chehab ID_VP310 = 1, 1489a0bf528SMauro Carvalho Chehab ID_MT312 = 3, 1499a0bf528SMauro Carvalho Chehab ID_ZL10313 = 5, 1509a0bf528SMauro Carvalho Chehab }; 1519a0bf528SMauro Carvalho Chehab 1529a0bf528SMauro Carvalho Chehab #endif /* DVB_FRONTENDS_MT312_PRIV */ 153