blob: 62d0e8ec4e99723a9a2c6682a200056f9efbab75 [file] [log] [blame]
Mauro Carvalho Chehab0e301442011-07-20 19:52:49 -03001#ifndef __MT2063_H__
2#define __MT2063_H__
3
Mauro Carvalho Chehab0e301442011-07-20 19:52:49 -03004#include "dvb_frontend.h"
5
Mauro Carvalho Chehab0e301442011-07-20 19:52:49 -03006struct mt2063_config {
7 u8 tuner_address;
8 u32 refclock;
9};
10
Mauro Carvalho Chehabb6756682011-07-20 20:58:25 -030011#if defined(CONFIG_MEDIA_TUNER_MT2063) || (defined(CONFIG_MEDIA_TUNER_MT2063_MODULE) && defined(MODULE))
12struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
13 struct mt2063_config *config,
14 struct i2c_adapter *i2c);
Mauro Carvalho Chehab223c7b02011-07-20 19:48:59 -030015
16#else
17
Mauro Carvalho Chehab0e301442011-07-20 19:52:49 -030018static inline struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
Mauro Carvalho Chehabb6756682011-07-20 20:58:25 -030019 struct mt2063_config *config,
20 struct i2c_adapter *i2c)
Mauro Carvalho Chehab223c7b02011-07-20 19:48:59 -030021{
22 printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
23 return NULL;
24}
25
Mauro Carvalho Chehab4713e2252011-07-21 11:23:59 -030026int mt2063_setTune(struct dvb_frontend *fe, u32 f_in,
Mauro Carvalho Chehabf8676952011-07-20 22:00:30 -030027 u32 bw_in,
28 enum MTTune_atv_standard tv_type);
29
Mauro Carvalho Chehab3d497002011-07-21 11:00:59 -030030/* FIXME: Should use the standard DVB attachment interfaces */
Mauro Carvalho Chehabf8676952011-07-20 22:00:30 -030031unsigned int tuner_MT2063_SoftwareShutdown(struct dvb_frontend *fe);
32unsigned int tuner_MT2063_ClearPowerMaskBits(struct dvb_frontend *fe);
33
Mauro Carvalho Chehab4dca4ef2011-07-20 20:15:01 -030034#endif /* CONFIG_DVB_MT2063 */
Mauro Carvalho Chehab0e301442011-07-20 19:52:49 -030035
Mauro Carvalho Chehab4dca4ef2011-07-20 20:15:01 -030036#endif /* __MT2063_H__ */