PageRenderTime 82ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/drivers/net/wireless/tiwlan1251/CUDK/Inc/TI_AdapterDBG.h

http://github.com/CyanogenMod/cm-kernel
C Header | 185 lines | 32 code | 18 blank | 135 comment | 0 complexity | a916fcc627439d95f125f709ab2f6dc2 MD5 | raw file
Possible License(s): AGPL-1.0, GPL-2.0, LGPL-2.0
  1. /*******************************************************************************
  2. **+--------------------------------------------------------------------------+**
  3. **| |**
  4. **| Copyright 1998-2008 Texas Instruments, Inc. - http://www.ti.com/ |**
  5. **| |**
  6. **| Licensed under the Apache License, Version 2.0 (the "License"); |**
  7. **| you may not use this file except in compliance with the License. |**
  8. **| You may obtain a copy of the License at |**
  9. **| |**
  10. **| http://www.apache.org/licenses/LICENSE-2.0 |**
  11. **| |**
  12. **| Unless required by applicable law or agreed to in writing, software |**
  13. **| distributed under the License is distributed on an "AS IS" BASIS, |**
  14. **| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |**
  15. **| See the License for the specific language governing permissions and |**
  16. **| limitations under the License. |**
  17. **| |**
  18. **+--------------------------------------------------------------------------+**
  19. *******************************************************************************/
  20. /*--------------------------------------------------------------------------*/
  21. /* Module: TI_AdapterDBG.h*/
  22. /**/
  23. /* Purpose: */
  24. /**/
  25. /*--------------------------------------------------------------------------*/
  26. #ifndef TI_ADAPTER_DBG_H
  27. #define TI_ADAPTER_DBG_H
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31. /******************************************************************************
  32. Name: TI_DisplayStats
  33. Desc: This function calls the driver internal debug function with the
  34. supplied information.
  35. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  36. puDbgBuffer - A buffer holding debug parameter. The first 4-byte
  37. word is the debug function to call, and the second
  38. word is an optional parameter, whose value depends
  39. on the debug function
  40. uBuffSize - The size of the buffer.
  41. Return: TI_RESULT_OK on success. Any other value indicates an error.
  42. ******************************************************************************/
  43. tiINT32 TI_DisplayStats (TI_HANDLE hAdapter,
  44. tiUINT8* puDbgBuffer,
  45. tiUINT32 uBuffSize );
  46. /************** logging control in linux *****************************************/
  47. /******************************************************************************
  48. Name: TI_SetReportModule
  49. Desc: This function sets the modules which reporting is performed.
  50. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  51. pData - A pointer to the bitmask defining the modules for which report
  52. information will be printed (see TIWlanModuleLogName_e)
  53. Return: TI_RESULT_OK on success. Any other value indicates an error.
  54. ******************************************************************************/
  55. tiINT32 TI_SetReportModule (TI_HANDLE hAdapter,
  56. tiUINT8 *pData);
  57. /******************************************************************************
  58. Name: TI_GetReportModule
  59. Desc: This function retrieves the modules which reporting is performed.
  60. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  61. pData - A pointer to the bitmask defining the modules for which report
  62. information will be printed (see TIWlanModuleLogName_e)
  63. Return: TI_RESULT_OK on success. Any other value indicates an error.
  64. ******************************************************************************/
  65. tiINT32 TI_GetReportModule (TI_HANDLE hAdapter,
  66. tiUINT8 *pData);
  67. /******************************************************************************
  68. Name: TI_SetReportSeverity
  69. Desc: This function sets the severities for which report information will
  70. be available. To request the information for a severity level to be
  71. available, include "1 << desired severity value" in the bitmask.
  72. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  73. pData - A pointer to a 1-byte bitmask of the severities:
  74. WLAN_SEVERITY_INIT 1
  75. WLAN_SEVERITY_INFORMATION 2
  76. WLAN_SEVERITY_WARNING 3
  77. WLAN_SEVERITY_ERROR 4
  78. WLAN_SEVERITY_FATAL_ERROR 5
  79. WLAN_SEVERITY_SM 6
  80. WLAN_SEVERITY_CONSOLE 7
  81. Return: TI_RESULT_OK on success. Any other value indicates an error.
  82. ******************************************************************************/
  83. tiINT32 TI_SetReportSeverity (TI_HANDLE hAdapter,
  84. tiUINT8* pData);
  85. /******************************************************************************
  86. Name: TI_GetReportSeverity
  87. Desc: This function retrieves the report severities bit mask.
  88. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  89. pData - A pointer to a 1-byte word in which severity bitmask will
  90. be written.
  91. Return: TI_RESULT_OK on success. Any other value indicates an error.
  92. ******************************************************************************/
  93. tiINT32 TI_GetReportSeverity (TI_HANDLE hAdapter,
  94. tiUINT8* pData);
  95. /******************************************************************************
  96. Name: TI_SetOsDbgState
  97. Desc: Set OS adaptation layer debug state
  98. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  99. uData - .
  100. Return: TI_RESULT_OK on success. Any other value indicates an error.
  101. ******************************************************************************/
  102. tiINT32 TI_SetOsDbgState (TI_HANDLE hAdapter,
  103. tiUINT32 uData);
  104. /******************************************************************************
  105. Name: TI_GetOsDbgState
  106. Desc: Get OS adaptation layer debug state
  107. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  108. uData - .
  109. Return: TI_RESULT_OK on success. Any other value indicates an error.
  110. ******************************************************************************/
  111. tiINT32 TI_GetOsDbgState (TI_HANDLE hAdapter,
  112. tiUINT32* puData);
  113. /******************************************************************************
  114. Name: TI_SetReportPPMode
  115. Desc:
  116. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  117. uData - .
  118. Return: TI_RESULT_OK on success. Any other value indicates an error.
  119. ******************************************************************************/
  120. tiINT32 TI_SetReportPPMode (TI_HANDLE hAdapter,
  121. tiUINT32 uData);
  122. /******************************************************************************
  123. Name: TI_hwWriteRegister
  124. Desc: This debug command writes a value to a register.
  125. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  126. uRegisterAddr -
  127. dwValue -
  128. Return: TI_RESULT_OK on success. Any other value indicates an error.
  129. ******************************************************************************/
  130. tiINT32 TI_hwWriteRegister (TI_HANDLE hAdapter,
  131. tiUINT32 uRegisterAddr,
  132. tiUINT32 dwValue );
  133. /******************************************************************************
  134. Name: TI_hwReadRegister
  135. Desc: This debug command reads a value of a register.
  136. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  137. uRegisterAddr -
  138. puValue -
  139. Return: TI_RESULT_OK on success. Any other value indicates an error.
  140. ******************************************************************************/
  141. tiINT32 TI_hwReadRegister (TI_HANDLE hAdapter,
  142. tiUINT32 uRegisterAddr,
  143. tiUINT32* puValue );
  144. #ifdef __cplusplus
  145. }
  146. #endif
  147. #endif /* TI_ADAPTER_DBG_H*/