#include <linux/delay.h>
#include <linux/pci.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/types.h>
#include "b43legacy.h"
#include "phy.h"
#include "main.h"
#include "radio.h"
#include "ilt.h"
static const s8 b43legacy_tssi2dbm_b_table[] = …;
static const s8 b43legacy_tssi2dbm_g_table[] = …;
static void b43legacy_phy_initg(struct b43legacy_wldev *dev);
void b43legacy_phy_lock(struct b43legacy_wldev *dev)
{ … }
void b43legacy_phy_unlock(struct b43legacy_wldev *dev)
{ … }
u16 b43legacy_phy_read(struct b43legacy_wldev *dev, u16 offset)
{ … }
void b43legacy_phy_write(struct b43legacy_wldev *dev, u16 offset, u16 val)
{ … }
void b43legacy_phy_calibrate(struct b43legacy_wldev *dev)
{ … }
static void b43legacy_phy_init_pctl(struct b43legacy_wldev *dev)
{ … }
static void b43legacy_phy_agcsetup(struct b43legacy_wldev *dev)
{ … }
static void b43legacy_phy_setupg(struct b43legacy_wldev *dev)
{ … }
static void b43legacy_phy_inita(struct b43legacy_wldev *dev)
{ … }
static void b43legacy_phy_initb2(struct b43legacy_wldev *dev)
{ … }
static void b43legacy_phy_initb4(struct b43legacy_wldev *dev)
{ … }
static void b43legacy_phy_initb5(struct b43legacy_wldev *dev)
{ … }
static void b43legacy_phy_initb6(struct b43legacy_wldev *dev)
{ … }
static void b43legacy_calc_loopback_gain(struct b43legacy_wldev *dev)
{ … }
static void b43legacy_phy_initg(struct b43legacy_wldev *dev)
{ … }
static u16 b43legacy_phy_lo_b_r15_loop(struct b43legacy_wldev *dev)
{ … }
void b43legacy_phy_lo_b_measure(struct b43legacy_wldev *dev)
{ … }
static inline
u16 b43legacy_phy_lo_g_deviation_subval(struct b43legacy_wldev *dev,
u16 control)
{ … }
static u32 b43legacy_phy_lo_g_singledeviation(struct b43legacy_wldev *dev,
u16 control)
{ … }
static inline
void b43legacy_lo_write(struct b43legacy_wldev *dev,
struct b43legacy_lopair *pair)
{ … }
static inline
struct b43legacy_lopair *b43legacy_find_lopair(struct b43legacy_wldev *dev,
u16 bbatt,
u16 rfatt,
u16 tx)
{ … }
static inline
struct b43legacy_lopair *b43legacy_current_lopair(struct b43legacy_wldev *dev)
{ … }
void b43legacy_phy_lo_adjust(struct b43legacy_wldev *dev, int fixed)
{ … }
static void b43legacy_phy_lo_g_measure_txctl2(struct b43legacy_wldev *dev)
{ … }
static
void b43legacy_phy_lo_g_state(struct b43legacy_wldev *dev,
const struct b43legacy_lopair *in_pair,
struct b43legacy_lopair *out_pair,
u16 r27)
{ … }
void b43legacy_phy_set_baseband_attenuation(struct b43legacy_wldev *dev,
u16 bbatt)
{ … }
void b43legacy_phy_lo_g_measure(struct b43legacy_wldev *dev)
{ … }
static
void b43legacy_phy_lo_mark_current_used(struct b43legacy_wldev *dev)
{ … }
void b43legacy_phy_lo_mark_all_unused(struct b43legacy_wldev *dev)
{ … }
static s8 b43legacy_phy_estimate_power_out(struct b43legacy_wldev *dev, s8 tssi)
{ … }
void b43legacy_phy_xmitpower(struct b43legacy_wldev *dev)
{ … }
static inline
s32 b43legacy_tssi2dbm_ad(s32 num, s32 den)
{ … }
static inline
s8 b43legacy_tssi2dbm_entry(s8 entry [], u8 index, s16 pab0, s16 pab1, s16 pab2)
{ … }
int b43legacy_phy_init_tssi2dbm_table(struct b43legacy_wldev *dev)
{ … }
int b43legacy_phy_init(struct b43legacy_wldev *dev)
{ … }
void b43legacy_phy_set_antenna_diversity(struct b43legacy_wldev *dev)
{ … }
void b43legacy_power_saving_ctl_bits(struct b43legacy_wldev *dev,
int bit25, int bit26)
{ … }