haltxbf8822b.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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_TXBF_8822B_H__
  26. #define __HAL_TXBF_8822B_H__
  27. #if (RTL8822B_SUPPORT == 1)
  28. #if (BEAMFORMING_SUPPORT == 1)
  29. void hal_txbf_8822b_enter(
  30. void *dm_void,
  31. u8 idx);
  32. void hal_txbf_8822b_leave(
  33. void *dm_void,
  34. u8 idx);
  35. void hal_txbf_8822b_status(
  36. void *dm_void,
  37. u8 beamform_idx);
  38. void hal_txbf_8822b_config_gtab(
  39. void *dm_void);
  40. void hal_txbf_8822b_fw_txbf(
  41. void *dm_void,
  42. u8 idx);
  43. #else
  44. #define hal_txbf_8822b_enter(dm_void, idx)
  45. #define hal_txbf_8822b_leave(dm_void, idx)
  46. #define hal_txbf_8822b_status(dm_void, idx)
  47. #define hal_txbf_8822b_fw_txbf(dm_void, idx)
  48. #define hal_txbf_8822b_config_gtab(dm_void)
  49. #endif
  50. #if (defined(CONFIG_BB_TXBF_API))
  51. void phydm_8822btxbf_rfmode(void *dm_void, u8 su_bfee_cnt, u8 mu_bfee_cnt);
  52. void phydm_8822b_sutxbfer_workaroud(void *dm_void, boolean enable_su_bfer,
  53. u8 nc, u8 nr, u8 ng, u8 CB, u8 BW,
  54. boolean is_vht);
  55. #else
  56. #define phydm_8822btxbf_rfmode(dm_void, su_bfee_cnt, mu_bfee_cnt)
  57. #define phydm_8822b_sutxbfer_workaroud(dm_void, enable_su_bfer, nc, nr, ng, CB, BW, is_vht)
  58. #endif
  59. #else
  60. #define hal_txbf_8822b_enter(dm_void, idx)
  61. #define hal_txbf_8822b_leave(dm_void, idx)
  62. #define hal_txbf_8822b_status(dm_void, idx)
  63. #define hal_txbf_8822b_fw_txbf(dm_void, idx)
  64. #define hal_txbf_8822b_config_gtab(dm_void)
  65. #endif
  66. #endif