Path: blob/master/drivers/media/dvb/frontends/dib3000.h
15112 views
/*1* public header file of the frontend drivers for mobile DVB-T demodulators2* DiBcom 3000M-B and DiBcom 3000P/M-C (http://www.dibcom.fr/)3*4* Copyright (C) 2004-5 Patrick Boettcher ([email protected])5*6* based on GPL code from DibCom, which has7*8* Copyright (C) 2004 Amaury Demol for DiBcom ([email protected])9*10* This program is free software; you can redistribute it and/or11* modify it under the terms of the GNU General Public License as12* published by the Free Software Foundation, version 2.13*14* Acknowledgements15*16* Amaury Demol ([email protected]) from DiBcom for providing specs and driver17* sources, on which this driver (and the dvb-dibusb) are based.18*19* see Documentation/dvb/README.dibusb for more information20*21*/2223#ifndef DIB3000_H24#define DIB3000_H2526#include <linux/dvb/frontend.h>2728struct dib3000_config29{30/* the demodulator's i2c address */31u8 demod_address;32};3334struct dib_fe_xfer_ops35{36/* pid and transfer handling is done in the demodulator */37int (*pid_parse)(struct dvb_frontend *fe, int onoff);38int (*fifo_ctrl)(struct dvb_frontend *fe, int onoff);39int (*pid_ctrl)(struct dvb_frontend *fe, int index, int pid, int onoff);40int (*tuner_pass_ctrl)(struct dvb_frontend *fe, int onoff, u8 pll_ctrl);41};4243#if defined(CONFIG_DVB_DIB3000MB) || (defined(CONFIG_DVB_DIB3000MB_MODULE) && defined(MODULE))44extern struct dvb_frontend* dib3000mb_attach(const struct dib3000_config* config,45struct i2c_adapter* i2c, struct dib_fe_xfer_ops *xfer_ops);46#else47static inline struct dvb_frontend* dib3000mb_attach(const struct dib3000_config* config,48struct i2c_adapter* i2c, struct dib_fe_xfer_ops *xfer_ops)49{50printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);51return NULL;52}53#endif // CONFIG_DVB_DIB3000MB5455#endif // DIB3000_H565758