linux/drivers/net/wireless/broadcom/b43legacy/radio.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*

  Broadcom B43legacy wireless driver

  Copyright (c) 2005 Martin Langer <[email protected]>,
		     Stefano Brivio <[email protected]>
		     Michael Buesch <[email protected]>
		     Danny van Dyk <[email protected]>
		     Andreas Jaggi <[email protected]>
  Copyright (c) 2007 Larry Finger <[email protected]>

  Some parts of the code in this file are derived from the ipw2200
  driver  Copyright(c) 2003 - 2004 Intel Corporation.


*/

#include <linux/delay.h>

#include "b43legacy.h"
#include "main.h"
#include "phy.h"
#include "radio.h"
#include "ilt.h"


/* Table for b43legacy_radio_calibrationvalue() */
static const u16 rcc_table[16] =;

/* Reverse the bits of a 4bit value.
 * Example:  1101 is flipped 1011
 */
static u16 flip_4bit(u16 value)
{}

/* Get the freq, as it has to be written to the device. */
static inline
u16 channel2freq_bg(u8 channel)
{}

void b43legacy_radio_lock(struct b43legacy_wldev *dev)
{}

void b43legacy_radio_unlock(struct b43legacy_wldev *dev)
{}

u16 b43legacy_radio_read16(struct b43legacy_wldev *dev, u16 offset)
{}

void b43legacy_radio_write16(struct b43legacy_wldev *dev, u16 offset, u16 val)
{}

static void b43legacy_set_all_gains(struct b43legacy_wldev *dev,
				  s16 first, s16 second, s16 third)
{}

static void b43legacy_set_original_gains(struct b43legacy_wldev *dev)
{}

/* Synthetic PU workaround */
static void b43legacy_synth_pu_workaround(struct b43legacy_wldev *dev,
					  u8 channel)
{}

u8 b43legacy_radio_aci_detect(struct b43legacy_wldev *dev, u8 channel)
{}

u8 b43legacy_radio_aci_scan(struct b43legacy_wldev *dev)
{}

/* https://bcm-specs.sipsolutions.net/NRSSILookupTable */
void b43legacy_nrssi_hw_write(struct b43legacy_wldev *dev, u16 offset, s16 val)
{}

/* https://bcm-specs.sipsolutions.net/NRSSILookupTable */
s16 b43legacy_nrssi_hw_read(struct b43legacy_wldev *dev, u16 offset)
{}

/* https://bcm-specs.sipsolutions.net/NRSSILookupTable */
void b43legacy_nrssi_hw_update(struct b43legacy_wldev *dev, u16 val)
{}

/* https://bcm-specs.sipsolutions.net/NRSSILookupTable */
void b43legacy_nrssi_mem_update(struct b43legacy_wldev *dev)
{}

static void b43legacy_calc_nrssi_offset(struct b43legacy_wldev *dev)
{}

void b43legacy_calc_nrssi_slope(struct b43legacy_wldev *dev)
{}

void b43legacy_calc_nrssi_threshold(struct b43legacy_wldev *dev)
{}

/* Stack implementation to save/restore values from the
 * interference mitigation code.
 * It is save to restore values in random order.
 */
static void _stack_save(u32 *_stackptr, size_t *stackidx,
			u8 id, u16 offset, u16 value)
{}

static u16 _stack_restore(u32 *stackptr,
			  u8 id, u16 offset)
{}

#define phy_stacksave
#define phy_stackrestore
#define radio_stacksave
#define radio_stackrestore
#define ilt_stacksave
#define ilt_stackrestore

static void
b43legacy_radio_interference_mitigation_enable(struct b43legacy_wldev *dev,
					       int mode)
{}

static void
b43legacy_radio_interference_mitigation_disable(struct b43legacy_wldev *dev,
						int mode)
{}

#undef phy_stacksave
#undef phy_stackrestore
#undef radio_stacksave
#undef radio_stackrestore
#undef ilt_stacksave
#undef ilt_stackrestore

int b43legacy_radio_set_interference_mitigation(struct b43legacy_wldev *dev,
						int mode)
{}

u16 b43legacy_radio_calibrationvalue(struct b43legacy_wldev *dev)
{}

#define LPD(L, P, D)
static u16 b43legacy_get_812_value(struct b43legacy_wldev *dev, u8 lpd)
{}

u16 b43legacy_radio_init2050(struct b43legacy_wldev *dev)
{}

int b43legacy_radio_selectchannel(struct b43legacy_wldev *dev,
				  u8 channel,
				  int synthetic_pu_workaround)
{}

void b43legacy_radio_set_txantenna(struct b43legacy_wldev *dev, u32 val)
{}

/* http://bcm-specs.sipsolutions.net/TX_Gain_Base_Band */
static u16 b43legacy_get_txgain_base_band(u16 txpower)
{}

/* http://bcm-specs.sipsolutions.net/TX_Gain_Radio_Frequency_Power_Amplifier */
static u16 b43legacy_get_txgain_freq_power_amp(u16 txpower)
{}

/* http://bcm-specs.sipsolutions.net/TX_Gain_Digital_Analog_Converter */
static u16 b43legacy_get_txgain_dac(u16 txpower)
{}

void b43legacy_radio_set_txpower_a(struct b43legacy_wldev *dev, u16 txpower)
{}

void b43legacy_radio_set_txpower_bg(struct b43legacy_wldev *dev,
				    u16 baseband_attenuation,
				    u16 radio_attenuation,
				    u16 txpower)
{}

u16 b43legacy_default_baseband_attenuation(struct b43legacy_wldev *dev)
{}

u16 b43legacy_default_radio_attenuation(struct b43legacy_wldev *dev)
{}

u16 b43legacy_default_txctl1(struct b43legacy_wldev *dev)
{}

void b43legacy_radio_turn_on(struct b43legacy_wldev *dev)
{}

void b43legacy_radio_turn_off(struct b43legacy_wldev *dev, bool force)
{}

void b43legacy_radio_clear_tssi(struct b43legacy_wldev *dev)
{}