Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003     Montage Technology DS3000 - DVBS/S2 Demodulator driver
0004     Copyright (C) 2009-2012 Konstantin Dimitrov <kosio.dimitrov@gmail.com>
0005 
0006     Copyright (C) 2009-2012 TurboSight.com
0007 
0008  */
0009 
0010 #ifndef DS3000_H
0011 #define DS3000_H
0012 
0013 #include <linux/dvb/frontend.h>
0014 
0015 struct ds3000_config {
0016     /* the demodulator's i2c address */
0017     u8 demod_address;
0018     u8 ci_mode;
0019     /* Set device param to start dma */
0020     int (*set_ts_params)(struct dvb_frontend *fe, int is_punctured);
0021     /* Hook for Lock LED */
0022     void (*set_lock_led)(struct dvb_frontend *fe, int offon);
0023 };
0024 
0025 #if IS_REACHABLE(CONFIG_DVB_DS3000)
0026 extern struct dvb_frontend *ds3000_attach(const struct ds3000_config *config,
0027                     struct i2c_adapter *i2c);
0028 #else
0029 static inline
0030 struct dvb_frontend *ds3000_attach(const struct ds3000_config *config,
0031                     struct i2c_adapter *i2c)
0032 {
0033     printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0034     return NULL;
0035 }
0036 #endif /* CONFIG_DVB_DS3000 */
0037 #endif /* DS3000_H */