itd1000_priv.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. #ifndef ITD1000_PRIV_H
  18. #define ITD1000_PRIV_H
  19. struct itd1000_state {
  20. struct itd1000_config *cfg;
  21. struct i2c_adapter *i2c;
  22. u32 frequency; /* contains the value resulting from the LO-setting */
  23. /* ugly workaround for flexcop's incapable i2c-controller
  24. * FIXME, if possible
  25. */
  26. u8 shadow[256];
  27. };
  28. enum itd1000_register {
  29. VCO_CHP1 = 0x65,
  30. VCO_CHP2,
  31. PLLCON1,
  32. PLLNH,
  33. PLLNL,
  34. PLLFH,
  35. PLLFM,
  36. PLLFL,
  37. RESERVED_0X6D,
  38. PLLLOCK,
  39. VCO_CHP2_I2C,
  40. VCO_CHP1_I2C,
  41. BW,
  42. RESERVED_0X73 = 0x73,
  43. RESERVED_0X74,
  44. RESERVED_0X75,
  45. GVBB,
  46. GVRF,
  47. GVBB_I2C,
  48. EXTGVBBRF,
  49. DIVAGCCK,
  50. BBTR,
  51. RFTR,
  52. BBGVMIN,
  53. RESERVED_0X7E,
  54. RESERVED_0X85 = 0x85,
  55. RESERVED_0X86,
  56. CON1,
  57. RESERVED_0X88,
  58. RESERVED_0X89,
  59. RFST0,
  60. RFST1,
  61. RFST2,
  62. RFST3,
  63. RFST4,
  64. RFST5,
  65. RFST6,
  66. RFST7,
  67. RFST8,
  68. RFST9,
  69. RESERVED_0X94,
  70. RESERVED_0X95,
  71. RESERVED_0X96,
  72. RESERVED_0X97,
  73. RESERVED_0X98,
  74. RESERVED_0X99,
  75. RESERVED_0X9A,
  76. RESERVED_0X9B,
  77. };
  78. #endif