]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - drivers/media/dvb-frontends/drxd.h
treewide: remove redundant #include <linux/kconfig.h>
[mirror_ubuntu-artful-kernel.git] / drivers / media / dvb-frontends / drxd.h
CommitLineData
126f1e61
RM
1/*
2 * drxd.h: DRXD DVB-T demodulator driver
3 *
4 * Copyright (C) 2005-2007 Micronas
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * version 2 only, as published by the Free Software Foundation.
9 *
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20 * 02110-1301, USA
21 * Or, point your browser to http://www.gnu.org/copyleft/gpl.html
22 */
23
24#ifndef _DRXD_H_
25#define _DRXD_H_
26
27#include <linux/types.h>
28#include <linux/i2c.h>
29
6cacdd46 30struct drxd_config {
126f1e61
RM
31 u8 index;
32
33 u8 pll_address;
34 u8 pll_type;
35#define DRXD_PLL_NONE 0
36#define DRXD_PLL_DTT7520X 1
37#define DRXD_PLL_MT3X0823 2
38
39 u32 clock;
ba967965 40 u8 insert_rs_byte;
126f1e61
RM
41
42 u8 demod_address;
43 u8 demoda_address;
44 u8 demod_revision;
45
6b142b3c
DH
46 /* If the tuner is not behind an i2c gate, be sure to flip this bit
47 or else the i2c bus could get wedged */
48 u8 disable_i2c_gate_ctrl;
49
126f1e61 50 u32 IF;
6cacdd46 51 s16(*osc_deviation) (void *priv, s16 dev, int flag);
126f1e61
RM
52};
53
9b174527 54#if IS_REACHABLE(CONFIG_DVB_DRXD)
126f1e61
RM
55extern
56struct dvb_frontend *drxd_attach(const struct drxd_config *config,
57 void *priv, struct i2c_adapter *i2c,
58 struct device *dev);
60ab5e12
AB
59#else
60static inline
61struct dvb_frontend *drxd_attach(const struct drxd_config *config,
62 void *priv, struct i2c_adapter *i2c,
63 struct device *dev)
64{
65 printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n",
66 __func__);
67 return NULL;
68}
69#endif
70
126f1e61 71#endif