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