halrf_iqk_8821c.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2016 - 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. *****************************************************************************/
  15. #ifndef __HALRF_IQK_8821C_H__
  16. #define __HALRF_IQK_8821C_H__
  17. #if (RTL8821C_SUPPORT == 1)
  18. /*============================================================*/
  19. /*Definition */
  20. /*============================================================*/
  21. /*--------------------------Define Parameters-------------------------------*/
  22. #define MAC_REG_NUM_8821C 3
  23. #define BB_REG_NUM_8821C 10
  24. #define RF_REG_NUM_8821C 5
  25. #define DPK_BB_REG_NUM_8821C 23
  26. #define DPK_BACKUP_REG_NUM_8821C 3
  27. #define LOK_delay_8821C 2
  28. #define GS_delay_8821C 2
  29. #define WBIQK_delay_8821C 2
  30. #define TXIQK 0
  31. #define RXIQK 1
  32. #define SS_8821C 1
  33. /*---------------------------End Define Parameters-------------------------------*/
  34. #if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
  35. void do_iqk_8821c(void *dm_void, u8 delta_thermal_index, u8 thermal_value,
  36. u8 threshold);
  37. #else
  38. void do_iqk_8821c(void *dm_void, u8 delta_thermal_index, u8 thermal_value,
  39. u8 threshold);
  40. #endif
  41. void phy_iq_calibrate_8821c(void *dm_void, boolean clear, boolean segment_iqk);
  42. void phy_dp_calibrate_8821c(void *dm_void, boolean clear);
  43. void do_imr_test_8821c(void *dm_void);
  44. #else /* (RTL8821C_SUPPORT == 0)*/
  45. #define phy_iq_calibrate_8821c(_pdm_void, clear, segment_iqk)
  46. #define phy_dp_calibrate_8821c(_pDM_VOID, clear)
  47. #endif /* RTL8821C_SUPPORT */
  48. #endif /*#ifndef __HALRF_IQK_8821C_H__*/