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

Go to the source code of this file.

Data Structures

struct  _SwChnlCmd
 

Macros

#define MAX_PRECMD_CNT   16
 
#define MAX_RFDEPENDCMD_CNT   16
 
#define MAX_POSTCMD_CNT   16
 
#define bMaskByte0   0xff
 
#define bMaskByte1   0xff00
 
#define bMaskByte2   0xff0000
 
#define bMaskByte3   0xff000000
 
#define bMaskHWord   0xffff0000
 
#define bMaskLWord   0x0000ffff
 
#define bMaskDWord   0xffffffff
 

Typedefs

typedef enum _SwChnlCmdID SwChnlCmdID
 
typedef enum _HW90_BLOCK HW90_BLOCK_E
 
typedef enum _HW90_BLOCKPHW90_BLOCK_E
 
typedef enum _RF90_RADIO_PATH RF90_RADIO_PATH_E
 
typedef enum _RF90_RADIO_PATHPRF90_RADIO_PATH_E
 

Enumerations

enum  _SwChnlCmdID {
  CmdID_End, CmdID_SetTxPowerLevel, CmdID_BBRegWrite10, CmdID_WritePortUlong,
  CmdID_WritePortUshort, CmdID_WritePortUchar, CmdID_RF_WriteReg
}
 
enum  _HW90_BLOCK {
  HW90_BLOCK_MAC = 0, HW90_BLOCK_PHY0 = 1, HW90_BLOCK_PHY1 = 2, HW90_BLOCK_RF = 3,
  HW90_BLOCK_MAXIMUM = 4
}
 
enum  _RF90_RADIO_PATH {
  RF90_PATH_A = 0, RF90_PATH_B = 1, RF90_PATH_C = 2, RF90_PATH_D = 3,
  RF90_PATH_MAX
}
 

Functions

struct _SwChnlCmd __attribute__ ((packed)) SwChnlCmd
 
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)
 
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)
 
u8 rtl8192_phy_checkBBAndRF (struct net_device *dev, HW90_BLOCK_E CheckBlock, RF90_RADIO_PATH_E eRFPath)
 
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)
 
u8 rtl8192_phy_SwChnl (struct net_device *dev, u8 channel)
 
void rtl8192_SetBWMode (struct net_device *dev, HT_CHANNEL_WIDTH Bandwidth, HT_EXTCHNL_OFFSET Offset)
 
void rtl8192_SwChnl_WorkItem (struct net_device *dev)
 
void rtl8192_SetBWModeWorkItem (struct net_device *dev)
 
bool rtl8192_SetRFPowerState (struct net_device *dev, RT_RF_POWER_STATE eRFPowerState)
 
void InitialGain819xUsb (struct net_device *dev, u8 Operation)
 
void InitialGainOperateWorkItemCallBack (struct work_struct *work)
 

Variables

SwChnlCmdID CmdID
 
u32 Para1
 
u32 Para2
 
u32 msDelay
 
u32 rtl819XMACPHY_Array_PG []
 
u32 rtl819XPHY_REG_1T2RArray []
 
u32 rtl819XAGCTAB_Array []
 
u32 rtl819XRadioA_Array []
 
u32 rtl819XRadioB_Array []
 
u32 rtl819XRadioC_Array []
 
u32 rtl819XRadioD_Array []
 

Macro Definition Documentation

#define bMaskByte0   0xff

Definition at line 52 of file r819xU_phy.h.

#define bMaskByte1   0xff00

Definition at line 53 of file r819xU_phy.h.

#define bMaskByte2   0xff0000

Definition at line 54 of file r819xU_phy.h.

#define bMaskByte3   0xff000000

Definition at line 55 of file r819xU_phy.h.

#define bMaskDWord   0xffffffff

Definition at line 58 of file r819xU_phy.h.

#define bMaskHWord   0xffff0000

Definition at line 56 of file r819xU_phy.h.

#define bMaskLWord   0x0000ffff

Definition at line 57 of file r819xU_phy.h.

#define MAX_POSTCMD_CNT   16

Definition at line 7 of file r819xU_phy.h.

#define MAX_PRECMD_CNT   16

Definition at line 5 of file r819xU_phy.h.

#define MAX_RFDEPENDCMD_CNT   16

Definition at line 6 of file r819xU_phy.h.

Typedef Documentation

typedef enum _HW90_BLOCK HW90_BLOCK_E
typedef enum _HW90_BLOCK * PHW90_BLOCK_E
typedef enum _SwChnlCmdID SwChnlCmdID

Enumeration Type Documentation

Enumerator:
HW90_BLOCK_MAC 
HW90_BLOCK_PHY0 
HW90_BLOCK_PHY1 
HW90_BLOCK_RF 
HW90_BLOCK_MAXIMUM 

Definition at line 36 of file r819xU_phy.h.

Enumerator:
RF90_PATH_A 
RF90_PATH_B 
RF90_PATH_C 
RF90_PATH_D 
RF90_PATH_MAX 

Definition at line 44 of file r819xU_phy.h.

Enumerator:
CmdID_End 
CmdID_SetTxPowerLevel 
CmdID_BBRegWrite10 
CmdID_WritePortUlong 
CmdID_WritePortUshort 
CmdID_WritePortUchar 
CmdID_RF_WriteReg 

Definition at line 9 of file r819xU_phy.h.

Function Documentation

struct _SwChnlCmd __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

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_BBConfig ( struct net_device dev)

Definition at line 602 of file r8192E_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 66 of file r8192E_phy.c.

void rtl8192_phy_configmac ( struct net_device dev)

Definition at line 332 of file r8192E_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_getTxPower ( struct net_device dev)

Definition at line 611 of file r8192E_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 699 of file r8192E_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.

void rtl8192_phy_setTxPower ( struct net_device dev,
u8  channel 
)

Definition at line 645 of file r8192E_phy.c.

u8 rtl8192_phy_SwChnl ( struct net_device dev,
u8  channel 
)

Definition at line 1019 of file r8192E_phy.c.

void rtl8192_phy_updateInitGain ( struct net_device dev)

Definition at line 722 of file r8192E_phy.c.

void rtl8192_phyConfigBB ( struct net_device dev,
u8  ConfigType 
)

Definition at line 361 of file r8192E_phy.c.

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

Definition at line 98 of file r8192E_phy.c.

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

Definition at line 81 of file r8192E_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 1174 of file r8192E_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_SwChnl_WorkItem ( struct net_device dev)

Definition at line 1004 of file r8192E_phy.c.

Variable Documentation

SwChnlCmdID CmdID

Definition at line 27 of file r819xU_phy.h.

u32 msDelay

Definition at line 30 of file r819xU_phy.h.

u32 Para1

Definition at line 28 of file r819xU_phy.h.

u32 Para2

Definition at line 29 of file r819xU_phy.h.

u32 rtl819XAGCTAB_Array[]
u32 rtl819XMACPHY_Array_PG[]
u32 rtl819XPHY_REG_1T2RArray[]
u32 rtl819XRadioA_Array[]
u32 rtl819XRadioB_Array[]
u32 rtl819XRadioC_Array[]
u32 rtl819XRadioD_Array[]