at76c651.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * at76c651.c
  3. *
  4. * Atmel DVB-C Frontend Driver (at76c651)
  5. *
  6. * Copyright (C) 2001 fnbrd <fnbrd@gmx.de>
  7. * & 2002-2004 Andreas Oberritter <obi@linuxtv.org>
  8. * & 2003 Wolfram Joost <dbox2@frokaschwei.de>
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation; either version 2 of the License, or
  13. * (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software
  22. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  23. *
  24. * AT76C651
  25. * http://www.nalanda.nitc.ac.in/industry/datasheets/atmel/acrobat/doc1293.pdf
  26. * http://www.atmel.com/atmel/acrobat/doc1320.pdf
  27. */
  28. #ifndef AT76C651_H
  29. #define AT76C651_H
  30. #include <linux/dvb/frontend.h>
  31. struct at76c651_config
  32. {
  33. /* the demodulator's i2c address */
  34. u8 demod_address;
  35. /* PLL maintenance */
  36. int (*pll_init)(struct dvb_frontend* fe);
  37. int (*pll_set)(struct dvb_frontend* fe, struct dvb_frontend_parameters* params);
  38. };
  39. extern struct dvb_frontend* at76c651_attach(const struct at76c651_config* config,
  40. struct i2c_adapter* i2c);
  41. #endif // AT76C651_H