Commit | Line | Data |
---|---|---|
74ba9207 | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
6bca3580 AQ |
2 | /* |
3 | Driver for Philips tda10086 DVBS Frontend | |
4 | ||
5 | (c) 2006 Andrew de Quincey | |
6 | ||
6bca3580 AQ |
7 | |
8 | */ | |
9 | ||
10 | #ifndef TDA10086_H | |
11 | #define TDA10086_H | |
12 | ||
13 | #include <linux/dvb/frontend.h> | |
14 | #include <linux/firmware.h> | |
15 | ||
9a1b04e4 HH |
16 | enum tda10086_xtal { |
17 | TDA10086_XTAL_16M, | |
18 | TDA10086_XTAL_4M | |
19 | }; | |
20 | ||
6bca3580 AQ |
21 | struct tda10086_config |
22 | { | |
23 | /* the demodulator's i2c address */ | |
24 | u8 demod_address; | |
25 | ||
26 | /* does the "inversion" need inverted? */ | |
27 | u8 invert; | |
ea75baf4 HH |
28 | |
29 | /* do we need the diseqc signal with carrier? */ | |
30 | u8 diseqc_tone; | |
9a1b04e4 HH |
31 | |
32 | /* frequency of the reference xtal */ | |
33 | enum tda10086_xtal xtal_freq; | |
6bca3580 AQ |
34 | }; |
35 | ||
9b174527 | 36 | #if IS_REACHABLE(CONFIG_DVB_TDA10086) |
6bca3580 AQ |
37 | extern struct dvb_frontend* tda10086_attach(const struct tda10086_config* config, |
38 | struct i2c_adapter* i2c); | |
fc13d929 MK |
39 | #else |
40 | static inline struct dvb_frontend* tda10086_attach(const struct tda10086_config* config, | |
41 | struct i2c_adapter* i2c) | |
42 | { | |
271ddbf7 | 43 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
fc13d929 MK |
44 | return NULL; |
45 | } | |
b1c54fe2 | 46 | #endif /* CONFIG_DVB_TDA10086 */ |
6bca3580 | 47 | |
b1c54fe2 | 48 | #endif /* TDA10086_H */ |