zl10036.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /**
  2. * Driver for Zarlink ZL10036 DVB-S silicon tuner
  3. *
  4. * Copyright (C) 2006 Tino Reichardt
  5. * Copyright (C) 2007-2009 Matthias Schwarzott <zzam@gentoo.de>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License Version 2, as
  9. * published by the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. */
  20. #ifndef DVB_ZL10036_H
  21. #define DVB_ZL10036_H
  22. #include <linux/i2c.h>
  23. #include "dvb_frontend.h"
  24. /**
  25. * Attach a zl10036 tuner to the supplied frontend structure.
  26. *
  27. * @param fe Frontend to attach to.
  28. * @param config zl10036_config structure
  29. * @return FE pointer on success, NULL on failure.
  30. */
  31. struct zl10036_config {
  32. u8 tuner_address;
  33. int rf_loop_enable;
  34. };
  35. #if defined(CONFIG_DVB_ZL10036) || \
  36. (defined(CONFIG_DVB_ZL10036_MODULE) && defined(MODULE))
  37. extern struct dvb_frontend *zl10036_attach(struct dvb_frontend *fe,
  38. const struct zl10036_config *config, struct i2c_adapter *i2c);
  39. #else
  40. static inline struct dvb_frontend *zl10036_attach(struct dvb_frontend *fe,
  41. const struct zl10036_config *config, struct i2c_adapter *i2c)
  42. {
  43. printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  44. return NULL;
  45. }
  46. #endif
  47. #endif /* DVB_ZL10036_H */