drxd_firm.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /*
  2. * drxd_firm.h
  3. *
  4. * Copyright (C) 2006-2007 Micronas
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * version 2 only, as published by the Free Software Foundation.
  9. *
  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. *
  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., 51 Franklin Street, Fifth Floor, Boston, MA
  20. * 02110-1301, USA
  21. * Or, point your browser to http://www.gnu.org/copyleft/gpl.html
  22. */
  23. #ifndef _DRXD_FIRM_H_
  24. #define _DRXD_FIRM_H_
  25. #include <linux/types.h>
  26. #include "drxd_map_firm.h"
  27. #define VERSION_MAJOR 1
  28. #define VERSION_MINOR 4
  29. #define VERSION_PATCH 23
  30. #define HI_TR_FUNC_ADDR HI_IF_RAM_USR_BEGIN__A
  31. #define DRXD_MAX_RETRIES (1000)
  32. #define HI_I2C_DELAY 84
  33. #define HI_I2C_BRIDGE_DELAY 750
  34. #define EQ_TD_TPS_PWR_UNKNOWN 0x00C0 /* Unknown configurations */
  35. #define EQ_TD_TPS_PWR_QPSK 0x016a
  36. #define EQ_TD_TPS_PWR_QAM16_ALPHAN 0x0195
  37. #define EQ_TD_TPS_PWR_QAM16_ALPHA1 0x0195
  38. #define EQ_TD_TPS_PWR_QAM16_ALPHA2 0x011E
  39. #define EQ_TD_TPS_PWR_QAM16_ALPHA4 0x01CE
  40. #define EQ_TD_TPS_PWR_QAM64_ALPHAN 0x019F
  41. #define EQ_TD_TPS_PWR_QAM64_ALPHA1 0x019F
  42. #define EQ_TD_TPS_PWR_QAM64_ALPHA2 0x00F8
  43. #define EQ_TD_TPS_PWR_QAM64_ALPHA4 0x014D
  44. #define DRXD_DEF_AG_PWD_CONSUMER 0x000E
  45. #define DRXD_DEF_AG_PWD_PRO 0x0000
  46. #define DRXD_DEF_AG_AGC_SIO 0x0000
  47. #define DRXD_FE_CTRL_MAX 1023
  48. #define DRXD_OSCDEV_DO_SCAN (16)
  49. #define DRXD_OSCDEV_DONT_SCAN (0)
  50. #define DRXD_OSCDEV_STEP (275)
  51. #define DRXD_SCAN_TIMEOUT (650)
  52. #define DRXD_BANDWIDTH_8MHZ_IN_HZ (0x8B8249L)
  53. #define DRXD_BANDWIDTH_7MHZ_IN_HZ (0x7A1200L)
  54. #define DRXD_BANDWIDTH_6MHZ_IN_HZ (0x68A1B6L)
  55. #define IRLEN_COARSE_8K (10)
  56. #define IRLEN_FINE_8K (10)
  57. #define IRLEN_COARSE_2K (7)
  58. #define IRLEN_FINE_2K (9)
  59. #define DIFF_INVALID (511)
  60. #define DIFF_TARGET (4)
  61. #define DIFF_MARGIN (1)
  62. extern u8 DRXD_InitAtomicRead[];
  63. extern u8 DRXD_HiI2cPatch_1[];
  64. extern u8 DRXD_HiI2cPatch_3[];
  65. extern u8 DRXD_InitSC[];
  66. extern u8 DRXD_ResetCEFR[];
  67. extern u8 DRXD_InitFEA2_1[];
  68. extern u8 DRXD_InitFEA2_2[];
  69. extern u8 DRXD_InitCPA2[];
  70. extern u8 DRXD_InitCEA2[];
  71. extern u8 DRXD_InitEQA2[];
  72. extern u8 DRXD_InitECA2[];
  73. extern u8 DRXD_ResetECA2[];
  74. extern u8 DRXD_ResetECRAM[];
  75. extern u8 DRXD_A2_microcode[];
  76. extern u32 DRXD_A2_microcode_length;
  77. extern u8 DRXD_InitFEB1_1[];
  78. extern u8 DRXD_InitFEB1_2[];
  79. extern u8 DRXD_InitCPB1[];
  80. extern u8 DRXD_InitCEB1[];
  81. extern u8 DRXD_InitEQB1[];
  82. extern u8 DRXD_InitECB1[];
  83. extern u8 DRXD_InitDiversityFront[];
  84. extern u8 DRXD_InitDiversityEnd[];
  85. extern u8 DRXD_DisableDiversity[];
  86. extern u8 DRXD_StartDiversityFront[];
  87. extern u8 DRXD_StartDiversityEnd[];
  88. extern u8 DRXD_DiversityDelay8MHZ[];
  89. extern u8 DRXD_DiversityDelay6MHZ[];
  90. extern u8 DRXD_B1_microcode[];
  91. extern u32 DRXD_B1_microcode_length;
  92. #endif