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

Go to the source code of this file.

Macros

#define BY_AL2230_REG_LEN   23
 
#define CB_AL2230_INIT_SEQ   15
 
#define SWITCH_CHANNEL_DELAY_AL2230   200
 
#define AL2230_PWR_IDX_LEN   64
 
#define BY_AL7230_REG_LEN   23
 
#define CB_AL7230_INIT_SEQ   16
 
#define SWITCH_CHANNEL_DELAY_AL7230   200
 
#define AL7230_PWR_IDX_LEN   64
 

Functions

bool s_bAL7230Init (unsigned long dwIoBase)
 
bool s_bAL7230SelectChannel (unsigned long dwIoBase, unsigned char byChannel)
 
bool IFRFbWriteEmbedded (unsigned long dwIoBase, unsigned long dwData)
 
bool RFbAL2230Init (unsigned long dwIoBase)
 
bool RFbAL2230SelectChannel (unsigned long dwIoBase, unsigned char byChannel)
 
bool RFbInit (PSDevice pDevice)
 
bool RFbShutDown (PSDevice pDevice)
 
bool RFbSelectChannel (unsigned long dwIoBase, unsigned char byRFType, unsigned char byChannel)
 
bool RFvWriteWakeProgSyn (unsigned long dwIoBase, unsigned char byRFType, unsigned int uChannel)
 
bool RFbSetPower (PSDevice pDevice, unsigned int uRATE, unsigned int uCH)
 
bool RFbRawSetPower (PSDevice pDevice, unsigned char byPwr, unsigned int uRATE)
 
void RFvRSSITodBm (PSDevice pDevice, unsigned char byCurrRSSI, long *pldBm)
 
bool RFbAL7230SelectChannelPostProcess (unsigned long dwIoBase, unsigned char byOldChannel, unsigned char byNewChannel)
 

Variables

const unsigned long dwAL2230InitTable [CB_AL2230_INIT_SEQ]
 
const unsigned long dwAL2230ChannelTable0 [CB_MAX_CHANNEL]
 
const unsigned long dwAL2230ChannelTable1 [CB_MAX_CHANNEL]
 
unsigned long dwAL2230PowerTable [AL2230_PWR_IDX_LEN]
 
const unsigned long dwAL7230InitTable [CB_AL7230_INIT_SEQ]
 
const unsigned long dwAL7230InitTableAMode [CB_AL7230_INIT_SEQ]
 
const unsigned long dwAL7230ChannelTable0 [CB_MAX_CHANNEL]
 
const unsigned long dwAL7230ChannelTable1 [CB_MAX_CHANNEL]
 
const unsigned long dwAL7230ChannelTable2 [CB_MAX_CHANNEL]
 

Macro Definition Documentation

#define AL2230_PWR_IDX_LEN   64

Definition at line 47 of file rf.c.

#define AL7230_PWR_IDX_LEN   64

Definition at line 53 of file rf.c.

#define BY_AL2230_REG_LEN   23

Definition at line 44 of file rf.c.

#define BY_AL7230_REG_LEN   23

Definition at line 50 of file rf.c.

#define CB_AL2230_INIT_SEQ   15

Definition at line 45 of file rf.c.

#define CB_AL7230_INIT_SEQ   16

Definition at line 51 of file rf.c.

#define SWITCH_CHANNEL_DELAY_AL2230   200

Definition at line 46 of file rf.c.

#define SWITCH_CHANNEL_DELAY_AL7230   200

Definition at line 52 of file rf.c.

Function Documentation

bool IFRFbWriteEmbedded ( unsigned long  dwIoBase,
unsigned long  dwData 
)

Definition at line 589 of file rf.c.

bool RFbAL2230Init ( unsigned long  dwIoBase)

Definition at line 651 of file rf.c.

bool RFbAL2230SelectChannel ( unsigned long  dwIoBase,
unsigned char  byChannel 
)

Definition at line 701 of file rf.c.

bool RFbAL7230SelectChannelPostProcess ( unsigned long  dwIoBase,
unsigned char  byOldChannel,
unsigned char  byNewChannel 
)

Definition at line 1157 of file rf.c.

bool RFbInit ( PSDevice  pDevice)

Definition at line 774 of file rf.c.

bool RFbRawSetPower ( PSDevice  pDevice,
unsigned char  byPwr,
unsigned int  uRATE 
)

Definition at line 1060 of file rf.c.

bool RFbSelectChannel ( unsigned long  dwIoBase,
unsigned char  byRFType,
unsigned char  byChannel 
)

Definition at line 842 of file rf.c.

bool RFbSetPower ( PSDevice  pDevice,
unsigned int  uRATE,
unsigned int  uCH 
)

Definition at line 963 of file rf.c.

bool RFbShutDown ( PSDevice  pDevice)

Definition at line 812 of file rf.c.

void RFvRSSITodBm ( PSDevice  pDevice,
unsigned char  byCurrRSSI,
long pldBm 
)

Definition at line 1127 of file rf.c.

bool RFvWriteWakeProgSyn ( unsigned long  dwIoBase,
unsigned char  byRFType,
unsigned int  uChannel 
)

Definition at line 878 of file rf.c.

bool s_bAL7230Init ( unsigned long  dwIoBase)

Definition at line 441 of file rf.c.

bool s_bAL7230SelectChannel ( unsigned long  dwIoBase,
unsigned char  byChannel 
)

Definition at line 484 of file rf.c.

Variable Documentation

const unsigned long dwAL2230ChannelTable0[CB_MAX_CHANNEL]
Initial value:

Definition at line 79 of file rf.c.

const unsigned long dwAL2230ChannelTable1[CB_MAX_CHANNEL]
Initial value:

Definition at line 96 of file rf.c.

const unsigned long dwAL2230InitTable[CB_AL2230_INIT_SEQ]
Initial value:

Definition at line 61 of file rf.c.

unsigned long dwAL2230PowerTable[AL2230_PWR_IDX_LEN]

Definition at line 113 of file rf.c.

const unsigned long dwAL7230ChannelTable0[CB_MAX_CHANNEL]

Definition at line 226 of file rf.c.

const unsigned long dwAL7230ChannelTable1[CB_MAX_CHANNEL]

Definition at line 292 of file rf.c.

const unsigned long dwAL7230ChannelTable2[CB_MAX_CHANNEL]

Definition at line 356 of file rf.c.

const unsigned long dwAL7230InitTable[CB_AL7230_INIT_SEQ]
Initial value:

Definition at line 183 of file rf.c.

const unsigned long dwAL7230InitTableAMode[CB_AL7230_INIT_SEQ]
Initial value:

Definition at line 206 of file rf.c.