Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003     Driver for VES1893 and VES1993 QPSK Demodulators
0004 
0005     Copyright (C) 1999 Convergence Integrated Media GmbH <ralph@convergence.de>
0006     Copyright (C) 2001 Ronny Strutz <3des@elitedvb.de>
0007     Copyright (C) 2002 Dennis Noermann <dennis.noermann@noernet.de>
0008     Copyright (C) 2002-2003 Andreas Oberritter <obi@linuxtv.org>
0009 
0010 
0011 */
0012 
0013 #ifndef VES1X93_H
0014 #define VES1X93_H
0015 
0016 #include <linux/dvb/frontend.h>
0017 
0018 struct ves1x93_config
0019 {
0020     /* the demodulator's i2c address */
0021     u8 demod_address;
0022 
0023     /* value of XIN to use */
0024     u32 xin;
0025 
0026     /* should PWM be inverted? */
0027     u8 invert_pwm:1;
0028 };
0029 
0030 #if IS_REACHABLE(CONFIG_DVB_VES1X93)
0031 extern struct dvb_frontend* ves1x93_attach(const struct ves1x93_config* config,
0032                        struct i2c_adapter* i2c);
0033 #else
0034 static inline struct dvb_frontend* ves1x93_attach(const struct ves1x93_config* config,
0035                        struct i2c_adapter* i2c)
0036 {
0037     printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0038     return NULL;
0039 }
0040 #endif // CONFIG_DVB_VES1X93
0041 
0042 #endif // VES1X93_H