itd1000_priv.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*
  2. * Driver for the Integrant ITD1000 "Zero-IF Tuner IC for Direct Broadcast Satellite"
  3. *
  4. * Copyright (c) 2007 Patrick Boettcher <pb@linuxtv.org>
  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. *
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.=
  20. */
  21. #ifndef ITD1000_PRIV_H
  22. #define ITD1000_PRIV_H
  23. struct itd1000_state {
  24. struct itd1000_config *cfg;
  25. struct i2c_adapter *i2c;
  26. u32 frequency; /* contains the value resulting from the LO-setting */
  27. /* ugly workaround for flexcop's incapable i2c-controller
  28. * FIXME, if possible
  29. */
  30. u8 shadow[256];
  31. };
  32. enum itd1000_register {
  33. VCO_CHP1 = 0x65,
  34. VCO_CHP2,
  35. PLLCON1,
  36. PLLNH,
  37. PLLNL,
  38. PLLFH,
  39. PLLFM,
  40. PLLFL,
  41. RESERVED_0X6D,
  42. PLLLOCK,
  43. VCO_CHP2_I2C,
  44. VCO_CHP1_I2C,
  45. BW,
  46. RESERVED_0X73 = 0x73,
  47. RESERVED_0X74,
  48. RESERVED_0X75,
  49. GVBB,
  50. GVRF,
  51. GVBB_I2C,
  52. EXTGVBBRF,
  53. DIVAGCCK,
  54. BBTR,
  55. RFTR,
  56. BBGVMIN,
  57. RESERVED_0X7E,
  58. RESERVED_0X85 = 0x85,
  59. RESERVED_0X86,
  60. CON1,
  61. RESERVED_0X88,
  62. RESERVED_0X89,
  63. RFST0,
  64. RFST1,
  65. RFST2,
  66. RFST3,
  67. RFST4,
  68. RFST5,
  69. RFST6,
  70. RFST7,
  71. RFST8,
  72. RFST9,
  73. RESERVED_0X94,
  74. RESERVED_0X95,
  75. RESERVED_0X96,
  76. RESERVED_0X97,
  77. RESERVED_0X98,
  78. RESERVED_0X99,
  79. RESERVED_0X9A,
  80. RESERVED_0X9B,
  81. };
  82. #endif