/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Afatech AF9033 demodulator driver * * Copyright (C) 2009 Antti Palosaari <[email protected]> * Copyright (C) 2012 Antti Palosaari <[email protected]> */ #ifndef AF9033_PRIV_H #define AF9033_PRIV_H #include <media/dvb_frontend.h> #include "af9033.h" #include <linux/math64.h> #include <linux/regmap.h> #include <linux/kernel.h> #include <linux/int_log.h> struct reg_val { … }; struct reg_val_mask { … }; struct coeff { … }; struct clock_adc { … }; struct val_snr { … }; /* Xtal clock vs. ADC clock lookup table */ static const struct clock_adc clock_adc_lut[] = …; /* Pre-calculated coeff lookup table */ static const struct coeff coeff_lut[] = …; /* * Afatech AF9033 demod init */ static const struct reg_val ofsm_init[] = …; /* * Infineon TUA 9001 tuner init * AF9033_TUNER_TUA9001 = 0x27 */ static const struct reg_val tuner_init_tua9001[] = …; /* * Fitipower FC0011 tuner init * AF9033_TUNER_FC0011 = 0x28 */ static const struct reg_val tuner_init_fc0011[] = …; /* * Fitipower FC0012 tuner init * AF9033_TUNER_FC0012 = 0x2e */ static const struct reg_val tuner_init_fc0012[] = …; /* * MaxLinear MxL5007T tuner init * AF9033_TUNER_MXL5007T = 0xa0 */ static const struct reg_val tuner_init_mxl5007t[] = …; /* * NXP TDA18218HN tuner init * AF9033_TUNER_TDA18218 = 0xa1 */ static const struct reg_val tuner_init_tda18218[] = …; /* * FCI FC2580 tuner init * AF9033_TUNER_FC2580 = 0x32 */ static const struct reg_val tuner_init_fc2580[] = …; /* * IT9133 AX demod init */ static const struct reg_val ofsm_init_it9135_v1[] = …; /* * ITE Tech IT9133 AX Omega tuner init * AF9033_TUNER_IT9135_38 = 0x38 */ static const struct reg_val tuner_init_it9135_38[] = …; /* * ITE Tech IT9133 AX Omega LNA config 1 tuner init * AF9033_TUNER_IT9135_51 = 0x51 */ static const struct reg_val tuner_init_it9135_51[] = …; /* * ITE Tech IT9133 AX Omega LNA config 2 tuner init * AF9033_TUNER_IT9135_52 = 0x52 */ static const struct reg_val tuner_init_it9135_52[] = …; /* * ITE Tech IT9133 BX demod init */ static const struct reg_val ofsm_init_it9135_v2[] = …; /* * ITE Tech IT9133 BX Omega tuner init * AF9033_TUNER_IT9135_60 = 0x60 */ static const struct reg_val tuner_init_it9135_60[] = …; /* * ITE Tech IT9133 BX Omega LNA config 1 tuner init * AF9033_TUNER_IT9135_61 = 0x61 */ static const struct reg_val tuner_init_it9135_61[] = …; /* * ITE Tech IT9133 BX Omega LNA config 2 tuner init * AF9033_TUNER_IT9135_62 = 0x62 */ static const struct reg_val tuner_init_it9135_62[] = …; /* NorDig power reference table */ static const int power_reference[][5] = …; #endif /* AF9033_PRIV_H */