halcomtxbf.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2007 - 2017 Realtek Corporation.
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of version 2 of the GNU General Public License as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. * more details.
  13. *
  14. * The full GNU General Public License is included in this distribution in the
  15. * file called LICENSE.
  16. *
  17. * Contact Information:
  18. * wlanfae <wlanfae@realtek.com>
  19. * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
  20. * Hsinchu 300, Taiwan.
  21. *
  22. * Larry Finger <Larry.Finger@lwfinger.net>
  23. *
  24. *****************************************************************************/
  25. #ifndef __HAL_COM_TXBF_H__
  26. #define __HAL_COM_TXBF_H__
  27. #if 0
  28. typedef bool
  29. (*TXBF_GET)(
  30. void* adapter,
  31. u8 get_type,
  32. void* p_out_buf
  33. );
  34. typedef bool
  35. (*TXBF_SET)(
  36. void* adapter,
  37. u8 set_type,
  38. void* p_in_buf
  39. );
  40. #endif
  41. enum txbf_set_type {
  42. TXBF_SET_SOUNDING_ENTER,
  43. TXBF_SET_SOUNDING_LEAVE,
  44. TXBF_SET_SOUNDING_RATE,
  45. TXBF_SET_SOUNDING_STATUS,
  46. TXBF_SET_SOUNDING_FW_NDPA,
  47. TXBF_SET_SOUNDING_CLK,
  48. TXBF_SET_TX_PATH_RESET,
  49. TXBF_SET_GET_TX_RATE
  50. };
  51. enum txbf_get_type {
  52. TXBF_GET_EXPLICIT_BEAMFORMEE,
  53. TXBF_GET_EXPLICIT_BEAMFORMER,
  54. TXBF_GET_MU_MIMO_STA,
  55. TXBF_GET_MU_MIMO_AP
  56. };
  57. /* @2 HAL TXBF related */
  58. struct _HAL_TXBF_INFO {
  59. u8 txbf_idx;
  60. u8 ndpa_idx;
  61. u8 BW;
  62. u8 rate;
  63. struct phydm_timer_list txbf_fw_ndpa_timer;
  64. #if (DM_ODM_SUPPORT_TYPE == ODM_WIN)
  65. RT_WORK_ITEM txbf_enter_work_item;
  66. RT_WORK_ITEM txbf_leave_work_item;
  67. RT_WORK_ITEM txbf_fw_ndpa_work_item;
  68. RT_WORK_ITEM txbf_clk_work_item;
  69. RT_WORK_ITEM txbf_status_work_item;
  70. RT_WORK_ITEM txbf_rate_work_item;
  71. RT_WORK_ITEM txbf_reset_tx_path_work_item;
  72. RT_WORK_ITEM txbf_get_tx_rate_work_item;
  73. #endif
  74. };
  75. #if (BEAMFORMING_SUPPORT == 1)
  76. void hal_com_txbf_beamform_init(
  77. void *dm_void);
  78. void hal_com_txbf_config_gtab(
  79. void *dm_void);
  80. void hal_com_txbf_enter_work_item_callback(
  81. #if (DM_ODM_SUPPORT_TYPE == ODM_WIN)
  82. void *adapter
  83. #else
  84. void *dm_void
  85. #endif
  86. );
  87. void hal_com_txbf_leave_work_item_callback(
  88. #if (DM_ODM_SUPPORT_TYPE == ODM_WIN)
  89. void *adapter
  90. #else
  91. void *dm_void
  92. #endif
  93. );
  94. void hal_com_txbf_fw_ndpa_work_item_callback(
  95. #if (DM_ODM_SUPPORT_TYPE == ODM_WIN)
  96. void *adapter
  97. #else
  98. void *dm_void
  99. #endif
  100. );
  101. void hal_com_txbf_clk_work_item_callback(
  102. #if (DM_ODM_SUPPORT_TYPE == ODM_WIN)
  103. void *adapter
  104. #else
  105. void *dm_void
  106. #endif
  107. );
  108. void hal_com_txbf_reset_tx_path_work_item_callback(
  109. #if (DM_ODM_SUPPORT_TYPE == ODM_WIN)
  110. void *adapter
  111. #else
  112. void *dm_void
  113. #endif
  114. );
  115. void hal_com_txbf_get_tx_rate_work_item_callback(
  116. #if (DM_ODM_SUPPORT_TYPE == ODM_WIN)
  117. void *adapter
  118. #else
  119. void *dm_void
  120. #endif
  121. );
  122. void hal_com_txbf_rate_work_item_callback(
  123. #if (DM_ODM_SUPPORT_TYPE == ODM_WIN)
  124. void *adapter
  125. #else
  126. void *dm_void
  127. #endif
  128. );
  129. void hal_com_txbf_fw_ndpa_timer_callback(
  130. struct phydm_timer_list *timer);
  131. void hal_com_txbf_status_work_item_callback(
  132. #if (DM_ODM_SUPPORT_TYPE == ODM_WIN)
  133. void *adapter
  134. #else
  135. void *dm_void
  136. #endif
  137. );
  138. boolean
  139. hal_com_txbf_set(
  140. void *dm_void,
  141. u8 set_type,
  142. void *p_in_buf);
  143. boolean
  144. hal_com_txbf_get(
  145. void *adapter,
  146. u8 get_type,
  147. void *p_out_buf);
  148. #else
  149. #define hal_com_txbf_beamform_init(dm_void) NULL
  150. #define hal_com_txbf_config_gtab(dm_void) NULL
  151. #define hal_com_txbf_enter_work_item_callback(_adapter) NULL
  152. #define hal_com_txbf_leave_work_item_callback(_adapter) NULL
  153. #define hal_com_txbf_fw_ndpa_work_item_callback(_adapter) NULL
  154. #define hal_com_txbf_clk_work_item_callback(_adapter) NULL
  155. #define hal_com_txbf_rate_work_item_callback(_adapter) NULL
  156. #define hal_com_txbf_fw_ndpa_timer_callback(_adapter) NULL
  157. #define hal_com_txbf_status_work_item_callback(_adapter) NULL
  158. #define hal_com_txbf_get(_adapter, _get_type, _pout_buf)
  159. #endif
  160. #endif /* @#ifndef __HAL_COM_TXBF_H__ */