blob: a1814d39f63d1dfae605e5223c2ceb0ec5253a63 [file] [log] [blame]
Manu Abraham00360202007-09-22 13:30:09 -03001#ifndef __TDA8261_H
2#define __TDA8261_H
3
4enum 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
12struct tda8261_config {
13// u8 buf[16];
14 u8 addr;
15 enum tda8261_step step_size;
16};
17
Manu Abrahamae9902d2007-10-08 18:51:54 -030018#if defined(CONFIG_DVB_TDA8261) || (defined(CONFIG_DVB_TDA8261_MODULE) && defined(MODULE))
19
Manu Abraham41e11512007-09-22 21:28:11 -030020extern struct dvb_frontend *tda8261_attach(struct dvb_frontend *fe,
21 const struct tda8261_config *config,
22 struct i2c_adapter *i2c);
Manu Abraham00360202007-09-22 13:30:09 -030023
Manu Abrahamae9902d2007-10-08 18:51:54 -030024#else
25
26static 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
Manu Abraham00360202007-09-22 13:30:09 -030036#endif// __TDA8261_H