linux/drivers/net/wireless/mediatek/mt76/mt76x0/phy.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * (c) Copyright 2002-2010, Ralink Technology, Inc.
 * Copyright (C) 2014 Felix Fietkau <[email protected]>
 * Copyright (C) 2015 Jakub Kicinski <[email protected]>
 * Copyright (C) 2018 Stanislaw Gruszka <[email protected]>
 */

#include <linux/kernel.h>
#include <linux/etherdevice.h>

#include "mt76x0.h"
#include "mcu.h"
#include "eeprom.h"
#include "phy.h"
#include "initvals.h"
#include "initvals_phy.h"
#include "../mt76x02_phy.h"

static int
mt76x0_rf_csr_wr(struct mt76x02_dev *dev, u32 offset, u8 value)
{}

static int mt76x0_rf_csr_rr(struct mt76x02_dev *dev, u32 offset)
{}

static int
mt76x0_rf_wr(struct mt76x02_dev *dev, u32 offset, u8 val)
{}

static int mt76x0_rf_rr(struct mt76x02_dev *dev, u32 offset)
{}

static int
mt76x0_rf_rmw(struct mt76x02_dev *dev, u32 offset, u8 mask, u8 val)
{}

static int
mt76x0_rf_set(struct mt76x02_dev *dev, u32 offset, u8 val)
{}

static int
mt76x0_rf_clear(struct mt76x02_dev *dev, u32 offset, u8 mask)
{}

static void
mt76x0_phy_rf_csr_wr_rp(struct mt76x02_dev *dev,
			const struct mt76_reg_pair *data,
			int n)
{}

#define RF_RANDOM_WRITE(dev, tab)

int mt76x0_phy_wait_bbp_ready(struct mt76x02_dev *dev)
{}

static void
mt76x0_phy_set_band(struct mt76x02_dev *dev, enum nl80211_band band)
{}

static void
mt76x0_phy_set_chan_rf_params(struct mt76x02_dev *dev, u8 channel,
			      u16 rf_bw_band)
{}

static void
mt76x0_phy_set_chan_bbp_params(struct mt76x02_dev *dev, u16 rf_bw_band)
{}

static void mt76x0_phy_ant_select(struct mt76x02_dev *dev)
{}

static void
mt76x0_phy_bbp_set_bw(struct mt76x02_dev *dev, enum nl80211_chan_width width)
{}

static void mt76x0_phy_tssi_dc_calibrate(struct mt76x02_dev *dev)
{}

static int
mt76x0_phy_tssi_adc_calibrate(struct mt76x02_dev *dev, s16 *ltssi,
			      u8 *info)
{}

static u8 mt76x0_phy_get_rf_pa_mode(struct mt76x02_dev *dev,
				    int index, u8 tx_rate)
{}

static int
mt76x0_phy_get_target_power(struct mt76x02_dev *dev, u8 tx_mode,
			    u8 *info, s8 *target_power,
			    s8 *target_pa_power)
{}

static s16 mt76x0_phy_lin2db(u16 val)
{}

static int
mt76x0_phy_get_delta_power(struct mt76x02_dev *dev, u8 tx_mode,
			   s8 target_power, s8 target_pa_power,
			   s16 ltssi)
{}

static void mt76x0_phy_tssi_calibrate(struct mt76x02_dev *dev)
{}

void mt76x0_phy_set_txpower(struct mt76x02_dev *dev)
{}

void mt76x0_phy_calibrate(struct mt76x02_dev *dev, bool power_on)
{}
EXPORT_SYMBOL_GPL();

void mt76x0_phy_set_channel(struct mt76x02_dev *dev,
			    struct cfg80211_chan_def *chandef)
{}

static void mt76x0_phy_temp_sensor(struct mt76x02_dev *dev)
{}

static void mt76x0_phy_set_gain_val(struct mt76x02_dev *dev)
{}

static void
mt76x0_phy_update_channel_gain(struct mt76x02_dev *dev)
{}

static void mt76x0_phy_calibration_work(struct work_struct *work)
{}

static void mt76x0_rf_patch_reg_array(struct mt76x02_dev *dev,
				      const struct mt76_reg_pair *rp, int len)
{}

static void mt76x0_phy_rf_init(struct mt76x02_dev *dev)
{}

void mt76x0_phy_init(struct mt76x02_dev *dev)
{}