Path: blob/master/drivers/media/dvb/frontends/cx24113.h
15112 views
/*1* Driver for Conexant CX24113/CX24128 Tuner (Satellite)2*3* Copyright (C) 2007-8 Patrick Boettcher <[email protected]>4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (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 of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13*14* GNU General Public License for more details.15*16* You should have received a copy of the GNU General Public License17* along with this program; if not, write to the Free Software18* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.19*/2021#ifndef CX24113_H22#define CX24113_H2324struct dvb_frontend;2526struct cx24113_config {27u8 i2c_addr; /* 0x14 or 0x54 */2829u32 xtal_khz;30};3132#if defined(CONFIG_DVB_TUNER_CX24113) || \33(defined(CONFIG_DVB_TUNER_CX24113_MODULE) && defined(MODULE))34extern struct dvb_frontend *cx24113_attach(struct dvb_frontend *,35const struct cx24113_config *config, struct i2c_adapter *i2c);3637extern void cx24113_agc_callback(struct dvb_frontend *fe);38#else39static inline struct dvb_frontend *cx24113_attach(struct dvb_frontend *fe,40const struct cx24113_config *config, struct i2c_adapter *i2c)41{42printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);43return NULL;44}4546static inline void cx24113_agc_callback(struct dvb_frontend *fe)47{48printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);49}50#endif5152#endif /* CX24113_H */535455