linux/drivers/media/dvb-frontends/dvb-pll.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * descriptions + helper functions for simple dvb plls.
 */

#ifndef __DVB_PLL_H__
#define __DVB_PLL_H__

#include <linux/i2c.h>
#include <media/dvb_frontend.h>

#define DVB_PLL_UNDEFINED
#define DVB_PLL_THOMSON_DTT7579
#define DVB_PLL_THOMSON_DTT759X
#define DVB_PLL_LG_Z201
#define DVB_PLL_UNKNOWN_1
#define DVB_PLL_TUA6010XS
#define DVB_PLL_ENV57H1XD5
#define DVB_PLL_TUA6034
#define DVB_PLL_TDA665X
#define DVB_PLL_TDED4
#define DVB_PLL_TDHU2
#define DVB_PLL_SAMSUNG_TBMV
#define DVB_PLL_PHILIPS_SD1878_TDA8261
#define DVB_PLL_OPERA1
#define DVB_PLL_SAMSUNG_DTOS403IH102A
#define DVB_PLL_SAMSUNG_TDTC9251DH0
#define DVB_PLL_SAMSUNG_TBDU18132
#define DVB_PLL_SAMSUNG_TBMU24112
#define DVB_PLL_TDEE4
#define DVB_PLL_THOMSON_DTT7520X
#define DVB_PLL_TUA6034_FRIIO
#define DVB_PLL_TDA665X_EARTH_PT1

struct dvb_pll_config {};

#if IS_REACHABLE(CONFIG_DVB_PLL)
/**
 * dvb_pll_attach - Attach a dvb-pll to the supplied frontend structure.
 *
 * @fe: Frontend to attach to.
 * @pll_addr: i2c address of the PLL (if used).
 * @i2c: i2c adapter to use (set to NULL if not used).
 * @pll_desc_id: 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,
					   unsigned int pll_desc_id);
#else
static inline struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
					   int pll_addr,
					   struct i2c_adapter *i2c,
					   unsigned int pll_desc_id)
{
	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
	return NULL;
}
#endif

#endif