rtl8192d_hal.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  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 __RTL8192D_HAL_H__
  21. #define __RTL8192D_HAL_H__
  22. //#include "hal_com.h"
  23. #if 1
  24. #include "hal_data.h"
  25. #else
  26. #include "../hal/OUTSRC/odm_precomp.h"
  27. #endif
  28. #include "rtl8192d_spec.h"
  29. #include "Hal8192DPhyReg.h"
  30. #include "Hal8192DPhyCfg.h"
  31. #include "rtl8192d_rf.h"
  32. #include "rtl8192d_dm.h"
  33. #include "rtl8192d_recv.h"
  34. #include "rtl8192d_xmit.h"
  35. #include "rtl8192d_cmd.h"
  36. #include "rtl8192d_led.h"
  37. #ifdef CONFIG_PCI_HCI
  38. #define RTL819X_DEFAULT_RF_TYPE RF_2T2R
  39. //---------------------------------------------------------------------
  40. // RTL8192DE From file
  41. //---------------------------------------------------------------------
  42. #define RTL8192D_FW_IMG "rtl8192DE\\rtl8192dfw.bin"
  43. #define RTL8192D_PHY_REG "rtl8192DE\\PHY_REG.txt"
  44. #define RTL8192D_PHY_REG_PG "rtl8192DE\\PHY_REG_PG.txt"
  45. #define RTL8192D_PHY_REG_MP "rtl8192DE\\PHY_REG_MP.txt"
  46. #define RTL8192D_AGC_TAB "rtl8192DE\\AGC_TAB.txt"
  47. #define RTL8192D_AGC_TAB_2G "rtl8192DE\\AGC_TAB_2G.txt"
  48. #define RTL8192D_AGC_TAB_5G "rtl8192DE\\AGC_TAB_5G.txt"
  49. #define RTL8192D_PHY_RADIO_A "rtl8192DE\\radio_a.txt"
  50. #define RTL8192D_PHY_RADIO_B "rtl8192DE\\radio_b.txt"
  51. #define RTL8192D_PHY_RADIO_A_intPA "rtl8192DE\\radio_a_intPA.txt"
  52. #define RTL8192D_PHY_RADIO_B_intPA "rtl8192DE\\radio_b_intPA.txt"
  53. #define RTL8192D_PHY_MACREG "rtl8192DE\\MAC_REG.txt"
  54. //---------------------------------------------------------------------
  55. // RTL8192DE From header
  56. //---------------------------------------------------------------------
  57. // Fw Array
  58. #define Rtl8192D_FwImageArray Rtl8192DEFwImgArray
  59. // MAC/BB/PHY Array
  60. #define Rtl8192D_MAC_Array Rtl8192DEMAC_2T_Array
  61. #define Rtl8192D_AGCTAB_Array Rtl8192DEAGCTAB_Array
  62. #define Rtl8192D_AGCTAB_5GArray Rtl8192DEAGCTAB_5GArray
  63. #define Rtl8192D_AGCTAB_2GArray Rtl8192DEAGCTAB_2GArray
  64. #define Rtl8192D_AGCTAB_2TArray Rtl8192DEAGCTAB_2TArray
  65. #define Rtl8192D_AGCTAB_1TArray Rtl8192DEAGCTAB_1TArray
  66. #define Rtl8192D_PHY_REG_2TArray Rtl8192DEPHY_REG_2TArray
  67. #define Rtl8192D_PHY_REG_1TArray Rtl8192DEPHY_REG_1TArray
  68. #define Rtl8192D_PHY_REG_Array_PG Rtl8192DEPHY_REG_Array_PG
  69. #define Rtl8192D_PHY_REG_Array_MP Rtl8192DEPHY_REG_Array_MP
  70. #define Rtl8192D_RadioA_2TArray Rtl8192DERadioA_2TArray
  71. #define Rtl8192D_RadioA_1TArray Rtl8192DERadioA_1TArray
  72. #define Rtl8192D_RadioB_2TArray Rtl8192DERadioB_2TArray
  73. #define Rtl8192D_RadioB_1TArray Rtl8192DERadioB_1TArray
  74. #define Rtl8192D_RadioA_2T_intPAArray Rtl8192DERadioA_2T_intPAArray
  75. #define Rtl8192D_RadioB_2T_intPAArray Rtl8192DERadioB_2T_intPAArray
  76. // Array length
  77. #define Rtl8192D_FwImageArrayLength Rtl8192DEImgArrayLength
  78. #define Rtl8192D_MAC_ArrayLength Rtl8192DEMAC_2T_ArrayLength
  79. #define Rtl8192D_AGCTAB_5GArrayLength Rtl8192DEAGCTAB_5GArrayLength
  80. #define Rtl8192D_AGCTAB_2GArrayLength Rtl8192DEAGCTAB_2GArrayLength
  81. #define Rtl8192D_AGCTAB_2TArrayLength Rtl8192DEAGCTAB_2TArrayLength
  82. #define Rtl8192D_AGCTAB_1TArrayLength Rtl8192DEAGCTAB_1TArrayLength
  83. #define Rtl8192D_AGCTAB_ArrayLength Rtl8192DEAGCTAB_ArrayLength
  84. #define Rtl8192D_PHY_REG_2TArrayLength Rtl8192DEPHY_REG_2TArrayLength
  85. #define Rtl8192D_PHY_REG_1TArrayLength Rtl8192DEPHY_REG_1TArrayLength
  86. #define Rtl8192D_PHY_REG_Array_PGLength Rtl8192DEPHY_REG_Array_PGLength
  87. #define Rtl8192D_PHY_REG_Array_MPLength Rtl8192DEPHY_REG_Array_MPLength
  88. #define Rtl8192D_RadioA_2TArrayLength Rtl8192DERadioA_2TArrayLength
  89. #define Rtl8192D_RadioB_2TArrayLength Rtl8192DERadioB_2TArrayLength
  90. #define Rtl8192D_RadioA_2T_intPAArrayLength Rtl8192DERadioA_2T_intPAArrayLength
  91. #define Rtl8192D_RadioB_2T_intPAArrayLength Rtl8192DERadioB_2T_intPAArrayLength
  92. #elif defined(CONFIG_USB_HCI)
  93. #define RTL819X_DEFAULT_RF_TYPE RF_1T2R
  94. //---------------------------------------------------------------------
  95. // RTL8192DU From file
  96. //---------------------------------------------------------------------
  97. #define RTL8192D_FW_IMG "rtl8192DU\\rtl8192dfw.bin"
  98. #define RTL8192D_PHY_REG "rtl8192DU\\PHY_REG.txt"
  99. #define RTL8192D_PHY_REG_PG "rtl8192DU\\PHY_REG_PG.txt"
  100. #define RTL8192D_PHY_REG_MP "rtl8192DU\\PHY_REG_MP.txt"
  101. #define RTL8192D_AGC_TAB "rtl8192DU\\AGC_TAB.txt"
  102. #define RTL8192D_AGC_TAB_2G "rtl8192DU\\AGC_TAB_2G.txt"
  103. #define RTL8192D_AGC_TAB_5G "rtl8192DU\\AGC_TAB_5G.txt"
  104. #define RTL8192D_PHY_RADIO_A "rtl8192DU\\radio_a.txt"
  105. #define RTL8192D_PHY_RADIO_B "rtl8192DU\\radio_b.txt"
  106. #define RTL8192D_PHY_RADIO_A_intPA "rtl8192DU\\radio_a_intPA.txt"
  107. #define RTL8192D_PHY_RADIO_B_intPA "rtl8192DU\\radio_b_intPA.txt"
  108. #define RTL8192D_PHY_MACREG "rtl8192DU\\MAC_REG.txt"
  109. //---------------------------------------------------------------------
  110. // RTL8192DU From header
  111. //---------------------------------------------------------------------
  112. // Fw Array
  113. #define Rtl8192D_FwImageArray Rtl8192DUFwImgArray
  114. // MAC/BB/PHY Array
  115. #define Rtl8192D_MAC_Array Rtl8192DUMAC_2T_Array
  116. #define Rtl8192D_AGCTAB_Array Rtl8192DUAGCTAB_Array
  117. #define Rtl8192D_AGCTAB_5GArray Rtl8192DUAGCTAB_5GArray
  118. #define Rtl8192D_AGCTAB_2GArray Rtl8192DUAGCTAB_2GArray
  119. #define Rtl8192D_AGCTAB_2TArray Rtl8192DUAGCTAB_2TArray
  120. #define Rtl8192D_AGCTAB_1TArray Rtl8192DUAGCTAB_1TArray
  121. #define Rtl8192D_PHY_REG_2TArray Rtl8192DUPHY_REG_2TArray
  122. #define Rtl8192D_PHY_REG_1TArray Rtl8192DUPHY_REG_1TArray
  123. #define Rtl8192D_PHY_REG_Array_PG Rtl8192DUPHY_REG_Array_PG
  124. #define Rtl8192D_PHY_REG_Array_MP Rtl8192DUPHY_REG_Array_MP
  125. #define Rtl8192D_RadioA_2TArray Rtl8192DURadioA_2TArray
  126. #define Rtl8192D_RadioA_1TArray Rtl8192DURadioA_1TArray
  127. #define Rtl8192D_RadioB_2TArray Rtl8192DURadioB_2TArray
  128. #define Rtl8192D_RadioB_1TArray Rtl8192DURadioB_1TArray
  129. #define Rtl8192D_RadioA_2T_intPAArray Rtl8192DURadioA_2T_intPAArray
  130. #define Rtl8192D_RadioB_2T_intPAArray Rtl8192DURadioB_2T_intPAArray
  131. // Array length
  132. #define Rtl8192D_FwImageArrayLength Rtl8192DUImgArrayLength
  133. #define Rtl8192D_MAC_ArrayLength Rtl8192DUMAC_2T_ArrayLength
  134. #define Rtl8192D_AGCTAB_5GArrayLength Rtl8192DUAGCTAB_5GArrayLength
  135. #define Rtl8192D_AGCTAB_2GArrayLength Rtl8192DUAGCTAB_2GArrayLength
  136. #define Rtl8192D_AGCTAB_2TArrayLength Rtl8192DUAGCTAB_2TArrayLength
  137. #define Rtl8192D_AGCTAB_1TArrayLength Rtl8192DUAGCTAB_1TArrayLength
  138. #define Rtl8192D_AGCTAB_ArrayLength Rtl8192DUAGCTAB_ArrayLength
  139. #define Rtl8192D_PHY_REG_2TArrayLength Rtl8192DUPHY_REG_2TArrayLength
  140. #define Rtl8192D_PHY_REG_1TArrayLength Rtl8192DUPHY_REG_1TArrayLength
  141. #define Rtl8192D_PHY_REG_Array_PGLength Rtl8192DUPHY_REG_Array_PGLength
  142. #define Rtl8192D_PHY_REG_Array_MPLength Rtl8192DUPHY_REG_Array_MPLength
  143. #define Rtl8192D_RadioA_2TArrayLength Rtl8192DURadioA_2TArrayLength
  144. #define Rtl8192D_RadioB_2TArrayLength Rtl8192DURadioB_2TArrayLength
  145. #define Rtl8192D_RadioA_2T_intPAArrayLength Rtl8192DURadioA_2T_intPAArrayLength
  146. #define Rtl8192D_RadioB_2T_intPAArrayLength Rtl8192DURadioB_2T_intPAArrayLength
  147. // The file name "_2T" is for 92CU, "_1T" is for 88CU. Modified by tynli. 2009.11.24.
  148. /* #define Rtl819XFwImageArray Rtl8192DUFwImgArray
  149. #define Rtl819XMAC_Array Rtl8192DUMAC_2TArray
  150. #define Rtl819XAGCTAB_Array Rtl8192DUAGCTAB_Array
  151. #define Rtl819XAGCTAB_5GArray Rtl8192DUAGCTAB_5GArray
  152. #define Rtl819XAGCTAB_2GArray Rtl8192DUAGCTAB_2GArray
  153. #define Rtl819XPHY_REG_2TArray Rtl8192DUPHY_REG_2TArray
  154. #define Rtl819XPHY_REG_1TArray Rtl8192DUPHY_REG_1TArray
  155. #define Rtl819XRadioA_2TArray Rtl8192DURadioA_2TArray
  156. #define Rtl819XRadioA_1TArray Rtl8192DURadioA_1TArray
  157. #define Rtl819XRadioA_2T_intPAArray Rtl8192DURadioA_2T_intPAArray
  158. #define Rtl819XRadioB_2TArray Rtl8192DURadioB_2TArray
  159. #define Rtl819XRadioB_1TArray Rtl8192DURadioB_1TArray
  160. #define Rtl819XRadioB_2T_intPAArray Rtl8192DURadioB_2T_intPAArray
  161. #define Rtl819XPHY_REG_Array_PG Rtl8192DUPHY_REG_Array_PG
  162. #define Rtl819XPHY_REG_Array_MP Rtl8192DUPHY_REG_Array_MP
  163. #define Rtl819XAGCTAB_2TArray Rtl8192DUAGCTAB_2TArray
  164. #define Rtl819XAGCTAB_1TArray Rtl8192DUAGCTAB_1TArray*/
  165. #endif
  166. //
  167. // Check if FW header exists. We do not consider the lower 4 bits in this case.
  168. // By tynli. 2009.12.04.
  169. //
  170. #define IS_FW_HEADER_EXIST_92D(_pFwHdr) ((le16_to_cpu(_pFwHdr->Signature)&0xFFF0) == 0x92C0 ||\
  171. (le16_to_cpu(_pFwHdr->Signature)&0xFFF0) == 0x88C0 ||\
  172. (le16_to_cpu(_pFwHdr->Signature)&0xFFFF) == 0x92D0 ||\
  173. (le16_to_cpu(_pFwHdr->Signature)&0xFFFF) == 0x92D1 ||\
  174. (le16_to_cpu(_pFwHdr->Signature)&0xFFFF) == 0x92D2 ||\
  175. (le16_to_cpu(_pFwHdr->Signature)&0xFFFF) == 0x92D3 )
  176. #define FW_8192D_SIZE 0x8020 // Max FW len = 32k + 32(FW header length).
  177. #define FW_8192D_START_ADDRESS 0x1000
  178. #define FW_8192D_END_ADDRESS 0x1FFF
  179. typedef struct _RT_FIRMWARE_8192D{
  180. FIRMWARE_SOURCE eFWSource;
  181. u8* szFwBuffer;
  182. u32 ulFwLength;
  183. } RT_FIRMWARE_8192D, *PRT_FIRMWARE_8192D;
  184. //
  185. // This structure must be cared byte-ordering
  186. //
  187. // Added by tynli. 2009.12.04.
  188. typedef struct _RT_8192D_FIRMWARE_HDR {//8-byte alinment required
  189. //--- LONG WORD 0 ----
  190. u16 Signature; // 92C0: test chip; 92C, 88C0: test chip; 88C1: MP A-cut; 92C1: MP A-cut
  191. u8 Category; // AP/NIC and USB/PCI
  192. u8 Function; // Reserved for different FW function indcation, for further use when driver needs to download different FW in different conditions
  193. u16 Version; // FW Version
  194. u8 Subversion; // FW Subversion, default 0x00
  195. u8 Rsvd1;
  196. //--- LONG WORD 1 ----
  197. u8 Month; // Release time Month field
  198. u8 Date; // Release time Date field
  199. u8 Hour; // Release time Hour field
  200. u8 Minute; // Release time Minute field
  201. u16 RamCodeSize; // The size of RAM code
  202. u16 Rsvd2;
  203. //--- LONG WORD 2 ----
  204. u32 SvnIdx; // The SVN entry index
  205. u32 Rsvd3;
  206. //--- LONG WORD 3 ----
  207. u32 Rsvd4;
  208. u32 Rsvd5;
  209. }RT_8192D_FIRMWARE_HDR, *PRT_8192D_FIRMWARE_HDR;
  210. #define DRIVER_EARLY_INT_TIME_8192D 0x05
  211. #define BCN_DMA_ATIME_INT_TIME_8192D 0x02
  212. typedef enum _BT_CurState{
  213. BT_OFF = 0,
  214. BT_ON = 1,
  215. } BT_CurState, *PBT_CurState;
  216. typedef enum _BT_ServiceType{
  217. BT_SCO = 0,
  218. BT_A2DP = 1,
  219. BT_HID = 2,
  220. BT_HID_Idle = 3,
  221. BT_Scan = 4,
  222. BT_Idle = 5,
  223. BT_OtherAction = 6,
  224. BT_Busy = 7,
  225. BT_OtherBusy = 8,
  226. } BT_ServiceType, *PBT_ServiceType;
  227. typedef struct _BT_COEXIST_STR{
  228. u8 BluetoothCoexist;
  229. u8 BT_Ant_Num;
  230. u8 BT_CoexistType;
  231. u8 BT_State;
  232. u8 BT_CUR_State; //0:on, 1:off
  233. u8 BT_Ant_isolation; //0:good, 1:bad
  234. u8 BT_PapeCtrl; //0:SW, 1:SW/HW dynamic
  235. u8 BT_Service;
  236. u8 BT_RadioSharedType;
  237. u8 Ratio_Tx;
  238. u8 Ratio_PRI;
  239. }BT_COEXIST_STR, *PBT_COEXIST_STR;
  240. // Note: We will divide number of page equally for each queue other than public queue!
  241. #define TX_TOTAL_PAGE_NUMBER_8192D 0xF8
  242. #define TX_PAGE_BOUNDARY (TX_TOTAL_PAGE_NUMBER_8192D + 1)
  243. // For Normal Chip Setting
  244. // (HPQ + LPQ + NPQ + PUBQ) shall be TX_TOTAL_PAGE_NUMBER_8192D
  245. #define NORMAL_PAGE_NUM_PUBQ 0x56
  246. // For Test Chip Setting
  247. // (HPQ + LPQ + PUBQ) shall be TX_TOTAL_PAGE_NUMBER_8192D
  248. #define TEST_PAGE_NUM_PUBQ 0x89
  249. #define TX_TOTAL_PAGE_NUMBER_92D_DUAL_MAC 0x7A
  250. #define NORMAL_PAGE_NUM_PUBQ_92D_DUAL_MAC 0x5A
  251. #define NORMAL_PAGE_NUM_HPQ_92D_DUAL_MAC 0x10
  252. #define NORMAL_PAGE_NUM_LPQ_92D_DUAL_MAC 0x10
  253. #define NORMAL_PAGE_NUM_NORMALQ_92D_DUAL_MAC 0
  254. #define TX_PAGE_BOUNDARY_DUAL_MAC (TX_TOTAL_PAGE_NUMBER_92D_DUAL_MAC + 1)
  255. // For Test Chip Setting
  256. #define WMM_TEST_TX_TOTAL_PAGE_NUMBER 0xF5
  257. #define WMM_TEST_TX_PAGE_BOUNDARY (WMM_TEST_TX_TOTAL_PAGE_NUMBER + 1) //F6
  258. #define WMM_TEST_PAGE_NUM_PUBQ 0xA3
  259. #define WMM_TEST_PAGE_NUM_HPQ 0x29
  260. #define WMM_TEST_PAGE_NUM_LPQ 0x29
  261. //Note: For Normal Chip Setting ,modify later
  262. #define WMM_NORMAL_TX_TOTAL_PAGE_NUMBER 0xF5
  263. #define WMM_NORMAL_TX_PAGE_BOUNDARY (WMM_TEST_TX_TOTAL_PAGE_NUMBER + 1) //F6
  264. #define WMM_NORMAL_PAGE_NUM_PUBQ 0xB0
  265. #define WMM_NORMAL_PAGE_NUM_HPQ 0x29
  266. #define WMM_NORMAL_PAGE_NUM_LPQ 0x1C
  267. #define WMM_NORMAL_PAGE_NUM_NPQ 0x1C
  268. #define WMM_NORMAL_PAGE_NUM_PUBQ_92D 0X65//0x82
  269. #define WMM_NORMAL_PAGE_NUM_HPQ_92D 0X30//0x29
  270. #define WMM_NORMAL_PAGE_NUM_LPQ_92D 0X30
  271. #define WMM_NORMAL_PAGE_NUM_NPQ_92D 0X30
  272. //-------------------------------------------------------------------------
  273. // Chip specific
  274. //-------------------------------------------------------------------------
  275. #define CHIP_BONDING_IDENTIFIER(_value) (((_value)>>22)&0x3)
  276. #define CHIP_BONDING_92C_1T2R 0x1
  277. #define CHIP_BONDING_88C_USB_MCARD 0x2
  278. #define CHIP_BONDING_88C_USB_HP 0x1
  279. //-------------------------------------------------------------------------
  280. // Channel Plan
  281. //-------------------------------------------------------------------------
  282. #define EFUSE_REAL_CONTENT_LEN 1024
  283. #define EFUSE_MAP_LEN 256
  284. #define EFUSE_MAX_SECTION 32
  285. #define EFUSE_MAX_SECTION_BASE 16
  286. // <Roger_Notes> To prevent out of boundary programming case, leave 1byte and program full section
  287. // 9bytes + 1byt + 5bytes and pre 1byte.
  288. // For worst case:
  289. // | 2byte|----8bytes----|1byte|--7bytes--| //92D
  290. #define EFUSE_OOB_PROTECT_BYTES 18 // PG data exclude header, dummy 7 bytes frome CP test and reserved 1byte.
  291. typedef enum _PA_MODE {
  292. PA_MODE_EXTERNAL = 0x00,
  293. PA_MODE_INTERNAL_SP3T = 0x01,
  294. PA_MODE_INTERNAL_SPDT = 0x02
  295. } PA_MODE;
  296. /* Copy from rtl8192c */
  297. enum c2h_id_8192d {
  298. C2H_DBG = 0,
  299. C2H_TSF = 1,
  300. C2H_AP_RPT_RSP = 2,
  301. C2H_CCX_TX_RPT = 3,
  302. C2H_BT_RSSI = 4,
  303. C2H_BT_OP_MODE = 5,
  304. C2H_EXT_RA_RPT = 6,
  305. C2H_HW_INFO_EXCH = 10,
  306. C2H_C2H_H2C_TEST = 11,
  307. C2H_BT_INFO = 12,
  308. C2H_BT_MP_INFO = 15,
  309. MAX_C2HEVENT
  310. };
  311. #ifdef CONFIG_PCI_HCI
  312. //
  313. // Function disabled.
  314. //
  315. #define DF_TX_BIT BIT0
  316. #define DF_RX_BIT BIT1
  317. #define DF_IO_BIT BIT2
  318. #define DF_IO_D3_BIT BIT3
  319. #define RT_DF_TYPE u32
  320. //#define RT_DISABLE_FUNC(__pAdapter, __FuncBits) ((__pAdapter)->DisabledFunctions |= ((RT_DF_TYPE)(__FuncBits)))
  321. //#define RT_ENABLE_FUNC(__pAdapter, __FuncBits) ((__pAdapter)->DisabledFunctions &= (~((RT_DF_TYPE)(__FuncBits))))
  322. //#define RT_IS_FUNC_DISABLED(__pAdapter, __FuncBits) ( (__pAdapter)->DisabledFunctions & (__FuncBits) )
  323. void InterruptRecognized8192DE(PADAPTER Adapter, PRT_ISR_CONTENT pIsrContent);
  324. VOID UpdateInterruptMask8192DE(PADAPTER Adapter, u32 AddMSR, u32 RemoveMSR);
  325. #endif
  326. #define GET_RF_TYPE(priv) (GET_HAL_DATA(priv)->rf_type)
  327. int FirmwareDownload92D(IN PADAPTER Adapter);
  328. VOID rtl8192d_FirmwareSelfReset(IN PADAPTER Adapter);
  329. void rtl8192d_ReadChipVersion(IN PADAPTER Adapter);
  330. VOID rtl8192d_EfuseParseChnlPlan(PADAPTER Adapter, u8 *hwinfo, BOOLEAN AutoLoadFail);
  331. VOID rtl8192d_ReadTxPowerInfo(PADAPTER Adapter, u8* PROMContent, BOOLEAN AutoLoadFail);
  332. VOID rtl8192d_ResetDualMacSwitchVariables(IN PADAPTER Adapter);
  333. u8 GetEEPROMSize8192D(PADAPTER Adapter);
  334. BOOLEAN PHY_CheckPowerOffFor8192D(PADAPTER Adapter);
  335. VOID PHY_SetPowerOnFor8192D(PADAPTER Adapter);
  336. //void PHY_ConfigMacPhyMode92D(PADAPTER Adapter);
  337. void rtl8192d_free_hal_data(_adapter * padapter);
  338. void rtl8192d_set_hal_ops(struct hal_ops *pHalFunc);
  339. void rtl8192d_clone_haldata(_adapter* dst_adapter, _adapter* src_adapter);
  340. #endif