Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
m88rs2000.h
Go to the documentation of this file.
1 /*
2  Driver for M88RS2000 demodulator
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 
18 */
19 
20 #ifndef M88RS2000_H
21 #define M88RS2000_H
22 
23 #include <linux/dvb/frontend.h>
24 #include "dvb_frontend.h"
25 
27  /* Demodulator i2c address */
29  /* Tuner address */
31 
33 
34  /* minimum delay before retuning */
36 
38 };
39 
40 enum {
43 };
44 
45 #if defined(CONFIG_DVB_M88RS2000) || (defined(CONFIG_DVB_M88RS2000_MODULE) && \
46  defined(MODULE))
47 extern struct dvb_frontend *m88rs2000_attach(
48  const struct m88rs2000_config *config, struct i2c_adapter *i2c);
49 #else
50 static inline struct dvb_frontend *m88rs2000_attach(
51  const struct m88rs2000_config *config, struct i2c_adapter *i2c)
52 {
53  printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
54  return NULL;
55 }
56 #endif /* CONFIG_DVB_M88RS2000 */
57 
58 #define FE_CRYSTAL_KHZ 27000
59 #define FREQ_OFFSET_LOW_SYM_RATE 3000
60 
61 enum {
62  DEMOD_WRITE = 0x1,
64  WRITE_DELAY = 0x10,
65 };
66 #endif /* M88RS2000_H */