tda8261.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. TDA8261 8PSK/QPSK tuner driver
  3. Copyright (C) Manu Abraham (abraham.manu@gmail.com)
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. */
  16. #ifndef __TDA8261_H
  17. #define __TDA8261_H
  18. enum tda8261_step {
  19. TDA8261_STEP_2000 = 0, /* 2000 kHz */
  20. TDA8261_STEP_1000, /* 1000 kHz */
  21. TDA8261_STEP_500, /* 500 kHz */
  22. TDA8261_STEP_250, /* 250 kHz */
  23. TDA8261_STEP_125 /* 125 kHz */
  24. };
  25. struct tda8261_config {
  26. // u8 buf[16];
  27. u8 addr;
  28. enum tda8261_step step_size;
  29. };
  30. #if defined(CONFIG_DVB_TDA8261) || (defined(CONFIG_DVB_TDA8261_MODULE) && defined(MODULE))
  31. extern struct dvb_frontend *tda8261_attach(struct dvb_frontend *fe,
  32. const struct tda8261_config *config,
  33. struct i2c_adapter *i2c);
  34. #else
  35. static inline struct dvb_frontend *tda8261_attach(struct dvb_frontend *fe,
  36. const struct tda8261_config *config,
  37. struct i2c_adapter *i2c)
  38. {
  39. printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
  40. return NULL;
  41. }
  42. #endif //CONFIG_DVB_TDA8261
  43. #endif// __TDA8261_H