Path: blob/master/ALFA-W1F1/RTL8814AU/hal/phydm/halrf/rtl8814a/halrf_8814a_ap.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 IQK_DELAY_TIME_8814A 10 /* ms */20#define index_mapping_NUM_8814A 1521#define AVG_THERMAL_NUM_8814A 422#define RF_T_METER_8814A 0x4223#define MAX_PATH_NUM_8814A 42425#include "../halphyrf_ap.h"262728void configure_txpower_track_8814a(29struct txpwrtrack_cfg *config30);3132void33get_delta_swing_table_8814a(34struct dm_struct *dm,35u8 **temperature_up_a,36u8 **temperature_down_a,37u8 **temperature_up_b,38u8 **temperature_down_b39);4041void42get_delta_swing_table_8814a_path_cd(43struct dm_struct *dm,44u8 **temperature_up_c,45u8 **temperature_down_c,46u8 **temperature_up_d,47u8 **temperature_down_d48);4950void51configure_txpower_track_8814a(52struct txpwrtrack_cfg *config53);545556void57odm_tx_pwr_track_set_pwr8814a(58struct dm_struct *dm,59enum pwrtrack_method method,60u8 rf_path,61u8 channel_mapped_index62);636465u866check_rf_gain_offset(67struct dm_struct *dm,68enum pwrtrack_method method,69u8 rf_path70);717273/*74* LC calibrate75* */76void77phy_lc_calibrate_8814a(78void *dm_void79);8081void82_phy_lc_calibrate_8814a(83struct dm_struct *dm,84boolean is2T85);868788/*89* AP calibrate90* */91void92phy_ap_calibrate_8814a(93struct dm_struct *dm,94s8 delta);959697#if 0 /* FOR_8814_IQK */98void99_phy_save_adda_registers(100#if (DM_ODM_SUPPORT_TYPE & ODM_AP)101struct dm_struct *dm,102#else103void *adapter,104#endif105u32 *adda_reg,106u32 *adda_backup,107u32 register_num108);109110void111_phy_path_adda_on(112#if (DM_ODM_SUPPORT_TYPE & ODM_AP)113struct dm_struct *dm,114#else115void *adapter,116#endif117u32 *adda_reg,118boolean is_path_a_on,119boolean is2T120);121122void123_phy_mac_setting_calibration(124#if (DM_ODM_SUPPORT_TYPE & ODM_AP)125struct dm_struct *dm,126#else127void *adapter,128#endif129u32 *mac_reg,130u32 *mac_backup131);132133134135void136_phy_path_a_stand_by(137#if (DM_ODM_SUPPORT_TYPE & ODM_AP)138struct dm_struct *dm139#else140void *adapter141#endif142);143144#endif145146147#endif /*#ifndef __HALRF_8814A_H__*/148149150