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

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

#include <hal_data.h>
#include <rtw_debug.h>
#include <hal_btcoex.h>
#include <Mp_Precomp.h>

/* 		Global variables */

struct btc_coexist GLBtCoexist;
static u8 GLBtcWiFiInScanState;
static u8 GLBtcWiFiInIQKState;

/*  */
/* 		Debug related function */
/*  */
static u8 halbtcoutsrc_IsBtCoexistAvailable(struct btc_coexist *pBtCoexist)
{}

static void halbtcoutsrc_LeaveLps(struct btc_coexist *pBtCoexist)
{}

static void halbtcoutsrc_EnterLps(struct btc_coexist *pBtCoexist)
{}

static void halbtcoutsrc_NormalLps(struct btc_coexist *pBtCoexist)
{}

/*
 *  Constraint:
 *   1. this function will request pwrctrl->lock
 */
static void halbtcoutsrc_LeaveLowPower(struct btc_coexist *pBtCoexist)
{}

/*
 *  Constraint:
 *   1. this function will request pwrctrl->lock
 */
static void halbtcoutsrc_NormalLowPower(struct btc_coexist *pBtCoexist)
{}

static void halbtcoutsrc_DisableLowPower(struct btc_coexist *pBtCoexist, u8 bLowPwrDisable)
{}

static void halbtcoutsrc_AggregationCheck(struct btc_coexist *pBtCoexist)
{}

static u8 halbtcoutsrc_IsWifiBusy(struct adapter *padapter)
{}

static u32 _halbtcoutsrc_GetWifiLinkStatus(struct adapter *padapter)
{}

static u32 halbtcoutsrc_GetWifiLinkStatus(struct btc_coexist *pBtCoexist)
{}

static u32 halbtcoutsrc_GetBtPatchVer(struct btc_coexist *pBtCoexist)
{}

static s32 halbtcoutsrc_GetWifiRssi(struct adapter *padapter)
{}

static u8 halbtcoutsrc_GetWifiScanAPNum(struct adapter *padapter)
{}

static u8 halbtcoutsrc_Get(void *pBtcContext, u8 getType, void *pOutBuf)
{}

static u8 halbtcoutsrc_Set(void *pBtcContext, u8 setType, void *pInBuf)
{}

/*  */
/* 		IO related function */
/*  */
static u8 halbtcoutsrc_Read1Byte(void *pBtcContext, u32 RegAddr)
{}

static u16 halbtcoutsrc_Read2Byte(void *pBtcContext, u32 RegAddr)
{}

static u32 halbtcoutsrc_Read4Byte(void *pBtcContext, u32 RegAddr)
{}

static void halbtcoutsrc_Write1Byte(void *pBtcContext, u32 RegAddr, u8 Data)
{}

static void halbtcoutsrc_BitMaskWrite1Byte(void *pBtcContext, u32 regAddr, u8 bitMask, u8 data1b)
{}

static void halbtcoutsrc_Write2Byte(void *pBtcContext, u32 RegAddr, u16 Data)
{}

static void halbtcoutsrc_Write4Byte(void *pBtcContext, u32 RegAddr, u32 Data)
{}

static void halbtcoutsrc_WriteLocalReg1Byte(void *pBtcContext, u32 RegAddr, u8 Data)
{}

static void halbtcoutsrc_SetBbReg(void *pBtcContext, u32 RegAddr, u32 BitMask, u32 Data)
{}


static u32 halbtcoutsrc_GetBbReg(void *pBtcContext, u32 RegAddr, u32 BitMask)
{}

static void halbtcoutsrc_SetRfReg(void *pBtcContext, u8 eRFPath, u32 RegAddr, u32 BitMask, u32 Data)
{}

static u32 halbtcoutsrc_GetRfReg(void *pBtcContext, u8 eRFPath, u32 RegAddr, u32 BitMask)
{}

static void halbtcoutsrc_SetBtReg(void *pBtcContext, u8 RegType, u32 RegAddr, u32 Data)
{}

static u32 halbtcoutsrc_GetBtReg(void *pBtcContext, u8 RegType, u32 RegAddr)
{}

static void halbtcoutsrc_FillH2cCmd(void *pBtcContext, u8 elementId, u32 cmdLen, u8 *pCmdBuffer)
{}

/*  */
/* 		Extern functions called by other module */
/*  */
static u8 EXhalbtcoutsrc_BindBtCoexWithAdapter(void *padapter)
{}

void hal_btcoex_Initialize(void *padapter)
{}

void EXhalbtcoutsrc_PowerOnSetting(struct btc_coexist *pBtCoexist)
{}

void EXhalbtcoutsrc_InitHwConfig(struct btc_coexist *pBtCoexist, u8 bWifiOnly)
{}

void EXhalbtcoutsrc_InitCoexDm(struct btc_coexist *pBtCoexist)
{}

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

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

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

void EXhalbtcoutsrc_ConnectNotify(struct btc_coexist *pBtCoexist, u8 action)
{}

void EXhalbtcoutsrc_MediaStatusNotify(struct btc_coexist *pBtCoexist, enum
	rt_media_status mediaStatus)
{}

void EXhalbtcoutsrc_SpecialPacketNotify(struct btc_coexist *pBtCoexist, u8 pktType)
{}

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

void EXhalbtcoutsrc_HaltNotify(struct btc_coexist *pBtCoexist)
{}

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

void EXhalbtcoutsrc_Periodical(struct btc_coexist *pBtCoexist)
{}

void EXhalbtcoutsrc_SetAntNum(u8 type, u8 antNum)
{}

/*  */
/*  Currently used by 8723b only, S0 or S1 */
/*  */
void EXhalbtcoutsrc_SetSingleAntPath(u8 singleAntPath)
{}

/*
 * Description:
 *Run BT-Coexist mechanism or not
 *
 */
void hal_btcoex_SetBTCoexist(struct adapter *padapter, u8 bBtExist)
{}

/*
 * Dewcription:
 *Check is co-exist mechanism enabled or not
 *
 * Return:
 *true	Enable BT co-exist mechanism
 *false	Disable BT co-exist mechanism
 */
bool hal_btcoex_IsBtExist(struct adapter *padapter)
{}

bool hal_btcoex_IsBtDisabled(struct adapter *padapter)
{}

void hal_btcoex_SetPgAntNum(struct adapter *padapter, u8 antNum)
{}

void hal_btcoex_SetSingleAntPath(struct adapter *padapter, u8 singleAntPath)
{}

void hal_btcoex_PowerOnSetting(struct adapter *padapter)
{}

void hal_btcoex_InitHwConfig(struct adapter *padapter, u8 bWifiOnly)
{}

void hal_btcoex_IpsNotify(struct adapter *padapter, u8 type)
{}

void hal_btcoex_LpsNotify(struct adapter *padapter, u8 type)
{}

void hal_btcoex_ScanNotify(struct adapter *padapter, u8 type)
{}

void hal_btcoex_ConnectNotify(struct adapter *padapter, u8 action)
{}

void hal_btcoex_MediaStatusNotify(struct adapter *padapter, u8 mediaStatus)
{}

void hal_btcoex_SpecialPacketNotify(struct adapter *padapter, u8 pktType)
{}

void hal_btcoex_IQKNotify(struct adapter *padapter, u8 state)
{}

void hal_btcoex_BtInfoNotify(struct adapter *padapter, u8 length, u8 *tmpBuf)
{}

void hal_btcoex_SuspendNotify(struct adapter *padapter, u8 state)
{}

void hal_btcoex_HaltNotify(struct adapter *padapter)
{}

void hal_btcoex_Handler(struct adapter *padapter)
{}

s32 hal_btcoex_IsBTCoexCtrlAMPDUSize(struct adapter *padapter)
{}

bool hal_btcoex_IsBtControlLps(struct adapter *padapter)
{}

bool hal_btcoex_IsLpsOn(struct adapter *padapter)
{}

u8 hal_btcoex_RpwmVal(struct adapter *padapter)
{}

u8 hal_btcoex_LpsVal(struct adapter *padapter)
{}

u32 hal_btcoex_GetRaMask(struct adapter *padapter)
{}

void hal_btcoex_RecordPwrMode(struct adapter *padapter, u8 *pCmdBuf, u8 cmdLen)
{}