3 * Copyright (c) 2007 Mauro Carvalho Chehab (mchehab@infradead.org)
4 * This code is placed under the terms of the GNU General Public License v2
7 #ifndef __TUNER_XC2028_H__
8 #define __TUNER_XC2028_H__
10 #include "dvb_frontend.h"
12 #define XC2028_DEFAULT_FIRMWARE "xc3028-v27.fw"
14 enum xc2028_demod_types
16 XC3028_FE_DEFAULT = 0,
17 XC3028_FE_LG60, /* IF = 6.00 MHz */
18 XC3028_FE_ATI638, /* IF = 6.38 MHz */
19 XC3028_FE_OREN538, /* IF = 5.38 MHz */
20 XC3028_FE_OREN36, /* IF = 3.60 MHz */
21 XC3028_FE_TOYOTA388, /* IF = 3.88 MHz */
22 XC3028_FE_TOYOTA794, /* IF = 7.94 MHz */
23 XC3028_FE_DIBCOM52, /* IF = 5.20 MHz */
24 XC3028_FE_ZARLINK456, /* IF = 4.56 MHz */
25 XC3028_FE_CHINA, /* IF = 5.20 MHz */
31 unsigned int scode_table;
33 unsigned int d2633 :1;
34 unsigned int input1:1;
35 enum xc2028_demod_types demod;
38 struct xc2028_config {
39 struct i2c_adapter *i2c_adap;
42 struct xc2028_ctrl *ctrl;
43 int (*callback) (void *dev, int command, int arg);
46 /* xc2028 commands for callback */
47 #define XC2028_TUNER_RESET 0
48 #define XC2028_RESET_CLK 1
50 #if defined(CONFIG_TUNER_XC2028) || (defined(CONFIG_TUNER_XC2028_MODULE) && defined(MODULE))
51 void *xc2028_attach(struct dvb_frontend *fe, struct xc2028_config *cfg);
53 void *xc2028_attach(struct dvb_frontend *fe,
54 struct xc2028_config *cfg)
56 printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n",
62 #endif /* __TUNER_XC2028_H__ */