Path: blob/master/drivers/media/dvb/frontends/cx22702.h
15112 views
/*1Conexant 22702 DVB OFDM demodulator driver23based on:4Alps TDMB7 DVB OFDM demodulator driver56Copyright (C) 2001-2002 Convergence Integrated Media GmbH7Holger Waechtler <[email protected]>89Copyright (C) 2004 Steven Toth <[email protected]>1011This program is free software; you can redistribute it and/or modify12it under the terms of the GNU General Public License as published by13the Free Software Foundation; either version 2 of the License, or14(at your option) any later version.1516This program is distributed in the hope that it will be useful,17but WITHOUT ANY WARRANTY; without even the implied warranty of18MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the19GNU General Public License for more details.2021You should have received a copy of the GNU General Public License22along with this program; if not, write to the Free Software23Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.2425*/2627#ifndef CX22702_H28#define CX22702_H2930#include <linux/dvb/frontend.h>3132struct cx22702_config {33/* the demodulator's i2c address */34u8 demod_address;3536/* serial/parallel output */37#define CX22702_PARALLEL_OUTPUT 038#define CX22702_SERIAL_OUTPUT 139u8 output_mode;40};4142#if defined(CONFIG_DVB_CX22702) || (defined(CONFIG_DVB_CX22702_MODULE) \43&& defined(MODULE))44extern struct dvb_frontend *cx22702_attach(45const struct cx22702_config *config,46struct i2c_adapter *i2c);47#else48static inline struct dvb_frontend *cx22702_attach(49const struct cx22702_config *config,50struct i2c_adapter *i2c)51{52printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);53return NULL;54}55#endif5657#endif585960