linux/drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c

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

#include "Mp_Precomp.h"

/* defines */
#define HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(val)

/*  Global variables, these are static variables */
static struct coex_dm_8723b_2ant GLCoexDm8723b2Ant;
static struct coex_dm_8723b_2ant *pCoexDm =;
static struct coex_sta_8723b_2ant GLCoexSta8723b2Ant;
static struct coex_sta_8723b_2ant *pCoexSta =;

/*  local function start with halbtc8723b2ant_ */
static u8 halbtc8723b2ant_BtRssiState(
	u8 levelNum, u8 rssiThresh, u8 rssiThresh1
)
{}

static u8 halbtc8723b2ant_WifiRssiState(
	struct btc_coexist *pBtCoexist,
	u8 index,
	u8 levelNum,
	u8 rssiThresh,
	u8 rssiThresh1
)
{}

static void halbtc8723b2ant_LimitedRx(
	struct btc_coexist *pBtCoexist,
	bool bForceExec,
	bool bRejApAggPkt,
	bool bBtCtrlAggBufSize,
	u8 aggBufSize
)
{}

static void halbtc8723b2ant_QueryBtInfo(struct btc_coexist *pBtCoexist)
{}

static bool halbtc8723b2ant_IsWifiStatusChanged(struct btc_coexist *pBtCoexist)
{}

static void halbtc8723b2ant_UpdateBtLinkInfo(struct btc_coexist *pBtCoexist)
{}

static u8 halbtc8723b2ant_ActionAlgorithm(struct btc_coexist *pBtCoexist)
{}

static void halbtc8723b2ant_SetFwDacSwingLevel(
	struct btc_coexist *pBtCoexist, u8 dacSwingLvl
)
{}

static void halbtc8723b2ant_SetFwDecBtPwr(
	struct btc_coexist *pBtCoexist, u8 decBtPwrLvl
)
{}

static void halbtc8723b2ant_DecBtPwr(
	struct btc_coexist *pBtCoexist, bool bForceExec, u8 decBtPwrLvl
)
{}

static void halbtc8723b2ant_FwDacSwingLvl(
	struct btc_coexist *pBtCoexist, bool bForceExec, u8 fwDacSwingLvl
)
{}

static void halbtc8723b2ant_SetSwRfRxLpfCorner(
	struct btc_coexist *pBtCoexist,
	bool bRxRfShrinkOn
)
{}

static void halbtc8723b2ant_RfShrink(
	struct btc_coexist *pBtCoexist, bool bForceExec, bool bRxRfShrinkOn
)
{}

static void halbtc8723b2ant_SetSwPenaltyTxRateAdaptive(
	struct btc_coexist *pBtCoexist, bool bLowPenaltyRa
)
{}

static void halbtc8723b2ant_LowPenaltyRa(
	struct btc_coexist *pBtCoexist, bool bForceExec, bool bLowPenaltyRa
)
{}

static void halbtc8723b2ant_SetDacSwingReg(struct btc_coexist *pBtCoexist, u32 level)
{}

static void halbtc8723b2ant_SetSwFullTimeDacSwing(
	struct btc_coexist *pBtCoexist, bool bSwDacSwingOn, u32 swDacSwingLvl
)
{}


static void halbtc8723b2ant_DacSwing(
	struct btc_coexist *pBtCoexist,
	bool bForceExec,
	bool bDacSwingOn,
	u32 dacSwingLvl
)
{}

static void halbtc8723b2ant_SetAgcTable(
	struct btc_coexist *pBtCoexist, bool bAgcTableEn
)
{}

static void halbtc8723b2ant_AgcTable(
	struct btc_coexist *pBtCoexist, bool bForceExec, bool bAgcTableEn
)
{}

static void halbtc8723b2ant_SetCoexTable(
	struct btc_coexist *pBtCoexist,
	u32 val0x6c0,
	u32 val0x6c4,
	u32 val0x6c8,
	u8 val0x6cc
)
{}

static void halbtc8723b2ant_CoexTable(
	struct btc_coexist *pBtCoexist,
	bool bForceExec,
	u32 val0x6c0,
	u32 val0x6c4,
	u32 val0x6c8,
	u8 val0x6cc
)
{}

static void halbtc8723b2ant_CoexTableWithType(
	struct btc_coexist *pBtCoexist, bool bForceExec, u8 type
)
{}

static void halbtc8723b2ant_SetFwIgnoreWlanAct(
	struct btc_coexist *pBtCoexist, bool bEnable
)
{}

static void halbtc8723b2ant_IgnoreWlanAct(
	struct btc_coexist *pBtCoexist, bool bForceExec, bool bEnable
)
{}

static void halbtc8723b2ant_SetFwPstdma(
	struct btc_coexist *pBtCoexist,
	u8 byte1,
	u8 byte2,
	u8 byte3,
	u8 byte4,
	u8 byte5
)
{}

static void halbtc8723b2ant_SwMechanism1(
	struct btc_coexist *pBtCoexist,
	bool bShrinkRxLPF,
	bool bLowPenaltyRA,
	bool bLimitedDIG,
	bool bBTLNAConstrain
)
{}

static void halbtc8723b2ant_SwMechanism2(
	struct btc_coexist *pBtCoexist,
	bool bAGCTableShift,
	bool bADCBackOff,
	bool bSWDACSwing,
	u32 dacSwingLvl
)
{}

static void halbtc8723b2ant_SetAntPath(
	struct btc_coexist *pBtCoexist, u8 antPosType, bool bInitHwCfg, bool bWifiOff
)
{}

static void halbtc8723b2ant_PsTdma(
	struct btc_coexist *pBtCoexist, bool bForceExec, bool bTurnOn, u8 type
)
{}

static void halbtc8723b2ant_CoexAllOff(struct btc_coexist *pBtCoexist)
{}

static void halbtc8723b2ant_InitCoexDm(struct btc_coexist *pBtCoexist)
{}

static void halbtc8723b2ant_ActionBtInquiry(struct btc_coexist *pBtCoexist)
{}

static bool halbtc8723b2ant_IsCommonAction(struct btc_coexist *pBtCoexist)
{}

static void halbtc8723b2ant_TdmaDurationAdjust(
	struct btc_coexist *pBtCoexist, bool bScoHid, bool bTxPause, u8 maxInterval
)
{}

/*  SCO only or SCO+PAN(HS) */
static void halbtc8723b2ant_ActionSco(struct btc_coexist *pBtCoexist)
{}


static void halbtc8723b2ant_ActionHid(struct btc_coexist *pBtCoexist)
{}

/* A2DP only / PAN(EDR) only/ A2DP+PAN(HS) */
static void halbtc8723b2ant_ActionA2dp(struct btc_coexist *pBtCoexist)
{}

static void halbtc8723b2ant_ActionA2dpPanHs(struct btc_coexist *pBtCoexist)
{}

static void halbtc8723b2ant_ActionPanEdr(struct btc_coexist *pBtCoexist)
{}


/* PAN(HS) only */
static void halbtc8723b2ant_ActionPanHs(struct btc_coexist *pBtCoexist)
{}

/* PAN(EDR)+A2DP */
static void halbtc8723b2ant_ActionPanEdrA2dp(struct btc_coexist *pBtCoexist)
{}

static void halbtc8723b2ant_ActionPanEdrHid(struct btc_coexist *pBtCoexist)
{}

/*  HID+A2DP+PAN(EDR) */
static void halbtc8723b2ant_ActionHidA2dpPanEdr(struct btc_coexist *pBtCoexist)
{}

static void halbtc8723b2ant_ActionHidA2dp(struct btc_coexist *pBtCoexist)
{}

static void halbtc8723b2ant_RunCoexistMechanism(struct btc_coexist *pBtCoexist)
{}

static void halbtc8723b2ant_WifiOffHwCfg(struct btc_coexist *pBtCoexist)
{}

static void halbtc8723b2ant_InitHwConfig(struct btc_coexist *pBtCoexist, bool bBackUp)
{}

/*  */
/*  work around function start with wa_halbtc8723b2ant_ */
/*  */
/*  */
/*  extern function start with EXhalbtc8723b2ant_ */
/*  */
void EXhalbtc8723b2ant_PowerOnSetting(struct btc_coexist *pBtCoexist)
{}

void EXhalbtc8723b2ant_InitHwConfig(struct btc_coexist *pBtCoexist, bool bWifiOnly)
{}

void EXhalbtc8723b2ant_InitCoexDm(struct btc_coexist *pBtCoexist)
{}

void EXhalbtc8723b2ant_IpsNotify(struct btc_coexist *pBtCoexist, u8 type)
{}

void EXhalbtc8723b2ant_LpsNotify(struct btc_coexist *pBtCoexist, u8 type)
{}

void EXhalbtc8723b2ant_ScanNotify(struct btc_coexist *pBtCoexist, u8 type)
{}

void EXhalbtc8723b2ant_ConnectNotify(struct btc_coexist *pBtCoexist, u8 type)
{}

void EXhalbtc8723b2ant_MediaStatusNotify(struct btc_coexist *pBtCoexist, u8 type)
{}

void EXhalbtc8723b2ant_SpecialPacketNotify(struct btc_coexist *pBtCoexist, u8 type)
{}

void EXhalbtc8723b2ant_BtInfoNotify(
	struct btc_coexist *pBtCoexist, u8 *tmpBuf, u8 length
)
{}

void EXhalbtc8723b2ant_HaltNotify(struct btc_coexist *pBtCoexist)
{}

void EXhalbtc8723b2ant_PnpNotify(struct btc_coexist *pBtCoexist, u8 pnpState)
{}

void EXhalbtc8723b2ant_Periodical(struct btc_coexist *pBtCoexist)
{}