dvb-pll.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 4
  12. #define DVB_PLL_MICROTUNE_4042 5
  13. #define DVB_PLL_UNKNOWN_1 7
  14. #define DVB_PLL_TUA6010XS 8
  15. #define DVB_PLL_ENV57H1XD5 9
  16. #define DVB_PLL_TUA6034 10
  17. #define DVB_PLL_LG_TDVS_H06XF 11
  18. #define DVB_PLL_TDA665X 12
  19. #define DVB_PLL_FMD1216ME 13
  20. #define DVB_PLL_TDED4 14
  21. #define DVB_PLL_TUV1236D 15
  22. #define DVB_PLL_TDHU2 16
  23. #define DVB_PLL_SAMSUNG_TBMV 17
  24. #define DVB_PLL_PHILIPS_SD1878_TDA8261 18
  25. #define DVB_PLL_PHILIPS_TD1316 19
  26. #define DVB_PLL_THOMSON_FE6600 20
  27. #define DVB_PLL_OPERA1 21
  28. #define DVB_PLL_FCV1236D 22
  29. /**
  30. * Attach a dvb-pll to the supplied frontend structure.
  31. *
  32. * @param fe Frontend to attach to.
  33. * @param pll_addr i2c address of the PLL (if used).
  34. * @param i2c i2c adapter to use (set to NULL if not used).
  35. * @param pll_desc_id dvb_pll_desc to use.
  36. * @return Frontend pointer on success, NULL on failure
  37. */
  38. #if defined(CONFIG_DVB_PLL) || (defined(CONFIG_DVB_PLL_MODULE) && defined(MODULE))
  39. extern 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. #else
  44. static inline struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
  45. int pll_addr,
  46. struct i2c_adapter *i2c,
  47. unsigned int pll_desc_id)
  48. {
  49. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
  50. return NULL;
  51. }
  52. #endif
  53. #endif