#include <linux/delay.h>
#include "b43legacy.h"
#include "main.h"
#include "phy.h"
#include "radio.h"
#include "ilt.h"
static const u16 rcc_table[16] = …;
static u16 flip_4bit(u16 value)
{ … }
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)
{ … }
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)
{ … }
void b43legacy_nrssi_hw_write(struct b43legacy_wldev *dev, u16 offset, s16 val)
{ … }
s16 b43legacy_nrssi_hw_read(struct b43legacy_wldev *dev, u16 offset)
{ … }
void b43legacy_nrssi_hw_update(struct b43legacy_wldev *dev, u16 val)
{ … }
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)
{ … }
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)
{ … }
static u16 b43legacy_get_txgain_base_band(u16 txpower)
{ … }
static u16 b43legacy_get_txgain_freq_power_amp(u16 txpower)
{ … }
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)
{ … }