Thomas Gleixner | c942fdd | 2019-05-27 08:55:06 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | /* |
| 3 | * Support for OR51132 (pcHDTV HD-3000) - VSB/QAM |
| 4 | * |
| 5 | * Copyright (C) 2005 Kirk Lapray <kirk_lapray@bigfoot.com> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef OR51132_H |
| 9 | #define OR51132_H |
| 10 | |
| 11 | #include <linux/firmware.h> |
| 12 | #include <linux/dvb/frontend.h> |
| 13 | |
| 14 | struct or51132_config |
| 15 | { |
| 16 | /* The demodulator's i2c address */ |
| 17 | u8 demod_address; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | |
| 19 | /* Need to set device param for start_dma */ |
| 20 | int (*set_ts_params)(struct dvb_frontend* fe, int is_punctured); |
| 21 | }; |
| 22 | |
Arnd Bergmann | 9b17452 | 2015-02-18 14:12:42 -0300 | [diff] [blame] | 23 | #if IS_REACHABLE(CONFIG_DVB_OR51132) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | extern struct dvb_frontend* or51132_attach(const struct or51132_config* config, |
| 25 | struct i2c_adapter* i2c); |
Andrew de Quincey | 102a342 | 2006-08-08 09:10:08 -0300 | [diff] [blame] | 26 | #else |
| 27 | static inline struct dvb_frontend* or51132_attach(const struct or51132_config* config, |
| 28 | struct i2c_adapter* i2c) |
| 29 | { |
Harvey Harrison | 271ddbf | 2008-04-08 23:20:00 -0300 | [diff] [blame] | 30 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
Andrew de Quincey | 102a342 | 2006-08-08 09:10:08 -0300 | [diff] [blame] | 31 | return NULL; |
| 32 | } |
| 33 | #endif // CONFIG_DVB_OR51132 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 34 | |
| 35 | #endif // OR51132_H |