Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
r819xU_phy.c File Reference
#include "r8192U.h"
#include "r8192U_hw.h"
#include "r819xU_phy.h"
#include "r819xU_phyreg.h"
#include "r8190_rtl8256.h"
#include "r8192U_dm.h"
#include "r819xU_firmware_img.h"
#include "dot11d.h"

Go to the source code of this file.

Macros

#define rtl819XPHY_REG_1T2RArray   Rtl8192UsbPHY_REG_1T2RArray
 
#define rtl819XMACPHY_Array_PG   Rtl8192UsbMACPHY_Array_PG
 
#define rtl819XMACPHY_Array   Rtl8192UsbMACPHY_Array
 
#define rtl819XRadioA_Array   Rtl8192UsbRadioA_Array
 
#define rtl819XRadioB_Array   Rtl8192UsbRadioB_Array
 
#define rtl819XRadioC_Array   Rtl8192UsbRadioC_Array
 
#define rtl819XRadioD_Array   Rtl8192UsbRadioD_Array
 
#define rtl819XAGCTAB_Array   Rtl8192UsbAGCTAB_Array
 
#define SCAN_RX_INITIAL_GAIN   0x17
 
#define POWER_DETECTION_TH   0x08
 

Functions

u32 rtl8192_CalculateBitShift (u32 dwBitMask)
 
u8 rtl8192_phy_CheckIsLegalRFPath (struct net_device *dev, u32 eRFPath)
 
void rtl8192_setBBreg (struct net_device *dev, u32 dwRegAddr, u32 dwBitMask, u32 dwData)
 
u32 rtl8192_QueryBBReg (struct net_device *dev, u32 dwRegAddr, u32 dwBitMask)
 
u32 rtl8192_phy_RFSerialRead (struct net_device *dev, RF90_RADIO_PATH_E eRFPath, u32 Offset)
 
void rtl8192_phy_RFSerialWrite (struct net_device *dev, RF90_RADIO_PATH_E eRFPath, u32 Offset, u32 Data)
 
void rtl8192_phy_SetRFReg (struct net_device *dev, RF90_RADIO_PATH_E eRFPath, u32 RegAddr, u32 BitMask, u32 Data)
 
u32 rtl8192_phy_QueryRFReg (struct net_device *dev, RF90_RADIO_PATH_E eRFPath, u32 RegAddr, u32 BitMask)
 
void rtl8192_phy_configmac (struct net_device *dev)
 
void rtl8192_phyConfigBB (struct net_device *dev, u8 ConfigType)
 
void rtl8192_InitBBRFRegDef (struct net_device *dev)
 
u8 rtl8192_phy_checkBBAndRF (struct net_device *dev, HW90_BLOCK_E CheckBlock, RF90_RADIO_PATH_E eRFPath)
 
void rtl8192_BB_Config_ParaFile (struct net_device *dev)
 
void rtl8192_BBConfig (struct net_device *dev)
 
void rtl8192_phy_getTxPower (struct net_device *dev)
 
void rtl8192_phy_setTxPower (struct net_device *dev, u8 channel)
 
void rtl8192_phy_RFConfig (struct net_device *dev)
 
void rtl8192_phy_updateInitGain (struct net_device *dev)
 
u8 rtl8192_phy_ConfigRFWithHeaderFile (struct net_device *dev, RF90_RADIO_PATH_E eRFPath)
 
void rtl8192_SetTxPowerLevel (struct net_device *dev, u8 channel)
 
bool rtl8192_SetRFPowerState (struct net_device *dev, RT_RF_POWER_STATE eRFPowerState)
 
u8 rtl8192_phy_SetSwChnlCmdArray (SwChnlCmd *CmdTable, u32 CmdTableIdx, u32 CmdTableSz, SwChnlCmdID CmdID, u32 Para1, u32 Para2, u32 msDelay)
 
u8 rtl8192_phy_SwChnlStepByStep (struct net_device *dev, u8 channel, u8 *stage, u8 *step, u32 *delay)
 
void rtl8192_phy_FinishSwChnlNow (struct net_device *dev, u8 channel)
 
void rtl8192_SwChnl_WorkItem (struct net_device *dev)
 
u8 rtl8192_phy_SwChnl (struct net_device *dev, u8 channel)
 
void rtl8192_SetBWModeWorkItem (struct net_device *dev)
 
void rtl8192_SetBWMode (struct net_device *dev, HT_CHANNEL_WIDTH Bandwidth, HT_EXTCHNL_OFFSET Offset)
 
void InitialGain819xUsb (struct net_device *dev, u8 Operation)
 
void InitialGainOperateWorkItemCallBack (struct work_struct *work)
 

Macro Definition Documentation

#define POWER_DETECTION_TH   0x08
#define rtl819XAGCTAB_Array   Rtl8192UsbAGCTAB_Array

Definition at line 36 of file r819xU_phy.c.

#define rtl819XMACPHY_Array   Rtl8192UsbMACPHY_Array

Definition at line 31 of file r819xU_phy.c.

#define rtl819XMACPHY_Array_PG   Rtl8192UsbMACPHY_Array_PG

Definition at line 30 of file r819xU_phy.c.

#define rtl819XPHY_REG_1T2RArray   Rtl8192UsbPHY_REG_1T2RArray

Definition at line 29 of file r819xU_phy.c.

#define rtl819XRadioA_Array   Rtl8192UsbRadioA_Array

Definition at line 32 of file r819xU_phy.c.

#define rtl819XRadioB_Array   Rtl8192UsbRadioB_Array

Definition at line 33 of file r819xU_phy.c.

#define rtl819XRadioC_Array   Rtl8192UsbRadioC_Array

Definition at line 34 of file r819xU_phy.c.

#define rtl819XRadioD_Array   Rtl8192UsbRadioD_Array

Definition at line 35 of file r819xU_phy.c.

#define SCAN_RX_INITIAL_GAIN   0x17

Function Documentation

void InitialGain819xUsb ( struct net_device dev,
u8  Operation 
)

Definition at line 1682 of file r819xU_phy.c.

void InitialGainOperateWorkItemCallBack ( struct work_struct work)

Definition at line 1694 of file r819xU_phy.c.

void rtl8192_BB_Config_ParaFile ( struct net_device dev)

Definition at line 763 of file r819xU_phy.c.

void rtl8192_BBConfig ( struct net_device dev)

Definition at line 831 of file r819xU_phy.c.

u32 rtl8192_CalculateBitShift ( u32  dwBitMask)

Definition at line 45 of file r819xU_phy.c.

void rtl8192_InitBBRFRegDef ( struct net_device dev)

Definition at line 578 of file r819xU_phy.c.

u8 rtl8192_phy_checkBBAndRF ( struct net_device dev,
HW90_BLOCK_E  CheckBlock,
RF90_RADIO_PATH_E  eRFPath 
)

Definition at line 693 of file r819xU_phy.c.

u8 rtl8192_phy_CheckIsLegalRFPath ( struct net_device dev,
u32  eRFPath 
)

Definition at line 61 of file r819xU_phy.c.

void rtl8192_phy_configmac ( struct net_device dev)

Definition at line 492 of file r819xU_phy.c.

u8 rtl8192_phy_ConfigRFWithHeaderFile ( struct net_device dev,
RF90_RADIO_PATH_E  eRFPath 
)

Definition at line 952 of file r819xU_phy.c.

void rtl8192_phy_FinishSwChnlNow ( struct net_device dev,
u8  channel 
)

Definition at line 1394 of file r819xU_phy.c.

void rtl8192_phy_getTxPower ( struct net_device dev)

Definition at line 846 of file r819xU_phy.c.

u32 rtl8192_phy_QueryRFReg ( struct net_device dev,
RF90_RADIO_PATH_E  eRFPath,
u32  RegAddr,
u32  BitMask 
)

Definition at line 342 of file r819xU_phy.c.

void rtl8192_phy_RFConfig ( struct net_device dev)

Definition at line 916 of file r819xU_phy.c.

u32 rtl8192_phy_RFSerialRead ( struct net_device dev,
RF90_RADIO_PATH_E  eRFPath,
u32  Offset 
)

Definition at line 133 of file r819xU_phy.c.

void rtl8192_phy_RFSerialWrite ( struct net_device dev,
RF90_RADIO_PATH_E  eRFPath,
u32  Offset,
u32  Data 
)

Definition at line 221 of file r819xU_phy.c.

void rtl8192_phy_SetRFReg ( struct net_device dev,
RF90_RADIO_PATH_E  eRFPath,
u32  RegAddr,
u32  BitMask,
u32  Data 
)

Definition at line 294 of file r819xU_phy.c.

u8 rtl8192_phy_SetSwChnlCmdArray ( SwChnlCmd *  CmdTable,
u32  CmdTableIdx,
u32  CmdTableSz,
SwChnlCmdID  CmdID,
u32  Para1,
u32  Para2,
u32  msDelay 
)

Definition at line 1197 of file r819xU_phy.c.

void rtl8192_phy_setTxPower ( struct net_device dev,
u8  channel 
)

Definition at line 889 of file r819xU_phy.c.

u8 rtl8192_phy_SwChnl ( struct net_device dev,
u8  channel 
)

Definition at line 1435 of file r819xU_phy.c.

u8 rtl8192_phy_SwChnlStepByStep ( struct net_device dev,
u8  channel,
u8 stage,
u8 step,
u32 delay 
)

Definition at line 1240 of file r819xU_phy.c.

void rtl8192_phy_updateInitGain ( struct net_device dev)

Definition at line 940 of file r819xU_phy.c.

void rtl8192_phyConfigBB ( struct net_device dev,
u8  ConfigType 
)

Definition at line 536 of file r819xU_phy.c.

u32 rtl8192_QueryBBReg ( struct net_device dev,
u32  dwRegAddr,
u32  dwBitMask 
)

Definition at line 110 of file r819xU_phy.c.

void rtl8192_setBBreg ( struct net_device dev,
u32  dwRegAddr,
u32  dwBitMask,
u32  dwData 
)

Definition at line 86 of file r819xU_phy.c.

void rtl8192_SetBWMode ( struct net_device dev,
HT_CHANNEL_WIDTH  Bandwidth,
HT_EXTCHNL_OFFSET  Offset 
)

Definition at line 1659 of file r819xU_phy.c.

void rtl8192_SetBWModeWorkItem ( struct net_device dev)

Definition at line 1511 of file r819xU_phy.c.

bool rtl8192_SetRFPowerState ( struct net_device dev,
RT_RF_POWER_STATE  eRFPowerState 
)

Definition at line 1060 of file r819xU_phy.c.

void rtl8192_SetTxPowerLevel ( struct net_device dev,
u8  channel 
)

Definition at line 1023 of file r819xU_phy.c.

void rtl8192_SwChnl_WorkItem ( struct net_device dev)

Definition at line 1414 of file r819xU_phy.c.