1*9a0bf528SMauro Carvalho Chehab /* 2*9a0bf528SMauro Carvalho Chehab * Driver for the Integrant ITD1000 "Zero-IF Tuner IC for Direct Broadcast Satellite" 3*9a0bf528SMauro Carvalho Chehab * 4*9a0bf528SMauro Carvalho Chehab * Copyright (c) 2007 Patrick Boettcher <pb@linuxtv.org> 5*9a0bf528SMauro Carvalho Chehab * 6*9a0bf528SMauro Carvalho Chehab * This program is free software; you can redistribute it and/or modify 7*9a0bf528SMauro Carvalho Chehab * it under the terms of the GNU General Public License as published by 8*9a0bf528SMauro Carvalho Chehab * the Free Software Foundation; either version 2 of the License, or 9*9a0bf528SMauro Carvalho Chehab * (at your option) any later version. 10*9a0bf528SMauro Carvalho Chehab * 11*9a0bf528SMauro Carvalho Chehab * This program is distributed in the hope that it will be useful, 12*9a0bf528SMauro Carvalho Chehab * but WITHOUT ANY WARRANTY; without even the implied warranty of 13*9a0bf528SMauro Carvalho Chehab * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14*9a0bf528SMauro Carvalho Chehab * 15*9a0bf528SMauro Carvalho Chehab * GNU General Public License for more details. 16*9a0bf528SMauro Carvalho Chehab * 17*9a0bf528SMauro Carvalho Chehab * You should have received a copy of the GNU General Public License 18*9a0bf528SMauro Carvalho Chehab * along with this program; if not, write to the Free Software 19*9a0bf528SMauro Carvalho Chehab * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.= 20*9a0bf528SMauro Carvalho Chehab */ 21*9a0bf528SMauro Carvalho Chehab 22*9a0bf528SMauro Carvalho Chehab #ifndef ITD1000_H 23*9a0bf528SMauro Carvalho Chehab #define ITD1000_H 24*9a0bf528SMauro Carvalho Chehab 25*9a0bf528SMauro Carvalho Chehab struct dvb_frontend; 26*9a0bf528SMauro Carvalho Chehab struct i2c_adapter; 27*9a0bf528SMauro Carvalho Chehab 28*9a0bf528SMauro Carvalho Chehab struct itd1000_config { 29*9a0bf528SMauro Carvalho Chehab u8 i2c_address; 30*9a0bf528SMauro Carvalho Chehab }; 31*9a0bf528SMauro Carvalho Chehab 32*9a0bf528SMauro Carvalho Chehab #if defined(CONFIG_DVB_TUNER_ITD1000) || (defined(CONFIG_DVB_TUNER_ITD1000_MODULE) && defined(MODULE)) 33*9a0bf528SMauro Carvalho Chehab extern struct dvb_frontend *itd1000_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct itd1000_config *cfg); 34*9a0bf528SMauro Carvalho Chehab #else 35*9a0bf528SMauro Carvalho Chehab static inline struct dvb_frontend *itd1000_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct itd1000_config *cfg) 36*9a0bf528SMauro Carvalho Chehab { 37*9a0bf528SMauro Carvalho Chehab printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); 38*9a0bf528SMauro Carvalho Chehab return NULL; 39*9a0bf528SMauro Carvalho Chehab } 40*9a0bf528SMauro Carvalho Chehab #endif 41*9a0bf528SMauro Carvalho Chehab 42*9a0bf528SMauro Carvalho Chehab #endif 43