halrf_8821c.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. *****************************************************************************/
  15. #ifndef __HALRF_8821C_H__
  16. #define __HALRF_8821C_H__
  17. #define AVG_THERMAL_NUM_8821C 4
  18. #define RF_T_METER_8821C 0x42
  19. void configure_txpower_track_8821c(struct txpwrtrack_cfg *config);
  20. void odm_tx_pwr_track_set_pwr8821c(void *dm_void, enum pwrtrack_method method,
  21. u8 rf_path, u8 channel_mapped_index);
  22. void get_delta_swing_table_8821c(void *dm_void,
  23. #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
  24. u8 **temperature_up_a, u8 **temperature_down_a,
  25. u8 **temperature_up_b, u8 **temperature_down_b,
  26. u8 **temperature_up_cck_a,
  27. u8 **temperature_down_cck_a,
  28. u8 **temperature_up_cck_b,
  29. u8 **temperature_down_cck_b
  30. #else
  31. u8 **temperature_up_a, u8 **temperature_down_a,
  32. u8 **temperature_up_b,
  33. u8 **temperature_down_b
  34. #endif
  35. );
  36. void phy_lc_calibrate_8821c(void *dm_void);
  37. void halrf_rf_lna_setting_8821c(struct dm_struct *dm, enum halrf_lna_set type);
  38. #if ((DM_ODM_SUPPORT_TYPE & ODM_AP) || (DM_ODM_SUPPORT_TYPE == ODM_CE))
  39. void phy_set_rf_path_switch_8821c(struct dm_struct *dm,
  40. #else
  41. void phy_set_rf_path_switch_8821c(void *adapter,
  42. #endif
  43. boolean is_main);
  44. #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
  45. boolean phy_query_rf_path_switch_8821c(struct dm_struct *dm
  46. #else
  47. boolean phy_query_rf_path_switch_8821c(void *adapter
  48. #endif
  49. );
  50. #endif /*#ifndef __HALRF_8821C_H__*/