Manu Abraham | 8be969b | 2008-01-25 18:20:48 -0300 | [diff] [blame] | 1 | /* |
| 2 | TDA8261 8PSK/QPSK tuner driver |
| 3 | Copyright (C) Manu Abraham (abraham.manu@gmail.com) |
| 4 | |
| 5 | This program is free software; you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by |
| 7 | the Free Software Foundation; either version 2 of the License, or |
| 8 | (at your option) any later version. |
| 9 | |
| 10 | This program is distributed in the hope that it will be useful, |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | GNU General Public License for more details. |
| 14 | |
| 15 | You should have received a copy of the GNU General Public License |
| 16 | along with this program; if not, write to the Free Software |
| 17 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 18 | */ |
| 19 | |
Manu Abraham | 0036020 | 2007-09-22 13:30:09 -0300 | [diff] [blame] | 20 | #ifndef __TDA8261_H |
| 21 | #define __TDA8261_H |
| 22 | |
| 23 | enum tda8261_step { |
| 24 | TDA8261_STEP_2000 = 0, /* 2000 kHz */ |
| 25 | TDA8261_STEP_1000, /* 1000 kHz */ |
| 26 | TDA8261_STEP_500, /* 500 kHz */ |
| 27 | TDA8261_STEP_250, /* 250 kHz */ |
| 28 | TDA8261_STEP_125 /* 125 kHz */ |
| 29 | }; |
| 30 | |
| 31 | struct tda8261_config { |
| 32 | // u8 buf[16]; |
| 33 | u8 addr; |
| 34 | enum tda8261_step step_size; |
| 35 | }; |
| 36 | |
Peter Senna Tschudin | 7b34be7 | 2013-01-20 01:32:56 -0300 | [diff] [blame] | 37 | #if IS_ENABLED(CONFIG_DVB_TDA8261) |
Manu Abraham | ae9902d | 2007-10-08 18:51:54 -0300 | [diff] [blame] | 38 | |
Manu Abraham | 41e1151 | 2007-09-22 21:28:11 -0300 | [diff] [blame] | 39 | extern struct dvb_frontend *tda8261_attach(struct dvb_frontend *fe, |
| 40 | const struct tda8261_config *config, |
| 41 | struct i2c_adapter *i2c); |
Manu Abraham | 0036020 | 2007-09-22 13:30:09 -0300 | [diff] [blame] | 42 | |
Manu Abraham | ae9902d | 2007-10-08 18:51:54 -0300 | [diff] [blame] | 43 | #else |
| 44 | |
| 45 | static inline struct dvb_frontend *tda8261_attach(struct dvb_frontend *fe, |
| 46 | const struct tda8261_config *config, |
| 47 | struct i2c_adapter *i2c) |
| 48 | { |
| 49 | printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__); |
| 50 | return NULL; |
| 51 | } |
| 52 | |
| 53 | #endif //CONFIG_DVB_TDA8261 |
| 54 | |
Manu Abraham | 0036020 | 2007-09-22 13:30:09 -0300 | [diff] [blame] | 55 | #endif// __TDA8261_H |