1*74ba9207SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */ 29a0bf528SMauro Carvalho Chehab /* 39a0bf528SMauro Carvalho Chehab Fujitsu MB86A16 DVB-S/DSS DC Receiver driver 49a0bf528SMauro Carvalho Chehab 59a0bf528SMauro Carvalho Chehab Copyright (C) Manu Abraham (abraham.manu@gmail.com) 69a0bf528SMauro Carvalho Chehab 79a0bf528SMauro Carvalho Chehab */ 89a0bf528SMauro Carvalho Chehab 99a0bf528SMauro Carvalho Chehab #ifndef __MB86A16_PRIV_H 109a0bf528SMauro Carvalho Chehab #define __MB86A16_PRIV_H 119a0bf528SMauro Carvalho Chehab 129a0bf528SMauro Carvalho Chehab #define MB86A16_TSOUT 0x00 139a0bf528SMauro Carvalho Chehab #define MB86A16_TSOUT_HIZSEL (0x01 << 5) 149a0bf528SMauro Carvalho Chehab #define MB86A16_TSOUT_HIZCNTI (0x01 << 4) 159a0bf528SMauro Carvalho Chehab #define MB86A16_TSOUT_MODE (0x01 << 3) 169a0bf528SMauro Carvalho Chehab #define MB86A16_TSOUT_ORDER (0x01 << 2) 179a0bf528SMauro Carvalho Chehab #define MB86A16_TSOUT_ERROR (0x01 << 1) 189a0bf528SMauro Carvalho Chehab #define Mb86A16_TSOUT_EDGE (0x01 << 0) 199a0bf528SMauro Carvalho Chehab 209a0bf528SMauro Carvalho Chehab #define MB86A16_FEC 0x01 219a0bf528SMauro Carvalho Chehab #define MB86A16_FEC_FSYNC (0x01 << 5) 229a0bf528SMauro Carvalho Chehab #define MB86A16_FEC_PCKB8 (0x01 << 4) 239a0bf528SMauro Carvalho Chehab #define MB86A16_FEC_DVDS (0x01 << 3) 249a0bf528SMauro Carvalho Chehab #define MB86A16_FEC_EREN (0x01 << 2) 259a0bf528SMauro Carvalho Chehab #define Mb86A16_FEC_RSEN (0x01 << 1) 269a0bf528SMauro Carvalho Chehab #define MB86A16_FEC_DIEN (0x01 << 0) 279a0bf528SMauro Carvalho Chehab 289a0bf528SMauro Carvalho Chehab #define MB86A16_AGC 0x02 299a0bf528SMauro Carvalho Chehab #define MB86A16_AGC_AGMD (0x01 << 6) 309a0bf528SMauro Carvalho Chehab #define MB86A16_AGC_AGCW (0x0f << 2) 319a0bf528SMauro Carvalho Chehab #define MB86A16_AGC_AGCP (0x01 << 1) 329a0bf528SMauro Carvalho Chehab #define MB86A16_AGC_AGCR (0x01 << 0) 339a0bf528SMauro Carvalho Chehab 349a0bf528SMauro Carvalho Chehab #define MB86A16_SRATE1 0x03 359a0bf528SMauro Carvalho Chehab #define MB86A16_SRATE1_DECI (0x07 << 2) 369a0bf528SMauro Carvalho Chehab #define MB86A16_SRATE1_CSEL (0x01 << 1) 379a0bf528SMauro Carvalho Chehab #define MB86A16_SRATE1_RSEL (0x01 << 0) 389a0bf528SMauro Carvalho Chehab 399a0bf528SMauro Carvalho Chehab #define MB86A16_SRATE2 0x04 409a0bf528SMauro Carvalho Chehab #define MB86A16_SRATE2_STOFSL (0xff << 0) 419a0bf528SMauro Carvalho Chehab 429a0bf528SMauro Carvalho Chehab #define MB86A16_SRATE3 0x05 439a0bf528SMauro Carvalho Chehab #define MB86A16_SRATE2_STOFSH (0xff << 0) 449a0bf528SMauro Carvalho Chehab 459a0bf528SMauro Carvalho Chehab #define MB86A16_VITERBI 0x06 469a0bf528SMauro Carvalho Chehab #define MB86A16_FRAMESYNC 0x07 479a0bf528SMauro Carvalho Chehab #define MB86A16_CRLFILTCOEF1 0x08 489a0bf528SMauro Carvalho Chehab #define MB86A16_CRLFILTCOEF2 0x09 499a0bf528SMauro Carvalho Chehab #define MB86A16_STRFILTCOEF1 0x0a 509a0bf528SMauro Carvalho Chehab #define MB86A16_STRFILTCOEF2 0x0b 519a0bf528SMauro Carvalho Chehab #define MB86A16_RESET 0x0c 529a0bf528SMauro Carvalho Chehab #define MB86A16_STATUS 0x0d 539a0bf528SMauro Carvalho Chehab #define MB86A16_AFCML 0x0e 549a0bf528SMauro Carvalho Chehab #define MB86A16_AFCMH 0x0f 559a0bf528SMauro Carvalho Chehab #define MB86A16_BERMON 0x10 569a0bf528SMauro Carvalho Chehab #define MB86A16_BERTAB 0x11 579a0bf528SMauro Carvalho Chehab #define MB86A16_BERLSB 0x12 589a0bf528SMauro Carvalho Chehab #define MB86A16_BERMID 0x13 599a0bf528SMauro Carvalho Chehab #define MB86A16_BERMSB 0x14 609a0bf528SMauro Carvalho Chehab #define MB86A16_AGCM 0x15 619a0bf528SMauro Carvalho Chehab 629a0bf528SMauro Carvalho Chehab #define MB86A16_DCC1 0x16 639a0bf528SMauro Carvalho Chehab #define MB86A16_DCC1_DISTA (0x01 << 7) 649a0bf528SMauro Carvalho Chehab #define MB86A16_DCC1_PRTY (0x01 << 6) 659a0bf528SMauro Carvalho Chehab #define MB86A16_DCC1_CTOE (0x01 << 5) 669a0bf528SMauro Carvalho Chehab #define MB86A16_DCC1_TBEN (0x01 << 4) 679a0bf528SMauro Carvalho Chehab #define MB86A16_DCC1_TBO (0x01 << 3) 689a0bf528SMauro Carvalho Chehab #define MB86A16_DCC1_NUM (0x07 << 0) 699a0bf528SMauro Carvalho Chehab 709a0bf528SMauro Carvalho Chehab #define MB86A16_DCC2 0x17 719a0bf528SMauro Carvalho Chehab #define MB86A16_DCC2_DCBST (0x01 << 0) 729a0bf528SMauro Carvalho Chehab 739a0bf528SMauro Carvalho Chehab #define MB86A16_DCC3 0x18 749a0bf528SMauro Carvalho Chehab #define MB86A16_DCC3_CODE0 (0xff << 0) 759a0bf528SMauro Carvalho Chehab 769a0bf528SMauro Carvalho Chehab #define MB86A16_DCC4 0x19 779a0bf528SMauro Carvalho Chehab #define MB86A16_DCC4_CODE1 (0xff << 0) 789a0bf528SMauro Carvalho Chehab 799a0bf528SMauro Carvalho Chehab #define MB86A16_DCC5 0x1a 809a0bf528SMauro Carvalho Chehab #define MB86A16_DCC5_CODE2 (0xff << 0) 819a0bf528SMauro Carvalho Chehab 829a0bf528SMauro Carvalho Chehab #define MB86A16_DCC6 0x1b 839a0bf528SMauro Carvalho Chehab #define MB86A16_DCC6_CODE3 (0xff << 0) 849a0bf528SMauro Carvalho Chehab 859a0bf528SMauro Carvalho Chehab #define MB86A16_DCC7 0x1c 869a0bf528SMauro Carvalho Chehab #define MB86A16_DCC7_CODE4 (0xff << 0) 879a0bf528SMauro Carvalho Chehab 889a0bf528SMauro Carvalho Chehab #define MB86A16_DCC8 0x1d 899a0bf528SMauro Carvalho Chehab #define MB86A16_DCC8_CODE5 (0xff << 0) 909a0bf528SMauro Carvalho Chehab 919a0bf528SMauro Carvalho Chehab #define MB86A16_DCCOUT 0x1e 929a0bf528SMauro Carvalho Chehab #define MB86A16_DCCOUT_DISEN (0x01 << 0) 939a0bf528SMauro Carvalho Chehab 949a0bf528SMauro Carvalho Chehab #define MB86A16_TONEOUT1 0x1f 959a0bf528SMauro Carvalho Chehab #define MB86A16_TONE_TDIVL (0xff << 0) 969a0bf528SMauro Carvalho Chehab 979a0bf528SMauro Carvalho Chehab #define MB86A16_TONEOUT2 0x20 989a0bf528SMauro Carvalho Chehab #define MB86A16_TONE_TMD (0x03 << 2) 999a0bf528SMauro Carvalho Chehab #define MB86A16_TONE_TDIVH (0x03 << 0) 1009a0bf528SMauro Carvalho Chehab 1019a0bf528SMauro Carvalho Chehab #define MB86A16_FREQ1 0x21 1029a0bf528SMauro Carvalho Chehab #define MB86A16_FREQ2 0x22 1039a0bf528SMauro Carvalho Chehab #define MB86A16_FREQ3 0x23 1049a0bf528SMauro Carvalho Chehab #define MB86A16_FREQ4 0x24 1059a0bf528SMauro Carvalho Chehab #define MB86A16_FREQSET 0x25 1069a0bf528SMauro Carvalho Chehab #define MB86A16_CNM 0x26 1079a0bf528SMauro Carvalho Chehab #define MB86A16_PORT0 0x27 1089a0bf528SMauro Carvalho Chehab #define MB86A16_PORT1 0x28 1099a0bf528SMauro Carvalho Chehab #define MB86A16_DRCFILT 0x29 1109a0bf528SMauro Carvalho Chehab #define MB86A16_AFC 0x2a 1119a0bf528SMauro Carvalho Chehab #define MB86A16_AFCEXL 0x2b 1129a0bf528SMauro Carvalho Chehab #define MB86A16_AFCEXH 0x2c 1139a0bf528SMauro Carvalho Chehab #define MB86A16_DAGC 0x2d 1149a0bf528SMauro Carvalho Chehab #define MB86A16_SEQMODE 0x32 1159a0bf528SMauro Carvalho Chehab #define MB86A16_S0S1T 0x33 1169a0bf528SMauro Carvalho Chehab #define MB86A16_S2S3T 0x34 1179a0bf528SMauro Carvalho Chehab #define MB86A16_S4S5T 0x35 1189a0bf528SMauro Carvalho Chehab #define MB86A16_CNTMR 0x36 1199a0bf528SMauro Carvalho Chehab #define MB86A16_SIG1 0x37 1209a0bf528SMauro Carvalho Chehab #define MB86A16_SIG2 0x38 1219a0bf528SMauro Carvalho Chehab #define MB86A16_VIMAG 0x39 1229a0bf528SMauro Carvalho Chehab #define MB86A16_VISET1 0x3a 1239a0bf528SMauro Carvalho Chehab #define MB86A16_VISET2 0x3b 1249a0bf528SMauro Carvalho Chehab #define MB86A16_VISET3 0x3c 1259a0bf528SMauro Carvalho Chehab #define MB86A16_FAGCS1 0x3d 1269a0bf528SMauro Carvalho Chehab #define MB86A16_FAGCS2 0x3e 1279a0bf528SMauro Carvalho Chehab #define MB86A16_FAGCS3 0x3f 1289a0bf528SMauro Carvalho Chehab #define MB86A16_FAGCS4 0x40 1299a0bf528SMauro Carvalho Chehab #define MB86A16_FAGCS5 0x41 1309a0bf528SMauro Carvalho Chehab #define MB86A16_FAGCS6 0x42 1319a0bf528SMauro Carvalho Chehab #define MB86A16_CRM 0x43 1329a0bf528SMauro Carvalho Chehab #define MB86A16_STRM 0x44 1339a0bf528SMauro Carvalho Chehab #define MB86A16_DAGCML 0x45 1349a0bf528SMauro Carvalho Chehab #define MB86A16_DAGCMH 0x46 1359a0bf528SMauro Carvalho Chehab #define MB86A16_QPSKTST 0x49 1369a0bf528SMauro Carvalho Chehab #define MB86A16_DISTMON 0x52 1379a0bf528SMauro Carvalho Chehab #define MB86A16_VERSION 0x7f 1389a0bf528SMauro Carvalho Chehab 1399a0bf528SMauro Carvalho Chehab #endif /* __MB86A16_PRIV_H */ 140