brintos

brintos / linux-shallow public Read only

0
0
Text · 1.9 KiB · 7183888 Raw
66 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2/*3 * descriptions + helper functions for simple dvb plls.4 */5 6#ifndef __DVB_PLL_H__7#define __DVB_PLL_H__8 9#include <linux/i2c.h>10#include <media/dvb_frontend.h>11 12#define DVB_PLL_UNDEFINED               013#define DVB_PLL_THOMSON_DTT7579         114#define DVB_PLL_THOMSON_DTT759X         215#define DVB_PLL_LG_Z201                 316#define DVB_PLL_UNKNOWN_1               417#define DVB_PLL_TUA6010XS               518#define DVB_PLL_ENV57H1XD5              619#define DVB_PLL_TUA6034                 720#define DVB_PLL_TDA665X                 821#define DVB_PLL_TDED4                   922#define DVB_PLL_TDHU2                  1023#define DVB_PLL_SAMSUNG_TBMV           1124#define DVB_PLL_PHILIPS_SD1878_TDA8261 1225#define DVB_PLL_OPERA1                 1326#define DVB_PLL_SAMSUNG_DTOS403IH102A  1427#define DVB_PLL_SAMSUNG_TDTC9251DH0    1528#define DVB_PLL_SAMSUNG_TBDU18132      1629#define DVB_PLL_SAMSUNG_TBMU24112      1730#define DVB_PLL_TDEE4		       1831#define DVB_PLL_THOMSON_DTT7520X       1932#define DVB_PLL_TUA6034_FRIIO          2033#define DVB_PLL_TDA665X_EARTH_PT1      2134 35struct dvb_pll_config {36	struct dvb_frontend *fe;37};38 39#if IS_REACHABLE(CONFIG_DVB_PLL)40/**41 * dvb_pll_attach - Attach a dvb-pll to the supplied frontend structure.42 *43 * @fe: Frontend to attach to.44 * @pll_addr: i2c address of the PLL (if used).45 * @i2c: i2c adapter to use (set to NULL if not used).46 * @pll_desc_id: dvb_pll_desc to use.47 *48 * return: Frontend pointer on success, NULL on failure49 */50extern struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,51					   int pll_addr,52					   struct i2c_adapter *i2c,53					   unsigned int pll_desc_id);54#else55static inline struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,56					   int pll_addr,57					   struct i2c_adapter *i2c,58					   unsigned int pll_desc_id)59{60	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);61	return NULL;62}63#endif64 65#endif66