Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  *    Support for OR51211 (pcHDTV HD-2000) - VSB
0004  *
0005  *    Copyright (C) 2005 Kirk Lapray <kirk_lapray@bigfoot.com>
0006 */
0007 
0008 #ifndef OR51211_H
0009 #define OR51211_H
0010 
0011 #include <linux/dvb/frontend.h>
0012 #include <linux/firmware.h>
0013 
0014 struct or51211_config
0015 {
0016     /* The demodulator's i2c address */
0017     u8 demod_address;
0018 
0019     /* Request firmware for device */
0020     int (*request_firmware)(struct dvb_frontend* fe, const struct firmware **fw, char* name);
0021     void (*setmode)(struct dvb_frontend * fe, int mode);
0022     void (*reset)(struct dvb_frontend * fe);
0023     void (*sleep)(struct dvb_frontend * fe);
0024 };
0025 
0026 #if IS_REACHABLE(CONFIG_DVB_OR51211)
0027 extern struct dvb_frontend* or51211_attach(const struct or51211_config* config,
0028                        struct i2c_adapter* i2c);
0029 #else
0030 static inline struct dvb_frontend* or51211_attach(const struct or51211_config* config,
0031                        struct i2c_adapter* i2c)
0032 {
0033     printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0034     return NULL;
0035 }
0036 #endif // CONFIG_DVB_OR51211
0037 
0038 #endif // OR51211_H
0039