mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 05:24:12 +08:00
2bfe031df6
Only devices using > 1 frontend were ported; ones which did not are left using static binding. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Acked-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
65 lines
1.9 KiB
C
65 lines
1.9 KiB
C
/*
|
|
* descriptions + helper functions for simple dvb plls.
|
|
*/
|
|
|
|
#ifndef __DVB_PLL_H__
|
|
#define __DVB_PLL_H__
|
|
|
|
#include <linux/i2c.h>
|
|
#include "dvb_frontend.h"
|
|
|
|
struct dvb_pll_desc {
|
|
char *name;
|
|
u32 min;
|
|
u32 max;
|
|
void (*setbw)(u8 *buf, u32 freq, int bandwidth);
|
|
int count;
|
|
struct {
|
|
u32 limit;
|
|
u32 offset;
|
|
u32 stepsize;
|
|
u8 config;
|
|
u8 cb;
|
|
} entries[12];
|
|
};
|
|
|
|
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;
|
|
extern struct dvb_pll_desc dvb_pll_microtune_4042;
|
|
extern struct dvb_pll_desc dvb_pll_thomson_dtt761x;
|
|
extern struct dvb_pll_desc dvb_pll_unknown_1;
|
|
|
|
extern struct dvb_pll_desc dvb_pll_tua6010xs;
|
|
extern struct dvb_pll_desc dvb_pll_env57h1xd5;
|
|
extern struct dvb_pll_desc dvb_pll_tua6034;
|
|
extern struct dvb_pll_desc dvb_pll_lg_tdvs_h06xf;
|
|
extern struct dvb_pll_desc dvb_pll_tda665x;
|
|
extern struct dvb_pll_desc dvb_pll_fmd1216me;
|
|
extern struct dvb_pll_desc dvb_pll_tded4;
|
|
|
|
extern struct dvb_pll_desc dvb_pll_tuv1236d;
|
|
extern struct dvb_pll_desc dvb_pll_tdhu2;
|
|
extern struct dvb_pll_desc dvb_pll_samsung_tbmv;
|
|
extern struct dvb_pll_desc dvb_pll_philips_sd1878_tda8261;
|
|
extern struct dvb_pll_desc dvb_pll_philips_td1316;
|
|
|
|
extern struct dvb_pll_desc dvb_pll_thomson_fe6600;
|
|
|
|
extern int dvb_pll_configure(struct dvb_pll_desc *desc, u8 *buf,
|
|
u32 freq, int bandwidth);
|
|
|
|
/**
|
|
* 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.
|
|
* @return Frontend pointer on success, NULL on failure
|
|
*/
|
|
extern struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe, int pll_addr, struct i2c_adapter *i2c, struct dvb_pll_desc *desc);
|
|
|
|
#endif
|