WIP FPC-III support
[linux/fpc-iii.git] / drivers / media / dvb-frontends / or51132.h
blob75592cd2c683d9f2d8539a9df5d1dedb2191da66
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Support for OR51132 (pcHDTV HD-3000) - VSB/QAM
5 * Copyright (C) 2005 Kirk Lapray <kirk_lapray@bigfoot.com>
6 */
8 #ifndef OR51132_H
9 #define OR51132_H
11 #include <linux/firmware.h>
12 #include <linux/dvb/frontend.h>
14 struct or51132_config
16 /* The demodulator's i2c address */
17 u8 demod_address;
19 /* Need to set device param for start_dma */
20 int (*set_ts_params)(struct dvb_frontend* fe, int is_punctured);
23 #if IS_REACHABLE(CONFIG_DVB_OR51132)
24 extern struct dvb_frontend* or51132_attach(const struct or51132_config* config,
25 struct i2c_adapter* i2c);
26 #else
27 static inline struct dvb_frontend* or51132_attach(const struct or51132_config* config,
28 struct i2c_adapter* i2c)
30 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
31 return NULL;
33 #endif // CONFIG_DVB_OR51132
35 #endif // OR51132_H