cx22702.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. Conexant 22702 DVB OFDM demodulator driver
  3. based on:
  4. Alps TDMB7 DVB OFDM demodulator driver
  5. Copyright (C) 2001-2002 Convergence Integrated Media GmbH
  6. Holger Waechtler <holger@convergence.de>
  7. Copyright (C) 2004 Steven Toth <stoth@linuxtv.org>
  8. This program is free software; you can redistribute it and/or modify
  9. it under the terms of the GNU General Public License as published by
  10. the Free Software Foundation; either version 2 of the License, or
  11. (at your option) any later version.
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. GNU General Public License for more details.
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. */
  20. #ifndef CX22702_H
  21. #define CX22702_H
  22. #include <linux/kconfig.h>
  23. #include <linux/dvb/frontend.h>
  24. struct cx22702_config {
  25. /* the demodulator's i2c address */
  26. u8 demod_address;
  27. /* serial/parallel output */
  28. #define CX22702_PARALLEL_OUTPUT 0
  29. #define CX22702_SERIAL_OUTPUT 1
  30. u8 output_mode;
  31. };
  32. #if IS_REACHABLE(CONFIG_DVB_CX22702)
  33. extern struct dvb_frontend *cx22702_attach(
  34. const struct cx22702_config *config,
  35. struct i2c_adapter *i2c);
  36. #else
  37. static inline struct dvb_frontend *cx22702_attach(
  38. const struct cx22702_config *config,
  39. struct i2c_adapter *i2c)
  40. {
  41. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  42. return NULL;
  43. }
  44. #endif
  45. #endif