1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * Support for OR51211 (pcHDTV HD-2000) - VSB 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * Copyright (C) 2005 Kirk Lapray <kirk_lapray@bigfoot.com> 6*4882a593Smuzhiyun */ 7*4882a593Smuzhiyun 8*4882a593Smuzhiyun #ifndef OR51211_H 9*4882a593Smuzhiyun #define OR51211_H 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun #include <linux/dvb/frontend.h> 12*4882a593Smuzhiyun #include <linux/firmware.h> 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun struct or51211_config 15*4882a593Smuzhiyun { 16*4882a593Smuzhiyun /* The demodulator's i2c address */ 17*4882a593Smuzhiyun u8 demod_address; 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun /* Request firmware for device */ 20*4882a593Smuzhiyun int (*request_firmware)(struct dvb_frontend* fe, const struct firmware **fw, char* name); 21*4882a593Smuzhiyun void (*setmode)(struct dvb_frontend * fe, int mode); 22*4882a593Smuzhiyun void (*reset)(struct dvb_frontend * fe); 23*4882a593Smuzhiyun void (*sleep)(struct dvb_frontend * fe); 24*4882a593Smuzhiyun }; 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun #if IS_REACHABLE(CONFIG_DVB_OR51211) 27*4882a593Smuzhiyun extern struct dvb_frontend* or51211_attach(const struct or51211_config* config, 28*4882a593Smuzhiyun struct i2c_adapter* i2c); 29*4882a593Smuzhiyun #else or51211_attach(const struct or51211_config * config,struct i2c_adapter * i2c)30*4882a593Smuzhiyunstatic inline struct dvb_frontend* or51211_attach(const struct or51211_config* config, 31*4882a593Smuzhiyun struct i2c_adapter* i2c) 32*4882a593Smuzhiyun { 33*4882a593Smuzhiyun printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); 34*4882a593Smuzhiyun return NULL; 35*4882a593Smuzhiyun } 36*4882a593Smuzhiyun #endif // CONFIG_DVB_OR51211 37*4882a593Smuzhiyun 38*4882a593Smuzhiyun #endif // OR51211_H 39*4882a593Smuzhiyun 40