140 lines · c
1/* SPDX-License-Identifier: GPL-2.0-or-later */2/*3 Fujitsu MB86A16 DVB-S/DSS DC Receiver driver4 5 Copyright (C) Manu Abraham (abraham.manu@gmail.com)6 7*/8 9#ifndef __MB86A16_PRIV_H10#define __MB86A16_PRIV_H11 12#define MB86A16_TSOUT 0x0013#define MB86A16_TSOUT_HIZSEL (0x01 << 5)14#define MB86A16_TSOUT_HIZCNTI (0x01 << 4)15#define MB86A16_TSOUT_MODE (0x01 << 3)16#define MB86A16_TSOUT_ORDER (0x01 << 2)17#define MB86A16_TSOUT_ERROR (0x01 << 1)18#define Mb86A16_TSOUT_EDGE (0x01 << 0)19 20#define MB86A16_FEC 0x0121#define MB86A16_FEC_FSYNC (0x01 << 5)22#define MB86A16_FEC_PCKB8 (0x01 << 4)23#define MB86A16_FEC_DVDS (0x01 << 3)24#define MB86A16_FEC_EREN (0x01 << 2)25#define Mb86A16_FEC_RSEN (0x01 << 1)26#define MB86A16_FEC_DIEN (0x01 << 0)27 28#define MB86A16_AGC 0x0229#define MB86A16_AGC_AGMD (0x01 << 6)30#define MB86A16_AGC_AGCW (0x0f << 2)31#define MB86A16_AGC_AGCP (0x01 << 1)32#define MB86A16_AGC_AGCR (0x01 << 0)33 34#define MB86A16_SRATE1 0x0335#define MB86A16_SRATE1_DECI (0x07 << 2)36#define MB86A16_SRATE1_CSEL (0x01 << 1)37#define MB86A16_SRATE1_RSEL (0x01 << 0)38 39#define MB86A16_SRATE2 0x0440#define MB86A16_SRATE2_STOFSL (0xff << 0)41 42#define MB86A16_SRATE3 0x0543#define MB86A16_SRATE2_STOFSH (0xff << 0)44 45#define MB86A16_VITERBI 0x0646#define MB86A16_FRAMESYNC 0x0747#define MB86A16_CRLFILTCOEF1 0x0848#define MB86A16_CRLFILTCOEF2 0x0949#define MB86A16_STRFILTCOEF1 0x0a50#define MB86A16_STRFILTCOEF2 0x0b51#define MB86A16_RESET 0x0c52#define MB86A16_STATUS 0x0d53#define MB86A16_AFCML 0x0e54#define MB86A16_AFCMH 0x0f55#define MB86A16_BERMON 0x1056#define MB86A16_BERTAB 0x1157#define MB86A16_BERLSB 0x1258#define MB86A16_BERMID 0x1359#define MB86A16_BERMSB 0x1460#define MB86A16_AGCM 0x1561 62#define MB86A16_DCC1 0x1663#define MB86A16_DCC1_DISTA (0x01 << 7)64#define MB86A16_DCC1_PRTY (0x01 << 6)65#define MB86A16_DCC1_CTOE (0x01 << 5)66#define MB86A16_DCC1_TBEN (0x01 << 4)67#define MB86A16_DCC1_TBO (0x01 << 3)68#define MB86A16_DCC1_NUM (0x07 << 0)69 70#define MB86A16_DCC2 0x1771#define MB86A16_DCC2_DCBST (0x01 << 0)72 73#define MB86A16_DCC3 0x1874#define MB86A16_DCC3_CODE0 (0xff << 0)75 76#define MB86A16_DCC4 0x1977#define MB86A16_DCC4_CODE1 (0xff << 0)78 79#define MB86A16_DCC5 0x1a80#define MB86A16_DCC5_CODE2 (0xff << 0)81 82#define MB86A16_DCC6 0x1b83#define MB86A16_DCC6_CODE3 (0xff << 0)84 85#define MB86A16_DCC7 0x1c86#define MB86A16_DCC7_CODE4 (0xff << 0)87 88#define MB86A16_DCC8 0x1d89#define MB86A16_DCC8_CODE5 (0xff << 0)90 91#define MB86A16_DCCOUT 0x1e92#define MB86A16_DCCOUT_DISEN (0x01 << 0)93 94#define MB86A16_TONEOUT1 0x1f95#define MB86A16_TONE_TDIVL (0xff << 0)96 97#define MB86A16_TONEOUT2 0x2098#define MB86A16_TONE_TMD (0x03 << 2)99#define MB86A16_TONE_TDIVH (0x03 << 0)100 101#define MB86A16_FREQ1 0x21102#define MB86A16_FREQ2 0x22103#define MB86A16_FREQ3 0x23104#define MB86A16_FREQ4 0x24105#define MB86A16_FREQSET 0x25106#define MB86A16_CNM 0x26107#define MB86A16_PORT0 0x27108#define MB86A16_PORT1 0x28109#define MB86A16_DRCFILT 0x29110#define MB86A16_AFC 0x2a111#define MB86A16_AFCEXL 0x2b112#define MB86A16_AFCEXH 0x2c113#define MB86A16_DAGC 0x2d114#define MB86A16_SEQMODE 0x32115#define MB86A16_S0S1T 0x33116#define MB86A16_S2S3T 0x34117#define MB86A16_S4S5T 0x35118#define MB86A16_CNTMR 0x36119#define MB86A16_SIG1 0x37120#define MB86A16_SIG2 0x38121#define MB86A16_VIMAG 0x39122#define MB86A16_VISET1 0x3a123#define MB86A16_VISET2 0x3b124#define MB86A16_VISET3 0x3c125#define MB86A16_FAGCS1 0x3d126#define MB86A16_FAGCS2 0x3e127#define MB86A16_FAGCS3 0x3f128#define MB86A16_FAGCS4 0x40129#define MB86A16_FAGCS5 0x41130#define MB86A16_FAGCS6 0x42131#define MB86A16_CRM 0x43132#define MB86A16_STRM 0x44133#define MB86A16_DAGCML 0x45134#define MB86A16_DAGCMH 0x46135#define MB86A16_QPSKTST 0x49136#define MB86A16_DISTMON 0x52137#define MB86A16_VERSION 0x7f138 139#endif /* __MB86A16_PRIV_H */140