2005-04-17 05:20:36 +07:00
|
|
|
/*
|
2005-06-24 12:02:35 +07:00
|
|
|
* descriptions + helper functions for simple dvb plls.
|
2005-04-17 05:20:36 +07:00
|
|
|
*/
|
|
|
|
|
2005-05-17 11:54:37 +07:00
|
|
|
#ifndef __DVB_PLL_H__
|
|
|
|
#define __DVB_PLL_H__
|
|
|
|
|
2006-04-19 03:47:12 +07:00
|
|
|
#include <linux/i2c.h>
|
|
|
|
#include "dvb_frontend.h"
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
struct dvb_pll_desc {
|
|
|
|
char *name;
|
|
|
|
u32 min;
|
|
|
|
u32 max;
|
2007-03-19 12:24:04 +07:00
|
|
|
u32 iffreq;
|
2007-05-05 22:05:39 +07:00
|
|
|
void (*set)(u8 *buf, const struct dvb_frontend_parameters *params);
|
2007-04-27 22:31:29 +07:00
|
|
|
u8 *initdata;
|
2007-03-19 12:24:09 +07:00
|
|
|
u8 *sleepdata;
|
2005-04-17 05:20:36 +07:00
|
|
|
int count;
|
|
|
|
struct {
|
|
|
|
u32 limit;
|
|
|
|
u32 stepsize;
|
2006-01-24 02:11:11 +07:00
|
|
|
u8 config;
|
|
|
|
u8 cb;
|
2005-06-24 12:02:35 +07:00
|
|
|
} entries[12];
|
2005-04-17 05:20:36 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
extern struct dvb_pll_desc dvb_pll_thomson_dtt7579;
|
|
|
|
extern struct dvb_pll_desc dvb_pll_thomson_dtt759x;
|
|
|
|
extern struct dvb_pll_desc dvb_pll_thomson_dtt7610;
|
|
|
|
extern struct dvb_pll_desc dvb_pll_lg_z201;
|
2005-07-08 07:58:29 +07:00
|
|
|
extern struct dvb_pll_desc dvb_pll_microtune_4042;
|
2006-01-10 00:25:29 +07:00
|
|
|
extern struct dvb_pll_desc dvb_pll_thomson_dtt761x;
|
2005-04-17 05:20:36 +07:00
|
|
|
extern struct dvb_pll_desc dvb_pll_unknown_1;
|
|
|
|
|
2005-06-24 12:02:35 +07:00
|
|
|
extern struct dvb_pll_desc dvb_pll_tua6010xs;
|
|
|
|
extern struct dvb_pll_desc dvb_pll_env57h1xd5;
|
|
|
|
extern struct dvb_pll_desc dvb_pll_tua6034;
|
2006-04-27 11:31:26 +07:00
|
|
|
extern struct dvb_pll_desc dvb_pll_lg_tdvs_h06xf;
|
2005-06-24 12:02:35 +07:00
|
|
|
extern struct dvb_pll_desc dvb_pll_tda665x;
|
2005-07-08 07:58:09 +07:00
|
|
|
extern struct dvb_pll_desc dvb_pll_fmd1216me;
|
2005-07-08 07:58:12 +07:00
|
|
|
extern struct dvb_pll_desc dvb_pll_tded4;
|
2005-06-24 12:02:35 +07:00
|
|
|
|
2005-11-09 12:35:39 +07:00
|
|
|
extern struct dvb_pll_desc dvb_pll_tuv1236d;
|
|
|
|
extern struct dvb_pll_desc dvb_pll_tdhu2;
|
2006-01-24 02:11:07 +07:00
|
|
|
extern struct dvb_pll_desc dvb_pll_samsung_tbmv;
|
2006-01-12 08:31:53 +07:00
|
|
|
extern struct dvb_pll_desc dvb_pll_philips_sd1878_tda8261;
|
2006-02-07 15:25:14 +07:00
|
|
|
extern struct dvb_pll_desc dvb_pll_philips_td1316;
|
2005-11-09 12:35:39 +07:00
|
|
|
|
2006-03-01 10:04:42 +07:00
|
|
|
extern struct dvb_pll_desc dvb_pll_thomson_fe6600;
|
2007-04-19 21:26:47 +07:00
|
|
|
extern struct dvb_pll_desc dvb_pll_opera1;
|
2006-02-28 18:34:59 +07:00
|
|
|
|
2006-04-19 03:47:12 +07: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).
|
|
|
|
* @param desc dvb_pll_desc to use.
|
2006-08-08 19:10:08 +07:00
|
|
|
* @return Frontend pointer on success, NULL on failure
|
2006-04-19 03:47:12 +07:00
|
|
|
*/
|
2007-04-27 22:31:28 +07:00
|
|
|
#if defined(CONFIG_DVB_PLL) || (defined(CONFIG_DVB_PLL_MODULE) && defined(MODULE))
|
2006-11-21 02:38:42 +07:00
|
|
|
extern struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
|
|
|
|
int pll_addr,
|
|
|
|
struct i2c_adapter *i2c,
|
|
|
|
struct dvb_pll_desc *desc);
|
2007-04-27 22:31:28 +07:00
|
|
|
#else
|
|
|
|
static inline struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
|
|
|
|
int pll_addr,
|
|
|
|
struct i2c_adapter *i2c,
|
|
|
|
struct dvb_pll_desc *desc)
|
|
|
|
{
|
|
|
|
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
#endif
|
2006-04-19 03:47:12 +07:00
|
|
|
|
2005-05-17 11:54:37 +07:00
|
|
|
#endif
|