]> pilppa.org Git - linux-2.6-omap-h63xx.git/blob - drivers/media/dvb/frontends/tda8261.h
a1814d39f63d1dfae605e5223c2ceb0ec5253a63
[linux-2.6-omap-h63xx.git] / drivers / media / dvb / frontends / tda8261.h
1 #ifndef __TDA8261_H
2 #define __TDA8261_H
3
4 enum tda8261_step {
5         TDA8261_STEP_2000 = 0,  /* 2000 kHz */
6         TDA8261_STEP_1000,      /* 1000 kHz */
7         TDA8261_STEP_500,       /*  500 kHz */
8         TDA8261_STEP_250,       /*  250 kHz */
9         TDA8261_STEP_125        /*  125 kHz */
10 };
11
12 struct tda8261_config {
13 //      u8                      buf[16];
14         u8                      addr;
15         enum tda8261_step       step_size;
16 };
17
18 #if defined(CONFIG_DVB_TDA8261) || (defined(CONFIG_DVB_TDA8261_MODULE) && defined(MODULE))
19
20 extern struct dvb_frontend *tda8261_attach(struct dvb_frontend *fe,
21                                            const struct tda8261_config *config,
22                                            struct i2c_adapter *i2c);
23
24 #else
25
26 static inline struct dvb_frontend *tda8261_attach(struct dvb_frontend *fe,
27                                                   const struct tda8261_config *config,
28                                                   struct i2c_adapter *i2c)
29 {
30         printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
31         return NULL;
32 }
33
34 #endif //CONFIG_DVB_TDA8261
35
36 #endif// __TDA8261_H