or51132.h 882 B

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