]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - drivers/media/dvb-frontends/ts2020.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 Montage Technology TS2020 - Silicon Tuner driver
4 Copyright (C) 2009-2012 Konstantin Dimitrov <kosio.dimitrov@gmail.com>
6 Copyright (C) 2009-2012 TurboSight.com
13 #include <linux/dvb/frontend.h>
15 struct ts2020_config
{
27 #define TS2020_CLK_OUT_DISABLED 0
28 #define TS2020_CLK_OUT_ENABLED 1
29 #define TS2020_CLK_OUT_ENABLED_XTALOUT 2
33 * clock output divider
38 /* Set to true to suppress stat polling */
42 * pointer to DVB frontend
44 struct dvb_frontend
*fe
;
47 * driver private, do not set value
51 /* Operation to be called by the ts2020 driver to get the value of the
52 * AGC PWM tuner input as theoretically output by the demodulator.
54 int (*get_agc_pwm
)(struct dvb_frontend
*fe
, u8
*_agc_pwm
);
57 /* Do not add new ts2020_attach() users! Use I2C bindings instead. */
58 #if IS_REACHABLE(CONFIG_DVB_TS2020)
59 extern struct dvb_frontend
*ts2020_attach(
60 struct dvb_frontend
*fe
,
61 const struct ts2020_config
*config
,
62 struct i2c_adapter
*i2c
);
64 static inline struct dvb_frontend
*ts2020_attach(
65 struct dvb_frontend
*fe
,
66 const struct ts2020_config
*config
,
67 struct i2c_adapter
*i2c
)
69 printk(KERN_WARNING
"%s: driver disabled by Kconfig\n", __func__
);