Path: blob/master/drivers/media/dvb/frontends/bcm3510.h
15112 views
/*1* Support for the Broadcom BCM3510 ATSC demodulator (1st generation Air2PC)2*3* Copyright (C) 2001-5, B2C2 inc.4*5* GPL/Linux driver written by Patrick Boettcher <[email protected]>6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License as published by9* the Free Software Foundation; either version 2 of the License, or10* (at your option) any later version.11*12* This program is distributed in the hope that it will be useful,13* but WITHOUT ANY WARRANTY; without even the implied warranty of14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15* GNU General Public License for more details.16*17* You should have received a copy of the GNU General Public License18* along with this program; if not, write to the Free Software19* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.20*/21#ifndef BCM3510_H22#define BCM3510_H2324#include <linux/dvb/frontend.h>25#include <linux/firmware.h>2627struct bcm3510_config28{29/* the demodulator's i2c address */30u8 demod_address;3132/* request firmware for device */33int (*request_firmware)(struct dvb_frontend* fe, const struct firmware **fw, char* name);34};3536#if defined(CONFIG_DVB_BCM3510) || (defined(CONFIG_DVB_BCM3510_MODULE) && defined(MODULE))37extern struct dvb_frontend* bcm3510_attach(const struct bcm3510_config* config,38struct i2c_adapter* i2c);39#else40static inline struct dvb_frontend* bcm3510_attach(const struct bcm3510_config* config,41struct i2c_adapter* i2c)42{43printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);44return NULL;45}46#endif // CONFIG_DVB_BCM35104748#endif495051