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

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

#include <drv_types.h>
#include <rtw_debug.h>
#include <hal_data.h>
#include <linux/kernel.h>

u8 PHY_GetTxPowerByRateBase(struct adapter *Adapter, u8 RfPath,
			    enum rate_section RateSection)
{}

static void
phy_SetTxPowerByRateBase(struct adapter *Adapter, u8 RfPath,
			 enum rate_section RateSection, u8 Value)
{}

static void
phy_StoreTxPowerByRateBase(
struct adapter *padapter
	)
{}

u8 PHY_GetRateSectionIndexOfTxPowerByRate(
	struct adapter *padapter, u32 RegAddr, u32 BitMask
)
{}

void
PHY_GetRateValuesOfTxPowerByRate(
	struct adapter *padapter,
	u32	RegAddr,
	u32	BitMask,
	u32	Value,
	u8 *RateIndex,
	s8 *PwrByRateVal,
	u8 *RateNum
)
{}

static void PHY_StoreTxPowerByRateNew(struct adapter *padapter,	u32 RfPath,
				      u32 RegAddr, u32 BitMask, u32 Data)
{}

static void PHY_StoreTxPowerByRateOld(
	struct adapter *padapter, u32	RegAddr, u32 BitMask, u32 Data
)
{}

void PHY_InitTxPowerByRate(struct adapter *padapter)
{}

void PHY_StoreTxPowerByRate(
	struct adapter *padapter,
	u32	RfPath,
	u32	RegAddr,
	u32	BitMask,
	u32	Data
)
{}

static void
phy_ConvertTxPowerByRateInDbmToRelativeValues(
struct adapter *padapter
	)
{}

/*
  * This function must be called if the value in the PHY_REG_PG.txt(or header)
  * is exact dBm values
  */
void PHY_TxPowerByRateConfiguration(struct adapter *padapter)
{}

void PHY_SetTxPowerIndexByRateSection(
	struct adapter *padapter, u8 RFPath, u8 Channel, u8 RateSection
)
{}

u8 PHY_GetTxPowerIndexBase(
	struct adapter *padapter,
	u8 RFPath,
	u8 Rate,
	enum channel_width	BandWidth,
	u8 Channel
)
{}

s8 PHY_GetTxPowerTrackingOffset(struct adapter *padapter, u8 RFPath, u8 Rate)
{}

u8 PHY_GetRateIndexOfTxPowerByRate(u8 Rate)
{}

s8 PHY_GetTxPowerByRate(struct adapter *padapter, u8 RFPath, u8 Rate)
{}

void PHY_SetTxPowerByRate(
	struct adapter *padapter,
	u8 RFPath,
	u8 Rate,
	s8 Value
)
{}

void PHY_SetTxPowerLevelByPath(struct adapter *Adapter, u8 channel, u8 path)
{}

void PHY_SetTxPowerIndexByRateArray(
	struct adapter *padapter,
	u8 RFPath,
	enum channel_width BandWidth,
	u8 Channel,
	u8 *Rates,
	u8 RateArraySize
)
{}

static s8 phy_GetWorldWideLimit(s8 *LimitTable)
{}

static s8 phy_GetChannelIndexOfTxPowerLimit(u8 Channel)
{}

static s16 get_bandwidth_idx(const enum channel_width bandwidth)
{}

static s16 get_rate_sctn_idx(const u8 rate)
{}

s8 phy_get_tx_pwr_lmt(struct adapter *adapter, u32 reg_pwr_tbl_sel,
		      enum channel_width bandwidth,
		      u8 rf_path, u8 data_rate, u8 channel)
{}

void PHY_ConvertTxPowerLimitToPowerIndex(struct adapter *Adapter)
{}

void PHY_InitTxPowerLimit(struct adapter *Adapter)
{}

void PHY_SetTxPowerLimit(
	struct adapter *Adapter,
	u8 *Regulation,
	u8 *Bandwidth,
	u8 *RateSection,
	u8 *RfPath,
	u8 *Channel,
	u8 *PowerLimit
)
{}

void Hal_ChannelPlanToRegulation(struct adapter *Adapter, u16 ChannelPlan)
{}