phydm_hal_txbf_api.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /********************************************************************************/
  2. /**/
  3. /*Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.*/
  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. /*You should have received a copy of the GNU General Public License along with*/
  14. /*this program; if not, write to the Free Software Foundation, Inc.,*/
  15. /*51 Franklin Street, Fifth Floor, Boston, MA 02110, USA*/
  16. /**/
  17. /**/
  18. /********************************************************************************/
  19. #ifndef __PHYDM_HAL_TXBF_API_H__
  20. #define __PHYDM_HAL_TXBF_API_H__
  21. #if (defined(CONFIG_BB_TXBF_API))
  22. #if (DM_ODM_SUPPORT_TYPE != ODM_AP)
  23. #define tx_bf_nr(a, b) ((a > b) ? (b) : (a))
  24. u8
  25. beamforming_get_htndp_tx_rate(
  26. void *p_dm_void,
  27. u8 comp_steering_num_of_bfer
  28. );
  29. u8
  30. beamforming_get_vht_ndp_tx_rate(
  31. void *p_dm_void,
  32. u8 comp_steering_num_of_bfer
  33. );
  34. #endif
  35. #if (RTL8822B_SUPPORT == 1)
  36. u8
  37. phydm_get_beamforming_sounding_info(
  38. void *p_dm_void,
  39. u16 *troughput,
  40. u8 total_bfee_num,
  41. u8 *tx_rate
  42. );
  43. u8
  44. phydm_get_ndpa_rate(
  45. void *p_dm_void
  46. );
  47. u8
  48. phydm_get_mu_bfee_snding_decision(
  49. void *p_dm_void,
  50. u16 throughput
  51. );
  52. #else
  53. #define phydm_get_beamforming_sounding_info(p_dm_void, troughput, total_bfee_num, tx_rate)
  54. #define phydm_get_ndpa_rate(p_dm_void)
  55. #define phydm_get_mu_bfee_snding_decision(p_dm_void, troughput)
  56. #endif
  57. #endif
  58. #endif