PageRenderTime 58ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/drivers/net/wireless/tiwlan1251/common/src/hal/hw_ctrl/whalHwCtrl.h

http://github.com/CyanogenMod/cm-kernel
C Header | 329 lines | 200 code | 64 blank | 65 comment | 0 complexity | 8dbef0980b0b12f07e14fad792a086ab MD5 | raw file
Possible License(s): AGPL-1.0, GPL-2.0, LGPL-2.0
  1. /****************************************************************************
  2. **+-----------------------------------------------------------------------+**
  3. **| |**
  4. **| Copyright(c) 1998 - 2008 Texas Instruments. All rights reserved. |**
  5. **| All rights reserved. |**
  6. **| |**
  7. **| Redistribution and use in source and binary forms, with or without |**
  8. **| modification, are permitted provided that the following conditions |**
  9. **| are met: |**
  10. **| |**
  11. **| * Redistributions of source code must retain the above copyright |**
  12. **| notice, this list of conditions and the following disclaimer. |**
  13. **| * Redistributions in binary form must reproduce the above copyright |**
  14. **| notice, this list of conditions and the following disclaimer in |**
  15. **| the documentation and/or other materials provided with the |**
  16. **| distribution. |**
  17. **| * Neither the name Texas Instruments nor the names of its |**
  18. **| contributors may be used to endorse or promote products derived |**
  19. **| from this software without specific prior written permission. |**
  20. **| |**
  21. **| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |**
  22. **| "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |**
  23. **| LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |**
  24. **| A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |**
  25. **| OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |**
  26. **| SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |**
  27. **| LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |**
  28. **| DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |**
  29. **| THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |**
  30. **| (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |**
  31. **| OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |**
  32. **| |**
  33. **+-----------------------------------------------------------------------+**
  34. ****************************************************************************/
  35. /****************************************************************************
  36. *
  37. * MODULE: whalHwCtrl.h
  38. * PURPOSE: Implements action on the Acx card (Reset, Run, SendCmd, Sw Download)
  39. *
  40. ****************************************************************************/
  41. #ifndef _WHAL_HW_CTRL_H
  42. #define _WHAL_HW_CTRL_H
  43. #include "whalCommon.h"
  44. #include "whalHwMboxCmd.h"
  45. #include "whalHwMboxCmdBit.h"
  46. #include "whalHwMboxConfig.h"
  47. #include "whalBus_Api.h"
  48. #include "whalCtrl.h"
  49. #include "whalCtrl_api.h"
  50. #include "whalParams.h"
  51. #include "CmdQueue_api.h"
  52. #include "commonTypes.h"
  53. typedef struct
  54. {
  55. /* Mbox */
  56. UINT32 NumMboxFailures;
  57. UINT32 NumMboxErrDueToPeriodicBuiltInTestCheck;
  58. } whalCtrl_hwStatus_t;
  59. typedef struct _HwCtrl_T
  60. {
  61. MemoryMap_t MemMap;
  62. ACXDataPathParamsResp_t DataPathParams;
  63. HwMboxConfig_T *pHwMboxConfig;
  64. HwMboxCmd_T *pHwMboxCmd;
  65. HwMboxCmdBit_T *pHwMboxCmdBit;
  66. struct WHAL_CTRL *pWhalCtrl;
  67. WhalParams_T *pWhalParams;
  68. whalCtrl_hwStatus_t HwStatus;
  69. UINT16 SecuritySeqNumLow;
  70. UINT32 SecuritySeqNumHigh;
  71. TI_HANDLE *hHwRadio;
  72. TI_HANDLE hWhalBus;
  73. TI_HANDLE hOs;
  74. TI_HANDLE hReport;
  75. TI_HANDLE hWhalCtrl;
  76. TI_HANDLE hEventMbox;
  77. UINT32 uFwBuf;
  78. UINT32 uFwAddr;
  79. UINT32 uEEEPROMBuf;
  80. UINT32 uEEEPROMLen;
  81. void *fCb;
  82. TI_HANDLE hCb;
  83. dot11StationIDStruct mbox;
  84. } HwCtrl_T;
  85. TI_STATUS whal_hwCtrl_FinalizeDownload (TI_HANDLE hHwCtrl, BootAttr_T *pBootAttr);
  86. TI_STATUS whal_hwCtrl_FinalizeOnFailure (TI_HANDLE hHwCtrl);
  87. extern HwCtrl_T *whal_hwCtrl_Create(TI_HANDLE hOs, WhalParams_T *pWhalParams);
  88. extern int whal_hwCtrl_Destroy (HwCtrl_T *pHwCtrl);
  89. extern TI_STATUS whal_hwCtrl_Config(HwCtrl_T *pHwCtrl, TI_HANDLE hWhalCtrl,UINT8 AccessMode, UINT32 AcxRegAddr,
  90. UINT32 AcxMemAddr, TI_HANDLE hReport, TI_HANDLE hMemMgr,UINT32 *pFWImage,
  91. TI_HANDLE hEventMbox);
  92. extern TI_HANDLE whal_hwCtrl_GetTnentwifHandle (HwCtrl_T *pHwCtrl);
  93. extern int whal_hwCtrl_ConfigHw (HwCtrl_T *pHwCtrl, void *fCb, TI_HANDLE hCb, BOOL bRecovery);
  94. extern TI_STATUS whal_hwCtrl_Initiate (HwCtrl_T *pHwCtrl);
  95. extern int whal_hwCtrl_SetMacAddress (HwCtrl_T *pHwCtrl, macAddress_t *macAddr);
  96. extern int whal_hwCtrl_StartJoin (HwCtrl_T *pHwCtrl, bssType_e BssType, void *JoinCompleteCB, TI_HANDLE CB_handle);
  97. extern int whal_hwCtrl_SetBssType (HwCtrl_T *pHwCtrl, bssType_e BssType, UINT8 *HwBssType);
  98. extern int whal_hwCtrl_setRxFilters (HwCtrl_T *pHwCtrl, UINT32 RxConfigOption, UINT32 RxFilterOption);
  99. extern int whal_hwCtrl_GetRxFilters (HwCtrl_T *pHwCtrl, UINT32* pRxConfigOption, UINT32* pRxFilterOption);
  100. extern int whal_hwCtrl_setRxDataFiltersParams(HwCtrl_T * pHwCtrl, BOOL enabled, filter_e defaultAction);
  101. extern int whal_hwCtrl_setRxDataFilter (HwCtrl_T *pHwCtrl, UINT8 index, UINT8 command, filter_e action, UINT8 numFieldPatterns, UINT8 lenFieldPatterns, UINT8 * fieldPatterns);
  102. extern int whal_hwCtrl_StartScan (HwCtrl_T *pHwCtrl, ScanParameters_t* pScanVals,void* ScanCommandResponseCB, TI_HANDLE CB_handle);
  103. extern int whal_hwCtrl_StartSPSScan (HwCtrl_T *pHwCtrl, ScheduledScanParameters_t* pScanVals, void* ScanCommandResponseCB, TI_HANDLE CB_handle);
  104. extern int whal_hwCtrl_StopScan (HwCtrl_T *pHwCtrl, void *ScanCommandResponseCB, TI_HANDLE CB_handle);
  105. extern int whal_hwCtrl_StopSPSScan (HwCtrl_T *pHwCtrl, void* ScanCommandResponseCB, TI_HANDLE CB_handle);
  106. extern int whal_hwCtrl_GenCmd (HwCtrl_T *pHwCtrl, short CmdID, char* pBuf, UINT32 Length);
  107. extern int whal_hwCtrl_EnableDataPath (HwCtrl_T *pHwCtrl);
  108. extern int whal_hwCtrl_EnableTx (HwCtrl_T *pHwCtrl, int channel);
  109. extern int whal_hwCtrl_DisableTx (HwCtrl_T *pHwCtrl);
  110. extern int whal_hwCtrl_DisableDataPath (HwCtrl_T *pHwCtrl);
  111. extern void whal_hwCtrl_Reset (HwCtrl_T *pHwCtrl);
  112. extern int whal_hwCtrl_PMConfig (HwCtrl_T *pHwCtrl, whalCtrl_powerMgmtConfig_t *pPMConfig);
  113. extern int whal_hwCtrl_BcnBrcOptions (HwCtrl_T *pHwCtrl, whalCtrl_powerMgmtConfig_t *pPMConfig);
  114. extern int whal_hwCtrl_wakeUpCondition (HwCtrl_T *pHwCtrl, whalCtrl_powerMgmtConfig_t *pPMConfig);
  115. extern int whal_hwCtrl_SetEnergyDetection (HwCtrl_T *pHwCtrl, BOOL energyDetection);
  116. extern int whal_hwCtrl_WepDefaultKeyAdd (HwCtrl_T *pHwCtrl, securityKeys_t* aSecurityKey, void *CB_Func, TI_HANDLE CB_handle);
  117. extern int whal_hwCtrl_WepDefaultKeyRemove (HwCtrl_T *pHwCtrl, securityKeys_t* aSecurityKey, void *CB_Func, TI_HANDLE CB_handle);
  118. extern int whal_hwCtrl_WepMappingKeyAdd (HwCtrl_T *pHwCtrl, securityKeys_t* aSecurityKey, void *CB_Func, TI_HANDLE CB_handle);
  119. extern int whal_hwCtrl_WepMappingKeyRemove (HwCtrl_T *pHwCtrl, securityKeys_t* aSecurityKey, void *CB_Func, TI_HANDLE CB_handle);
  120. extern int whal_hwCtrl_AesMappingKeyAdd (HwCtrl_T *pHwCtrl, securityKeys_t* aSecurityKey, void *CB_Func, TI_HANDLE CB_handle);
  121. extern int whal_hwCtrl_AesMappingKeyRemove (HwCtrl_T *pHwCtrl, securityKeys_t* aSecurityKey, void *CB_Func, TI_HANDLE CB_handle);
  122. extern int whal_hwCtrl_TkipMicMappingKeyAdd (HwCtrl_T *pHwCtrl, securityKeys_t* aSecurityKey, void *CB_Func, TI_HANDLE CB_handle);
  123. extern int whal_hwCtrl_TkipMicMappingKeyRemove (HwCtrl_T *pHwCtrl, securityKeys_t* aSecurityKey, void *CB_Func, TI_HANDLE CB_handle);
  124. extern int whal_hwCtrl_TkipKeyEnable (HwCtrl_T *pHwCtrl, char* MACaddr, BOOL aKey0RxEnable, BOOL aKey0TxEnable);
  125. extern int whal_hwCtrl_DefaultKeyIdSet (HwCtrl_T *pHwCtrl, UINT8 aKeyIdVal, void *CB_Func, TI_HANDLE CB_handle);
  126. extern int whal_hwCtrl_DefaultKeyIdGet (HwCtrl_T *pHwCtrl, UINT8 *pKeyIdVal);
  127. extern int whal_hwCtrl_SetBeaconFiltering (HwCtrl_T *pHwCtrl, UINT8 beaconFilteringStatus, UINT8 numOfBeaconsToBuffer);
  128. extern int whal_hwCtrl_SetBeaconFilterIETable(HwCtrl_T *pHwCtrl, UINT8* numberOfIEs, UINT8 * IETable, UINT8* IETableSize);
  129. extern int whal_hwCtrl_GetGroupAddressesTable (HwCtrl_T *pHwCtrl,UINT8* pisEnabled, UINT8* pnumGroupAddrs, macAddress_t *Group_addr);
  130. extern int whal_hwCtrl_SetGroupAddressesTable (HwCtrl_T *pHwCtrl,UINT8 numGroupAddrs, macAddress_t *Group_addr, UINT8 isEnabled);
  131. extern int whal_hwCtrl_SetRtsThreshold (HwCtrl_T *pHwCtrl,UINT16 RtsThreshold);
  132. extern int whal_hwCtrl_SetarpIpAddressesTable(HwCtrl_T *pHwCtrl, IpAddress_t *IP_addr, UINT8 isEnabled , IPver_e IP_ver);
  133. extern int whalCtrl_GetArpIpAddressesTable (HwCtrl_T *pHwCtrl, IpAddress_t *IP_addr, UINT8* pisEnabled , IPver_e* pIP_ver);
  134. extern int whal_hwCtrl_SetarpIpFilterEnabled(HwCtrl_T *pHwCtrl, UINT8 isEnabled ) ;
  135. extern void whal_hwCtrl_Stop (HwCtrl_T *pHwCtrl);
  136. extern BOOL whal_hwCtrl_isElpSupported (HwCtrl_T *pHwCtrl);
  137. extern int whal_hwCtrl_AidSet (HwCtrl_T *pHwCtrl, UINT16 aAidVal);
  138. extern int whal_hwCtrl_SaveAntennaDiversityOptions (HwCtrl_T *pHwCtrl,
  139. whalCtrl_antennaDiversityOptions_t* pAntennaDivresityOptions);
  140. extern int whal_hwCtrl_CurrentAntennaDiversitySendCmd (HwCtrl_T *pHwCtrl);
  141. extern int whal_hwCtrl_SetTxAntenna (HwCtrl_T *pHwCtrl, UINT8 TxAntenna);
  142. extern int whal_hwCtrl_GetTxAntenna (HwCtrl_T *pHwCtrl, UINT8* TxAntenna);
  143. extern int whal_hwCtrl_SetRxAntenna (HwCtrl_T *pHwCtrl, UINT8 RxAntenna);
  144. extern int whal_hwCtrl_GetRxAntenna (HwCtrl_T *pHwCtrl, UINT8* RxAntenna);
  145. extern int whal_hwCtrl_PowerMgmtOptionsPrint(HwCtrl_T *pHwCtrl);
  146. extern int whal_hwCtrl_PowerMgmtConfigurationSet (HwCtrl_T *pHwCtrl,
  147. whalCtrl_powerSaveParams_t* powerSaveParams);
  148. /* whalCtrl_powerMgmtConfig_t *thePowerMgmtOptionsConfig);*/
  149. extern int whal_hwCtrl_switchChannel (HwCtrl_T *pHwCtrl, UINT8 channel);
  150. extern int whal_hwCtrl_SetRegulatoryDomain (HwCtrl_T *pHwCtrl, radioBand_e radioBand);
  151. extern int whal_hwCtrl_SetACIConfiguration (HwCtrl_T *pHwCtrl, UINT8 ACIMode, UINT8 inputCCA, UINT8 qualifiedCCA,
  152. UINT8 stompForRx, UINT8 stompFortTx, UINT8 txCCA);
  153. extern int whal_hwCtrl_CurrentAssociationIdGet (HwCtrl_T *pHwCtrl, UINT16 *pAidVal);
  154. extern int whal_HwCtrl_enableMboxAsyncMode (HwCtrl_T *pHwCtrl);
  155. extern int whal_HwCtrl_resetMacRx (HwCtrl_T *pHwCtrl);
  156. extern int whal_HwCtrl_LNAControl (HwCtrl_T *pHwCtrl, UINT8 LNAControlField);
  157. extern int whal_hwCtrl_NoiseHistogramCmd (HwCtrl_T *pHwCtrl, whalCtrl_noiseHistogram_t* pNoiseHistParams);
  158. extern int whal_hwCtrl_SwitchChannelCmd (HwCtrl_T *pHwCtrl, whalCtrl_switchChannelCmd_t* pSwitchChannelCmd);
  159. extern int whal_hwCtrl_SwitchChannelCancelCmd (HwCtrl_T *pHwCtrl);
  160. extern int whal_hwCtrl_SetSNRParams(HwCtrl_T *pHwCtrl, whalCtrl_roamingTriggerCmd_t* pRoamingTriggerCmd) ;
  161. extern int whal_hwCtrl_SetRSSIParams(HwCtrl_T *pHwCtrl, whalCtrl_roamingTriggerCmd_t* pRoamingTriggerCmd) ;
  162. extern int whal_hwCtrl_SetMaxTxRetryParams(HwCtrl_T *pHwCtrl, whalCtrl_roamingTriggerCmd_t* pRoamingTriggerCmd);
  163. extern int whal_hwCtrl_SetBssLossTsfThresholdParams( HwCtrl_T *pHwCtrl,whalCtrl_roamingTriggerCmd_t* pRoamingTriggerCmd);
  164. extern int whal_hwCtrl_GetAsynRSSI (HwCtrl_T *pHwCtrl,void *CB_Func, TI_HANDLE CB_handle, PUINT8 CB_Buf);
  165. extern int whal_hwCtrl_ClkRunEnableSet (HwCtrl_T *pHwCtrl, BOOL aClkRunEnable);
  166. extern int whal_hwCtrl_ArmClockSet (HwCtrl_T *pHwCtrl, UINT32 ArmClock);
  167. extern int whal_hwCtrl_MacClockSet (HwCtrl_T *pHwCtrl, UINT32 MacClock);
  168. extern TI_HANDLE whal_hwCtrl_GetBusHandle(HwCtrl_T *pHwCtrl);
  169. extern HwMboxConfig_T *whal_hwCtrl_GetMboxConfig(HwCtrl_T *pHwCtrl);
  170. extern HwMboxCmd_T *whal_hwCtrl_GetMboxCmd(HwCtrl_T *pHwCtrl);
  171. extern int whal_hwCtrl_getTsf(HwCtrl_T *pHwCtrl, UINT32 *pTsf);
  172. extern int whal_hwCtrl_SetSlotTime (HwCtrl_T *pHwCtrl, slotTime_e SlotTimeVal);
  173. extern int whal_hwCtrl_SetPreamble (HwCtrl_T *pHwCtrl, Preamble_e preambleVal);
  174. int whal_hwCtrl_SetFrameRate(HwCtrl_T *pHwCtrl,
  175. UINT8 txCtrlFrmRateVal,
  176. UINT8 txCtrlFrmModVal,
  177. UINT8 txMgmtFrmRateVal,
  178. UINT8 txMgmtFrmModVal);
  179. extern int whal_hwCtrl_EncDecrSet (HwCtrl_T *pHwCtrl, BOOL aHwEncEnable, BOOL aHwDecEnable);
  180. extern int whal_hwCtrl_RxMsduFormatSet(HwCtrl_T *pHwCtrl, BOOL aRxMsduForamtEnable);
  181. extern int whal_hwCtrl_PacketDetectionThreshold (TI_HANDLE hHwCtrl, UINT8* pPdThreshold);
  182. extern int whal_hwCtrl_FwDisconnect(HwCtrl_T *pHwCtrl, uint32 ConfigOptions, uint32 FilterOptions);
  183. extern int whal_hwCtrl_MinPowerLevelSet (HwCtrl_T *pHwCtrl, powerAutho_PowerPolicy_e minPowerLevel);
  184. extern int whal_hwCtrl_SoftGeminiEnable(HwCtrl_T *pHwCtrl,SoftGeminiEnableModes_e SgEnable);
  185. extern int whal_hwCtrl_SetSoftGeminiParams(HwCtrl_T *pHwCtrl,SoftGeminiParam_t *SgParam);
  186. int whal_hwCtrl_GetSoftGeminiParams (HwCtrl_T *pHwCtrl, void *CB_Func, TI_HANDLE CB_handle, void* CB_Buf);
  187. extern int whal_hwCtrl_TxRatePolicy(TI_HANDLE hHwCtrl,txRatePolicy_t *pTxRatePolicy);
  188. extern txRatePolicy_t* whal_hwCtrl_GetTxRatePolicy(TI_HANDLE hHwCtrl);
  189. extern int whal_hwCtrl_ReJoinBss (TI_HANDLE hHwCtrl);
  190. int whal_hwCtrl_setBetParams(HwCtrl_T * pHwCtrl, UINT8 Enable, UINT8 MaximumConsecutiveET);
  191. /*
  192. * WME TX API
  193. */
  194. extern int whal_hwCtrl_TrafficConf(TI_HANDLE hHwCtrl, queueTrafficParams_t *pQtrafficParams);
  195. extern int whal_hwCtrl_AcParamsConf(TI_HANDLE hHwCtrl,configureCmdCBParams_t *pConfigureCommand);
  196. extern int whal_hwCtrl_QueueConf(TI_HANDLE hHwCtrl, acQueuesParams_t* pAcQueuesParams);
  197. #if 0
  198. extern int whal_hwCtrl_TrafficConf (TI_HANDLE hHwCtrl, whaCtrl_acTrafficParams_t* pAcTrafficParams);
  199. extern int whal_hwCtrl_TxConfigOptions (TI_HANDLE hHwCtrl);
  200. #endif
  201. /* Measurement */
  202. extern int whal_hwCtrl_measurement (HwCtrl_T *pHwCtrl, whalCtrl_MeasurementParameters_t* pMeasurementParams,
  203. void* MeasureCommandResponseCB, TI_HANDLE CB_handle);
  204. extern int whal_hwCtrl_measurementStop (HwCtrl_T *pHwCtrl, void* MeasureCommandResponseCB, TI_HANDLE CB_handle);
  205. extern int whal_hwCtrl_ApDiscovery (HwCtrl_T *pHwCtrl, whalCtrl_ApDiscoveryParameters_t* pMeasurementParams);
  206. extern int whal_hwCtrl_ApDiscoveryStop (HwCtrl_T *pHwCtrl);
  207. extern int whal_hwCtrl_healthCheck (HwCtrl_T *pHwCtrl);
  208. /*
  209. PowerMgmtOption enum
  210. */
  211. typedef enum
  212. {
  213. /* beacon/dtim/listen interval */
  214. POWER_MGMT_OPTIONS_WAKEUP_ON_ALL_BEACONS_VAL = 0x0,
  215. POWER_MGMT_OPTIONS_WAKEUP_ON_ALL_DITMS_VAL = 0x1,
  216. POWER_MGMT_OPTIONS_WAKEUP_ON_EVERY_LISTEN_INTERVAL_VAL = 0x2,
  217. POWER_MGMT_OPTIONS_WAKEUP_ON_N_DITM_VAL = 0x5,
  218. POWER_MGMT_OPTIONS_WAKEUP_ON_MASK = 0x7,
  219. /* gpio/wake on host */
  220. POWER_MGMT_OPTIONS_WAKEUP_ON_GPIO_OFFSET = 6,
  221. POWER_MGMT_OPTIONS_WAKEUP_ON_GPIO_VAL = 1<<POWER_MGMT_OPTIONS_WAKEUP_ON_GPIO_OFFSET,
  222. POWER_MGMT_OPTIONS_WAKEUP_ON_GPIO_MASK = 1<<POWER_MGMT_OPTIONS_WAKEUP_ON_GPIO_OFFSET,
  223. /* 802.11 ps Enable */
  224. POWER_MGMT_OPTIONS_PS_802_11_ENABLE_OFFSET = 7,
  225. POWER_MGMT_OPTIONS_PS_802_11_ENABLE_VAL = 1<<POWER_MGMT_OPTIONS_PS_802_11_ENABLE_OFFSET,
  226. POWER_MGMT_OPTIONS_PS_802_11_ENABLE_MASK = 1<<POWER_MGMT_OPTIONS_PS_802_11_ENABLE_OFFSET,
  227. /* 802.11 ps Disable send of null data frame on exit from PS */
  228. POWER_MGMT_OPTIONS_PS_802_11_DISABLE_NULL_DATA_SEND_ON_EXIT_OFFSET = 5,
  229. POWER_MGMT_OPTIONS_PS_802_11_DISABLE_NULL_DATA_SEND_ON_EXIT_VAL = 1<<POWER_MGMT_OPTIONS_PS_802_11_DISABLE_NULL_DATA_SEND_ON_EXIT_OFFSET,
  230. POWER_MGMT_OPTIONS_PS_802_11_DISABLE_NULL_DATA_SEND_ON_EXIT_MASK = 1<<POWER_MGMT_OPTIONS_PS_802_11_DISABLE_NULL_DATA_SEND_ON_EXIT_OFFSET,
  231. /* Rx Broadcast (ignore broadcast / proxy arp) */
  232. POWER_MGMT_OPTIONS_RX_BROADCAST_OFFEST = 0,
  233. POWER_MGMT_OPTIONS_RX_BROADCAST_VAL = 1<<POWER_MGMT_OPTIONS_RX_BROADCAST_OFFEST,
  234. POWER_MGMT_OPTIONS_RX_BROADCAST_MASK = 1<<POWER_MGMT_OPTIONS_RX_BROADCAST_OFFEST,
  235. /* HW PS POLL */
  236. POWER_MGMT_OPTIONS_HW_PS_POLL_OFFSET = 1,
  237. POWER_MGMT_OPTIONS_HW_PS_POLL_OFF_VAL = 1<<POWER_MGMT_OPTIONS_HW_PS_POLL_OFFSET,
  238. POWER_MGMT_OPTIONS_HW_PS_POLL_MASK = 1<<POWER_MGMT_OPTIONS_HW_PS_POLL_OFFSET
  239. }whalHwCtrl_PowerMgmtOptionsDefinitions;
  240. /*
  241. BeaconFiltering enum
  242. */
  243. typedef enum
  244. {
  245. /* beacon filtering activation */
  246. BEACON_FILTER_DISABLE_VAL = 0,
  247. BEACON_FILTER_ENABLE_VAL = 1
  248. }whalHwCtrl_BeaconFilteringOptionsDefinitions;
  249. /*
  250. * EEPROM defines
  251. */
  252. /*******************
  253. Radio constants
  254. *******************/
  255. #define RADIO_MAXIM2820_ID (0x0D)
  256. #define RADIO_RFMD_ID (0x11)
  257. #define RADIO_RADIA_BG_ID (0x16)
  258. #define RADIO_RADIA_ABG_ID (0x17)
  259. #define RADIO_RADIA_BG_CRT_ID (0x19)
  260. #define RADIO_RADIA_CRT_ID (0x19)
  261. #define RADIO_RADIA_WBR_ID (0x1A)
  262. #define RADIO_RADIA_DCR_ID (0x1B)
  263. #define RADIO_RADIA_DCR_1251_ID (0x1C)
  264. #define DEFAULT_RADIO_TYPE RADIO_MAXIM2820_ID
  265. #endif