halphyrf_8821c.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. *
  14. * You should have received a copy of the GNU General Public License along with
  15. * this program; if not, write to the Free Software Foundation, Inc.,
  16. * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
  17. *
  18. *
  19. ******************************************************************************/
  20. #ifndef __HAL_PHY_RF_8821C_H__
  21. #define __HAL_PHY_RF_8821C_H__
  22. #define AVG_THERMAL_NUM_8821C 4
  23. #define RF_T_METER_8821C 0x42
  24. void configure_txpower_track_8821c(
  25. struct _TXPWRTRACK_CFG *p_config
  26. );
  27. void
  28. odm_tx_pwr_track_set_pwr8821c(
  29. void *p_dm_void,
  30. enum pwrtrack_method method,
  31. u8 rf_path,
  32. u8 channel_mapped_index
  33. );
  34. void
  35. get_delta_swing_table_8821c(
  36. void *p_dm_void,
  37. #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
  38. u8 **temperature_up_a,
  39. u8 **temperature_down_a,
  40. u8 **temperature_up_b,
  41. u8 **temperature_down_b,
  42. u8 **temperature_up_cck_a,
  43. u8 **temperature_down_cck_a,
  44. u8 **temperature_up_cck_b,
  45. u8 **temperature_down_cck_b
  46. #else
  47. u8 **temperature_up_a,
  48. u8 **temperature_down_a,
  49. u8 **temperature_up_b,
  50. u8 **temperature_down_b
  51. #endif
  52. );
  53. void
  54. phy_lc_calibrate_8821c(
  55. void *p_dm_void
  56. );
  57. void phy_set_rf_path_switch_8821c(
  58. #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
  59. struct PHY_DM_STRUCT *p_dm_odm,
  60. #else
  61. struct _ADAPTER *p_adapter,
  62. #endif
  63. boolean is_main
  64. );
  65. boolean phy_query_rf_path_switch_8821c(
  66. #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
  67. struct PHY_DM_STRUCT *p_dm_odm,
  68. #else
  69. struct _ADAPTER *p_adapter
  70. #endif
  71. );
  72. #endif /* #ifndef __HAL_PHY_RF_8821C_H__ */