PageRenderTime 65ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/drivers/net/wireless/tiwlan1251/common/inc/srcApi.h

http://github.com/CyanogenMod/cm-kernel
C Header | 149 lines | 60 code | 41 blank | 48 comment | 0 complexity | a7db51c757962fb29b1dbe871ac3a50d 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: srcApi.h */
  38. /* PURPOSE: Header file of config Manager module */
  39. /* */
  40. /**************************************************************************/
  41. #ifndef __SRC_API_H__
  42. #define __SRC_API_H__
  43. #include "osTIType.h"
  44. #include "paramOut.h"
  45. #include "memMngrEx.h"
  46. #define DRIVER_SHUTDOWN_SME_STOPPED 0x1
  47. #define DRIVER_SHUTDOWN_COMPLETE (DRIVER_SHUTDOWN_SME_STOPPED)
  48. TI_HANDLE configMgr_create(TI_HANDLE hOs,void *pWLAN_Images,
  49. initTable_t *pInitTable,
  50. macAddress_t *pMac);
  51. TI_HANDLE configMgr_init (TI_HANDLE hOs,TI_HANDLE hConfigManager,void *pWLAN_Images,
  52. initTable_t *pInitTable,
  53. macAddress_t *pMac);
  54. /* Unload for windows */
  55. TI_STATUS configMgr_unLoad(TI_HANDLE hConfigMgr);
  56. /* Start unload process (stop SME) */
  57. TI_STATUS configMgr_InitiateUnload(TI_HANDLE hConfigMgr);
  58. /* Unload all modules (free memory etc) */
  59. TI_STATUS configMgr_UnloadModules (TI_HANDLE hConfigMgr);
  60. /* Return internal shutdown status */
  61. UINT8 configMgr_DriverShutdownStatus(TI_HANDLE hConfigMgr);
  62. TI_STATUS configMgr_start(TI_HANDLE hConfigMgr);
  63. TI_STATUS configMgr_stop(TI_HANDLE hConfigMgr);
  64. TI_STATUS configMgr_setParam(TI_HANDLE hConfigMgr,
  65. paramInfo_t *pParam);
  66. TI_STATUS configMgr_getParam(TI_HANDLE hConfigMgr,
  67. paramInfo_t *pParam);
  68. TI_STATUS configMgr_sendMsdu(TI_HANDLE hConfigMgr,
  69. mem_MSDU_T *pMsdu,
  70. UINT8 packet_DTag);
  71. TI_STATUS configMgr_PollApPackets(TI_HANDLE hConfigMgr);
  72. TI_STATUS configMgr_checkTxQueueSize(TI_HANDLE hConfigMgr,UINT8 qIndex);
  73. /* Event Handler wrapper */
  74. UINT32 configMgr_RegisterEvent(TI_HANDLE hConfigMgr, PUCHAR pData, ULONG Length);
  75. UINT32 configMgr_UnRegisterEvent(TI_HANDLE hConfigMgr, TI_HANDLE uEventID);
  76. UINT32 configMgr_MaskEvent(TI_HANDLE hConfigMgr, UINT32 uEventID);
  77. UINT32 configMgr_UnMaskEvent(TI_HANDLE hConfigMgr, UINT32 uEventID);
  78. /* Initiated from User Space to fetch event data*/
  79. UINT32 configMgr_GetEventData (TI_HANDLE hConfigMgr, PUCHAR pData, ULONG* pLength);
  80. /* Memory manager wrapper */
  81. TI_STATUS configMgr_allocBDs(TI_HANDLE hConfigMgr,
  82. UINT32 bdNumber,
  83. mem_BD_T** bdPtr);
  84. TI_STATUS configMgr_allocMSDU(TI_HANDLE hConfigMgr,
  85. mem_MSDU_T** MSDUPtr,
  86. UINT32 len,
  87. allocatingModule_e module);
  88. TI_STATUS configMgr_allocMSDUBufferOnly(TI_HANDLE hConfigMgr,
  89. mem_MSDU_T** MSDUPtr,
  90. allocatingModule_e module);
  91. TI_STATUS configMgr_memMngrFreeMSDU(TI_HANDLE hConfigMgr,
  92. UINT32 handle);
  93. /* HAL wrapper */
  94. TI_STATUS configMgr_HandleBusTxn_Complete(TI_HANDLE hConfigMgr);
  95. TI_STATUS configMgr_handleInterrupts(TI_HANDLE hConfigMgr);
  96. TI_STATUS configMgr_enableInterrupts(TI_HANDLE hConfigMgr);
  97. TI_STATUS configMgr_disableInterrupts(TI_HANDLE hConfigMgr);
  98. UINT32 configMgr_checkInterrupts(TI_HANDLE hConfigMgr);
  99. BOOL configMgr_isCardExist(TI_HANDLE hConfigMgr);
  100. BOOL configMgr_areInputsFromOsDisabled(TI_HANDLE hConfigMgr);
  101. UINT32 configMgr_ReadMacRegister(TI_HANDLE hConfigMgr, UINT32 addr);
  102. void configMgr_WriteMacRegister(TI_HANDLE hConfigMgr, UINT32 addr, UINT32 val);
  103. UINT32 configMgr_ReadPhyRegister(TI_HANDLE hConfigMgr, UINT32 addr);
  104. void configMgr_WritePhyRegister(TI_HANDLE hConfigMgr, UINT32 addr, UINT32 val);
  105. UINT32 configMgr_getPacketHeaderLength(TI_HANDLE hConfigMgr, void *pData, UINT32 txFlags);
  106. void configMgr_SlaveAckMaskNotification(TI_HANDLE hConfigMgr);
  107. void configMgr_GetInitParams (TI_HANDLE hConfigMgr, UINT8* ioBuffer, UINT16 *outBufLen);
  108. #endif /* __SRC_API_H__ */