2 /******************************************************************************
4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of version 2 of the GNU General Public License as
8 * published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 * You should have received a copy of the GNU General Public License along with
16 * this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
20 ******************************************************************************/
22 #ifndef __PHYDMKFREE_H__
23 #define __PHYDMKFREE_H__
25 #define KFREE_VERSION "1.0"
27 #if (DM_ODM_SUPPORT_TYPE & ODM_WIN)
30 #define KFREE_FLAG_ON BIT(0)
31 #define KFREE_FLAG_THERMAL_K_ON BIT(1)
35 #define PPG_BB_GAIN_2G_TXA_OFFSET_8821C 0x1EE
36 #define PPG_BB_GAIN_5GL1_TXA_OFFSET_8821C 0x1EC
37 #define PPG_BB_GAIN_5GL2_TXA_OFFSET_8821C 0x1E8
38 #define PPG_BB_GAIN_5GM1_TXA_OFFSET_8821C 0x1E4
39 #define PPG_BB_GAIN_5GM2_TXA_OFFSET_8821C 0x1E0
40 #define PPG_BB_GAIN_5GH1_TXA_OFFSET_8821C 0x1DC
42 #define PPG_THERMAL_OFFSET_8821C 0x1EF
46 struct odm_power_trim_data {
48 s8 bb_gain[BB_GAIN_NUM][MAX_RF_PATH];
54 enum phydm_kfree_channeltosw {
66 phydm_get_thermal_trim_offset(
71 phydm_get_power_trim_offset(
76 phydm_get_thermal_offset(