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_8188F_H__ 17 #define __HALRF_8188F_H__ 18 19 /*--------------------------Define Parameters-------------------------------*/ 20 #define IQK_DELAY_TIME_8188F 25 /* ms */ 21 #define IQK_DEFERRED_TIME_8188F 4 22 #define index_mapping_NUM_8188F 15 23 #define AVG_THERMAL_NUM_8188F 4 24 #define RF_T_METER_8188F 0x42 25 26 void configure_txpower_track_8188f(struct txpwrtrack_cfg *config); 27 28 void do_iqk_8188f(void *dm_void, u8 delta_thermal_index, u8 thermal_value, 29 u8 threshold); 30 31 void odm_tx_pwr_track_set_pwr_8188f(void *dm_void, enum pwrtrack_method method, 32 u8 rf_path, u8 channel_mapped_index); 33 34 /* 1 7. IQK */ 35 36 void phy_iq_calibrate_8188f(void *dm_void, boolean is_recovery); 37 38 /* 39 * LC calibrate 40 */ 41 void phy_lc_calibrate_8188f(void *dm_void); 42 43 void _phy_save_adda_registers_8188f( 44 struct dm_struct *dm, 45 u32 *adda_reg, 46 u32 *adda_backup, 47 u32 register_num); 48 49 void _phy_path_adda_on_8188f( 50 struct dm_struct *dm, 51 u32 *adda_reg, 52 boolean is_path_a_on, 53 boolean is2T); 54 55 void _phy_mac_setting_calibration_8188f( 56 struct dm_struct *dm, 57 u32 *mac_reg, 58 u32 *mac_backup); 59 60 void _phy_path_a_stand_by_8188f( 61 struct dm_struct *dm); 62 63 void phy_set_rf_path_switch_8188f( 64 #if ((DM_ODM_SUPPORT_TYPE & ODM_AP) || (DM_ODM_SUPPORT_TYPE == ODM_CE)) 65 struct dm_struct *dm, 66 #else 67 void *adapter, 68 #endif 69 boolean is_main); 70 71 void phy_active_large_power_detection_8188f(struct dm_struct *dm); 72 73 #endif /*#ifndef __HALRF_8188F_H__*/ 74