Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  *    Support for OR51132 (pcHDTV HD-3000) - VSB/QAM
0004  *
0005  *    Copyright (C) 2005 Kirk Lapray <kirk_lapray@bigfoot.com>
0006 */
0007 
0008 #ifndef OR51132_H
0009 #define OR51132_H
0010 
0011 #include <linux/firmware.h>
0012 #include <linux/dvb/frontend.h>
0013 
0014 struct or51132_config
0015 {
0016     /* The demodulator's i2c address */
0017     u8 demod_address;
0018 
0019     /* Need to set device param for start_dma */
0020     int (*set_ts_params)(struct dvb_frontend* fe, int is_punctured);
0021 };
0022 
0023 #if IS_REACHABLE(CONFIG_DVB_OR51132)
0024 extern struct dvb_frontend* or51132_attach(const struct or51132_config* config,
0025                        struct i2c_adapter* i2c);
0026 #else
0027 static inline struct dvb_frontend* or51132_attach(const struct or51132_config* config,
0028                        struct i2c_adapter* i2c)
0029 {
0030     printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0031     return NULL;
0032 }
0033 #endif // CONFIG_DVB_OR51132
0034 
0035 #endif // OR51132_H