PageRenderTime 78ms CodeModel.GetById 29ms RepoModel.GetById 1ms app.codeStats 0ms

/drivers/net/wireless/tiwlan1251/common/src/core/Core_Adapt/CORE_Adapt_Defs.h

http://github.com/CyanogenMod/cm-kernel
C Header | 161 lines | 65 code | 28 blank | 68 comment | 0 complexity | 06af17e20e7c6a1dd52566d902583e88 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: CORE_Adapt_Defs_Defs.h
  38. * PURPOSE: Core Adapt component structures definitions
  39. *
  40. ****************************************************************************/
  41. #ifndef __CORE_ADAPT_DEFS_H__
  42. #define __CORE_ADAPT_DEFS_H__
  43. #include "paramOut.h"
  44. /*
  45. * --------------------------------------------------------------
  46. * for Core API
  47. * --------------------------------------------------------------
  48. */
  49. typedef enum
  50. {
  51. CORE_MANAGEMENT_FRAME = 0,
  52. CORE_CONTROL_FRAME = 1,
  53. CORE_DATA_FRAME = 2,
  54. CORE_RESERVED_FRAME = 3,
  55. } CoreAdapt_Tx_frameType_e;
  56. #if 0
  57. typedef struct
  58. {
  59. CoreAdapt_Tx_frameType_e txFrameType;
  60. rate_e txRequestRate;
  61. modulationType_e txRequestModulation;
  62. rate_e txActualRate;
  63. modulationType_e txActualModulation;
  64. int txStatus; /* OK/NOK of frame transmittion*/
  65. void *MsduAddr;
  66. int txNumWaiting;
  67. /* voice synch trigger for scan */
  68. /* disassociate packet trigger to ibssCon SM */
  69. UINT32 txDescFlags ;
  70. } CoreAdapt_TxCmplt_attr_t;
  71. typedef enum
  72. {
  73. CORE_RX_SUCCESS = 0,
  74. CORE_RX_STATUS_ERROR,
  75. CORE_RX_MIC_FAIL
  76. } CoreAdapt_Rx_status_e;
  77. typedef struct
  78. {
  79. CoreAdapt_Rx_status_e Status;
  80. UINT8 Lna;
  81. UINT32 TimeStamp;
  82. rate_e Rate;
  83. modulationType_e Modulation;
  84. UINT8 SNR;
  85. UINT8 RxLevel;
  86. UINT8 channel;
  87. } CoreAdapt_Rx_attr_t;
  88. /* Callback for tx compleate */
  89. typedef void (*TxCompleteStatusCB_t)(TI_HANDLE hCtrlData, CoreAdapt_TxCmplt_attr_t* CmpltTxAttr);
  90. /* Callback for tx compleate */
  91. typedef void (*TxCompleteStatusCB_t)(TI_HANDLE CB_handle, whalTxCmplt_attr_t* CmpltTxAttr);
  92. /* Callback for tx sendPacketTranfer */
  93. typedef void (* SendPacketTranferCB_t)(TSendXferStatus_e aStatus,UINT32 aPacketId,void *reserved);
  94. /* Callback for rx msdu */
  95. typedef void (*msduReceiveCB_t)(TI_HANDLE hRx, mem_MSDU_T *pMsdu, CoreAdapt_Rx_attr_t* pRxAttr);
  96. #endif
  97. /* Scan complete Callback - This routine is called from the HAL upon TNET scan complete */
  98. typedef void (*scanCompleteCB_t)(TI_HANDLE hScan);
  99. /* SME scan complete CB - This function is called by the scan service when it wants to indicate scan_complete event (to the sme)*/
  100. typedef void (*smeScanCompleteCB_t)(TI_HANDLE hSme);
  101. /* Incoming Info Callback */
  102. typedef void (*InfoCB_t)(TI_HANDLE handle, char* buf, UINT32 bufSize);
  103. /* Mac status Callback */
  104. typedef void (*MacStatusCB_t)(TI_HANDLE handle, char* str , UINT32 strLen);
  105. /* Health Report Callback */
  106. typedef void (*HealthReportCB_t)(TI_HANDLE handle, char* str , UINT32 strLen);
  107. /* Aci Indication Callback */
  108. typedef void (*AciIndicationCB_t)(TI_HANDLE handle, char* str , UINT32 strLen);
  109. /* Failure Event Callback */
  110. typedef void (*failureEventCB_t)(TI_HANDLE siteMgr, failureEvent_e failureEvent);
  111. /*
  112. * --------------------------------------------------------------
  113. * Indication definitions
  114. * --------------------------------------------------------------
  115. */
  116. /*
  117. * --------------------------------------------------------------
  118. * Internal Core_Adapt attributes
  119. * --------------------------------------------------------------
  120. */
  121. typedef struct _InternalCoreAdapt_attr_t
  122. {
  123. UINT8 NumFrags;
  124. BOOL tkipBitEnable;
  125. UINT8 Frag;
  126. UINT16 FrameControl;
  127. UINT32 HwMpduAddr;
  128. UINT8 RtsSet;
  129. UINT32 MpduSize;
  130. UINT8 numRequiredDataBlks;
  131. UINT32 RtsThreshold;
  132. } InternalCoreAdapt_attr_t;
  133. #endif /* __CORE_ADAPT_DEFS_H__ */