Path: blob/master/drivers/media/dvb/frontends/cx24116.h
15112 views
/*1Conexant cx24116/cx24118 - DVBS/S2 Satellite demod/tuner driver23Copyright (C) 2006 Steven Toth <[email protected]>45This program is free software; you can redistribute it and/or modify6it under the terms of the GNU General Public License as published by7the Free Software Foundation; either version 2 of the License, or8(at your option) any later version.910This program is distributed in the hope that it will be useful,11but WITHOUT ANY WARRANTY; without even the implied warranty of12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13GNU General Public License for more details.1415You should have received a copy of the GNU General Public License16along with this program; if not, write to the Free Software17Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.18*/1920#ifndef CX24116_H21#define CX24116_H2223#include <linux/dvb/frontend.h>2425struct cx24116_config {26/* the demodulator's i2c address */27u8 demod_address;2829/* Need to set device param for start_dma */30int (*set_ts_params)(struct dvb_frontend *fe, int is_punctured);3132/* Need to reset device during firmware loading */33int (*reset_device)(struct dvb_frontend *fe);3435/* Need to set MPEG parameters */36u8 mpg_clk_pos_pol:0x02;3738/* max bytes I2C provider can write at once */39u16 i2c_wr_max;40};4142#if defined(CONFIG_DVB_CX24116) || \43(defined(CONFIG_DVB_CX24116_MODULE) && defined(MODULE))44extern struct dvb_frontend *cx24116_attach(45const struct cx24116_config *config,46struct i2c_adapter *i2c);47#else48static inline struct dvb_frontend *cx24116_attach(49const struct cx24116_config *config,50struct i2c_adapter *i2c)51{52printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);53return NULL;54}55#endif5657#endif /* CX24116_H */585960