treewide: remove redundant #include <linux/kconfig.h>
[linux-2.6-block.git] / drivers / media / dvb-frontends / m88rs2000.h
CommitLineData
ae8dc8ee
MP
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
26struct m88rs2000_config {
27 /* Demodulator i2c address */
28 u8 demod_addr;
ae8dc8ee
MP
29
30 u8 *inittab;
31
32 /* minimum delay before retuning */
33 int min_delay_ms;
34
35 int (*set_ts_params)(struct dvb_frontend *, int);
36};
37
38enum {
39 CALL_IS_SET_FRONTEND = 0x0,
40 CALL_IS_READ,
41};
42
9b174527 43#if IS_REACHABLE(CONFIG_DVB_M88RS2000)
ae8dc8ee
MP
44extern struct dvb_frontend *m88rs2000_attach(
45 const struct m88rs2000_config *config, struct i2c_adapter *i2c);
46#else
47static inline struct dvb_frontend *m88rs2000_attach(
48 const struct m88rs2000_config *config, struct i2c_adapter *i2c)
49{
50 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
51 return NULL;
52}
53#endif /* CONFIG_DVB_M88RS2000 */
54
06af15d1
MP
55#define RS2000_FE_CRYSTAL_KHZ 27000
56
ae8dc8ee
MP
57enum {
58 DEMOD_WRITE = 0x1,
ae8dc8ee
MP
59 WRITE_DELAY = 0x10,
60};
61#endif /* M88RS2000_H */