PageRenderTime 42ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/drivers/net/wireless/tiwlan1251/common/src/TNETW_Driver/Export_Inc/TNETW_Driver_api.h

http://github.com/CyanogenMod/cm-kernel
C Header | 114 lines | 42 code | 16 blank | 56 comment | 1 complexity | e06ddef4746a2ab106d24f5a21f27c2a 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: TNETW-Driver */
  38. /* */
  39. /* PURPOSE: Driver API functions prototypes. */
  40. /* */
  41. /***************************************************************************/
  42. #ifndef TNETW_DRIVER_API_H
  43. #define TNETW_DRIVER_API_H
  44. #include "commonTypes.h"
  45. #include "TNETW_Driver_types.h"
  46. #include "802_11Defs.h"
  47. /************************************************************************
  48. TNETW-Driver Common API Functions
  49. ************************************************************************/
  50. /* Functions that handle common procedures for multiple driver modules (mainly initialization). */
  51. TI_HANDLE TnetwDrv_Create (TI_HANDLE hOs);
  52. TI_STATUS TnetwDrv_Init (TI_HANDLE hTnetwDrv, TI_HANDLE hReport, TI_HANDLE hMemMgr, TI_HANDLE hUser, UINT32 *pFWImage, TnetwDrv_InitParams_t* pInitParams, TnetDrv_callback_t fUserConf);
  53. TI_STATUS TnetwDrv_Configure (TI_HANDLE hTnetwDrv, TnetwDrv_InitParams_t* pInitParams);
  54. void TnetwDrv_Destroy (TI_HANDLE hTnetwDrv);
  55. void TnetwDrv_Register_CB (TI_HANDLE hTnetwDrv,tiUINT32 EventID,void *CBFunc, void *pData);
  56. void TnetwDrv_GetInitParams (TI_HANDLE hTnetwDrv, UINT8 *pcommand, UINT16 *OutBufLen);
  57. void TnetwDrv_PrintInfo (TI_HANDLE hTnetwDrv, TnetwDrv_PrintInfoType_e printInfo);
  58. TI_STATUS TnetwDrv_FinalizeDownload (TI_HANDLE hTnetwDrv);
  59. TI_STATUS TnetwDrv_FinalizeOnFailure (TI_HANDLE hTnetwDrv);
  60. /* TEMPORARY!! - untill the new TNETW-Driver architecture is completed!! */
  61. void TnetwDrv_TEMP_GetHandles (TI_HANDLE hTnetwDrv, TI_HANDLE *pHalCtrl, TI_HANDLE *pMacServices);
  62. #ifdef GWSI_SPI_TEST
  63. TI_HANDLE TnetwDrv_GetTnetwifHandle (TI_HANDLE hTnetwDrv);
  64. #endif /* GWSI_SPI_TEST */
  65. /************************************************************************
  66. TNETW-Driver Tx API Functions
  67. ************************************************************************/
  68. txCtrlBlkEntry_t *TnetwDrv_txCtrlBlk_alloc (TI_HANDLE hTnetwDrv);
  69. void TnetwDrv_txCtrlBlk_free (TI_HANDLE hTnetwDrv, txCtrlBlkEntry_t *pCurrentEntry);
  70. txCtrlBlkEntry_t *TnetwDrv_txCtrlBlk_GetPointer (TI_HANDLE hTnetwDrv, UINT8 descId);
  71. TI_STATUS TnetwDrv_txHwQueue_alloc (TI_HANDLE hTnetwDrv, txCtrlBlkEntry_t *pPktCtrlBlk);
  72. TI_STATUS TnetwDrv_txHwQueue_free (TI_HANDLE hTnetwDrv, txCtrlBlkEntry_t *pPktCtrlBlk);
  73. UINT8 TnetwDrv_txHwQueue_GetUsedHwBlks (TI_HANDLE hTnetwDrv, int TxQid);
  74. UINT8 TnetwDrv_txGetAckPolicy (TI_HANDLE hTnetwDrv, int TxQid, BOOL bIsMultiCastAndIBSS);
  75. void TnetwDrv_printInfo (TI_HANDLE hTnetwDrv);
  76. systemStatus_e TnetwDrv_txXfer_sendPacket (TI_HANDLE hTnetwDrv,
  77. const void *aFrame, /* Pointer to the packet content. points to */
  78. /* the place that the actual packet begins. */
  79. /* a size of TX_TOTAL_OFFSET_BEFORE_DATA */
  80. /* must be saved before that pointer */
  81. UINT16 aLength, /* MSDU length from first byte of MAC */
  82. /* header to last byteof frame body. */
  83. UINT8 aQueueId, /* Tx queue as defined in ConfigureQueue. */
  84. UINT8 aTxRateClassId, /* Tx rate class ID defined in txRatePolicy.*/
  85. UINT16 aMaxTransmitRate,/* A bit mask that specifies the initial */
  86. /* (highest) rate to use. */
  87. BOOL aMore, /* Tells if there is another packet coming */
  88. /* shortly after this one. */
  89. UINT32 aPacketId, /* Packet identifier used as a context by */
  90. /* the host driver. */
  91. UINT8 aPowerLevel, /* Transmission power level. */
  92. UINT32 aExpiryTime, /* Time left for this MSDU to live. */
  93. void *aReserved); /* Optional parameters pointer. */
  94. #if !defined(GWSI_DRIVER) && !defined(GWSI_LIB)
  95. void TnetwDrv_StartRecovery(TI_HANDLE hTnetwDrv, void *endOfRecoveryCB, TI_HANDLE hRecoveryMgr);
  96. TI_STATUS TnetwDrv_InitHw_FinalizeDownload(TI_HANDLE hTnetwDrv);
  97. #endif
  98. #endif /* TNETW_DRIVER_TYPES_H */