Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
drxd.h
Go to the documentation of this file.
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 
30 struct drxd_config {
32 
35 #define DRXD_PLL_NONE 0
36 #define DRXD_PLL_DTT7520X 1
37 #define DRXD_PLL_MT3X0823 2
38 
41 
45 
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 */
49 
51  s16(*osc_deviation) (void *priv, s16 dev, int flag);
52 };
53 
54 #if defined(CONFIG_DVB_DRXD) || \
55  (defined(CONFIG_DVB_DRXD_MODULE) && defined(MODULE))
56 extern
57 struct dvb_frontend *drxd_attach(const struct drxd_config *config,
58  void *priv, struct i2c_adapter *i2c,
59  struct device *dev);
60 #else
61 static inline
62 struct dvb_frontend *drxd_attach(const struct drxd_config *config,
63  void *priv, struct i2c_adapter *i2c,
64  struct device *dev)
65 {
66  printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n",
67  __func__);
68  return NULL;
69 }
70 #endif
71 
72 extern int drxd_config_i2c(struct dvb_frontend *, int);
73 #endif