Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
phy.h File Reference

Go to the source code of this file.

Data Structures

struct  swchnlcmd
 

Macros

#define MAX_TXPWR_IDX_NMODE_92S   63
 
#define MAX_DOZE_WAITING_TIMES_9x   64
 
#define MAX_PRECMD_CNT   16
 
#define MAX_RFDEPENDCMD_CNT   16
 
#define MAX_POSTCMD_CNT   16
 
#define RF90_PATH_MAX   4
 
#define hal_get_firmwareversion(rtlpriv)   (((struct rt_firmware *)(rtlpriv->rtlhal.pfirmware))->firmwareversion)
 

Enumerations

enum  version_8192s { VERSION_8192S_ACUT, VERSION_8192S_BCUT, VERSION_8192S_CCUT }
 
enum  swchnlcmd_id {
  CMDID_END, CMDID_SET_TXPOWEROWER_LEVEL, CMDID_BBREGWRITE10, CMDID_WRITEPORT_ULONG,
  CMDID_WRITEPORT_USHORT, CMDID_WRITEPORT_UCHAR, CMDID_RF_WRITEREG, CMDID_END,
  CMDID_SET_TXPOWEROWER_LEVEL, CMDID_BBREGWRITE10, CMDID_WRITEPORT_ULONG, CMDID_WRITEPORT_USHORT,
  CMDID_WRITEPORT_UCHAR, CMDID_RF_WRITEREG, CMDID_END, CMDID_SET_TXPOWEROWER_LEVEL,
  CMDID_BBREGWRITE10, CMDID_WRITEPORT_ULONG, CMDID_WRITEPORT_USHORT, CMDID_WRITEPORT_UCHAR,
  CMDID_RF_WRITEREG, CMDID_END, CMDID_SET_TXPOWEROWER_LEVEL, CMDID_BBREGWRITE10,
  CMDID_WRITEPORT_ULONG, CMDID_WRITEPORT_USHORT, CMDID_WRITEPORT_UCHAR, CMDID_RF_WRITEREG
}
 
enum  baseband_config_type {
  BASEBAND_CONFIG_PHY_REG = 0, BASEBAND_CONFIG_AGC_TAB = 1, BASEBAND_CONFIG_PHY_REG = 0, BASEBAND_CONFIG_AGC_TAB = 1,
  BASEBAND_CONFIG_PHY_REG = 0, BASEBAND_CONFIG_AGC_TAB = 1, BASEBAND_CONFIG_PHY_REG = 0, BASEBAND_CONFIG_AGC_TAB = 1
}
 

Functions

u32 rtl92s_phy_query_bb_reg (struct ieee80211_hw *hw, u32 regaddr, u32 bitmask)
 
void rtl92s_phy_set_bb_reg (struct ieee80211_hw *hw, u32 regaddr, u32 bitmask, u32 data)
 
void rtl92s_phy_scan_operation_backup (struct ieee80211_hw *hw, u8 operation)
 
u32 rtl92s_phy_query_rf_reg (struct ieee80211_hw *hw, enum radio_path rfpath, u32 regaddr, u32 bitmask)
 
void rtl92s_phy_set_rf_reg (struct ieee80211_hw *hw, enum radio_path rfpath, u32 regaddr, u32 bitmask, u32 data)
 
void rtl92s_phy_set_bw_mode (struct ieee80211_hw *hw, enum nl80211_channel_type ch_type)
 
u8 rtl92s_phy_sw_chnl (struct ieee80211_hw *hw)
 
bool rtl92s_phy_set_rf_power_state (struct ieee80211_hw *hw, enum rf_pwrstate rfpower_state)
 
bool rtl92s_phy_mac_config (struct ieee80211_hw *hw)
 
void rtl92s_phy_switch_ephy_parameter (struct ieee80211_hw *hw)
 
bool rtl92s_phy_bb_config (struct ieee80211_hw *hw)
 
bool rtl92s_phy_rf_config (struct ieee80211_hw *hw)
 
void rtl92s_phy_get_hw_reg_originalvalue (struct ieee80211_hw *hw)
 
void rtl92s_phy_set_txpower (struct ieee80211_hw *hw, u8 channel)
 
bool rtl92s_phy_set_fw_cmd (struct ieee80211_hw *hw, enum fwcmd_iotype fwcmd_io)
 
void rtl92s_phy_chk_fwcmd_iodone (struct ieee80211_hw *hw)
 
void rtl92s_phy_set_beacon_hwreg (struct ieee80211_hw *hw, u16 beaconinterval)
 
u8 rtl92s_phy_config_rf (struct ieee80211_hw *hw, enum radio_path rfpath)
 

Macro Definition Documentation

#define hal_get_firmwareversion (   rtlpriv)    (((struct rt_firmware *)(rtlpriv->rtlhal.pfirmware))->firmwareversion)

Definition at line 73 of file phy.h.

#define MAX_DOZE_WAITING_TIMES_9x   64

Definition at line 33 of file phy.h.

#define MAX_POSTCMD_CNT   16

Definition at line 39 of file phy.h.

#define MAX_PRECMD_CNT   16

Definition at line 37 of file phy.h.

#define MAX_RFDEPENDCMD_CNT   16

Definition at line 38 of file phy.h.

#define MAX_TXPWR_IDX_NMODE_92S   63

Definition at line 32 of file phy.h.

#define RF90_PATH_MAX   4

Definition at line 41 of file phy.h.

Enumeration Type Documentation

Enumerator:
BASEBAND_CONFIG_PHY_REG 
BASEBAND_CONFIG_AGC_TAB 
BASEBAND_CONFIG_PHY_REG 
BASEBAND_CONFIG_AGC_TAB 
BASEBAND_CONFIG_PHY_REG 
BASEBAND_CONFIG_AGC_TAB 
BASEBAND_CONFIG_PHY_REG 
BASEBAND_CONFIG_AGC_TAB 

Definition at line 66 of file phy.h.

Enumerator:
CMDID_END 
CMDID_SET_TXPOWEROWER_LEVEL 
CMDID_BBREGWRITE10 
CMDID_WRITEPORT_ULONG 
CMDID_WRITEPORT_USHORT 
CMDID_WRITEPORT_UCHAR 
CMDID_RF_WRITEREG 
CMDID_END 
CMDID_SET_TXPOWEROWER_LEVEL 
CMDID_BBREGWRITE10 
CMDID_WRITEPORT_ULONG 
CMDID_WRITEPORT_USHORT 
CMDID_WRITEPORT_UCHAR 
CMDID_RF_WRITEREG 
CMDID_END 
CMDID_SET_TXPOWEROWER_LEVEL 
CMDID_BBREGWRITE10 
CMDID_WRITEPORT_ULONG 
CMDID_WRITEPORT_USHORT 
CMDID_WRITEPORT_UCHAR 
CMDID_RF_WRITEREG 
CMDID_END 
CMDID_SET_TXPOWEROWER_LEVEL 
CMDID_BBREGWRITE10 
CMDID_WRITEPORT_ULONG 
CMDID_WRITEPORT_USHORT 
CMDID_WRITEPORT_UCHAR 
CMDID_RF_WRITEREG 

Definition at line 49 of file phy.h.

Enumerator:
VERSION_8192S_ACUT 
VERSION_8192S_BCUT 
VERSION_8192S_CCUT 

Definition at line 43 of file phy.h.

Function Documentation

bool rtl92s_phy_bb_config ( struct ieee80211_hw hw)

Definition at line 1139 of file phy.c.

void rtl92s_phy_chk_fwcmd_iodone ( struct ieee80211_hw hw)

Definition at line 1298 of file phy.c.

u8 rtl92s_phy_config_rf ( struct ieee80211_hw hw,
enum radio_path  rfpath 
)

Definition at line 1027 of file phy.c.

void rtl92s_phy_get_hw_reg_originalvalue ( struct ieee80211_hw hw)

Definition at line 1196 of file phy.c.

bool rtl92s_phy_mac_config ( struct ieee80211_hw hw)

Definition at line 1122 of file phy.c.

u32 rtl92s_phy_query_bb_reg ( struct ieee80211_hw hw,
u32  regaddr,
u32  bitmask 
)

Definition at line 54 of file phy.c.

u32 rtl92s_phy_query_rf_reg ( struct ieee80211_hw hw,
enum radio_path  rfpath,
u32  regaddr,
u32  bitmask 
)

Definition at line 179 of file phy.c.

bool rtl92s_phy_rf_config ( struct ieee80211_hw hw)

Definition at line 1181 of file phy.c.

void rtl92s_phy_scan_operation_backup ( struct ieee80211_hw hw,
u8  operation 
)

Definition at line 238 of file phy.c.

void rtl92s_phy_set_bb_reg ( struct ieee80211_hw hw,
u32  regaddr,
u32  bitmask,
u32  data 
)

Definition at line 73 of file phy.c.

void rtl92s_phy_set_beacon_hwreg ( struct ieee80211_hw hw,
u16  beaconinterval 
)

Definition at line 1718 of file phy.c.

void rtl92s_phy_set_bw_mode ( struct ieee80211_hw hw,
enum nl80211_channel_type  ch_type 
)

Definition at line 260 of file phy.c.

bool rtl92s_phy_set_fw_cmd ( struct ieee80211_hw hw,
enum fwcmd_iotype  fwcmd_io 
)

Definition at line 1453 of file phy.c.

bool rtl92s_phy_set_rf_power_state ( struct ieee80211_hw hw,
enum rf_pwrstate  rfpower_state 
)

Definition at line 535 of file phy.c.

void rtl92s_phy_set_rf_reg ( struct ieee80211_hw hw,
enum radio_path  rfpath,
u32  regaddr,
u32  bitmask,
u32  data 
)

Definition at line 205 of file phy.c.

void rtl92s_phy_set_txpower ( struct ieee80211_hw hw,
u8  channel 
)

Definition at line 1266 of file phy.c.

u8 rtl92s_phy_sw_chnl ( struct ieee80211_hw hw)

Definition at line 454 of file phy.c.

void rtl92s_phy_switch_ephy_parameter ( struct ieee80211_hw hw)

Definition at line 1685 of file phy.c.