cx22702.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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/dvb/frontend.h>
  23. struct cx22702_config {
  24. /* the demodulator's i2c address */
  25. u8 demod_address;
  26. /* serial/parallel output */
  27. #define CX22702_PARALLEL_OUTPUT 0
  28. #define CX22702_SERIAL_OUTPUT 1
  29. u8 output_mode;
  30. };
  31. #if defined(CONFIG_DVB_CX22702) || (defined(CONFIG_DVB_CX22702_MODULE) \
  32. && defined(MODULE))
  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