]> Pileus Git - ~andy/linux/blob - drivers/media/common/tuners/mt2063.h
a95c11e1e26ef01e159ea6ff0acfd04af18b19ef
[~andy/linux] / drivers / media / common / tuners / mt2063.h
1 #ifndef __MT2063_H__
2 #define __MT2063_H__
3
4 #include "dvb_frontend.h"
5
6 struct mt2063_config {
7         u8 tuner_address;
8         u32 refclock;
9 };
10
11 #if defined(CONFIG_MEDIA_TUNER_MT2063) || (defined(CONFIG_MEDIA_TUNER_MT2063_MODULE) && defined(MODULE))
12 struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
13                                    struct mt2063_config *config,
14                                    struct i2c_adapter *i2c);
15
16 #else
17
18 static inline struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
19                                    struct mt2063_config *config,
20                                    struct i2c_adapter *i2c)
21 {
22         printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
23         return NULL;
24 }
25
26 unsigned int mt2063_setTune(struct dvb_frontend *fe, u32 f_in,
27                                    u32 bw_in,
28                                    enum MTTune_atv_standard tv_type);
29
30 /* FIXME: Should use the standard DVB attachment interfaces */
31 unsigned int mt2063_lockStatus(struct dvb_frontend *fe);
32 unsigned int tuner_MT2063_SoftwareShutdown(struct dvb_frontend *fe);
33 unsigned int tuner_MT2063_ClearPowerMaskBits(struct dvb_frontend *fe);
34
35 #endif /* CONFIG_DVB_MT2063 */
36
37 #endif /* __MT2063_H__ */