]> git.ipfire.org Git - thirdparty/kernel/stable.git/blame - drivers/media/dvb-frontends/drxd.h
Merge branch 'topic/hda' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie...
[thirdparty/kernel/stable.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 *
bcb63314
SA
16 * To obtain the license, point your browser to
17 * http://www.gnu.org/copyleft/gpl.html
126f1e61
RM
18 */
19
20#ifndef _DRXD_H_
21#define _DRXD_H_
22
23#include <linux/types.h>
24#include <linux/i2c.h>
25
6cacdd46 26struct drxd_config {
126f1e61
RM
27 u8 index;
28
29 u8 pll_address;
30 u8 pll_type;
31#define DRXD_PLL_NONE 0
32#define DRXD_PLL_DTT7520X 1
33#define DRXD_PLL_MT3X0823 2
34
35 u32 clock;
ba967965 36 u8 insert_rs_byte;
126f1e61
RM
37
38 u8 demod_address;
39 u8 demoda_address;
40 u8 demod_revision;
41
6b142b3c
DH
42 /* If the tuner is not behind an i2c gate, be sure to flip this bit
43 or else the i2c bus could get wedged */
44 u8 disable_i2c_gate_ctrl;
45
126f1e61 46 u32 IF;
6cacdd46 47 s16(*osc_deviation) (void *priv, s16 dev, int flag);
126f1e61
RM
48};
49
9b174527 50#if IS_REACHABLE(CONFIG_DVB_DRXD)
126f1e61
RM
51extern
52struct dvb_frontend *drxd_attach(const struct drxd_config *config,
53 void *priv, struct i2c_adapter *i2c,
54 struct device *dev);
60ab5e12
AB
55#else
56static inline
57struct dvb_frontend *drxd_attach(const struct drxd_config *config,
58 void *priv, struct i2c_adapter *i2c,
59 struct device *dev)
60{
61 printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n",
62 __func__);
63 return NULL;
64}
65#endif
66
126f1e61 67#endif