m88ts2022.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * Montage M88TS2022 silicon tuner driver
  3. *
  4. * Copyright (C) 2013 Antti Palosaari <crope@iki.fi>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  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. #ifndef M88TS2022_H
  17. #define M88TS2022_H
  18. #include "dvb_frontend.h"
  19. struct m88ts2022_config {
  20. /*
  21. * clock
  22. * 16000000 - 32000000
  23. */
  24. u32 clock;
  25. /*
  26. * RF loop-through
  27. */
  28. u8 loop_through:1;
  29. /*
  30. * clock output
  31. */
  32. #define M88TS2022_CLOCK_OUT_DISABLED 0
  33. #define M88TS2022_CLOCK_OUT_ENABLED 1
  34. #define M88TS2022_CLOCK_OUT_ENABLED_XTALOUT 2
  35. u8 clock_out:2;
  36. /*
  37. * clock output divider
  38. * 1 - 31
  39. */
  40. u8 clock_out_div:5;
  41. /*
  42. * pointer to DVB frontend
  43. */
  44. struct dvb_frontend *fe;
  45. };
  46. #endif