0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef TDA10086_H
0011 #define TDA10086_H
0012
0013 #include <linux/dvb/frontend.h>
0014 #include <linux/firmware.h>
0015
0016 enum tda10086_xtal {
0017 TDA10086_XTAL_16M,
0018 TDA10086_XTAL_4M
0019 };
0020
0021 struct tda10086_config
0022 {
0023
0024 u8 demod_address;
0025
0026
0027 u8 invert;
0028
0029
0030 u8 diseqc_tone;
0031
0032
0033 enum tda10086_xtal xtal_freq;
0034 };
0035
0036 #if IS_REACHABLE(CONFIG_DVB_TDA10086)
0037 extern struct dvb_frontend* tda10086_attach(const struct tda10086_config* config,
0038 struct i2c_adapter* i2c);
0039 #else
0040 static inline struct dvb_frontend* tda10086_attach(const struct tda10086_config* config,
0041 struct i2c_adapter* i2c)
0042 {
0043 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0044 return NULL;
0045 }
0046 #endif
0047
0048 #endif