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.h File Reference
#include "phy_a.h"

Go to the source code of this file.

Data Structures

struct  b43_rfatt
 
struct  b43_rfatt_list
 
struct  b43_bbatt
 
struct  b43_bbatt_list
 
struct  b43_phy_g
 

Macros

#define B43_PHY_VERSION_CCK   B43_PHY_CCK(0x00) /* Versioning register for B-PHY */
 
#define B43_PHY_CCKBBANDCFG   B43_PHY_CCK(0x01) /* Contains antenna 0/1 control bit */
 
#define B43_PHY_PGACTL   B43_PHY_CCK(0x15) /* PGA control */
 
#define B43_PHY_PGACTL_LPF   0x1000 /* Low pass filter (?) */
 
#define B43_PHY_PGACTL_LOWBANDW   0x0040 /* Low bandwidth flag */
 
#define B43_PHY_PGACTL_UNKNOWN   0xEFA0
 
#define B43_PHY_FBCTL1   B43_PHY_CCK(0x18) /* Frequency bandwidth control 1 */
 
#define B43_PHY_ITSSI   B43_PHY_CCK(0x29) /* Idle TSSI */
 
#define B43_PHY_LO_LEAKAGE   B43_PHY_CCK(0x2D) /* Measured LO leakage */
 
#define B43_PHY_ENERGY   B43_PHY_CCK(0x33) /* Energy */
 
#define B43_PHY_SYNCCTL   B43_PHY_CCK(0x35)
 
#define B43_PHY_FBCTL2   B43_PHY_CCK(0x38) /* Frequency bandwidth control 2 */
 
#define B43_PHY_DACCTL   B43_PHY_CCK(0x60) /* DAC control */
 
#define B43_PHY_RCCALOVER   B43_PHY_CCK(0x78) /* RC calibration override */
 
#define B43_PHY_CLASSCTL   B43_PHY_EXTG(0x02) /* Classify control */
 
#define B43_PHY_GTABCTL   B43_PHY_EXTG(0x03) /* G-PHY table control (see below) */
 
#define B43_PHY_GTABOFF   0x03FF /* G-PHY table offset (see below) */
 
#define B43_PHY_GTABNR   0xFC00 /* G-PHY table number (see below) */
 
#define B43_PHY_GTABNR_SHIFT   10
 
#define B43_PHY_GTABDATA   B43_PHY_EXTG(0x04) /* G-PHY table data */
 
#define B43_PHY_LO_MASK   B43_PHY_EXTG(0x0F) /* Local Oscillator control mask */
 
#define B43_PHY_LO_CTL   B43_PHY_EXTG(0x10) /* Local Oscillator control */
 
#define B43_PHY_RFOVER   B43_PHY_EXTG(0x11) /* RF override */
 
#define B43_PHY_RFOVERVAL   B43_PHY_EXTG(0x12) /* RF override value */
 
#define B43_PHY_RFOVERVAL_EXTLNA   0x8000
 
#define B43_PHY_RFOVERVAL_LNA   0x7000
 
#define B43_PHY_RFOVERVAL_LNA_SHIFT   12
 
#define B43_PHY_RFOVERVAL_PGA   0x0F00
 
#define B43_PHY_RFOVERVAL_PGA_SHIFT   8
 
#define B43_PHY_RFOVERVAL_UNK   0x0010 /* Unknown, always set. */
 
#define B43_PHY_RFOVERVAL_TRSWRX   0x00E0
 
#define B43_PHY_RFOVERVAL_BW   0x0003 /* Bandwidth flags */
 
#define B43_PHY_RFOVERVAL_BW_LPF   0x0001 /* Low Pass Filter */
 
#define B43_PHY_RFOVERVAL_BW_LBW   0x0002 /* Low Bandwidth (when set), high when unset */
 
#define B43_PHY_ANALOGOVER   B43_PHY_EXTG(0x14) /* Analog override */
 
#define B43_PHY_ANALOGOVERVAL   B43_PHY_EXTG(0x15) /* Analog override value */
 
#define B43_GTAB(number, offset)   (((number) << B43_PHY_GTABNR_SHIFT) | (offset))
 
#define B43_GTAB_NRSSI   B43_GTAB(0x00, 0)
 
#define B43_GTAB_TRFEMW   B43_GTAB(0x0C, 0x120)
 
#define B43_GTAB_ORIGTR   B43_GTAB(0x2E, 0x298)
 
#define has_tx_magnification(phy)
 
#define has_loopback_gain(phy)   (((phy)->rev > 1) || ((phy)->gmode))
 
#define B43_TXCTL_PA3DB   0x40 /* PA Gain 3dB */
 
#define B43_TXCTL_PA2DB   0x20 /* PA Gain 2dB */
 
#define B43_TXCTL_TXMIX   0x10 /* TX Mixer Gain */
 
#define B43_INTERFSTACK_SIZE   26
 

Functions

u16 b43_gtab_read (struct b43_wldev *dev, u16 table, u16 offset)
 
void b43_gtab_write (struct b43_wldev *dev, u16 table, u16 offset, u16 value)
 
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 B43_GTAB (   number,
  offset 
)    (((number) << B43_PHY_GTABNR_SHIFT) | (offset))

Definition at line 49 of file phy_g.h.

#define B43_GTAB_NRSSI   B43_GTAB(0x00, 0)

Definition at line 50 of file phy_g.h.

#define B43_GTAB_ORIGTR   B43_GTAB(0x2E, 0x298)

Definition at line 52 of file phy_g.h.

#define B43_GTAB_TRFEMW   B43_GTAB(0x0C, 0x120)

Definition at line 51 of file phy_g.h.

#define B43_INTERFSTACK_SIZE   26

Definition at line 173 of file phy_g.h.

#define B43_PHY_ANALOGOVER   B43_PHY_EXTG(0x14) /* Analog override */

Definition at line 44 of file phy_g.h.

#define B43_PHY_ANALOGOVERVAL   B43_PHY_EXTG(0x15) /* Analog override value */

Definition at line 45 of file phy_g.h.

#define B43_PHY_CCKBBANDCFG   B43_PHY_CCK(0x01) /* Contains antenna 0/1 control bit */

Definition at line 9 of file phy_g.h.

#define B43_PHY_CLASSCTL   B43_PHY_EXTG(0x02) /* Classify control */

Definition at line 24 of file phy_g.h.

#define B43_PHY_DACCTL   B43_PHY_CCK(0x60) /* DAC control */

Definition at line 20 of file phy_g.h.

#define B43_PHY_ENERGY   B43_PHY_CCK(0x33) /* Energy */

Definition at line 17 of file phy_g.h.

#define B43_PHY_FBCTL1   B43_PHY_CCK(0x18) /* Frequency bandwidth control 1 */

Definition at line 14 of file phy_g.h.

#define B43_PHY_FBCTL2   B43_PHY_CCK(0x38) /* Frequency bandwidth control 2 */

Definition at line 19 of file phy_g.h.

#define B43_PHY_GTABCTL   B43_PHY_EXTG(0x03) /* G-PHY table control (see below) */

Definition at line 25 of file phy_g.h.

#define B43_PHY_GTABDATA   B43_PHY_EXTG(0x04) /* G-PHY table data */

Definition at line 29 of file phy_g.h.

#define B43_PHY_GTABNR   0xFC00 /* G-PHY table number (see below) */

Definition at line 27 of file phy_g.h.

#define B43_PHY_GTABNR_SHIFT   10

Definition at line 28 of file phy_g.h.

#define B43_PHY_GTABOFF   0x03FF /* G-PHY table offset (see below) */

Definition at line 26 of file phy_g.h.

#define B43_PHY_ITSSI   B43_PHY_CCK(0x29) /* Idle TSSI */

Definition at line 15 of file phy_g.h.

#define B43_PHY_LO_CTL   B43_PHY_EXTG(0x10) /* Local Oscillator control */

Definition at line 31 of file phy_g.h.

#define B43_PHY_LO_LEAKAGE   B43_PHY_CCK(0x2D) /* Measured LO leakage */

Definition at line 16 of file phy_g.h.

#define B43_PHY_LO_MASK   B43_PHY_EXTG(0x0F) /* Local Oscillator control mask */

Definition at line 30 of file phy_g.h.

#define B43_PHY_PGACTL   B43_PHY_CCK(0x15) /* PGA control */

Definition at line 10 of file phy_g.h.

#define B43_PHY_PGACTL_LOWBANDW   0x0040 /* Low bandwidth flag */

Definition at line 12 of file phy_g.h.

#define B43_PHY_PGACTL_LPF   0x1000 /* Low pass filter (?) */

Definition at line 11 of file phy_g.h.

#define B43_PHY_PGACTL_UNKNOWN   0xEFA0

Definition at line 13 of file phy_g.h.

#define B43_PHY_RCCALOVER   B43_PHY_CCK(0x78) /* RC calibration override */

Definition at line 21 of file phy_g.h.

#define B43_PHY_RFOVER   B43_PHY_EXTG(0x11) /* RF override */

Definition at line 32 of file phy_g.h.

#define B43_PHY_RFOVERVAL   B43_PHY_EXTG(0x12) /* RF override value */

Definition at line 33 of file phy_g.h.

#define B43_PHY_RFOVERVAL_BW   0x0003 /* Bandwidth flags */

Definition at line 41 of file phy_g.h.

#define B43_PHY_RFOVERVAL_BW_LBW   0x0002 /* Low Bandwidth (when set), high when unset */

Definition at line 43 of file phy_g.h.

#define B43_PHY_RFOVERVAL_BW_LPF   0x0001 /* Low Pass Filter */

Definition at line 42 of file phy_g.h.

#define B43_PHY_RFOVERVAL_EXTLNA   0x8000

Definition at line 34 of file phy_g.h.

#define B43_PHY_RFOVERVAL_LNA   0x7000

Definition at line 35 of file phy_g.h.

#define B43_PHY_RFOVERVAL_LNA_SHIFT   12

Definition at line 36 of file phy_g.h.

#define B43_PHY_RFOVERVAL_PGA   0x0F00

Definition at line 37 of file phy_g.h.

#define B43_PHY_RFOVERVAL_PGA_SHIFT   8

Definition at line 38 of file phy_g.h.

#define B43_PHY_RFOVERVAL_TRSWRX   0x00E0

Definition at line 40 of file phy_g.h.

#define B43_PHY_RFOVERVAL_UNK   0x0010 /* Unknown, always set. */

Definition at line 39 of file phy_g.h.

#define B43_PHY_SYNCCTL   B43_PHY_CCK(0x35)

Definition at line 18 of file phy_g.h.

#define B43_PHY_VERSION_CCK   B43_PHY_CCK(0x00) /* Versioning register for B-PHY */

Definition at line 8 of file phy_g.h.

#define B43_TXCTL_PA2DB   0x20 /* PA Gain 2dB */

Definition at line 111 of file phy_g.h.

#define B43_TXCTL_PA3DB   0x40 /* PA Gain 3dB */

Definition at line 110 of file phy_g.h.

#define B43_TXCTL_TXMIX   0x10 /* TX Mixer Gain */

Definition at line 112 of file phy_g.h.

#define has_loopback_gain (   phy)    (((phy)->rev > 1) || ((phy)->gmode))

Definition at line 64 of file phy_g.h.

#define has_tx_magnification (   phy)
Value:
(((phy)->rev >= 2) && \
((phy)->radio_ver == 0x2050) && \
((phy)->radio_rev == 8))

Definition at line 59 of file phy_g.h.

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.

u16 b43_gtab_read ( struct b43_wldev dev,
u16  table,
u16  offset 
)

Definition at line 456 of file tables.c.

void b43_gtab_write ( struct b43_wldev dev,
u16  table,
u16  offset,
u16  value 
)

Definition at line 462 of file tables.c.

Variable Documentation

struct b43_phy_operations b43_phyops_g

Definition at line 3033 of file phy_g.c.