ves1x93.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 <[email protected]>
  5. Copyright (C) 2001 Ronny Strutz <[email protected]>
  6. Copyright (C) 2002 Dennis Noermann <[email protected]>
  7. Copyright (C) 2002-2003 Andreas Oberritter <[email protected]>
  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