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

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

http://github.com/CyanogenMod/cm-kernel
C Header | 127 lines | 18 code | 10 blank | 99 comment | 0 complexity | 5de5542e1f4540cf129df09e35f2bbf6 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_AdapterSG.h*/
  22. /**/
  23. /* Purpose: This API enables / disables the Bluetooth coexistence support, */
  24. /* sets the parameters of the Bluetooth coexistence feature and */
  25. /* retrieve its status. These functions are usually unavailable, */
  26. /* unless the WiLink™ 4.0 WLAN driver is specifically compiled to */
  27. /* support Bluetooth coexistence.*/
  28. /**/
  29. /*--------------------------------------------------------------------------*/
  30. #ifndef TI_ADAPTER_SG_H
  31. #define TI_ADAPTER_SG_H
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35. #include "softGeminiTypes.h"
  36. /******************************************************************************
  37. Name: TI_SetBtCoeEnable
  38. Desc: This function enables and disables the Bluetooth coexistence feature
  39. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  40. ModeEnable - One of the following values:
  41. SG_ENABLE(0) –WLAN enabled
  42. SG_DISABLE(1) – WLAN disabled
  43. SG_SENSE_NO_ACTIVITY(2) –WLAN disabled, waiting for a BTH
  44. sense interrupt
  45. SG_SENSE_ACTIVE(3) - WLAN enabled, waiting for a BTH sense
  46. interrupt.
  47. Return: TI_RESULT_OK on success. Any other value indicates an error.
  48. ******************************************************************************/
  49. tiINT32 TI_SetBtCoeEnable (TI_HANDLE hAdapter,
  50. tiUINT32 ModeEnable );
  51. /******************************************************************************
  52. Name: TI_SetBtCoeRate
  53. Desc: This function sets the rate to be used when Bluetooth coexistence
  54. feature is enabled.
  55. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  56. pRate - One of the following values:
  57. 0 – 11 Mbps
  58. 1 – 5.5 and 11 Mbps
  59. 2 – 5.5, 11 and 22 Mbps
  60. 3 – 11 and 22 Mbps.
  61. Return: TI_RESULT_OK on success. Any other value indicates an error.
  62. ******************************************************************************/
  63. tiINT32 TI_SetBtCoeRate (TI_HANDLE hAdapter,
  64. tiUINT8 *pRate );
  65. /******************************************************************************
  66. Name: TI_SetBtCoeConfig
  67. Desc: This function configures Bluetooth coexistence parameters.
  68. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  69. pConfig - Pointer that holds the bluetooth coexistence paramaters,
  70. in the following order (each parameter is 32 bits long):
  71. - the length inmsec of the BT period in the TDM
  72. - the length in msec of the WLAN period in the TDM
  73. - the length in msec of the BT period in the TDM in AFH mode
  74. - the length in msec of the BOTH period in the TDM in AFH mode
  75. - min time in msec between last BT activity & defining BT as
  76. inactive
  77. - min time in msec between last WLAN activity & defining WLAN
  78. as inactive
  79. - min time in msec between last WLAN activity & defining WLAN as
  80. in RxGuard mode
  81. - the maximum length of time the BT HP will be respected
  82. - the maximum length of time the WLAN HP will be respected
  83. - the length of time when working in SENSE mode that the BT needs
  84. to be inactive in order to DISABLE the SG
  85. - the length in msec of Bt time between every WLAN RxGuard.
  86. - the length in msec left for Wlan in RxGuard state
  87. - WLAN HW generated mode during BT period
  88. - specifies whether to use the AFH information from the BT
  89. Return: TI_RESULT_OK on success. Any other value indicates an error.
  90. ******************************************************************************/
  91. tiINT32 TI_SetBtCoeConfig (TI_HANDLE hAdapter,
  92. tiUINT32 *pConfig );
  93. /******************************************************************************
  94. Name: TI_SetBtCoeGetStatus
  95. Desc: This function retrieves Bluetooth coexistence feature parameters.
  96. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  97. pStatus - Pointer that holds the Bluetooth coexistence feature
  98. status. 16 4-byte words should be allocated.
  99. The 1st word will hold the enable status (set by TI_SetBtCoeEnable).
  100. The 2nd word will hold the rate (set by TI_SetBtCoeRate).
  101. Words 3 to 15 will hold all the parameters set by TI_SetBtCoeConfig.
  102. Return: TI_RESULT_OK on success. Any other value indicates an error.
  103. ******************************************************************************/
  104. tiINT32 TI_SetBtCoeGetStatus (TI_HANDLE hAdapter,
  105. tiUINT32 *pStatus );
  106. #ifdef __cplusplus
  107. }
  108. #endif
  109. #endif /* TI_ADAPTER_SG_H*/