Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / media / dvb-frontends / tda10086.h
blob8776fadbdc739523fd4f340df5ec7a5d038aa0b4
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 Driver for Philips tda10086 DVBS Frontend
5 (c) 2006 Andrew de Quincey
8 */
10 #ifndef TDA10086_H
11 #define TDA10086_H
13 #include <linux/dvb/frontend.h>
14 #include <linux/firmware.h>
16 enum tda10086_xtal {
17 TDA10086_XTAL_16M,
18 TDA10086_XTAL_4M
21 struct tda10086_config
23 /* the demodulator's i2c address */
24 u8 demod_address;
26 /* does the "inversion" need inverted? */
27 u8 invert;
29 /* do we need the diseqc signal with carrier? */
30 u8 diseqc_tone;
32 /* frequency of the reference xtal */
33 enum tda10086_xtal xtal_freq;
36 #if IS_REACHABLE(CONFIG_DVB_TDA10086)
37 extern struct dvb_frontend* tda10086_attach(const struct tda10086_config* config,
38 struct i2c_adapter* i2c);
39 #else
40 static inline struct dvb_frontend* tda10086_attach(const struct tda10086_config* config,
41 struct i2c_adapter* i2c)
43 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
44 return NULL;
46 #endif /* CONFIG_DVB_TDA10086 */
48 #endif /* TDA10086_H */