blob: c95ea75db44e19d0039b647e4a774d4e842d5982 [file] [log] [blame]
Thomas Gleixner74ba9202019-05-20 09:19:02 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
3 Driver for VES1893 and VES1993 QPSK Demodulators
4
5 Copyright (C) 1999 Convergence Integrated Media GmbH <ralph@convergence.de>
6 Copyright (C) 2001 Ronny Strutz <3des@elitedvb.de>
7 Copyright (C) 2002 Dennis Noermann <dennis.noermann@noernet.de>
8 Copyright (C) 2002-2003 Andreas Oberritter <obi@linuxtv.org>
9
Linus Torvalds1da177e2005-04-16 15:20:36 -070010
11*/
12
13#ifndef VES1X93_H
14#define VES1X93_H
15
16#include <linux/dvb/frontend.h>
17
18struct ves1x93_config
19{
20 /* the demodulator's i2c address */
21 u8 demod_address;
22
23 /* value of XIN to use */
24 u32 xin;
25
26 /* should PWM be inverted? */
27 u8 invert_pwm:1;
Linus Torvalds1da177e2005-04-16 15:20:36 -070028};
29
Arnd Bergmann9b174522015-02-18 14:12:42 -030030#if IS_REACHABLE(CONFIG_DVB_VES1X93)
Linus Torvalds1da177e2005-04-16 15:20:36 -070031extern struct dvb_frontend* ves1x93_attach(const struct ves1x93_config* config,
32 struct i2c_adapter* i2c);
Andrew de Quincey102a3422006-08-08 09:10:08 -030033#else
34static inline struct dvb_frontend* ves1x93_attach(const struct ves1x93_config* config,
35 struct i2c_adapter* i2c)
36{
Harvey Harrison271ddbf2008-04-08 23:20:00 -030037 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
Andrew de Quincey102a3422006-08-08 09:10:08 -030038 return NULL;
39}
40#endif // CONFIG_DVB_VES1X93
Linus Torvalds1da177e2005-04-16 15:20:36 -070041
42#endif // VES1X93_H