“a0eb38eb8637a81bb7770d34036e498d2ba63a26”上不存在“README.md”
dvb-pll.h 1.5 KB
Newer Older
L
Linus Torvalds 已提交
1
/*
2
 * descriptions + helper functions for simple dvb plls.
L
Linus Torvalds 已提交
3 4
 */

5 6 7
#ifndef __DVB_PLL_H__
#define __DVB_PLL_H__

8 9 10
#include <linux/i2c.h>
#include "dvb_frontend.h"

11 12 13 14 15 16 17 18 19 20 21 22 23 24
#define DVB_PLL_UNDEFINED               0
#define DVB_PLL_THOMSON_DTT7579         1
#define DVB_PLL_THOMSON_DTT759X         2
#define DVB_PLL_LG_Z201                 4
#define DVB_PLL_UNKNOWN_1               7
#define DVB_PLL_TUA6010XS               8
#define DVB_PLL_ENV57H1XD5              9
#define DVB_PLL_TUA6034                10
#define DVB_PLL_TDA665X                12
#define DVB_PLL_TDED4                  14
#define DVB_PLL_TDHU2                  16
#define DVB_PLL_SAMSUNG_TBMV           17
#define DVB_PLL_PHILIPS_SD1878_TDA8261 18
#define DVB_PLL_OPERA1                 21
25

26 27 28 29 30 31
/**
 * 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).
32
 * @param pll_desc_id dvb_pll_desc to use.
33
 * @return Frontend pointer on success, NULL on failure
34
 */
35
#if defined(CONFIG_DVB_PLL) || (defined(CONFIG_DVB_PLL_MODULE) && defined(MODULE))
36 37 38
extern struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
					   int pll_addr,
					   struct i2c_adapter *i2c,
39
					   unsigned int pll_desc_id);
40 41 42 43
#else
static inline struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
					   int pll_addr,
					   struct i2c_adapter *i2c,
44
					   unsigned int pll_desc_id)
45 46 47 48 49
{
	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
	return NULL;
}
#endif
50

51
#endif
新手
引导
客服 返回
顶部