2019-05-20 14:19:02 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2006-08-08 19:10:10 +07:00
|
|
|
/*
|
|
|
|
Driver for Philips tda8262/tda8263 DVBS Silicon tuners
|
|
|
|
|
|
|
|
(c) 2006 Andrew de Quincey
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __DVB_TDA826X_H__
|
|
|
|
#define __DVB_TDA826X_H__
|
|
|
|
|
|
|
|
#include <linux/i2c.h>
|
2017-12-29 01:03:51 +07:00
|
|
|
#include <media/dvb_frontend.h>
|
2006-08-08 19:10:10 +07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Attach a tda826x tuner to the supplied frontend structure.
|
|
|
|
*
|
2017-11-30 00:39:19 +07:00
|
|
|
* @fe: Frontend to attach to.
|
|
|
|
* @addr: i2c address of the tuner.
|
|
|
|
* @i2c: i2c adapter to use.
|
|
|
|
* @has_loopthrough: Set to 1 if the card has a loopthrough RF connector.
|
|
|
|
*
|
|
|
|
* return: FE pointer on success, NULL on failure.
|
2006-08-08 19:10:10 +07:00
|
|
|
*/
|
2015-02-19 00:12:42 +07:00
|
|
|
#if IS_REACHABLE(CONFIG_DVB_TDA826X)
|
2006-10-09 15:17:45 +07:00
|
|
|
extern struct dvb_frontend* tda826x_attach(struct dvb_frontend *fe, int addr,
|
|
|
|
struct i2c_adapter *i2c,
|
|
|
|
int has_loopthrough);
|
|
|
|
#else
|
|
|
|
static inline struct dvb_frontend* tda826x_attach(struct dvb_frontend *fe,
|
|
|
|
int addr,
|
|
|
|
struct i2c_adapter *i2c,
|
|
|
|
int has_loopthrough)
|
|
|
|
{
|
2008-04-09 09:20:00 +07:00
|
|
|
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
|
2006-10-09 15:17:45 +07:00
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
#endif // CONFIG_DVB_TDA826X
|
|
|
|
|
|
|
|
#endif // __DVB_TDA826X_H__
|