Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tda10071.h
Go to the documentation of this file.
1 /*
2  * NXP TDA10071 + Conexant CX24118A DVB-S/S2 demodulator + tuner driver
3  *
4  * Copyright (C) 2011 Antti Palosaari <[email protected]>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
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  * You should have received a copy of the GNU General Public License along
17  * with this program; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19  */
20 
21 #ifndef TDA10071_H
22 #define TDA10071_H
23 
24 #include <linux/dvb/frontend.h>
25 
27  /* Demodulator I2C address.
28  * Default: none, must set
29  * Values: 0x55,
30  */
32 
33  /* Max bytes I2C provider can write at once.
34  * Note: Buffer is taken from the stack currently!
35  * Default: none, must set
36  * Values:
37  */
39 
40  /* TS output mode.
41  * Default: TDA10071_TS_SERIAL
42  * Values:
43  */
44 #define TDA10071_TS_SERIAL 0
45 #define TDA10071_TS_PARALLEL 1
47 
48  /* Input spectrum inversion.
49  * Default: 0
50  * Values: 0, 1
51  */
52  bool spec_inv;
53 
54  /* Xtal frequency Hz
55  * Default: none, must set
56  * Values:
57  */
59 
60  /* PLL multiplier.
61  * Default: none, must set
62  * Values:
63  */
65 };
66 
67 
68 #if defined(CONFIG_DVB_TDA10071) || \
69  (defined(CONFIG_DVB_TDA10071_MODULE) && defined(MODULE))
70 extern struct dvb_frontend *tda10071_attach(
71  const struct tda10071_config *config, struct i2c_adapter *i2c);
72 #else
73 static inline struct dvb_frontend *tda10071_attach(
74  const struct tda10071_config *config, struct i2c_adapter *i2c)
75 {
76  printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
77  return NULL;
78 }
79 #endif
80 
81 #endif /* TDA10071_H */