^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-or-later */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Montage Technology DS3000 - DVBS/S2 Demodulator driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Copyright (C) 2009-2012 Konstantin Dimitrov <kosio.dimitrov@gmail.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) Copyright (C) 2009-2012 TurboSight.com
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #ifndef DS3000_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define DS3000_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include <linux/dvb/frontend.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) struct ds3000_config {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) /* the demodulator's i2c address */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) u8 demod_address;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) u8 ci_mode;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) /* Set device param to start dma */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) int (*set_ts_params)(struct dvb_frontend *fe, int is_punctured);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) /* Hook for Lock LED */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) void (*set_lock_led)(struct dvb_frontend *fe, int offon);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #if IS_REACHABLE(CONFIG_DVB_DS3000)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) extern struct dvb_frontend *ds3000_attach(const struct ds3000_config *config,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) struct i2c_adapter *i2c);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) static inline
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) struct dvb_frontend *ds3000_attach(const struct ds3000_config *config,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) struct i2c_adapter *i2c)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) return NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #endif /* CONFIG_DVB_DS3000 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #endif /* DS3000_H */