it913x.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * ITE Tech IT9137 silicon tuner driver
  3. *
  4. * Copyright (C) 2011 Malcolm Priestley (tvboxspy@gmail.com)
  5. * IT9137 Copyright (C) ITE Tech Inc.
  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 as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. *
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.=
  21. */
  22. #ifndef IT913X_H
  23. #define IT913X_H
  24. #include "dvb_frontend.h"
  25. /*
  26. * I2C address
  27. * 0x38, 0x3a, 0x3c, 0x3e
  28. */
  29. struct it913x_config {
  30. /*
  31. * pointer to DVB frontend
  32. */
  33. struct dvb_frontend *fe;
  34. /*
  35. * chip version
  36. * 1 = IT9135 AX
  37. * 2 = IT9135 BX
  38. */
  39. unsigned int chip_ver:2;
  40. /*
  41. * tuner role
  42. */
  43. #define IT913X_ROLE_SINGLE 0
  44. #define IT913X_ROLE_DUAL_MASTER 1
  45. #define IT913X_ROLE_DUAL_SLAVE 2
  46. unsigned int role:2;
  47. };
  48. #endif