cx22702.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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@hauppauge.com>
  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. {
  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. /* PLL maintenance */
  32. u8 pll_address;
  33. struct dvb_pll_desc *pll_desc;
  34. int (*pll_init)(struct dvb_frontend* fe);
  35. int (*pll_set)(struct dvb_frontend* fe, struct dvb_frontend_parameters* params);
  36. };
  37. extern struct dvb_frontend* cx22702_attach(const struct cx22702_config* config,
  38. struct i2c_adapter* i2c);
  39. #endif // CX22702_H