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 "rf.h"
#include "baseband.h"
#include "control.h"
#include "rndis.h"
#include "datarate.h"

Go to the source code of this file.

Macros

#define BY_AL2230_REG_LEN   23
 
#define CB_AL2230_INIT_SEQ   15
 
#define AL2230_PWR_IDX_LEN   64
 
#define BY_AL7230_REG_LEN   23
 
#define CB_AL7230_INIT_SEQ   16
 
#define AL7230_PWR_IDX_LEN   64
 
#define BY_VT3226_REG_LEN   23
 
#define CB_VT3226_INIT_SEQ   11
 
#define VT3226_PWR_IDX_LEN   64
 
#define BY_VT3342_REG_LEN   23
 
#define CB_VT3342_INIT_SEQ   13
 
#define VT3342_PWR_IDX_LEN   64
 

Functions

BOOL IFRFbWriteEmbedded (PSDevice pDevice, DWORD dwData)
 
BOOL RFbSetPower (PSDevice pDevice, unsigned int uRATE, unsigned int uCH)
 
BOOL RFbRawSetPower (PSDevice pDevice, BYTE byPwr, unsigned int uRATE)
 
void RFvRSSITodBm (PSDevice pDevice, BYTE byCurrRSSI, long *pldBm)
 
void RFbRFTableDownload (PSDevice pDevice)
 
BOOL s_bVT3226D0_11bLoCurrentAdjust (PSDevice pDevice, BYTE byChannel, BOOL b11bMode)
 

Variables

BYTE abyAL2230InitTable [CB_AL2230_INIT_SEQ][3]
 
BYTE abyAL2230ChannelTable0 [CB_MAX_CHANNEL_24G][3]
 
BYTE abyAL2230ChannelTable1 [CB_MAX_CHANNEL_24G][3]
 
BYTE abyAL7230InitTable [CB_AL7230_INIT_SEQ][3]
 
BYTE abyAL7230InitTableAMode [CB_AL7230_INIT_SEQ][3]
 
BYTE abyAL7230ChannelTable0 [CB_MAX_CHANNEL][3]
 
BYTE abyAL7230ChannelTable1 [CB_MAX_CHANNEL][3]
 
BYTE abyAL7230ChannelTable2 [CB_MAX_CHANNEL][3]
 
BYTE abyVT3226_InitTable [CB_VT3226_INIT_SEQ][3]
 {{RobertYu:20051111
 
BYTE abyVT3226D0_InitTable [CB_VT3226_INIT_SEQ][3]
 
BYTE abyVT3226_ChannelTable0 [CB_MAX_CHANNEL_24G][3]
 
BYTE abyVT3226_ChannelTable1 [CB_MAX_CHANNEL_24G][3]
 
DWORD dwVT3226D0LoCurrentTable [CB_MAX_CHANNEL_24G]
 }}RobertYu
 
BYTE abyVT3342A0_InitTable [CB_VT3342_INIT_SEQ][3]
 
BYTE abyVT3342_ChannelTable0 [CB_MAX_CHANNEL][3]
 
BYTE abyVT3342_ChannelTable1 [CB_MAX_CHANNEL][3]
 
const DWORD dwAL2230PowerTable [AL2230_PWR_IDX_LEN]
 
const BYTE RFaby11aChannelIndex [200]
 

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 51 of file rf.c.

#define BY_AL2230_REG_LEN   23

Definition at line 45 of file rf.c.

#define BY_AL7230_REG_LEN   23

Definition at line 49 of file rf.c.

#define BY_VT3226_REG_LEN   23

Definition at line 54 of file rf.c.

#define BY_VT3342_REG_LEN   23

Definition at line 60 of file rf.c.

#define CB_AL2230_INIT_SEQ   15

Definition at line 46 of file rf.c.

#define CB_AL7230_INIT_SEQ   16

Definition at line 50 of file rf.c.

#define CB_VT3226_INIT_SEQ   11

Definition at line 55 of file rf.c.

#define CB_VT3342_INIT_SEQ   13

Definition at line 61 of file rf.c.

#define VT3226_PWR_IDX_LEN   64

Definition at line 56 of file rf.c.

#define VT3342_PWR_IDX_LEN   64

Definition at line 62 of file rf.c.

Function Documentation

BOOL IFRFbWriteEmbedded ( PSDevice  pDevice,
DWORD  dwData 
)

Definition at line 725 of file rf.c.

BOOL RFbRawSetPower ( PSDevice  pDevice,
BYTE  byPwr,
unsigned int  uRATE 
)

Definition at line 813 of file rf.c.

void RFbRFTableDownload ( PSDevice  pDevice)

Definition at line 988 of file rf.c.

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

Definition at line 759 of file rf.c.

void RFvRSSITodBm ( PSDevice  pDevice,
BYTE  byCurrRSSI,
long pldBm 
)

Definition at line 958 of file rf.c.

BOOL s_bVT3226D0_11bLoCurrentAdjust ( PSDevice  pDevice,
BYTE  byChannel,
BOOL  b11bMode 
)

Definition at line 1135 of file rf.c.

Variable Documentation

BYTE abyAL2230ChannelTable0[CB_MAX_CHANNEL_24G][3]
Initial value:
= {
{0x03, 0xF7, 0x90},
{0x03, 0xF7, 0x90},
{0x03, 0xE7, 0x90},
{0x03, 0xE7, 0x90},
{0x03, 0xF7, 0xA0},
{0x03, 0xF7, 0xA0},
{0x03, 0xE7, 0xA0},
{0x03, 0xE7, 0xA0},
{0x03, 0xF7, 0xB0},
{0x03, 0xF7, 0xB0},
{0x03, 0xE7, 0xB0},
{0x03, 0xE7, 0xB0},
{0x03, 0xF7, 0xC0},
{0x03, 0xE7, 0xC0}
}

Definition at line 90 of file rf.c.

BYTE abyAL2230ChannelTable1[CB_MAX_CHANNEL_24G][3]
Initial value:
= {
{0x03, 0x33, 0x31},
{0x0B, 0x33, 0x31},
{0x03, 0x33, 0x31},
{0x0B, 0x33, 0x31},
{0x03, 0x33, 0x31},
{0x0B, 0x33, 0x31},
{0x03, 0x33, 0x31},
{0x0B, 0x33, 0x31},
{0x03, 0x33, 0x31},
{0x0B, 0x33, 0x31},
{0x03, 0x33, 0x31},
{0x0B, 0x33, 0x31},
{0x03, 0x33, 0x31},
{0x06, 0x66, 0x61}
}

Definition at line 107 of file rf.c.

BYTE abyAL2230InitTable[CB_AL2230_INIT_SEQ][3]
Initial value:
= {
{0x03, 0xF7, 0x90},
{0x03, 0x33, 0x31},
{0x01, 0xB8, 0x02},
{0x00, 0xFF, 0xF3},
{0x00, 0x05, 0xA4},
{0x0F, 0x4D, 0xC5},
{0x08, 0x05, 0xB6},
{0x01, 0x47, 0xC7},
{0x00, 0x06, 0x88},
{0x04, 0x03, 0xB9},
{0x00, 0xDB, 0xBA},
{0x00, 0x09, 0x9B},
{0x0B, 0xDF, 0xFC},
{0x00, 0x00, 0x0D},
{0x00, 0x58, 0x0F}
}

Definition at line 72 of file rf.c.

BYTE abyAL7230ChannelTable0[CB_MAX_CHANNEL][3]

Definition at line 168 of file rf.c.

BYTE abyAL7230ChannelTable1[CB_MAX_CHANNEL][3]

Definition at line 234 of file rf.c.

BYTE abyAL7230ChannelTable2[CB_MAX_CHANNEL][3]

Definition at line 298 of file rf.c.

BYTE abyAL7230InitTable[CB_AL7230_INIT_SEQ][3]
Initial value:
= {
{0x20, 0x37, 0x90},
{0x13, 0x33, 0x31},
{0x84, 0x1F, 0xF2},
{0x3F, 0xDF, 0xA3},
{0x7F, 0xD7, 0x84},
{0x80, 0x2B, 0x55},
{0x56, 0xAF, 0x36},
{0xCE, 0x02, 0x07},
{0x6E, 0xBC, 0x98},
{0x22, 0x1B, 0xB9},
{0xE0, 0x00, 0x0A},
{0x08, 0x03, 0x1B},
{0x00, 0x0A, 0x3C},
{0xFF, 0xFF, 0xFD},
{0x00, 0x00, 0x0E},
{0x1A, 0xBA, 0x8F}
}

Definition at line 126 of file rf.c.

BYTE abyAL7230InitTableAMode[CB_AL7230_INIT_SEQ][3]
Initial value:
= {
{0x2F, 0xF5, 0x20},
{0x00, 0x00, 0x01},
{0x45, 0x1F, 0xE2},
{0x5F, 0xDF, 0xA3},
{0x6F, 0xD7, 0x84},
{0x85, 0x3F, 0x55},
{0x56, 0xAF, 0x36},
{0xCE, 0x02, 0x07},
{0x6E, 0xBC, 0x98},
{0x22, 0x1B, 0xB9},
{0xE0, 0x60, 0x0A},
{0x08, 0x03, 0x1B},
{0x00, 0x14, 0x7C},
{0xFF, 0xFF, 0xFD},
{0x00, 0x00, 0x0E},
{0x12, 0xBA, 0xCF}
}

Definition at line 149 of file rf.c.

BYTE abyVT3226_ChannelTable0[CB_MAX_CHANNEL_24G][3]
Initial value:
= {
{0x01, 0x97, 0x83},
{0x01, 0x97, 0x83},
{0x01, 0x97, 0x93},
{0x01, 0x97, 0x93},
{0x01, 0x97, 0x93},
{0x01, 0x97, 0x93},
{0x01, 0x97, 0xA3},
{0x01, 0x97, 0xA3},
{0x01, 0x97, 0xA3},
{0x01, 0x97, 0xA3},
{0x01, 0x97, 0xB3},
{0x01, 0x97, 0xB3},
{0x01, 0x97, 0xB3},
{0x03, 0x37, 0xC3}
}

Definition at line 392 of file rf.c.

BYTE abyVT3226_ChannelTable1[CB_MAX_CHANNEL_24G][3]
Initial value:
= {
{0x02, 0x66, 0x64},
{0x03, 0x66, 0x64},
{0x00, 0x66, 0x64},
{0x01, 0x66, 0x64},
{0x02, 0x66, 0x64},
{0x03, 0x66, 0x64},
{0x00, 0x66, 0x64},
{0x01, 0x66, 0x64},
{0x02, 0x66, 0x64},
{0x03, 0x66, 0x64},
{0x00, 0x66, 0x64},
{0x01, 0x66, 0x64},
{0x02, 0x66, 0x64},
{0x00, 0xCC, 0xC4}
}

Definition at line 409 of file rf.c.

BYTE abyVT3226_InitTable[CB_VT3226_INIT_SEQ][3]
Initial value:
= {
{0x03, 0xFF, 0x80},
{0x02, 0x82, 0xA1},
{0x03, 0xC6, 0xA2},
{0x01, 0x97, 0x93},
{0x03, 0x66, 0x64},
{0x00, 0x61, 0xA5},
{0x01, 0x7B, 0xD6},
{0x00, 0x80, 0x17},
{0x03, 0xF8, 0x08},
{0x00, 0x02, 0x39},
{0x02, 0x00, 0x2A}
}

{{RobertYu:20051111

Definition at line 363 of file rf.c.

BYTE abyVT3226D0_InitTable[CB_VT3226_INIT_SEQ][3]
Initial value:
= {
{0x03, 0xFF, 0x80},
{0x03, 0x02, 0x21},
{0x03, 0xC6, 0xA2},
{0x01, 0x97, 0x93},
{0x03, 0x66, 0x64},
{0x00, 0x71, 0xA5},
{0x01, 0x15, 0xC6},
{0x01, 0x2E, 0x07},
{0x00, 0x58, 0x08},
{0x00, 0x02, 0x79},
{0x02, 0x01, 0xAA}
}

Definition at line 377 of file rf.c.

BYTE abyVT3342_ChannelTable0[CB_MAX_CHANNEL][3]

Definition at line 472 of file rf.c.

BYTE abyVT3342_ChannelTable1[CB_MAX_CHANNEL][3]

Definition at line 538 of file rf.c.

BYTE abyVT3342A0_InitTable[CB_VT3342_INIT_SEQ][3]
Initial value:
= {
{0x03, 0xFF, 0x80},
{0x02, 0x08, 0x81},
{0x00, 0xC6, 0x02},
{0x03, 0xC5, 0x13},
{0x00, 0xEE, 0xE4},
{0x00, 0x71, 0xA5},
{0x01, 0x75, 0x46},
{0x01, 0x40, 0x27},
{0x01, 0x54, 0x08},
{0x00, 0x01, 0x69},
{0x02, 0x00, 0xAA},
{0x00, 0x08, 0xCB},
{0x01, 0x70, 0x0C}
}

Definition at line 449 of file rf.c.

const DWORD dwAL2230PowerTable[AL2230_PWR_IDX_LEN]

Definition at line 609 of file rf.c.

DWORD dwVT3226D0LoCurrentTable[CB_MAX_CHANNEL_24G]
Initial value:

}}RobertYu

Definition at line 429 of file rf.c.

const BYTE RFaby11aChannelIndex[200]
Initial value:
= {
00, 00, 00, 00, 00, 00, 23, 24, 25, 00,
26, 27, 00, 00, 00, 28, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 29, 00, 30, 00, 31, 00, 32,
00, 33, 00, 34, 00, 35, 00, 36, 00, 00,
00, 37, 00, 00, 00, 38, 00, 00, 00, 39,
00, 00, 00, 40, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00, 00, 41,
00, 00, 00, 42, 00, 00, 00, 43, 00, 00,
00, 44, 00, 00, 00, 45, 00, 00, 00, 46,
00, 00, 00, 47, 00, 00, 00, 48, 00, 00,
00, 49, 00, 00, 00, 50, 00, 00, 00, 51,
00, 00, 00, 00, 00, 00, 00, 00, 52, 00,
00, 00, 53, 00, 00, 00, 54, 00, 00, 00,
55, 00, 00, 00, 56, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 15, 16, 17, 00, 18, 19, 20, 00,
00, 21, 00, 00, 00, 22, 00, 00, 00, 00
}

Definition at line 685 of file rf.c.