Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003     Conexant cx24123/cx24109 - DVB QPSK Satellite demod/tuner driver
0004 
0005     Copyright (C) 2005 Steven Toth <stoth@linuxtv.org>
0006 
0007 */
0008 
0009 #ifndef CX24123_H
0010 #define CX24123_H
0011 
0012 #include <linux/dvb/frontend.h>
0013 
0014 struct cx24123_config {
0015     /* the demodulator's i2c address */
0016     u8 demod_address;
0017 
0018     /* Need to set device param for start_dma */
0019     int (*set_ts_params)(struct dvb_frontend *fe, int is_punctured);
0020 
0021     /* 0 = LNB voltage normal, 1 = LNB voltage inverted */
0022     int lnb_polarity;
0023 
0024     /* this device has another tuner */
0025     u8 dont_use_pll;
0026     void (*agc_callback) (struct dvb_frontend *);
0027 };
0028 
0029 #if IS_REACHABLE(CONFIG_DVB_CX24123)
0030 extern struct dvb_frontend *cx24123_attach(const struct cx24123_config *config,
0031                        struct i2c_adapter *i2c);
0032 extern struct i2c_adapter *cx24123_get_tuner_i2c_adapter(struct dvb_frontend *);
0033 #else
0034 static inline struct dvb_frontend *cx24123_attach(
0035     const struct cx24123_config *config, struct i2c_adapter *i2c)
0036 {
0037     printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0038     return NULL;
0039 }
0040 static inline struct i2c_adapter *
0041     cx24123_get_tuner_i2c_adapter(struct dvb_frontend *fe)
0042 {
0043     printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0044     return NULL;
0045 }
0046 #endif
0047 
0048 #endif /* CX24123_H */