Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
phy_common.c File Reference
#include "phy_common.h"
#include "phy_g.h"
#include "phy_a.h"
#include "phy_n.h"
#include "phy_lp.h"
#include "phy_ht.h"
#include "phy_lcn.h"
#include "b43.h"
#include "main.h"

Go to the source code of this file.

Functions

int b43_phy_allocate (struct b43_wldev *dev)
 
void b43_phy_free (struct b43_wldev *dev)
 
int b43_phy_init (struct b43_wldev *dev)
 
void b43_phy_exit (struct b43_wldev *dev)
 
bool b43_has_hardware_pctl (struct b43_wldev *dev)
 
void b43_radio_lock (struct b43_wldev *dev)
 
void b43_radio_unlock (struct b43_wldev *dev)
 
void b43_phy_lock (struct b43_wldev *dev)
 
void b43_phy_unlock (struct b43_wldev *dev)
 
u16 b43_radio_read (struct b43_wldev *dev, u16 reg)
 
void b43_radio_write (struct b43_wldev *dev, u16 reg, u16 value)
 
void b43_radio_mask (struct b43_wldev *dev, u16 offset, u16 mask)
 
void b43_radio_set (struct b43_wldev *dev, u16 offset, u16 set)
 
void b43_radio_maskset (struct b43_wldev *dev, u16 offset, u16 mask, u16 set)
 
bool b43_radio_wait_value (struct b43_wldev *dev, u16 offset, u16 mask, u16 value, int delay, int timeout)
 
u16 b43_phy_read (struct b43_wldev *dev, u16 reg)
 
void b43_phy_write (struct b43_wldev *dev, u16 reg, u16 value)
 
void b43_phy_copy (struct b43_wldev *dev, u16 destreg, u16 srcreg)
 
void b43_phy_mask (struct b43_wldev *dev, u16 offset, u16 mask)
 
void b43_phy_set (struct b43_wldev *dev, u16 offset, u16 set)
 
void b43_phy_maskset (struct b43_wldev *dev, u16 offset, u16 mask, u16 set)
 
int b43_switch_channel (struct b43_wldev *dev, unsigned int new_channel)
 
void b43_software_rfkill (struct b43_wldev *dev, bool blocked)
 
void b43_phy_txpower_adjust_work (struct work_struct *work)
 
void b43_phy_txpower_check (struct b43_wldev *dev, unsigned int flags)
 
int b43_phy_shm_tssi_read (struct b43_wldev *dev, u16 shm_offset)
 
void b43_phyop_switch_analog_generic (struct b43_wldev *dev, bool on)
 
bool b43_channel_type_is_40mhz (enum nl80211_channel_type channel_type)
 
void b43_phy_force_clock (struct b43_wldev *dev, bool force)
 
struct b43_c32 b43_cordic (int theta)
 

Function Documentation

bool b43_channel_type_is_40mhz ( enum nl80211_channel_type  channel_type)

Definition at line 460 of file phy_common.c.

struct b43_c32 b43_cordic ( int  theta)
read

Definition at line 499 of file phy_common.c.

bool b43_has_hardware_pctl ( struct b43_wldev dev)

b43_has_hardware_pctl - Hardware Power Control supported? Returns a boolean, whether hardware power control is supported.

Definition at line 133 of file phy_common.c.

int b43_phy_allocate ( struct b43_wldev dev)

b43_phy_allocate - Allocate PHY structs Allocate the PHY data structures, based on the current dev->phy.type

Definition at line 40 of file phy_common.c.

void b43_phy_copy ( struct b43_wldev dev,
u16  destreg,
u16  srcreg 
)

b43_phy_copy - copy contents of 16bit PHY register to another

Definition at line 275 of file phy_common.c.

void b43_phy_exit ( struct b43_wldev dev)

b43_phy_exit - Cleanup PHY

Definition at line 124 of file phy_common.c.

void b43_phy_force_clock ( struct b43_wldev dev,
bool  force 
)

Definition at line 467 of file phy_common.c.

void b43_phy_free ( struct b43_wldev dev)

b43_phy_free - Free PHY structs

Definition at line 85 of file phy_common.c.

int b43_phy_init ( struct b43_wldev dev)

b43_phy_init - Initialise the PHY

Definition at line 91 of file phy_common.c.

void b43_phy_lock ( struct b43_wldev dev)

b43_phy_lock - Lock firmware PHY register access

Definition at line 177 of file phy_common.c.

void b43_phy_mask ( struct b43_wldev dev,
u16  offset,
u16  mask 
)

b43_phy_mask - Mask a PHY register with a mask

Definition at line 282 of file phy_common.c.

void b43_phy_maskset ( struct b43_wldev dev,
u16  offset,
u16  mask,
u16  set 
)

b43_phy_maskset - Mask and OR a PHY register with a mask and bitmap

Definition at line 304 of file phy_common.c.

u16 b43_phy_read ( struct b43_wldev dev,
u16  reg 
)

b43_phy_read - 16bit PHY register read access

Definition at line 258 of file phy_common.c.

void b43_phy_set ( struct b43_wldev dev,
u16  offset,
u16  set 
)

b43_phy_set - OR a PHY register with a bitmap

Definition at line 293 of file phy_common.c.

int b43_phy_shm_tssi_read ( struct b43_wldev dev,
u16  shm_offset 
)

b43_phy_shm_tssi_read - Read the average of the last 4 TSSI from SHM.

: The SHM address to read the values from.

Returns the average of the 4 TSSI values, or a negative error code.

Definition at line 413 of file phy_common.c.

void b43_phy_txpower_adjust_work ( struct work_struct work)

b43_phy_txpower_adjust_work - TX power workqueue.

Workqueue for updating the TX power parameters in hardware.

Definition at line 369 of file phy_common.c.

void b43_phy_txpower_check ( struct b43_wldev dev,
unsigned int  flags 
)

b43_phy_txpower_check - Check TX power output.

Compare the current TX power output to the desired power emission and schedule an adjustment in case it mismatches.

: OR'ed enum b43_phy_txpower_check_flags flags. See the docs below.

Definition at line 384 of file phy_common.c.

void b43_phy_unlock ( struct b43_wldev dev)

b43_phy_unlock - Unlock firmware PHY register access

Definition at line 189 of file phy_common.c.

void b43_phy_write ( struct b43_wldev dev,
u16  reg,
u16  value 
)

b43_phy_write - 16bit PHY register write access

Definition at line 265 of file phy_common.c.

void b43_phyop_switch_analog_generic ( struct b43_wldev dev,
bool  on 
)

b43_phy_switch_analog_generic - Generic PHY operation for switching the Analog.

It does the switching based on the PHY0 core register. Do not call this directly. Only use it as a switch_analog callback for struct b43_phy_operations.

Definition at line 454 of file phy_common.c.

void b43_radio_lock ( struct b43_wldev dev)

b43_radio_lock - Lock firmware radio register access

Definition at line 142 of file phy_common.c.

void b43_radio_mask ( struct b43_wldev dev,
u16  offset,
u16  mask 
)

b43_radio_mask - Mask a 16bit radio register with a mask

Definition at line 225 of file phy_common.c.

void b43_radio_maskset ( struct b43_wldev dev,
u16  offset,
u16  mask,
u16  set 
)

b43_radio_maskset - Mask and OR a radio register with a mask and bitmap

Definition at line 237 of file phy_common.c.

u16 b43_radio_read ( struct b43_wldev dev,
u16  reg 
)

b43_radio_read - 16bit Radio register read access

Definition at line 213 of file phy_common.c.

void b43_radio_set ( struct b43_wldev dev,
u16  offset,
u16  set 
)

b43_radio_set - OR a 16bit radio register with a bitmap

Definition at line 231 of file phy_common.c.

void b43_radio_unlock ( struct b43_wldev dev)

b43_radio_unlock - Unlock firmware radio register access

Definition at line 160 of file phy_common.c.

bool b43_radio_wait_value ( struct b43_wldev dev,
u16  offset,
u16  mask,
u16  value,
int  delay,
int  timeout 
)

b43_radio_wait_value - Waits for a given value in masked register read

Definition at line 243 of file phy_common.c.

void b43_radio_write ( struct b43_wldev dev,
u16  reg,
u16  value 
)

b43_radio_write - 16bit Radio register write access

Definition at line 219 of file phy_common.c.

void b43_software_rfkill ( struct b43_wldev dev,
bool  blocked 
)

b43_software_rfkill - Turn the radio ON or OFF in software.

Definition at line 354 of file phy_common.c.

int b43_switch_channel ( struct b43_wldev dev,
unsigned int  new_channel 
)

b43_switch_channel - Switch to another channel

Definition at line 315 of file phy_common.c.