Thomas Gleixner | 74ba920 | 2019-05-20 09:19:02 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Igor M. Liplianin | 09ea33e | 2009-11-24 20:16:04 -0300 | [diff] [blame] | 2 | /* |
Konstantin Dimitrov | c1965ea | 2012-12-23 19:25:09 -0300 | [diff] [blame] | 3 | Montage Technology DS3000 - DVBS/S2 Demodulator driver |
| 4 | Copyright (C) 2009-2012 Konstantin Dimitrov <kosio.dimitrov@gmail.com> |
Igor M. Liplianin | 09ea33e | 2009-11-24 20:16:04 -0300 | [diff] [blame] | 5 | |
Konstantin Dimitrov | c1965ea | 2012-12-23 19:25:09 -0300 | [diff] [blame] | 6 | Copyright (C) 2009-2012 TurboSight.com |
Igor M. Liplianin | 09ea33e | 2009-11-24 20:16:04 -0300 | [diff] [blame] | 7 | |
Konstantin Dimitrov | c1965ea | 2012-12-23 19:25:09 -0300 | [diff] [blame] | 8 | */ |
Igor M. Liplianin | 09ea33e | 2009-11-24 20:16:04 -0300 | [diff] [blame] | 9 | |
| 10 | #ifndef DS3000_H |
| 11 | #define DS3000_H |
| 12 | |
| 13 | #include <linux/dvb/frontend.h> |
| 14 | |
| 15 | struct ds3000_config { |
| 16 | /* the demodulator's i2c address */ |
| 17 | u8 demod_address; |
Igor M. Liplianin | d2ffc44 | 2011-02-25 18:41:22 -0300 | [diff] [blame] | 18 | u8 ci_mode; |
Igor M. Liplianin | 0cb7363 | 2011-02-25 18:41:24 -0300 | [diff] [blame] | 19 | /* Set device param to start dma */ |
| 20 | int (*set_ts_params)(struct dvb_frontend *fe, int is_punctured); |
Igor M. Liplianin | 43385c8 | 2012-12-28 19:40:24 -0300 | [diff] [blame] | 21 | /* Hook for Lock LED */ |
| 22 | void (*set_lock_led)(struct dvb_frontend *fe, int offon); |
Igor M. Liplianin | 09ea33e | 2009-11-24 20:16:04 -0300 | [diff] [blame] | 23 | }; |
| 24 | |
Arnd Bergmann | 9b17452 | 2015-02-18 14:12:42 -0300 | [diff] [blame] | 25 | #if IS_REACHABLE(CONFIG_DVB_DS3000) |
Igor M. Liplianin | 09ea33e | 2009-11-24 20:16:04 -0300 | [diff] [blame] | 26 | extern struct dvb_frontend *ds3000_attach(const struct ds3000_config *config, |
| 27 | struct i2c_adapter *i2c); |
| 28 | #else |
| 29 | static inline |
| 30 | struct dvb_frontend *ds3000_attach(const struct ds3000_config *config, |
| 31 | struct i2c_adapter *i2c) |
| 32 | { |
| 33 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
| 34 | return NULL; |
| 35 | } |
| 36 | #endif /* CONFIG_DVB_DS3000 */ |
| 37 | #endif /* DS3000_H */ |