1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * Support for OR51132 (pcHDTV HD-3000) - VSB/QAM 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * Copyright (C) 2005 Kirk Lapray <kirk_lapray@bigfoot.com> 6*4882a593Smuzhiyun */ 7*4882a593Smuzhiyun 8*4882a593Smuzhiyun #ifndef OR51132_H 9*4882a593Smuzhiyun #define OR51132_H 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun #include <linux/firmware.h> 12*4882a593Smuzhiyun #include <linux/dvb/frontend.h> 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun struct or51132_config 15*4882a593Smuzhiyun { 16*4882a593Smuzhiyun /* The demodulator's i2c address */ 17*4882a593Smuzhiyun u8 demod_address; 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun /* Need to set device param for start_dma */ 20*4882a593Smuzhiyun int (*set_ts_params)(struct dvb_frontend* fe, int is_punctured); 21*4882a593Smuzhiyun }; 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun #if IS_REACHABLE(CONFIG_DVB_OR51132) 24*4882a593Smuzhiyun extern struct dvb_frontend* or51132_attach(const struct or51132_config* config, 25*4882a593Smuzhiyun struct i2c_adapter* i2c); 26*4882a593Smuzhiyun #else or51132_attach(const struct or51132_config * config,struct i2c_adapter * i2c)27*4882a593Smuzhiyunstatic inline struct dvb_frontend* or51132_attach(const struct or51132_config* config, 28*4882a593Smuzhiyun struct i2c_adapter* i2c) 29*4882a593Smuzhiyun { 30*4882a593Smuzhiyun printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); 31*4882a593Smuzhiyun return NULL; 32*4882a593Smuzhiyun } 33*4882a593Smuzhiyun #endif // CONFIG_DVB_OR51132 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun #endif // OR51132_H 36