PageRenderTime 46ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/drivers/net/wireless/tiwlan1251/common/src/TNETW_Driver/Ctrl/Export_Inc/CmdQueue_api.h

http://github.com/CyanogenMod/cm-kernel
C Header | 98 lines | 33 code | 10 blank | 55 comment | 0 complexity | c74e8235f1eb3b1fe926a123fac9f565 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: CmdQueue_api.h */
  38. /* PURPOSE: CmdQueue api */
  39. /* */
  40. /**********************************************************************************/
  41. #ifndef _CMDQUEUE_API_H_
  42. #define _CMDQUEUE_API_H_
  43. #include "whalCommon.h"
  44. #include "public_commands.h"
  45. /*****************************************************************************
  46. ** Defines **
  47. *****************************************************************************/
  48. /*****************************************************************************
  49. ** Enums **
  50. *****************************************************************************/
  51. /*****************************************************************************
  52. ** Structures **
  53. *****************************************************************************/
  54. /*****************************************************************************
  55. ** Types **
  56. *****************************************************************************/
  57. /*****************************************************************************
  58. ** APIs definitions **
  59. *****************************************************************************/
  60. TI_HANDLE CmdQueue_Create(TI_HANDLE hOS);
  61. int CmdQueue_Destroy(TI_HANDLE hCmdQueue);
  62. int CmdQueue_Config(TI_HANDLE hCmdQueue, TI_HANDLE hCmdMBox,
  63. TI_HANDLE hReport);
  64. int CmdQueue_StartReconfig(TI_HANDLE hCmdQueue);
  65. int CmdQueue_EndReconfig(TI_HANDLE hCmdQueue);
  66. int CmdQueue_RegisterCmdCompleteGenericCB(TI_HANDLE hCmdQueue, void *CB_Func, TI_HANDLE CB_handle);
  67. int CmdQueue_RegisterForErrorCB(TI_HANDLE hCmdQueue, void *CB_Func, TI_HANDLE CB_handle);
  68. int CmdQueue_CmdConfigure(TI_HANDLE hCmdQueue, void *MboxBuf,UINT32 ParamsLen);
  69. int CmdQueue_CmdConfigureWithCb(TI_HANDLE hCmdQueue, void *MboxBuf, UINT32 ParamsLen,
  70. void *CB_Func, TI_HANDLE CB_handle);
  71. int CmdQueue_CmdInterrogate(TI_HANDLE hCmdQueue, void *MboxBuf, UINT32 ParamsLen);
  72. int CmdQueue_CmdInterrogateWithCb(TI_HANDLE hCmdQueue, void *MboxBuf, UINT32 ParamsLen,
  73. void *CB_Func, TI_HANDLE CB_handle, void *CB_Buf);
  74. int CmdQueue_Command(TI_HANDLE hCmdQueue, Command_e MboxCmdType, char *MboxBuf, UINT32 ParamsLen);
  75. int CmdQueue_CommandWithCb(TI_HANDLE hCmdQueue, Command_e MboxCmdType, void *MboxBuf, UINT32 ParamsLen,
  76. void *CB_Func, TI_HANDLE CB_handle, void* CB_Buf);
  77. int CmdQueue_GetMaxNumberOfCommands (TI_HANDLE hCmdQueue);
  78. void CmdQueue_Print(TI_HANDLE hCmdQueue);
  79. void CmdQueue_PrintHistory(TI_HANDLE hCmdQueue, int NunOfCmd);
  80. int CmdQueue_ResultReceived(TI_HANDLE hCmdQueue, UINT32 status);
  81. int CmdQueue_Error (TI_HANDLE hCmdQueue);
  82. int CmdQueue_SendCmplt(TI_HANDLE hCmdQueue);
  83. #ifdef REPORT_LOG
  84. char* CmdQueue_GetIEString(int MboxCmdType, UINT16 Id);
  85. char* CmdQueue_GetCmdString(int MboxCmdType);
  86. char* CmdQueue_GetErrorString(CommandStatus_e MboxError);
  87. #endif /* REPORT_LOG */
  88. #endif