1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2 /* Copyright(c) 2007 - 2011 Realtek Corporation. i*/
3 
4 #ifndef	__ODM_PRECOMP_H__
5 #define __ODM_PRECOMP_H__
6 
7 #include "odm_types.h"
8 
9 #define		TEST_FALG___		1
10 
11 /* 2 Config Flags and Structs - defined by each ODM Type */
12 
13 #include "osdep_service.h"
14 #include "drv_types.h"
15 #include "hal_intf.h"
16 
17 /* 2 OutSrc Header Files */
18 
19 #include "odm.h"
20 #include "odm_HWConfig.h"
21 #include "odm_RegDefine11AC.h"
22 #include "odm_RegDefine11N.h"
23 
24 #include "HalPhyRf_8188e.h"/* for IQK,LCK,Power-tracking */
25 #include "Hal8188ERateAdaptive.h"/* for  RA,Power training */
26 #include "rtl8188e_hal.h"
27 
28 #include "odm_interface.h"
29 #include "odm_reg.h"
30 
31 #include "HalHWImg8188E_MAC.h"
32 #include "HalHWImg8188E_RF.h"
33 #include "HalHWImg8188E_BB.h"
34 
35 #include "odm_RegConfig8188E.h"
36 #include "odm_RTL8188E.h"
37 
38 void odm_DIGInit(struct odm_dm_struct *pDM_Odm);
39 void odm_RateAdaptiveMaskInit(struct odm_dm_struct *pDM_Odm);
40 void odm_DynamicBBPowerSavingInit(struct odm_dm_struct *pDM_Odm);
41 void odm_DynamicTxPowerInit(struct odm_dm_struct *pDM_Odm);
42 void odm_TXPowerTrackingInit(struct odm_dm_struct *pDM_Odm);
43 void ODM_EdcaTurboInit(struct odm_dm_struct *pDM_Odm);
44 void odm_SwAntDivInit_NIC(struct odm_dm_struct *pDM_Odm);
45 void odm_GlobalAdapterCheck(void);
46 void odm_CommonInfoSelfUpdate(struct odm_dm_struct *pDM_Odm);
47 void odm_FalseAlarmCounterStatistics(struct odm_dm_struct *pDM_Odm);
48 void odm_DIG(struct odm_dm_struct *pDM_Odm);
49 void odm_CCKPacketDetectionThresh(struct odm_dm_struct *pDM_Odm);
50 void odm_RefreshRateAdaptiveMaskMP(struct odm_dm_struct *pDM_Odm);
51 void odm_DynamicBBPowerSaving(struct odm_dm_struct *pDM_Odm);
52 void odm_SwAntDivChkAntSwitch(struct odm_dm_struct *pDM_Odm, u8 Step);
53 void odm_EdcaTurboCheck(struct odm_dm_struct *pDM_Odm);
54 void odm_DynamicTxPower(struct odm_dm_struct *pDM_Odm);
55 void odm_CommonInfoSelfInit(struct odm_dm_struct *pDM_Odm);
56 void odm_SwAntDivInit(struct odm_dm_struct *pDM_Odm);
57 void odm_RSSIMonitorCheck(struct odm_dm_struct *pDM_Odm);
58 void odm_RefreshRateAdaptiveMask(struct odm_dm_struct *pDM_Odm);
59 void odm_1R_CCA(struct odm_dm_struct *pDM_Odm);
60 void odm_RefreshRateAdaptiveMaskCE(struct odm_dm_struct *pDM_Odm);
61 void odm_RefreshRateAdaptiveMaskAPADSL(struct odm_dm_struct *pDM_Odm);
62 void odm_DynamicTxPowerNIC(struct odm_dm_struct *pDM_Odm);
63 void odm_DynamicTxPowerAP(struct odm_dm_struct *pDM_Odm);
64 void odm_RSSIMonitorCheckMP(struct odm_dm_struct *pDM_Odm);
65 void odm_RSSIMonitorCheckCE(struct odm_dm_struct *pDM_Odm);
66 void odm_RSSIMonitorCheckAP(struct odm_dm_struct *pDM_Odm);
67 void odm_TXPowerTrackingThermalMeterInit(struct odm_dm_struct *pDM_Odm);
68 void odm_EdcaTurboCheckCE(struct odm_dm_struct *pDM_Odm);
69 void odm_TXPowerTrackingCheckCE(struct odm_dm_struct *pDM_Odm);
70 void odm_TXPowerTrackingCheckMP(struct odm_dm_struct *pDM_Odm);
71 void odm_TXPowerTrackingCheckAP(struct odm_dm_struct *pDM_Odm);
72 void odm_SwAntDivChkAntSwitchCallback(struct timer_list *t);
73 void odm_InitHybridAntDiv(struct odm_dm_struct *pDM_Odm);
74 void odm_HwAntDiv(struct odm_dm_struct *pDM_Odm);
75 
76 #endif	/*  __ODM_PRECOMP_H__ */
77