Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
phy_g.c File Reference
#include "b43.h"
#include "phy_g.h"
#include "phy_common.h"
#include "lo.h"
#include "main.h"
#include <linux/bitrev.h>
#include <linux/slab.h>

Go to the source code of this file.

Data Structures

struct  init2050_saved_values
 

Macros

#define bitrev4(tmp)   (bitrev8(tmp) >> 4)
 
#define phy_stacksave(offset)
 
#define phy_stackrestore(offset)
 
#define radio_stacksave(offset)
 
#define radio_stackrestore(offset)
 
#define ofdmtab_stacksave(table, offset)
 
#define ofdmtab_stackrestore(table, offset)
 
#define LPD(L, P, D)   (((L) << 2) | ((P) << 1) | ((D) << 0))
 

Functions

void b43_gphy_set_baseband_attenuation (struct b43_wldev *dev, u16 baseband_attenuation)
 
void b43_gphy_channel_switch (struct b43_wldev *dev, unsigned int channel, bool synthetic_pu_workaround)
 
u8b43_generate_dyn_tssi2dbm_tab (struct b43_wldev *dev, s16 pab0, s16 pab1, s16 pab2)
 

Variables

struct b43_phy_operations b43_phyops_g
 

Macro Definition Documentation

#define bitrev4 (   tmp)    (bitrev8(tmp) >> 4)

Definition at line 69 of file phy_g.c.

#define LPD (   L,
  P,
  D 
)    (((L) << 2) | ((P) << 1) | ((D) << 0))

Definition at line 1111 of file phy_g.c.

#define ofdmtab_stackrestore (   table,
  offset 
)
Value:
do { \
b43_ofdmtab_write16(dev, (table), (offset), \
_stack_restore(stack, 0x3, \
(offset)|(table))); \
} while (0)

Definition at line 830 of file phy_g.c.

#define ofdmtab_stacksave (   table,
  offset 
)
Value:
do { \
_stack_save(stack, &stackidx, 0x3, (offset)|(table), \
} while (0)

Definition at line 825 of file phy_g.c.

#define phy_stackrestore (   offset)
Value:
do { \
b43_phy_write(dev, (offset), \
_stack_restore(stack, 0x1, \
(offset))); \
} while (0)

Definition at line 808 of file phy_g.c.

#define phy_stacksave (   offset)
Value:
do { \
_stack_save(stack, &stackidx, 0x1, (offset), \
} while (0)

Definition at line 803 of file phy_g.c.

#define radio_stackrestore (   offset)
Value:
do { \
b43_radio_write16(dev, (offset), \
_stack_restore(stack, 0x2, \
(offset))); \
} while (0)

Definition at line 819 of file phy_g.c.

#define radio_stacksave (   offset)
Value:
do { \
_stack_save(stack, &stackidx, 0x2, (offset), \
} while (0)

Definition at line 814 of file phy_g.c.

Function Documentation

u8* b43_generate_dyn_tssi2dbm_tab ( struct b43_wldev dev,
s16  pab0,
s16  pab1,
s16  pab2 
)

Definition at line 2352 of file phy_g.c.

void b43_gphy_channel_switch ( struct b43_wldev dev,
unsigned int  channel,
bool  synthetic_pu_workaround 
)

Definition at line 2096 of file phy_g.c.

void b43_gphy_set_baseband_attenuation ( struct b43_wldev dev,
u16  baseband_attenuation 
)

Definition at line 198 of file phy_g.c.

Variable Documentation

struct b43_phy_operations b43_phyops_g
Initial value:
= {
.allocate = b43_gphy_op_allocate,
.free = b43_gphy_op_free,
.prepare_structs = b43_gphy_op_prepare_structs,
.prepare_hardware = b43_gphy_op_prepare_hardware,
.init = b43_gphy_op_init,
.exit = b43_gphy_op_exit,
.phy_read = b43_gphy_op_read,
.phy_write = b43_gphy_op_write,
.radio_read = b43_gphy_op_radio_read,
.radio_write = b43_gphy_op_radio_write,
.supports_hwpctl = b43_gphy_op_supports_hwpctl,
.software_rfkill = b43_gphy_op_software_rfkill,
.switch_channel = b43_gphy_op_switch_channel,
.get_default_chan = b43_gphy_op_get_default_chan,
.set_rx_antenna = b43_gphy_op_set_rx_antenna,
.interf_mitigation = b43_gphy_op_interf_mitigation,
.recalc_txpower = b43_gphy_op_recalc_txpower,
.adjust_txpower = b43_gphy_op_adjust_txpower,
.pwork_15sec = b43_gphy_op_pwork_15sec,
.pwork_60sec = b43_gphy_op_pwork_60sec,
}

Definition at line 3033 of file phy_g.c.