Path: blob/master/ALFA-W1F1/RTL8814AU/hal/phydm/halrf/halrf_dpk.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* The full GNU General Public License is included in this distribution in the14* file called LICENSE.15*16* Contact Information:17* wlanfae <[email protected]>18* Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,19* Hsinchu 300, Taiwan.20*21* Larry Finger <[email protected]>22*23*****************************************************************************/2425#ifndef __HALRF_DPK_H__26#define __HALRF_DPK_H__2728/*@--------------------------Define Parameters-------------------------------*/29#define GAIN_LOSS 130#define DO_DPK 231#define DPK_ON 332#define GAIN_LOSS_PULSE 433#define DPK_PAS 534#define DPK_LMS 635#define DPK_LOK 436#define DPK_TXK 537#define DAGC 438#define LOSS_CHK 039#define GAIN_CHK 140#define PAS_READ 241#define AVG_THERMAL_NUM 842#define AVG_THERMAL_NUM_DPK 843#define THERMAL_DPK_AVG_NUM 44445/*@---------------------------End Define Parameters---------------------------*/4647struct dm_dpk_info {4849boolean is_dpk_enable;50boolean is_dpk_pwr_on;51boolean is_dpk_by_channel;52boolean is_tssi_mode;53boolean is_reload;54u16 dpk_path_ok;55/*@BIT(15)~BIT(12) : 5G reserved, BIT(11)~BIT(8) 5G_S3~5G_S0*/56/*@BIT(7)~BIT(4) : 2G reserved, BIT(3)~BIT(0) 2G_S3~2G_S0*/57u8 thermal_dpk[4]; /*path*/58u8 thermal_dpk_avg[4][AVG_THERMAL_NUM_DPK]; /*path*/59u8 pre_pwsf[4];60u8 thermal_dpk_avg_index;61u32 gnt_control;62u32 gnt_value;63u8 dpk_ch;64u8 dpk_band;65u8 dpk_bw;6667#if (RTL8822C_SUPPORT == 1 || RTL8812F_SUPPORT == 1)68u8 result[2]; /*path*/69u8 dpk_txagc[2]; /*path*/70u32 coef[2][20]; /*path/MDPD coefficient*/71u16 dpk_gs[2]; /*MDPD coef gs*/72u8 thermal_dpk_delta[2]; /*path*/73#endif7475#if (RTL8198F_SUPPORT == 1 || RTL8192F_SUPPORT == 1 || RTL8197F_SUPPORT == 1 ||\76RTL8814B_SUPPORT == 1 || RTL8197G_SUPPORT == 1)77/*2G DPK data*/78u8 dpk_result[4][3]; /*path/group*/79u8 pwsf_2g[4][3]; /*path/group*/80u32 lut_2g_even[4][3][64]; /*path/group/LUT data*/81u32 lut_2g_odd[4][3][64]; /*path/group/LUT data*/82s16 tmp_pas_i[32]; /*PAScan I data*/83s16 tmp_pas_q[32]; /*PAScan Q data*/84/*5G DPK data*/85u8 dpk_5g_result[4][6]; /*path/group*/86u8 pwsf_5g[4][6]; /*path/group*/87u32 lut_5g[4][6][64]; /*path/group/LUT data*/88u32 lut_2g[4][3][64]; /*path/group/LUT data*/89/*8814B*/90u8 rxbb[4]; /*path/group*/91u8 txbb[4]; /*path/group*/92u8 tx_gain;93#endif9495#if (RTL8195B_SUPPORT == 1)96/*2G DPK data*/97u8 dpk_2g_result[1][3]; /*path/group*/98u8 pwsf_2g[1][3]; /*path/group*/99u32 lut_2g_even[1][3][16]; /*path/group/LUT data*/100u32 lut_2g_odd[1][3][16]; /*path/group/LUT data*/101/*5G DPK data*/102u8 dpk_5g_result[1][13]; /*path/group*/103u8 pwsf_5g[1][13]; /*path/group*/104u32 lut_5g_even[1][13][16]; /*path/group/LUT data*/105u32 lut_5g_odd[1][13][16]; /*path/group/LUT data*/106#endif107108#if (RTL8721D_SUPPORT == 1)109u8 dpk_txagc;110/*2G DPK data*/111u8 dpk_2g_result[1][3]; /*path/group*/112u8 pwsf_2g[1][3]; /*path/group*/113u32 lut_2g_even[1][3][16]; /*path/group/LUT data*/114u32 lut_2g_odd[1][3][16]; /*path/group/LUT data*/115/*5G DPK data*/116u8 dpk_5g_result[1][6]; /*path/group*/117u8 pwsf_5g[1][6]; /*path/group*/118u32 lut_5g_even[1][6][16]; /*path/group/LUT data*/119u32 lut_5g_odd[1][6][16]; /*path/group/LUT data*/120#endif121122};123124#endif /*__HALRF_DPK_H__*/125126127