Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
baseband.c File Reference
#include "tmacro.h"
#include "tether.h"
#include "mac.h"
#include "baseband.h"
#include "srom.h"
#include "rf.h"

Go to the source code of this file.

Macros

#define CB_VT3253_INIT_FOR_RFMD   446
 
#define CB_VT3253B0_INIT_FOR_RFMD   256
 
#define CB_VT3253B0_AGC_FOR_RFMD2959   195
 
#define CB_VT3253B0_INIT_FOR_AIROHA2230   256
 
#define CB_VT3253B0_INIT_FOR_UW2451   256
 
#define CB_VT3253B0_AGC   193
 

Functions

unsigned int BBuGetFrameTime (unsigned char byPreambleType, unsigned char byPktType, unsigned int cbFrameLength, unsigned short wRate)
 
void BBvCalculateParameter (PSDevice pDevice, unsigned int cbFrameLength, unsigned short wRate, unsigned char byPacketType, unsigned short *pwPhyLen, unsigned char *pbyPhySrv, unsigned char *pbyPhySgn)
 
bool BBbReadEmbedded (unsigned long dwIoBase, unsigned char byBBAddr, unsigned char *pbyData)
 
bool BBbWriteEmbedded (unsigned long dwIoBase, unsigned char byBBAddr, unsigned char byData)
 
bool BBbIsRegBitsOn (unsigned long dwIoBase, unsigned char byBBAddr, unsigned char byTestBits)
 
bool BBbIsRegBitsOff (unsigned long dwIoBase, unsigned char byBBAddr, unsigned char byTestBits)
 
bool BBbVT3253Init (PSDevice pDevice)
 
void BBvReadAllRegs (unsigned long dwIoBase, unsigned char *pbyBBRegs)
 
void BBvLoopbackOn (PSDevice pDevice)
 
void BBvLoopbackOff (PSDevice pDevice)
 
void BBvSetShortSlotTime (PSDevice pDevice)
 
void BBvSetVGAGainOffset (PSDevice pDevice, unsigned char byData)
 
void BBvSoftwareReset (unsigned long dwIoBase)
 
void BBvPowerSaveModeON (unsigned long dwIoBase)
 
void BBvPowerSaveModeOFF (unsigned long dwIoBase)
 
void BBvSetTxAntennaMode (unsigned long dwIoBase, unsigned char byAntennaMode)
 
void BBvSetRxAntennaMode (unsigned long dwIoBase, unsigned char byAntennaMode)
 
void BBvSetDeepSleep (unsigned long dwIoBase, unsigned char byLocalID)
 
void BBvExitDeepSleep (unsigned long dwIoBase, unsigned char byLocalID)
 
void BBvClearAntDivSQ3Value (PSDevice pDevice)
 
void BBvAntennaDiversity (PSDevice pDevice, unsigned char byRxRate, unsigned char bySQ3)
 
void TimerSQ3CallBack (void *hDeviceContext)
 
void TimerState1CallBack (void *hDeviceContext)
 

Variables

unsigned char byVT3253InitTab_RFMD [CB_VT3253_INIT_FOR_RFMD][2]
 
unsigned char byVT3253B0_RFMD [CB_VT3253B0_INIT_FOR_RFMD][2]
 
unsigned char byVT3253B0_AGC4_RFMD2959 [CB_VT3253B0_AGC_FOR_RFMD2959][2]
 
unsigned char byVT3253B0_AIROHA2230 [CB_VT3253B0_INIT_FOR_AIROHA2230][2]
 
unsigned char byVT3253B0_UW2451 [CB_VT3253B0_INIT_FOR_UW2451][2]
 
unsigned char byVT3253B0_AGC [CB_VT3253B0_AGC][2]
 
const unsigned short awcFrameTime [MAX_RATE]
 

Macro Definition Documentation

#define CB_VT3253_INIT_FOR_RFMD   446

Definition at line 79 of file baseband.c.

#define CB_VT3253B0_AGC   193

Definition at line 1515 of file baseband.c.

#define CB_VT3253B0_AGC_FOR_RFMD2959   195

Definition at line 789 of file baseband.c.

#define CB_VT3253B0_INIT_FOR_AIROHA2230   256

Definition at line 989 of file baseband.c.

#define CB_VT3253B0_INIT_FOR_RFMD   256

Definition at line 529 of file baseband.c.

#define CB_VT3253B0_INIT_FOR_UW2451   256

Definition at line 1253 of file baseband.c.

Function Documentation

bool BBbIsRegBitsOff ( unsigned long  dwIoBase,
unsigned char  byBBAddr,
unsigned char  byTestBits 
)

Definition at line 2124 of file baseband.c.

bool BBbIsRegBitsOn ( unsigned long  dwIoBase,
unsigned char  byBBAddr,
unsigned char  byTestBits 
)

Definition at line 2101 of file baseband.c.

bool BBbReadEmbedded ( unsigned long  dwIoBase,
unsigned char  byBBAddr,
unsigned char pbyData 
)

Definition at line 2016 of file baseband.c.

bool BBbVT3253Init ( PSDevice  pDevice)

Definition at line 2147 of file baseband.c.

bool BBbWriteEmbedded ( unsigned long  dwIoBase,
unsigned char  byBBAddr,
unsigned char  byData 
)

Definition at line 2059 of file baseband.c.

unsigned int BBuGetFrameTime ( unsigned char  byPreambleType,
unsigned char  byPktType,
unsigned int  cbFrameLength,
unsigned short  wRate 
)

Definition at line 1778 of file baseband.c.

void BBvAntennaDiversity ( PSDevice  pDevice,
unsigned char  byRxRate,
unsigned char  bySQ3 
)

Definition at line 2788 of file baseband.c.

void BBvCalculateParameter ( PSDevice  pDevice,
unsigned int  cbFrameLength,
unsigned short  wRate,
unsigned char  byPacketType,
unsigned short pwPhyLen,
unsigned char pbyPhySrv,
unsigned char pbyPhySgn 
)

Definition at line 1845 of file baseband.c.

void BBvClearAntDivSQ3Value ( PSDevice  pDevice)

Definition at line 2761 of file baseband.c.

void BBvExitDeepSleep ( unsigned long  dwIoBase,
unsigned char  byLocalID 
)

Definition at line 2643 of file baseband.c.

void BBvLoopbackOff ( PSDevice  pDevice)

Definition at line 2401 of file baseband.c.

void BBvLoopbackOn ( PSDevice  pDevice)

Definition at line 2347 of file baseband.c.

void BBvPowerSaveModeOFF ( unsigned long  dwIoBase)

Definition at line 2539 of file baseband.c.

void BBvPowerSaveModeON ( unsigned long  dwIoBase)

Definition at line 2517 of file baseband.c.

void BBvReadAllRegs ( unsigned long  dwIoBase,
unsigned char pbyBBRegs 
)

Definition at line 2322 of file baseband.c.

void BBvSetDeepSleep ( unsigned long  dwIoBase,
unsigned char  byLocalID 
)

Definition at line 2636 of file baseband.c.

void BBvSetRxAntennaMode ( unsigned long  dwIoBase,
unsigned char  byAntennaMode 
)

Definition at line 2605 of file baseband.c.

void BBvSetShortSlotTime ( PSDevice  pDevice)

Definition at line 2440 of file baseband.c.

void BBvSetTxAntennaMode ( unsigned long  dwIoBase,
unsigned char  byAntennaMode 
)

Definition at line 2563 of file baseband.c.

void BBvSetVGAGainOffset ( PSDevice  pDevice,
unsigned char  byData 
)

Definition at line 2463 of file baseband.c.

void BBvSoftwareReset ( unsigned long  dwIoBase)

Definition at line 2496 of file baseband.c.

void TimerSQ3CallBack ( void hDeviceContext)

Definition at line 2878 of file baseband.c.

void TimerState1CallBack ( void hDeviceContext)

Definition at line 2926 of file baseband.c.

Variable Documentation

const unsigned short awcFrameTime[MAX_RATE]
Initial value:
=
{10, 20, 55, 110, 24, 36, 48, 72, 96, 144, 192, 216}

Definition at line 1713 of file baseband.c.

unsigned char byVT3253B0_AGC[CB_VT3253B0_AGC][2]

Definition at line 1517 of file baseband.c.

unsigned char byVT3253B0_AGC4_RFMD2959[CB_VT3253B0_AGC_FOR_RFMD2959][2]

Definition at line 791 of file baseband.c.

unsigned char byVT3253B0_AIROHA2230[CB_VT3253B0_INIT_FOR_AIROHA2230][2]

Definition at line 991 of file baseband.c.

unsigned char byVT3253B0_RFMD[CB_VT3253B0_INIT_FOR_RFMD][2]

Definition at line 530 of file baseband.c.

unsigned char byVT3253B0_UW2451[CB_VT3253B0_INIT_FOR_UW2451][2]

Definition at line 1255 of file baseband.c.

unsigned char byVT3253InitTab_RFMD[CB_VT3253_INIT_FOR_RFMD][2]

Definition at line 80 of file baseband.c.