Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
radio.c File Reference
#include <linux/delay.h>
#include "b43legacy.h"
#include "main.h"
#include "phy.h"
#include "radio.h"
#include "ilt.h"

Go to the source code of this file.

Macros

#define phy_stacksave(offset)
 
#define phy_stackrestore(offset)
 
#define radio_stacksave(offset)
 
#define radio_stackrestore(offset)
 
#define ilt_stacksave(offset)
 
#define ilt_stackrestore(offset)
 
#define LPD(L, P, D)   (((L) << 2) | ((P) << 1) | ((D) << 0))
 

Functions

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)
 
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)
 
void b43legacy_calc_nrssi_slope (struct b43legacy_wldev *dev)
 
void b43legacy_calc_nrssi_threshold (struct b43legacy_wldev *dev)
 
int b43legacy_radio_set_interference_mitigation (struct b43legacy_wldev *dev, int mode)
 
u16 b43legacy_radio_calibrationvalue (struct b43legacy_wldev *dev)
 
u16 b43legacy_radio_init2050 (struct b43legacy_wldev *dev)
 
void b43legacy_radio_set_tx_iq (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)
 
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)
 

Macro Definition Documentation

#define ilt_stackrestore (   offset)
Value:
do { \
b43legacy_ilt_write(dev, (offset), \
_stack_restore(stack, 0x3, \
(offset))); \
} while (0)

Definition at line 981 of file radio.c.

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

Definition at line 976 of file radio.c.

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

Definition at line 1398 of file radio.c.

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

Definition at line 959 of file radio.c.

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

Definition at line 954 of file radio.c.

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

Definition at line 970 of file radio.c.

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

Definition at line 965 of file radio.c.

Function Documentation

void b43legacy_calc_nrssi_slope ( struct b43legacy_wldev dev)

Definition at line 553 of file radio.c.

void b43legacy_calc_nrssi_threshold ( struct b43legacy_wldev dev)

Definition at line 818 of file radio.c.

u16 b43legacy_default_baseband_attenuation ( struct b43legacy_wldev dev)

Definition at line 1970 of file radio.c.

u16 b43legacy_default_radio_attenuation ( struct b43legacy_wldev dev)

Definition at line 1979 of file radio.c.

u16 b43legacy_default_txctl1 ( struct b43legacy_wldev dev)

Definition at line 2066 of file radio.c.

s16 b43legacy_nrssi_hw_read ( struct b43legacy_wldev dev,
u16  offset 
)

Definition at line 341 of file radio.c.

void b43legacy_nrssi_hw_update ( struct b43legacy_wldev dev,
u16  val 
)

Definition at line 352 of file radio.c.

void b43legacy_nrssi_hw_write ( struct b43legacy_wldev dev,
u16  offset,
s16  val 
)

Definition at line 333 of file radio.c.

void b43legacy_nrssi_mem_update ( struct b43legacy_wldev dev)

Definition at line 366 of file radio.c.

u8 b43legacy_radio_aci_detect ( struct b43legacy_wldev dev,
u8  channel 
)

Definition at line 246 of file radio.c.

u8 b43legacy_radio_aci_scan ( struct b43legacy_wldev dev)

Definition at line 280 of file radio.c.

u16 b43legacy_radio_calibrationvalue ( struct b43legacy_wldev dev)

Definition at line 1383 of file radio.c.

void b43legacy_radio_clear_tssi ( struct b43legacy_wldev dev)

Definition at line 2145 of file radio.c.

u16 b43legacy_radio_init2050 ( struct b43legacy_wldev dev)

Definition at line 1496 of file radio.c.

void b43legacy_radio_lock ( struct b43legacy_wldev dev)

Definition at line 90 of file radio.c.

u16 b43legacy_radio_read16 ( struct b43legacy_wldev dev,
u16  offset 
)

Definition at line 114 of file radio.c.

int b43legacy_radio_selectchannel ( struct b43legacy_wldev dev,
u8  channel,
int  synthetic_pu_workaround 
)

Definition at line 1765 of file radio.c.

int b43legacy_radio_set_interference_mitigation ( struct b43legacy_wldev dev,
int  mode 
)

Definition at line 1339 of file radio.c.

void b43legacy_radio_set_tx_iq ( struct b43legacy_wldev dev)

Definition at line 1746 of file radio.c.

void b43legacy_radio_set_txantenna ( struct b43legacy_wldev dev,
u32  val 
)

Definition at line 1820 of file radio.c.

void b43legacy_radio_set_txpower_a ( struct b43legacy_wldev dev,
u16  txpower 
)

Definition at line 1900 of file radio.c.

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

Definition at line 1933 of file radio.c.

void b43legacy_radio_turn_off ( struct b43legacy_wldev dev,
bool  force 
)

Definition at line 2119 of file radio.c.

void b43legacy_radio_turn_on ( struct b43legacy_wldev dev)

Definition at line 2081 of file radio.c.

void b43legacy_radio_unlock ( struct b43legacy_wldev dev)

Definition at line 102 of file radio.c.

void b43legacy_radio_write16 ( struct b43legacy_wldev dev,
u16  offset,
u16  val 
)

Definition at line 141 of file radio.c.