dvb-pll.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * descriptions + helper functions for simple dvb plls.
  3. */
  4. #ifndef __DVB_PLL_H__
  5. #define __DVB_PLL_H__
  6. #include <linux/i2c.h>
  7. #include "dvb_frontend.h"
  8. #define DVB_PLL_UNDEFINED 0
  9. #define DVB_PLL_THOMSON_DTT7579 1
  10. #define DVB_PLL_THOMSON_DTT759X 2
  11. #define DVB_PLL_LG_Z201 3
  12. #define DVB_PLL_UNKNOWN_1 4
  13. #define DVB_PLL_TUA6010XS 5
  14. #define DVB_PLL_ENV57H1XD5 6
  15. #define DVB_PLL_TUA6034 7
  16. #define DVB_PLL_TDA665X 8
  17. #define DVB_PLL_TDED4 9
  18. #define DVB_PLL_TDHU2 10
  19. #define DVB_PLL_SAMSUNG_TBMV 11
  20. #define DVB_PLL_PHILIPS_SD1878_TDA8261 12
  21. #define DVB_PLL_OPERA1 13
  22. #define DVB_PLL_SAMSUNG_DTOS403IH102A 14
  23. #define DVB_PLL_SAMSUNG_TDTC9251DH0 15
  24. /**
  25. * Attach a dvb-pll to the supplied frontend structure.
  26. *
  27. * @param fe Frontend to attach to.
  28. * @param pll_addr i2c address of the PLL (if used).
  29. * @param i2c i2c adapter to use (set to NULL if not used).
  30. * @param pll_desc_id dvb_pll_desc to use.
  31. * @return Frontend pointer on success, NULL on failure
  32. */
  33. #if defined(CONFIG_DVB_PLL) || (defined(CONFIG_DVB_PLL_MODULE) && defined(MODULE))
  34. extern struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
  35. int pll_addr,
  36. struct i2c_adapter *i2c,
  37. unsigned int pll_desc_id);
  38. #else
  39. static inline struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
  40. int pll_addr,
  41. struct i2c_adapter *i2c,
  42. unsigned int pll_desc_id)
  43. {
  44. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  45. return NULL;
  46. }
  47. #endif
  48. #endif