ves1x93.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. Driver for VES1893 and VES1993 QPSK Demodulators
  4. Copyright (C) 1999 Convergence Integrated Media GmbH <ralph@convergence.de>
  5. Copyright (C) 2001 Ronny Strutz <3des@elitedvb.de>
  6. Copyright (C) 2002 Dennis Noermann <dennis.noermann@noernet.de>
  7. Copyright (C) 2002-2003 Andreas Oberritter <obi@linuxtv.org>
  8. */
  9. #ifndef VES1X93_H
  10. #define VES1X93_H
  11. #include <linux/dvb/frontend.h>
  12. struct ves1x93_config
  13. {
  14. /* the demodulator's i2c address */
  15. u8 demod_address;
  16. /* value of XIN to use */
  17. u32 xin;
  18. /* should PWM be inverted? */
  19. u8 invert_pwm:1;
  20. };
  21. #if IS_REACHABLE(CONFIG_DVB_VES1X93)
  22. extern struct dvb_frontend* ves1x93_attach(const struct ves1x93_config* config,
  23. struct i2c_adapter* i2c);
  24. #else
  25. static inline struct dvb_frontend* ves1x93_attach(const struct ves1x93_config* config,
  26. struct i2c_adapter* i2c)
  27. {
  28. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  29. return NULL;
  30. }
  31. #endif // CONFIG_DVB_VES1X93
  32. #endif // VES1X93_H