lgdt330x_priv.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Support for LGDT3302 and LGDT3303 - VSB/QAM
  4. *
  5. * Copyright (C) 2005 Wilson Michaels <wilsonmichaels@earthlink.net>
  6. */
  7. #ifndef _LGDT330X_PRIV_
  8. #define _LGDT330X_PRIV_
  9. /* i2c control register addresses */
  10. enum I2C_REG {
  11. TOP_CONTROL= 0x00,
  12. IRQ_MASK= 0x01,
  13. IRQ_STATUS= 0x02,
  14. VSB_CARRIER_FREQ0= 0x16,
  15. VSB_CARRIER_FREQ1= 0x17,
  16. VSB_CARRIER_FREQ2= 0x18,
  17. VSB_CARRIER_FREQ3= 0x19,
  18. CARRIER_MSEQAM1= 0x1a,
  19. CARRIER_MSEQAM2= 0x1b,
  20. CARRIER_LOCK= 0x1c,
  21. TIMING_RECOVERY= 0x1d,
  22. AGC_DELAY0= 0x2a,
  23. AGC_DELAY1= 0x2b,
  24. AGC_DELAY2= 0x2c,
  25. AGC_RF_BANDWIDTH0= 0x2d,
  26. AGC_RF_BANDWIDTH1= 0x2e,
  27. AGC_RF_BANDWIDTH2= 0x2f,
  28. AGC_LOOP_BANDWIDTH0= 0x30,
  29. AGC_LOOP_BANDWIDTH1= 0x31,
  30. AGC_FUNC_CTRL1= 0x32,
  31. AGC_FUNC_CTRL2= 0x33,
  32. AGC_FUNC_CTRL3= 0x34,
  33. AGC_RFIF_ACC0= 0x39,
  34. AGC_RFIF_ACC1= 0x3a,
  35. AGC_RFIF_ACC2= 0x3b,
  36. AGC_STATUS= 0x3f,
  37. SYNC_STATUS_VSB= 0x43,
  38. DEMUX_CONTROL= 0x66,
  39. LGDT3302_EQPH_ERR0= 0x47,
  40. LGDT3302_EQ_ERR1= 0x48,
  41. LGDT3302_EQ_ERR2= 0x49,
  42. LGDT3302_PH_ERR1= 0x4a,
  43. LGDT3302_PH_ERR2= 0x4b,
  44. LGDT3302_PACKET_ERR_COUNTER1= 0x6a,
  45. LGDT3302_PACKET_ERR_COUNTER2= 0x6b,
  46. LGDT3303_EQPH_ERR0= 0x6e,
  47. LGDT3303_EQ_ERR1= 0x6f,
  48. LGDT3303_EQ_ERR2= 0x70,
  49. LGDT3303_PH_ERR1= 0x71,
  50. LGDT3303_PH_ERR2= 0x72,
  51. LGDT3303_PACKET_ERR_COUNTER1= 0x8b,
  52. LGDT3303_PACKET_ERR_COUNTER2= 0x8c,
  53. };
  54. #endif /* _LGDT330X_PRIV_ */