odm_precomp.h 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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. #ifndef __ODM_PRECOMP_H__
  21. #define __ODM_PRECOMP_H__
  22. #include "odm_types.h"
  23. #if (DM_ODM_SUPPORT_TYPE == ODM_WIN)
  24. #include "Precomp.h" // We need to include mp_precomp.h due to batch file setting.
  25. #else
  26. #define TEST_FALG___ 1
  27. #endif
  28. //2 Config Flags and Structs - defined by each ODM Type
  29. #if (DM_ODM_SUPPORT_TYPE == ODM_AP)
  30. #include "../8192cd_cfg.h"
  31. #include "../odm_inc.h"
  32. #include "../8192cd.h"
  33. #include "../8192cd_util.h"
  34. #ifdef _BIG_ENDIAN_
  35. #define ODM_ENDIAN_TYPE ODM_ENDIAN_BIG
  36. #else
  37. #define ODM_ENDIAN_TYPE ODM_ENDIAN_LITTLE
  38. #endif
  39. #ifdef AP_BUILD_WORKAROUND
  40. #include "../8192cd_headers.h"
  41. #include "../8192cd_debug.h"
  42. #endif
  43. #elif (DM_ODM_SUPPORT_TYPE == ODM_ADSL)
  44. // Flags
  45. #include "../8192cd_cfg.h" // OUTSRC needs ADSL config flags.
  46. #include "../odm_inc.h" // OUTSRC needs some extra flags.
  47. // Data Structure
  48. #include "../common_types.h" // OUTSRC and rtl8192cd both needs basic type such as UINT8 and BIT0.
  49. #include "../8192cd.h" // OUTSRC needs basic ADSL struct definition.
  50. #include "../8192cd_util.h" // OUTSRC needs basic I/O function.
  51. #ifdef _BIG_ENDIAN_
  52. #define ODM_ENDIAN_TYPE ODM_ENDIAN_BIG
  53. #else
  54. #define ODM_ENDIAN_TYPE ODM_ENDIAN_LITTLE
  55. #endif
  56. #ifdef ADSL_AP_BUILD_WORKAROUND
  57. // NESTED_INC: Functions defined outside should not be included!! Marked by Annie, 2011-10-14.
  58. #include "../8192cd_headers.h"
  59. #include "../8192cd_debug.h"
  60. #endif
  61. #elif (DM_ODM_SUPPORT_TYPE ==ODM_CE)
  62. //#include <drv_conf.h>
  63. //#include <basic_types.h>
  64. //#include <osdep_service.h>
  65. //#include <drv_types.h>
  66. //#include <rtw_byteorder.h>
  67. //#include <hal_intf.h>
  68. #define BEAMFORMING_SUPPORT 0
  69. #elif (DM_ODM_SUPPORT_TYPE == ODM_WIN)
  70. #include "Mp_Precomp.h"
  71. #define ODM_ENDIAN_TYPE ODM_ENDIAN_LITTLE
  72. #endif
  73. //2 Hardware Parameter Files
  74. #if (DM_ODM_SUPPORT_TYPE == ODM_AP)
  75. #if (RTL8192C_SUPPORT==1)
  76. #include "rtl8192c/Hal8192CEFWImg_AP.h"
  77. #include "rtl8192c/Hal8192CEPHYImg_AP.h"
  78. #include "rtl8192c/Hal8192CEMACImg_AP.h"
  79. #endif
  80. #elif (DM_ODM_SUPPORT_TYPE == ODM_ADSL)
  81. #include "rtl8192c/Hal8192CEFWImg_ADSL.h"
  82. #include "rtl8192c/Hal8192CEPHYImg_ADSL.h"
  83. #include "rtl8192c/Hal8192CEMACImg_ADSL.h"
  84. #elif (DM_ODM_SUPPORT_TYPE == ODM_CE)
  85. #if(RTL8192CE_SUPPORT ==1)
  86. #include "rtl8192c/Hal8192CEFWImg_CE.h"
  87. #include "rtl8192c/Hal8192CEPHYImg_CE.h"
  88. #include "rtl8192c/Hal8192CEMACImg_CE.h"
  89. #endif
  90. #if(RTL8192CU_SUPPORT ==1)
  91. #include "rtl8192c/Hal8192CUFWImg_CE.h"
  92. #include "rtl8192c/Hal8192CUPHYImg_CE.h"
  93. #include "rtl8192c/Hal8192CUMACImg_CE.h"
  94. #endif
  95. #if(RTL8192DE_SUPPORT ==1)
  96. #include "rtl8192d/Hal8192DEFWImg_CE.h"
  97. #include "rtl8192d/Hal8192DEPHYImg_CE.h"
  98. #include "rtl8192d/Hal8192DEMACImg_CE.h"
  99. #endif
  100. #if(RTL8192DU_SUPPORT ==1)
  101. #include "rtl8192d/Hal8192DUFWImg_CE.h"
  102. #include "rtl8192d/Hal8192DUPHYImg_CE.h"
  103. #include "rtl8192d/Hal8192DUMACImg_CE.h"
  104. #endif
  105. #if(RTL8723AS_SUPPORT==1)
  106. #include "rtl8723a/Hal8723SHWImg_CE.h"
  107. #endif
  108. #if(RTL8723AU_SUPPORT==1)
  109. #include "rtl8723a/Hal8723UHWImg_CE.h"
  110. #endif
  111. #elif (DM_ODM_SUPPORT_TYPE == ODM_WIN)
  112. #endif
  113. //2 OutSrc Header Files
  114. #include "odm.h"
  115. #include "odm_HWConfig.h"
  116. #include "odm_debug.h"
  117. #include "odm_RegDefine11AC.h"
  118. #include "odm_RegDefine11N.h"
  119. #if (DM_ODM_SUPPORT_TYPE == ODM_AP)
  120. #if (RTL8192C_SUPPORT==1)
  121. #include "rtl8192c/HalDMOutSrc8192C_AP.h"
  122. #endif
  123. #if (RTL8188E_SUPPORT==1)
  124. #include "rtl8188e/Hal8188ERateAdaptive.h"//for RA,Power training
  125. #endif
  126. #elif (DM_ODM_SUPPORT_TYPE == ODM_ADSL)
  127. #include "rtl8192c/HalDMOutSrc8192C_ADSL.h"
  128. #elif (DM_ODM_SUPPORT_TYPE == ODM_CE)
  129. //#include "hal_com.h"
  130. #include "HalPhyRf.h"
  131. #if (RTL8192C_SUPPORT==1)
  132. #ifdef CONFIG_INTEL_PROXIM
  133. #include "../proxim/intel_proxim.h"
  134. #endif
  135. #include "rtl8192c/HalDMOutSrc8192C_CE.h"
  136. #include <rtl8192c_hal.h>
  137. #endif
  138. #if (RTL8192D_SUPPORT==1)
  139. #include "rtl8192d/HalDMOutSrc8192D_CE.h"
  140. #include "rtl8192d_hal.h"
  141. #endif
  142. #if (RTL8723A_SUPPORT==1)
  143. #include "rtl8192c/HalDMOutSrc8192C_CE.h" //for IQK,LCK,Power-tracking
  144. #include "rtl8723a_hal.h"
  145. #endif
  146. #if (RTL8188E_SUPPORT==1)
  147. #include "rtl8188e/HalPhyRf_8188e.h"//for IQK,LCK,Power-tracking
  148. #include "rtl8188e/Hal8188ERateAdaptive.h"//for RA,Power training
  149. #include "rtl8188e_hal.h"
  150. #endif
  151. #if (RTL8192E_SUPPORT==1)
  152. #include "rtl8192e/HalPhyRf_8192e.h"//for IQK,LCK,Power-tracking
  153. #include "rtl8192e_hal.h"
  154. #endif
  155. #if (RTL8812A_SUPPORT==1)
  156. #include "rtl8812a/HalPhyRf_8812A.h"//for IQK,LCK,Power-tracking
  157. #include "rtl8812a_hal.h"
  158. #endif
  159. #if (RTL8821A_SUPPORT==1)
  160. #include "rtl8821a/HalPhyRf_8821A.h"//for IQK,LCK,Power-tracking
  161. #include "rtl8812a/HalPhyRf_8812A.h"//for IQK,LCK,Power-tracking
  162. #include "rtl8812a_hal.h"
  163. #endif
  164. #if (RTL8723B_SUPPORT==1)
  165. #include "rtl8723b/HalPhyRf_8723B.h"//for IQK,LCK,Power-tracking
  166. #include "rtl8723b/HalPhyRf_8723B.h"//for IQK,LCK,Power-tracking
  167. #include "rtl8723b_hal.h"
  168. #endif
  169. #endif
  170. #include "odm_interface.h"
  171. #include "odm_reg.h"
  172. #if (RTL8192C_SUPPORT==1)
  173. #if (DM_ODM_SUPPORT_TYPE == ODM_AP)
  174. #include "rtl8192c/Hal8192CHWImg_MAC.h"
  175. #include "rtl8192c/Hal8192CHWImg_RF.h"
  176. #include "rtl8192c/Hal8192CHWImg_BB.h"
  177. #include "rtl8192c/Hal8192CHWImg_FW.h"
  178. #endif
  179. #include "rtl8192c/odm_RTL8192C.h"
  180. #endif
  181. #if (RTL8192D_SUPPORT==1)
  182. #include "rtl8192d/odm_RTL8192D.h"
  183. #endif
  184. #if (RTL8723A_SUPPORT==1)
  185. #include "rtl8723a/HalHWImg8723A_MAC.h"
  186. #include "rtl8723a/HalHWImg8723A_RF.h"
  187. #include "rtl8723a/HalHWImg8723A_BB.h"
  188. #include "rtl8723a/HalHWImg8723A_FW.h"
  189. #include "rtl8723a/odm_RegConfig8723A.h"
  190. #endif
  191. #if (RTL8188E_SUPPORT==1)
  192. #include "rtl8188e/HalHWImg8188E_MAC.h"
  193. #include "rtl8188e/HalHWImg8188E_RF.h"
  194. #include "rtl8188e/HalHWImg8188E_BB.h"
  195. #include "rtl8188e/HalHWImg8188E_FW.h"
  196. #include "rtl8188e/Hal8188EReg.h"
  197. #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
  198. #include "rtl8188e/HalPhyRf_8188e.h"
  199. #endif
  200. #if (TEST_CHIP_SUPPORT == 1)
  201. #include "rtl8188e/HalHWImg8188E_TestChip_MAC.h"
  202. #include "rtl8188e/HalHWImg8188E_TestChip_RF.h"
  203. #include "rtl8188e/HalHWImg8188E_TestChip_BB.h"
  204. #endif
  205. #include "rtl8188e/odm_RegConfig8188E.h"
  206. #include "rtl8188e/odm_RTL8188E.h"
  207. #endif
  208. #if (RTL8192E_SUPPORT==1)
  209. #include "rtl8192e/HalHWImg8192E_MAC.h"
  210. #include "rtl8192e/HalHWImg8192E_RF.h"
  211. #include "rtl8192e/HalHWImg8192E_BB.h"
  212. #include "rtl8192e/HalHWImg8192E_FW.h"
  213. #include "rtl8192e/Hal8192EReg_Odm.h"
  214. #include "rtl8192e/odm_RegConfig8192E.h"
  215. #include "rtl8192e/odm_RTL8192E.h"
  216. #endif
  217. #if (RTL8723B_SUPPORT==1)
  218. #include "rtl8723b/HalHWImg8723B_MAC.h"
  219. #include "rtl8723b/HalHWImg8723B_RF.h"
  220. #include "rtl8723b/HalHWImg8723B_BB.h"
  221. #include "rtl8723b/HalHWImg8723B_FW.h"
  222. #include "rtl8723b/HalHWImg8723B_MP.h"
  223. #include "rtl8723b/Hal8723BReg.h"
  224. #include "rtl8723b/odm_RTL8723B.h"
  225. #include "rtl8723b/odm_RegConfig8723B.h"
  226. #endif
  227. #if (RTL8812A_SUPPORT==1)
  228. #include "rtl8812a/HalHWImg8812A_MAC.h"
  229. #include "rtl8812a/HalHWImg8812A_RF.h"
  230. #include "rtl8812a/HalHWImg8812A_BB.h"
  231. #include "rtl8812a/HalHWImg8812A_FW.h"
  232. #include "rtl8812a/odm_RegConfig8812A.h"
  233. #if (TEST_CHIP_SUPPORT == 1)
  234. #include "rtl8812a/HalHWImg8812A_TestChip_MAC.h"
  235. #include "rtl8812a/HalHWImg8812A_TestChip_RF.h"
  236. #include "rtl8812a/HalHWImg8812A_TestChip_BB.h"
  237. #endif
  238. #endif
  239. #if (RTL8821A_SUPPORT==1)
  240. #include "rtl8821a/HalHWImg8821A_MAC.h"
  241. #include "rtl8821a/HalHWImg8821A_RF.h"
  242. #include "rtl8821a/HalHWImg8821A_BB.h"
  243. #include "rtl8821a/HalHWImg8821A_FW.h"
  244. #include "rtl8821a/odm_RegConfig8821A.h"
  245. #if (TEST_CHIP_SUPPORT == 1)
  246. #include "rtl8821a/HalHWImg8821A_TestChip_MAC.h"
  247. #include "rtl8821a/HalHWImg8821A_TestChip_RF.h"
  248. #include "rtl8821a/HalHWImg8821A_TestChip_BB.h"
  249. #endif
  250. #endif
  251. #endif // __ODM_PRECOMP_H__