1 /******************************************************************************
3 * Copyright(c) 2007 - 2016 Realtek Corporation.
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.
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
14 * The full GNU General Public License is included in this distribution in the
15 * file called LICENSE.
17 * Contact Information:
18 * wlanfae <wlanfae@realtek.com>
19 * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
20 * Hsinchu 300, Taiwan.
22 * Larry Finger <Larry.Finger@lwfinger.net>
24 *****************************************************************************/
26 #ifndef __HAL_PHY_RF_8822B_H__
27 #define __HAL_PHY_RF_8822B_H__
29 #define AVG_THERMAL_NUM_8822B 4
30 #define RF_T_METER_8822B 0x42
32 void configure_txpower_track_8822b(struct txpwrtrack_cfg *config);
34 void odm_tx_pwr_track_set_pwr8822b(void *dm_void, enum pwrtrack_method method,
35 u8 rf_path, u8 channel_mapped_index);
37 void get_delta_swing_table_8822b(void *dm_void, u8 **temperature_up_a,
38 u8 **temperature_down_a, u8 **temperature_up_b,
39 u8 **temperature_down_b);
41 void phy_lc_calibrate_8822b(void *dm_void);
43 void phy_set_rf_path_switch_8822b(struct phy_dm_struct *dm, bool is_main);
45 #endif /* #ifndef __HAL_PHY_RF_8822B_H__ */