/* SPDX-License-Identifier: GPL-2.0 *//****************************************************************************** * * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. * ******************************************************************************/#ifndef __HALDMOUTSRC_H__#define __HALDMOUTSRC_H__#include"odm_EdcaTurboCheck.h"#include"odm_DIG.h"#include"odm_PathDiv.h"#include"odm_DynamicBBPowerSaving.h"#include"odm_DynamicTxPower.h"#include"odm_CfoTracking.h"#include"odm_NoiseMonitor.h"#define TP_MODE 0#define RSSI_MODE 1#define TRAFFIC_LOW 0#define TRAFFIC_HIGH 1#define NONE 0/* 3 Tx Power Tracking *//* 3 ============================================================ */#define DPK_DELTA_MAPPING_NUM 13#define index_mapping_HP_NUM 15#define OFDM_TABLE_SIZE 43#define CCK_TABLE_SIZE 33#define TXSCALE_TABLE_SIZE 37#define TXPWR_TRACK_TABLE_SIZE 30#define DELTA_SWINGIDX_SIZE 30#define BAND_NUM 4/* 3 PSD Handler *//* 3 ============================================================ */#define AFH_PSD 1 /* 0:normal PSD scan, 1: only do 20 pts PSD */#define MODE_40M 0 /* 0:20M, 1:40M */#define PSD_TH2 3#define PSD_CHMIN 20 /* Minimum channel number for BT AFH */#define SIR_STEP_SIZE 3#define Smooth_Size_1 5#define Smooth_TH_1 3#define Smooth_Size_2 10#define Smooth_TH_2 4#define Smooth_Size_3 20#define Smooth_TH_3 4#define Smooth_Step_Size 5#define Adaptive_SIR 1#define PSD_RESCAN 4#define PSD_SCAN_INTERVAL 700 /* ms *//* 8723A High Power IGI Setting */#define DM_DIG_HIGH_PWR_IGI_LOWER_BOUND 0x22#define DM_DIG_Gmode_HIGH_PWR_IGI_LOWER_BOUND 0x28#define DM_DIG_HIGH_PWR_THRESHOLD 0x3a#define DM_DIG_LOW_PWR_THRESHOLD 0x14/* ANT Test */#define ANTTESTALL 0x00 /* Ant A or B will be Testing */#define ANTTESTA 0x01 /* Ant A will be Testing */#define ANTTESTB 0x02 /* Ant B will be testing */#define PS_MODE_ACTIVE 0x01/* for 8723A Ant Definition--2012--06--07 due to different IC may be different ANT define */#define MAIN_ANT 1 /* Ant A or Ant Main */#define AUX_ANT 2 /* AntB or Ant Aux */#define MAX_ANT 3 /* 3 for AP using *//* Antenna Diversity Type */#define SW_ANTDIV 0#define HW_ANTDIV 1/* structure and define *//* Remove DIG by Yuchen *//* Remoce BB power saving by Yuchn *//* Remove DIG by yuchen */structdynamic_primary_CCA{u8PriCCA_flag;u8intf_flag;u8intf_type;u8DupRTS_flag;u8Monitor_flag;u8CH_offset;u8MF_state;};typedefstruct_Rate_Adaptive_Table_{u8firstconnect;}RA_T,*pRA_T;typedefstruct_RX_High_Power_{u8RXHP_flag;u8PSD_func_trigger