linux/drivers/staging/rtl8723bs/hal/odm_DIG.h

/* SPDX-License-Identifier: GPL-2.0 */
/******************************************************************************
 *
 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
 *
 ******************************************************************************/

#ifndef __ODMDIG_H__
#define __ODMDIG_H__

struct dig_t {};

struct  false_ALARM_STATISTICS {};

enum ODM_Pause_DIG_TYPE {};

#define DM_DIG_THRESH_HIGH
#define DM_DIG_THRESH_LOW

#define DMfalseALARM_THRESH_LOW
#define DMfalseALARM_THRESH_HIGH

#define DM_DIG_MAX_NIC
#define DM_DIG_MIN_NIC
#define DM_DIG_MAX_OF_MIN_NIC

#define DM_DIG_MAX_AP
#define DM_DIG_MIN_AP
#define DM_DIG_MAX_OF_MIN
#define DM_DIG_MIN_AP_DFS

#define DM_DIG_MAX_NIC_HP
#define DM_DIG_MIN_NIC_HP

#define DM_DIG_MAX_AP_HP
#define DM_DIG_MIN_AP_HP

#define DM_DIG_FA_TH0

#define DM_DIG_FA_TH1
#define DM_DIG_FA_TH2
/* this is for 92d */
#define DM_DIG_FA_TH0_92D
#define DM_DIG_FA_TH1_92D
#define DM_DIG_FA_TH2_92D

#define DM_DIG_BACKOFF_MAX
#define DM_DIG_BACKOFF_MIN
#define DM_DIG_BACKOFF_DEFAULT

#define DM_DIG_FA_TH0_LPS
#define DM_DIG_FA_TH1_LPS
#define DM_DIG_FA_TH2_LPS
#define RSSI_OFFSET_DIG

void odm_NHMCounterStatisticsInit(void *pDM_VOID);

void odm_NHMCounterStatistics(void *pDM_VOID);

void odm_NHMBBInit(void *pDM_VOID);

void odm_NHMBB(void *pDM_VOID);

void odm_NHMCounterStatisticsReset(void *pDM_VOID);

void odm_GetNHMCounterStatistics(void *pDM_VOID);

void odm_SearchPwdBLowerBound(void *pDM_VOID, u8 IGI_target);

void odm_AdaptivityInit(void *pDM_VOID);

void odm_Adaptivity(void *pDM_VOID, u8 IGI);

void ODM_Write_DIG(void *pDM_VOID, u8 CurrentIGI);

void odm_DIGInit(void *pDM_VOID);

void odm_DIG(void *pDM_VOID);

void odm_DIGbyRSSI_LPS(void *pDM_VOID);

void odm_FalseAlarmCounterStatistics(void *pDM_VOID);

void odm_FAThresholdCheck(
	void *pDM_VOID,
	bool bDFSBand,
	bool bPerformance,
	u32 RxTp,
	u32 TxTp,
	u32 *dm_FA_thres
);

u8 odm_ForbiddenIGICheck(void *pDM_VOID, u8 DIG_Dynamic_MIN, u8 CurrentIGI);

bool odm_DigAbort(void *pDM_VOID);

void odm_CCKPacketDetectionThresh(void *pDM_VOID);

void ODM_Write_CCK_CCA_Thres(void *pDM_VOID, u8 CurCCK_CCAThres);

#endif