Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002   /*
0003      Driver for Philips tda10086 DVBS Frontend
0004 
0005      (c) 2006 Andrew de Quincey
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     /* the demodulator's i2c address */
0024     u8 demod_address;
0025 
0026     /* does the "inversion" need inverted? */
0027     u8 invert;
0028 
0029     /* do we need the diseqc signal with carrier? */
0030     u8 diseqc_tone;
0031 
0032     /* frequency of the reference xtal */
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 /* CONFIG_DVB_TDA10086 */
0047 
0048 #endif /* TDA10086_H */