zl10036.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /**
  3. * Driver for Zarlink ZL10036 DVB-S silicon tuner
  4. *
  5. * Copyright (C) 2006 Tino Reichardt
  6. * Copyright (C) 2007-2009 Matthias Schwarzott <zzam@gentoo.de>
  7. */
  8. #ifndef DVB_ZL10036_H
  9. #define DVB_ZL10036_H
  10. #include <linux/i2c.h>
  11. #include <media/dvb_frontend.h>
  12. struct zl10036_config {
  13. u8 tuner_address;
  14. int rf_loop_enable;
  15. };
  16. #if IS_REACHABLE(CONFIG_DVB_ZL10036)
  17. /**
  18. * Attach a zl10036 tuner to the supplied frontend structure.
  19. *
  20. * @fe: Frontend to attach to.
  21. * @config: zl10036_config structure.
  22. * @i2c: pointer to struct i2c_adapter.
  23. * return: FE pointer on success, NULL on failure.
  24. */
  25. extern struct dvb_frontend *zl10036_attach(struct dvb_frontend *fe,
  26. const struct zl10036_config *config, struct i2c_adapter *i2c);
  27. #else
  28. static inline struct dvb_frontend *zl10036_attach(struct dvb_frontend *fe,
  29. const struct zl10036_config *config, struct i2c_adapter *i2c)
  30. {
  31. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  32. return NULL;
  33. }
  34. #endif
  35. #endif /* DVB_ZL10036_H */