2005-04-16 22:20:36 +00:00
|
|
|
/*
|
2005-06-24 05:02:35 +00:00
|
|
|
* descriptions + helper functions for simple dvb plls.
|
2005-04-16 22:20:36 +00:00
|
|
|
*/
|
|
|
|
|
2005-05-17 04:54:37 +00:00
|
|
|
#ifndef __DVB_PLL_H__
|
|
|
|
#define __DVB_PLL_H__
|
|
|
|
|
2006-04-18 20:47:12 +00:00
|
|
|
#include <linux/i2c.h>
|
|
|
|
#include "dvb_frontend.h"
|
|
|
|
|
2007-06-12 19:10:51 +00:00
|
|
|
#define DVB_PLL_UNDEFINED 0
|
|
|
|
#define DVB_PLL_THOMSON_DTT7579 1
|
|
|
|
#define DVB_PLL_THOMSON_DTT759X 2
|
|
|
|
#define DVB_PLL_THOMSON_DTT7610 3
|
|
|
|
#define DVB_PLL_LG_Z201 4
|
|
|
|
#define DVB_PLL_MICROTUNE_4042 5
|
|
|
|
#define DVB_PLL_THOMSON_DTT761X 6
|
|
|
|
#define DVB_PLL_UNKNOWN_1 7
|
|
|
|
#define DVB_PLL_TUA6010XS 8
|
|
|
|
#define DVB_PLL_ENV57H1XD5 9
|
|
|
|
#define DVB_PLL_TUA6034 10
|
|
|
|
#define DVB_PLL_LG_TDVS_H06XF 11
|
|
|
|
#define DVB_PLL_TDA665X 12
|
|
|
|
#define DVB_PLL_FMD1216ME 13
|
|
|
|
#define DVB_PLL_TDED4 14
|
|
|
|
#define DVB_PLL_TUV1236D 15
|
|
|
|
#define DVB_PLL_TDHU2 16
|
|
|
|
#define DVB_PLL_SAMSUNG_TBMV 17
|
|
|
|
#define DVB_PLL_PHILIPS_SD1878_TDA8261 18
|
|
|
|
#define DVB_PLL_PHILIPS_TD1316 19
|
|
|
|
#define DVB_PLL_THOMSON_FE6600 20
|
|
|
|
#define DVB_PLL_OPERA1 21
|
2006-10-14 01:18:01 +00:00
|
|
|
#define DVB_PLL_FCV1236D 22
|
2006-02-28 11:34:59 +00:00
|
|
|
|
2006-04-18 20:47:12 +00:00
|
|
|
/**
|
|
|
|
* Attach a dvb-pll to the supplied frontend structure.
|
|
|
|
*
|
|
|
|
* @param fe Frontend to attach to.
|
|
|
|
* @param pll_addr i2c address of the PLL (if used).
|
|
|
|
* @param i2c i2c adapter to use (set to NULL if not used).
|
2007-06-12 19:10:51 +00:00
|
|
|
* @param pll_desc_id dvb_pll_desc to use.
|
2006-08-08 12:10:08 +00:00
|
|
|
* @return Frontend pointer on success, NULL on failure
|
2006-04-18 20:47:12 +00:00
|
|
|
*/
|
2007-04-27 15:31:28 +00:00
|
|
|
#if defined(CONFIG_DVB_PLL) || (defined(CONFIG_DVB_PLL_MODULE) && defined(MODULE))
|
2006-11-20 19:38:42 +00:00
|
|
|
extern struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
|
|
|
|
int pll_addr,
|
|
|
|
struct i2c_adapter *i2c,
|
2007-06-12 19:10:51 +00:00
|
|
|
unsigned int pll_desc_id);
|
2007-04-27 15:31:28 +00:00
|
|
|
#else
|
|
|
|
static inline struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
|
|
|
|
int pll_addr,
|
|
|
|
struct i2c_adapter *i2c,
|
2007-06-12 19:10:51 +00:00
|
|
|
unsigned int pll_desc_id)
|
2007-04-27 15:31:28 +00:00
|
|
|
{
|
|
|
|
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
#endif
|
2006-04-18 20:47:12 +00:00
|
|
|
|
2005-05-17 04:54:37 +00:00
|
|
|
#endif
|