odm_reg.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of version 2 of the GNU General Public License as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. * more details.
  13. *
  14. * You should have received a copy of the GNU General Public License along with
  15. * this program; if not, write to the Free Software Foundation, Inc.,
  16. * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
  17. *
  18. *
  19. ******************************************************************************/
  20. /* */
  21. /* File Name: odm_reg.h */
  22. /* */
  23. /* Description: */
  24. /* */
  25. /* This file is for general register definition. */
  26. /* */
  27. /* */
  28. /* */
  29. #ifndef __HAL_ODM_REG_H__
  30. #define __HAL_ODM_REG_H__
  31. /* */
  32. /* Register Definition */
  33. /* */
  34. /* MAC REG */
  35. #define ODM_BB_RESET 0x002
  36. #define ODM_DUMMY 0x4fe
  37. #define ODM_EDCA_VO_PARAM 0x500
  38. #define ODM_EDCA_VI_PARAM 0x504
  39. #define ODM_EDCA_BE_PARAM 0x508
  40. #define ODM_EDCA_BK_PARAM 0x50C
  41. #define ODM_TXPAUSE 0x522
  42. /* BB REG */
  43. #define ODM_FPGA_PHY0_PAGE8 0x800
  44. #define ODM_PSD_SETTING 0x808
  45. #define ODM_AFE_SETTING 0x818
  46. #define ODM_TXAGC_B_6_18 0x830
  47. #define ODM_TXAGC_B_24_54 0x834
  48. #define ODM_TXAGC_B_MCS32_5 0x838
  49. #define ODM_TXAGC_B_MCS0_MCS3 0x83c
  50. #define ODM_TXAGC_B_MCS4_MCS7 0x848
  51. #define ODM_TXAGC_B_MCS8_MCS11 0x84c
  52. #define ODM_ANALOG_REGISTER 0x85c
  53. #define ODM_RF_INTERFACE_OUTPUT 0x860
  54. #define ODM_TXAGC_B_MCS12_MCS15 0x868
  55. #define ODM_TXAGC_B_11_A_2_11 0x86c
  56. #define ODM_AD_DA_LSB_MASK 0x874
  57. #define ODM_ENABLE_3_WIRE 0x88c
  58. #define ODM_PSD_REPORT 0x8b4
  59. #define ODM_R_ANT_SELECT 0x90c
  60. #define ODM_CCK_ANT_SELECT 0xa07
  61. #define ODM_CCK_PD_THRESH 0xa0a
  62. #define ODM_CCK_RF_REG1 0xa11
  63. #define ODM_CCK_MATCH_FILTER 0xa20
  64. #define ODM_CCK_RAKE_MAC 0xa2e
  65. #define ODM_CCK_CNT_RESET 0xa2d
  66. #define ODM_CCK_TX_DIVERSITY 0xa2f
  67. #define ODM_CCK_FA_CNT_MSB 0xa5b
  68. #define ODM_CCK_FA_CNT_LSB 0xa5c
  69. #define ODM_CCK_NEW_FUNCTION 0xa75
  70. #define ODM_OFDM_PHY0_PAGE_C 0xc00
  71. #define ODM_OFDM_RX_ANT 0xc04
  72. #define ODM_R_A_RXIQI 0xc14
  73. #define ODM_R_A_AGC_CORE1 0xc50
  74. #define ODM_R_A_AGC_CORE2 0xc54
  75. #define ODM_R_B_AGC_CORE1 0xc58
  76. #define ODM_R_AGC_PAR 0xc70
  77. #define ODM_R_HTSTF_AGC_PAR 0xc7c
  78. #define ODM_TX_PWR_TRAINING_A 0xc90
  79. #define ODM_TX_PWR_TRAINING_B 0xc98
  80. #define ODM_OFDM_FA_CNT1 0xcf0
  81. #define ODM_OFDM_PHY0_PAGE_D 0xd00
  82. #define ODM_OFDM_FA_CNT2 0xda0
  83. #define ODM_OFDM_FA_CNT3 0xda4
  84. #define ODM_OFDM_FA_CNT4 0xda8
  85. #define ODM_TXAGC_A_6_18 0xe00
  86. #define ODM_TXAGC_A_24_54 0xe04
  87. #define ODM_TXAGC_A_1_MCS32 0xe08
  88. #define ODM_TXAGC_A_MCS0_MCS3 0xe10
  89. #define ODM_TXAGC_A_MCS4_MCS7 0xe14
  90. #define ODM_TXAGC_A_MCS8_MCS11 0xe18
  91. #define ODM_TXAGC_A_MCS12_MCS15 0xe1c
  92. /* RF REG */
  93. #define ODM_GAIN_SETTING 0x00
  94. #define ODM_CHANNEL 0x18
  95. /* Ant Detect Reg */
  96. #define ODM_DPDT 0x300
  97. /* PSD Init */
  98. #define ODM_PSDREG 0x808
  99. /* 92D Path Div */
  100. #define PATHDIV_REG 0xB30
  101. #define PATHDIV_TRI 0xBA0
  102. /* */
  103. /* Bitmap Definition */
  104. /* */
  105. #define BIT_FA_RESET BIT(0)
  106. #endif