cx24110.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. cx24110 - Single Chip Satellite Channel Receiver driver module
  3. Copyright (C) 2002 Peter Hettkamp <peter.hettkamp@htp-tel.de> based on
  4. work
  5. Copyright (C) 1999 Convergence Integrated Media GmbH <ralph@convergence.de>
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. */
  18. #ifndef CX24110_H
  19. #define CX24110_H
  20. #include <linux/dvb/frontend.h>
  21. struct cx24110_config
  22. {
  23. /* the demodulator's i2c address */
  24. u8 demod_address;
  25. /* PLL maintenance */
  26. int (*pll_init)(struct dvb_frontend* fe);
  27. int (*pll_set)(struct dvb_frontend* fe, struct dvb_frontend_parameters* params);
  28. int (*pll_sleep)(struct dvb_frontend* fe);
  29. };
  30. extern struct dvb_frontend* cx24110_attach(const struct cx24110_config* config,
  31. struct i2c_adapter* i2c);
  32. extern int cx24110_pll_write(struct dvb_frontend* fe, u32 data);
  33. #endif // CX24110_H