19a0bf528SMauro Carvalho Chehab /* 29a0bf528SMauro Carvalho Chehab Driver for Grundig 29504-491, a Philips TDA8083 based QPSK Frontend 39a0bf528SMauro Carvalho Chehab 49a0bf528SMauro Carvalho Chehab Copyright (C) 2001 Convergence Integrated Media GmbH 59a0bf528SMauro Carvalho Chehab 69a0bf528SMauro Carvalho Chehab written by Ralph Metzler <ralph@convergence.de> 79a0bf528SMauro Carvalho Chehab 89a0bf528SMauro Carvalho Chehab adoption to the new DVB frontend API and diagnostic ioctl's 99a0bf528SMauro Carvalho Chehab by Holger Waechtler <holger@convergence.de> 109a0bf528SMauro Carvalho Chehab 119a0bf528SMauro Carvalho Chehab This program is free software; you can redistribute it and/or modify 129a0bf528SMauro Carvalho Chehab it under the terms of the GNU General Public License as published by 139a0bf528SMauro Carvalho Chehab the Free Software Foundation; either version 2 of the License, or 149a0bf528SMauro Carvalho Chehab (at your option) any later version. 159a0bf528SMauro Carvalho Chehab 169a0bf528SMauro Carvalho Chehab This program is distributed in the hope that it will be useful, 179a0bf528SMauro Carvalho Chehab but WITHOUT ANY WARRANTY; without even the implied warranty of 189a0bf528SMauro Carvalho Chehab MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 199a0bf528SMauro Carvalho Chehab GNU General Public License for more details. 209a0bf528SMauro Carvalho Chehab 219a0bf528SMauro Carvalho Chehab You should have received a copy of the GNU General Public License 229a0bf528SMauro Carvalho Chehab along with this program; if not, write to the Free Software 239a0bf528SMauro Carvalho Chehab Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 249a0bf528SMauro Carvalho Chehab 259a0bf528SMauro Carvalho Chehab */ 269a0bf528SMauro Carvalho Chehab 279a0bf528SMauro Carvalho Chehab #ifndef TDA8083_H 289a0bf528SMauro Carvalho Chehab #define TDA8083_H 299a0bf528SMauro Carvalho Chehab 309a0bf528SMauro Carvalho Chehab #include <linux/dvb/frontend.h> 319a0bf528SMauro Carvalho Chehab 329a0bf528SMauro Carvalho Chehab struct tda8083_config 339a0bf528SMauro Carvalho Chehab { 349a0bf528SMauro Carvalho Chehab /* the demodulator's i2c address */ 359a0bf528SMauro Carvalho Chehab u8 demod_address; 369a0bf528SMauro Carvalho Chehab }; 379a0bf528SMauro Carvalho Chehab 389b174527SArnd Bergmann #if IS_REACHABLE(CONFIG_DVB_TDA8083) 399a0bf528SMauro Carvalho Chehab extern struct dvb_frontend* tda8083_attach(const struct tda8083_config* config, 409a0bf528SMauro Carvalho Chehab struct i2c_adapter* i2c); 419a0bf528SMauro Carvalho Chehab #else 429a0bf528SMauro Carvalho Chehab static inline struct dvb_frontend* tda8083_attach(const struct tda8083_config* config, 439a0bf528SMauro Carvalho Chehab struct i2c_adapter* i2c) 449a0bf528SMauro Carvalho Chehab { 459a0bf528SMauro Carvalho Chehab printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); 469a0bf528SMauro Carvalho Chehab return NULL; 479a0bf528SMauro Carvalho Chehab } 489a0bf528SMauro Carvalho Chehab #endif // CONFIG_DVB_TDA8083 499a0bf528SMauro Carvalho Chehab 509a0bf528SMauro Carvalho Chehab #endif // TDA8083_H 51