Path: blob/master/ALFA-W1F1/RTL8814AU/hal/phydm/halrf/rtl8814a/halrf_8814a_ce.h
1308 views
/******************************************************************************1*2* Copyright(c) 2007 - 2017 Realtek Corporation.3*4* This program is free software; you can redistribute it and/or modify it5* under the terms of version 2 of the GNU General Public License as6* published by the Free Software Foundation.7*8* This program is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for11* more details.12*13*****************************************************************************/1415#ifndef __HALRF_8814A_H__16#define __HALRF_8814A_H__1718/*--------------------------Define Parameters-------------------------------*/19#define AVG_THERMAL_NUM_8814A 420#define RF_T_METER_8814A 0x422122#include "../halphyrf_ce.h"2324void configure_txpower_track_8814a(struct txpwrtrack_cfg *config);2526void get_delta_swing_table_8814a(void *dm_void, u8 **temperature_up_a,27u8 **temperature_down_a, u8 **temperature_up_b,28u8 **temperature_down_b);2930void get_delta_swing_table_8814a_path_cd(void *dm_void, u8 **temperature_up_c,31u8 **temperature_down_c,32u8 **temperature_up_d,33u8 **temperature_down_d);3435void odm_tx_pwr_track_set_pwr8814a(void *dm_void, enum pwrtrack_method method,36u8 rf_path, u8 channel_mapped_index);3738#if 039u840check_rf_gain_offset(41struct dm_struct *dm,42enum pwrtrack_method method,43u8 rf_path44);45#endif4647u8 get_tssivalue(struct dm_struct *dm, enum pwrtrack_method method, u8 rf_path);4849boolean50get_tssi_mode_tx_agc_bb_swing_offset(struct dm_struct *dm,51enum pwrtrack_method method, u8 rf_path,52u32 offset_vaule,53u8 tx_power_index_offest);5455boolean56get_mix_mode_tx_agc_bb_swing_offset(struct dm_struct *dm,57enum pwrtrack_method method, u8 rf_path,58u8 tx_power_index_offest);5960void power_tracking_by_mix_mode(struct dm_struct *dm,61enum pwrtrack_method method, u8 rf_path);6263void power_tracking_by_tssi_mode(struct dm_struct *dm,64enum pwrtrack_method method, u8 rf_path);6566/*67* LC calibrate68*69*/70void phy_lc_calibrate_8814a(void *dm_void);7172void phy_set_rf_path_switch_8814a(73#if ((DM_ODM_SUPPORT_TYPE & ODM_AP) || (DM_ODM_SUPPORT_TYPE == ODM_CE))74struct dm_struct *dm,75#else76void *adapter,77#endif78boolean is_main);7980#endif /*#ifndef __HALRF_8814A_H__*/818283