mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-14 00:59:37 +00:00
rtl8188eu: Remove useless IN and OUT from parameter lists
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
460e260891
commit
d26bbefc3a
42 changed files with 1379 additions and 1410 deletions
222
core/rtw_efuse.c
222
core/rtw_efuse.c
|
@ -52,14 +52,14 @@ u8 fakeBTEfuseModifiedMap[EFUSE_BT_MAX_MAP_LEN]={0};
|
||||||
|
|
||||||
bool
|
bool
|
||||||
Efuse_Read1ByteFromFakeContent(
|
Efuse_Read1ByteFromFakeContent(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN OUT u8 *Value );
|
u8 *Value );
|
||||||
bool
|
bool
|
||||||
Efuse_Read1ByteFromFakeContent(
|
Efuse_Read1ByteFromFakeContent(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN OUT u8 *Value )
|
u8 *Value )
|
||||||
{
|
{
|
||||||
if(Offset >= EFUSE_MAX_HW_SIZE)
|
if(Offset >= EFUSE_MAX_HW_SIZE)
|
||||||
{
|
{
|
||||||
|
@ -75,14 +75,14 @@ Efuse_Read1ByteFromFakeContent(
|
||||||
|
|
||||||
bool
|
bool
|
||||||
Efuse_Write1ByteToFakeContent(
|
Efuse_Write1ByteToFakeContent(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN u8 Value );
|
u8 Value );
|
||||||
bool
|
bool
|
||||||
Efuse_Write1ByteToFakeContent(
|
Efuse_Write1ByteToFakeContent(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN u8 Value )
|
u8 Value )
|
||||||
{
|
{
|
||||||
if(Offset >= EFUSE_MAX_HW_SIZE)
|
if(Offset >= EFUSE_MAX_HW_SIZE)
|
||||||
{
|
{
|
||||||
|
@ -117,9 +117,9 @@ Efuse_Write1ByteToFakeContent(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
Efuse_PowerSwitch(
|
Efuse_PowerSwitch(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 bWrite,
|
u8 bWrite,
|
||||||
IN u8 PwrState)
|
u8 PwrState)
|
||||||
{
|
{
|
||||||
pAdapter->HalFunc.EfusePowerSwitch(pAdapter, bWrite, PwrState);
|
pAdapter->HalFunc.EfusePowerSwitch(pAdapter, bWrite, PwrState);
|
||||||
}
|
}
|
||||||
|
@ -142,9 +142,9 @@ Efuse_PowerSwitch(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
u16
|
u16
|
||||||
Efuse_GetCurrentSize(
|
Efuse_GetCurrentSize(
|
||||||
IN struct adapter * pAdapter,
|
struct adapter * pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
u16 ret=0;
|
u16 ret=0;
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ Efuse_GetCurrentSize(
|
||||||
|
|
||||||
/* 11/16/2008 MH Add description. Get current efuse area enabled word!!. */
|
/* 11/16/2008 MH Add description. Get current efuse area enabled word!!. */
|
||||||
u8
|
u8
|
||||||
Efuse_CalculateWordCnts(IN u8 word_en)
|
Efuse_CalculateWordCnts(u8 word_en)
|
||||||
{
|
{
|
||||||
u8 word_cnts = 0;
|
u8 word_cnts = 0;
|
||||||
if(!(word_en & BIT(0))) word_cnts++; /* 0 : write enable */
|
if(!(word_en & BIT(0))) word_cnts++; /* 0 : write enable */
|
||||||
|
@ -181,7 +181,7 @@ ReadEFuseByte(
|
||||||
struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
u16 _offset,
|
u16 _offset,
|
||||||
u8 *pbuf,
|
u8 *pbuf,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
u32 value32;
|
u32 value32;
|
||||||
u8 readbyte;
|
u8 readbyte;
|
||||||
|
@ -251,7 +251,7 @@ efuse_ReadEFuse(
|
||||||
u16 _offset,
|
u16 _offset,
|
||||||
u16 _size_byte,
|
u16 _size_byte,
|
||||||
u8 *pbuf,
|
u8 *pbuf,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
efuse_ReadEFuse(
|
efuse_ReadEFuse(
|
||||||
|
@ -260,7 +260,7 @@ efuse_ReadEFuse(
|
||||||
u16 _offset,
|
u16 _offset,
|
||||||
u16 _size_byte,
|
u16 _size_byte,
|
||||||
u8 *pbuf,
|
u8 *pbuf,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
Adapter->HalFunc.ReadEFuse(Adapter, efuseType, _offset, _size_byte, pbuf, bPseudoTest);
|
Adapter->HalFunc.ReadEFuse(Adapter, efuseType, _offset, _size_byte, pbuf, bPseudoTest);
|
||||||
|
@ -268,11 +268,11 @@ efuse_ReadEFuse(
|
||||||
|
|
||||||
void
|
void
|
||||||
EFUSE_GetEfuseDefinition(
|
EFUSE_GetEfuseDefinition(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u8 type,
|
u8 type,
|
||||||
OUT void *pOut,
|
void *pOut,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
pAdapter->HalFunc.EFUSEGetEfuseDefinition(pAdapter, efuseType, type, pOut, bPseudoTest);
|
pAdapter->HalFunc.EFUSEGetEfuseDefinition(pAdapter, efuseType, type, pOut, bPseudoTest);
|
||||||
|
@ -296,8 +296,8 @@ EFUSE_GetEfuseDefinition(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
u8
|
u8
|
||||||
EFUSE_Read1Byte(
|
EFUSE_Read1Byte(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u16 Address)
|
u16 Address)
|
||||||
{
|
{
|
||||||
u8 data;
|
u8 data;
|
||||||
u8 Bytetemp = {0x00};
|
u8 Bytetemp = {0x00};
|
||||||
|
@ -361,14 +361,14 @@ EFUSE_Read1Byte(
|
||||||
|
|
||||||
void
|
void
|
||||||
EFUSE_Write1Byte(
|
EFUSE_Write1Byte(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u16 Address,
|
u16 Address,
|
||||||
IN u8 Value);
|
u8 Value);
|
||||||
void
|
void
|
||||||
EFUSE_Write1Byte(
|
EFUSE_Write1Byte(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u16 Address,
|
u16 Address,
|
||||||
IN u8 Value)
|
u8 Value)
|
||||||
{
|
{
|
||||||
u8 Bytetemp = {0x00};
|
u8 Bytetemp = {0x00};
|
||||||
u8 temp = {0x00};
|
u8 temp = {0x00};
|
||||||
|
@ -414,10 +414,10 @@ EFUSE_Write1Byte(
|
||||||
/* 11/16/2008 MH Read one byte from real Efuse. */
|
/* 11/16/2008 MH Read one byte from real Efuse. */
|
||||||
u8
|
u8
|
||||||
efuse_OneByteRead(
|
efuse_OneByteRead(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u16 addr,
|
u16 addr,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
u8 tmpidx = 0;
|
u8 tmpidx = 0;
|
||||||
u8 bResult;
|
u8 bResult;
|
||||||
|
@ -455,10 +455,10 @@ efuse_OneByteRead(
|
||||||
/* 11/16/2008 MH Write one byte to reald Efuse. */
|
/* 11/16/2008 MH Write one byte to reald Efuse. */
|
||||||
u8
|
u8
|
||||||
efuse_OneByteWrite(
|
efuse_OneByteWrite(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u16 addr,
|
u16 addr,
|
||||||
IN u8 data,
|
u8 data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
u8 tmpidx = 0;
|
u8 tmpidx = 0;
|
||||||
u8 bResult;
|
u8 bResult;
|
||||||
|
@ -498,10 +498,10 @@ efuse_OneByteWrite(
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
Efuse_PgPacketRead( IN struct adapter *pAdapter,
|
Efuse_PgPacketRead( struct adapter *pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret=0;
|
int ret=0;
|
||||||
|
|
||||||
|
@ -511,11 +511,11 @@ Efuse_PgPacketRead( IN struct adapter *pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
Efuse_PgPacketWrite(IN struct adapter *pAdapter,
|
Efuse_PgPacketWrite(struct adapter *pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -526,11 +526,11 @@ Efuse_PgPacketWrite(IN struct adapter *pAdapter,
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
Efuse_PgPacketWrite_BT(IN struct adapter *pAdapter,
|
Efuse_PgPacketWrite_BT(struct adapter *pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -557,9 +557,9 @@ Efuse_PgPacketWrite_BT(IN struct adapter *pAdapter,
|
||||||
*
|
*
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
efuse_WordEnableDataRead(IN u8 word_en,
|
efuse_WordEnableDataRead(u8 word_en,
|
||||||
IN u8 *sourdata,
|
u8 *sourdata,
|
||||||
IN u8 *targetdata)
|
u8 *targetdata)
|
||||||
{
|
{
|
||||||
if (!(word_en&BIT(0)))
|
if (!(word_en&BIT(0)))
|
||||||
{
|
{
|
||||||
|
@ -585,11 +585,11 @@ efuse_WordEnableDataRead(IN u8 word_en,
|
||||||
|
|
||||||
|
|
||||||
u8
|
u8
|
||||||
Efuse_WordEnableDataWrite( IN struct adapter *pAdapter,
|
Efuse_WordEnableDataWrite( struct adapter *pAdapter,
|
||||||
IN u16 efuse_addr,
|
u16 efuse_addr,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
u8 ret=0;
|
u8 ret=0;
|
||||||
|
|
||||||
|
@ -916,16 +916,16 @@ exit:
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
Efuse_ReadAllMap(
|
Efuse_ReadAllMap(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN OUT u8 *Efuse,
|
u8 *Efuse,
|
||||||
IN bool bPseudoTest);
|
bool bPseudoTest);
|
||||||
void
|
void
|
||||||
Efuse_ReadAllMap(
|
Efuse_ReadAllMap(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN OUT u8 *Efuse,
|
u8 *Efuse,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
u16 mapLen=0;
|
u16 mapLen=0;
|
||||||
|
|
||||||
|
@ -958,9 +958,9 @@ Efuse_ReadAllMap(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
efuse_ShadowRead1Byte(
|
efuse_ShadowRead1Byte(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN OUT u8 *Value)
|
u8 *Value)
|
||||||
{
|
{
|
||||||
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
||||||
|
|
||||||
|
@ -971,9 +971,9 @@ efuse_ShadowRead1Byte(
|
||||||
/* Read Two Bytes */
|
/* Read Two Bytes */
|
||||||
static void
|
static void
|
||||||
efuse_ShadowRead2Byte(
|
efuse_ShadowRead2Byte(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN OUT u16 *Value)
|
u16 *Value)
|
||||||
{
|
{
|
||||||
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
||||||
|
|
||||||
|
@ -985,9 +985,9 @@ efuse_ShadowRead2Byte(
|
||||||
/* Read Four Bytes */
|
/* Read Four Bytes */
|
||||||
static void
|
static void
|
||||||
efuse_ShadowRead4Byte(
|
efuse_ShadowRead4Byte(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN OUT u32 *Value)
|
u32 *Value)
|
||||||
{
|
{
|
||||||
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
||||||
|
|
||||||
|
@ -1020,15 +1020,15 @@ efuse_ShadowRead4Byte(
|
||||||
#ifdef PLATFORM
|
#ifdef PLATFORM
|
||||||
static void
|
static void
|
||||||
efuse_ShadowWrite1Byte(
|
efuse_ShadowWrite1Byte(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN u8 Value);
|
u8 Value);
|
||||||
#endif /* PLATFORM */
|
#endif /* PLATFORM */
|
||||||
static void
|
static void
|
||||||
efuse_ShadowWrite1Byte(
|
efuse_ShadowWrite1Byte(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN u8 Value)
|
u8 Value)
|
||||||
{
|
{
|
||||||
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
||||||
|
|
||||||
|
@ -1039,9 +1039,9 @@ efuse_ShadowWrite1Byte(
|
||||||
/* Write Two Bytes */
|
/* Write Two Bytes */
|
||||||
static void
|
static void
|
||||||
efuse_ShadowWrite2Byte(
|
efuse_ShadowWrite2Byte(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN u16 Value)
|
u16 Value)
|
||||||
{
|
{
|
||||||
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
||||||
|
|
||||||
|
@ -1053,9 +1053,9 @@ efuse_ShadowWrite2Byte(
|
||||||
/* Write Four Bytes */
|
/* Write Four Bytes */
|
||||||
static void
|
static void
|
||||||
efuse_ShadowWrite4Byte(
|
efuse_ShadowWrite4Byte(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN u32 Value)
|
u32 Value)
|
||||||
{
|
{
|
||||||
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
||||||
|
|
||||||
|
@ -1083,9 +1083,9 @@ efuse_ShadowWrite4Byte(
|
||||||
*
|
*
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void EFUSE_ShadowMapUpdate(
|
void EFUSE_ShadowMapUpdate(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
||||||
u16 mapLen=0;
|
u16 mapLen=0;
|
||||||
|
@ -1116,10 +1116,10 @@ void EFUSE_ShadowMapUpdate(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
EFUSE_ShadowRead(
|
EFUSE_ShadowRead(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 Type,
|
u8 Type,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN OUT u32 *Value )
|
u32 *Value )
|
||||||
{
|
{
|
||||||
if (Type == 1)
|
if (Type == 1)
|
||||||
efuse_ShadowRead1Byte(pAdapter, Offset, (u8 *)Value);
|
efuse_ShadowRead1Byte(pAdapter, Offset, (u8 *)Value);
|
||||||
|
@ -1148,16 +1148,16 @@ EFUSE_ShadowRead(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
EFUSE_ShadowWrite(
|
EFUSE_ShadowWrite(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 Type,
|
u8 Type,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN OUT u32 Value);
|
u32 Value);
|
||||||
void
|
void
|
||||||
EFUSE_ShadowWrite(
|
EFUSE_ShadowWrite(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 Type,
|
u8 Type,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN OUT u32 Value)
|
u32 Value)
|
||||||
{
|
{
|
||||||
#if (MP_DRIVER == 0)
|
#if (MP_DRIVER == 0)
|
||||||
return;
|
return;
|
||||||
|
@ -1177,11 +1177,11 @@ EFUSE_ShadowWrite(
|
||||||
|
|
||||||
void
|
void
|
||||||
Efuse_InitSomeVar(
|
Efuse_InitSomeVar(
|
||||||
IN struct adapter *pAdapter
|
struct adapter *pAdapter
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
Efuse_InitSomeVar(
|
Efuse_InitSomeVar(
|
||||||
IN struct adapter *pAdapter
|
struct adapter *pAdapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 i;
|
u8 i;
|
||||||
|
|
|
@ -8000,8 +8000,8 @@ Following are some utitity fuctions for WiFi MLME
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
bool IsLegal5GChannel(
|
bool IsLegal5GChannel(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN u8 channel)
|
u8 channel)
|
||||||
{
|
{
|
||||||
|
|
||||||
int i=0;
|
int i=0;
|
||||||
|
|
|
@ -627,7 +627,7 @@ void LPS_Leave(struct adapter *padapter)
|
||||||
/* Description: Leave all power save mode: LPS, FwLPS, IPS if needed. */
|
/* Description: Leave all power save mode: LPS, FwLPS, IPS if needed. */
|
||||||
/* Move code to function by tynli. 2010.03.26. */
|
/* Move code to function by tynli. 2010.03.26. */
|
||||||
/* */
|
/* */
|
||||||
void LeaveAllPowerSaveMode(IN struct adapter *Adapter)
|
void LeaveAllPowerSaveMode(struct adapter *Adapter)
|
||||||
{
|
{
|
||||||
struct mlme_priv *pmlmepriv = &(Adapter->mlmepriv);
|
struct mlme_priv *pmlmepriv = &(Adapter->mlmepriv);
|
||||||
u8 enqueue = 0;
|
u8 enqueue = 0;
|
||||||
|
|
|
@ -302,8 +302,8 @@ void get_rate_set(struct adapter *padapter, unsigned char *pbssrate, int *bssrat
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateBrateTbl(
|
void UpdateBrateTbl(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN u8 *mBratesOS
|
u8 *mBratesOS
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 i;
|
u8 i;
|
||||||
|
|
|
@ -105,9 +105,9 @@ static u16 DynamicTxRPTTiming[6]={0x186a, 0x30d4, 0x493e, 0x61a8, 0x7a12 ,0x927c
|
||||||
|
|
||||||
static void
|
static void
|
||||||
odm_SetTxRPTTiming_8188E(
|
odm_SetTxRPTTiming_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PODM_RA_INFO_T pRaInfo,
|
PODM_RA_INFO_T pRaInfo,
|
||||||
IN u8 extend
|
u8 extend
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 idx = 0;
|
u8 idx = 0;
|
||||||
|
@ -134,8 +134,8 @@ odm_SetTxRPTTiming_8188E(
|
||||||
|
|
||||||
static int
|
static int
|
||||||
odm_RateDown_8188E(
|
odm_RateDown_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PODM_RA_INFO_T pRaInfo
|
PODM_RA_INFO_T pRaInfo
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 RateID, LowestRate, HighestRate;
|
u8 RateID, LowestRate, HighestRate;
|
||||||
|
@ -207,8 +207,8 @@ RateDownFinish:
|
||||||
|
|
||||||
static int
|
static int
|
||||||
odm_RateUp_8188E(
|
odm_RateUp_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PODM_RA_INFO_T pRaInfo
|
PODM_RA_INFO_T pRaInfo
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 RateID, HighestRate;
|
u8 RateID, HighestRate;
|
||||||
|
@ -273,7 +273,7 @@ RateUpfinish:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void odm_ResetRaCounter_8188E( IN PODM_RA_INFO_T pRaInfo){
|
static void odm_ResetRaCounter_8188E(PODM_RA_INFO_T pRaInfo){
|
||||||
u8 RateID;
|
u8 RateID;
|
||||||
RateID=pRaInfo->DecisionRate;
|
RateID=pRaInfo->DecisionRate;
|
||||||
pRaInfo->NscUp=(N_THRESHOLD_HIGH[RateID]+N_THRESHOLD_LOW[RateID])>>1;
|
pRaInfo->NscUp=(N_THRESHOLD_HIGH[RateID]+N_THRESHOLD_LOW[RateID])>>1;
|
||||||
|
@ -282,8 +282,8 @@ static void odm_ResetRaCounter_8188E( IN PODM_RA_INFO_T pRaInfo){
|
||||||
|
|
||||||
static void
|
static void
|
||||||
odm_RateDecision_8188E(
|
odm_RateDecision_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PODM_RA_INFO_T pRaInfo
|
PODM_RA_INFO_T pRaInfo
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 RateID = 0, RtyPtID = 0, PenaltyID1 = 0, PenaltyID2 = 0;
|
u8 RateID = 0, RtyPtID = 0, PenaltyID1 = 0, PenaltyID2 = 0;
|
||||||
|
@ -374,8 +374,8 @@ odm_RateDecision_8188E(
|
||||||
|
|
||||||
static int
|
static int
|
||||||
odm_ARFBRefresh_8188E(
|
odm_ARFBRefresh_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PODM_RA_INFO_T pRaInfo
|
PODM_RA_INFO_T pRaInfo
|
||||||
)
|
)
|
||||||
{ /* Wilson 2011/10/26 */
|
{ /* Wilson 2011/10/26 */
|
||||||
u32 MaskFromReg;
|
u32 MaskFromReg;
|
||||||
|
@ -478,7 +478,7 @@ odm_ARFBRefresh_8188E(
|
||||||
#if POWER_TRAINING_ACTIVE == 1
|
#if POWER_TRAINING_ACTIVE == 1
|
||||||
static void
|
static void
|
||||||
odm_PTTryState_8188E(
|
odm_PTTryState_8188E(
|
||||||
IN PODM_RA_INFO_T pRaInfo
|
PODM_RA_INFO_T pRaInfo
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
pRaInfo->PTTryState=0;
|
pRaInfo->PTTryState=0;
|
||||||
|
@ -538,7 +538,7 @@ odm_PTTryState_8188E(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
odm_PTDecision_8188E(
|
odm_PTDecision_8188E(
|
||||||
IN PODM_RA_INFO_T pRaInfo
|
PODM_RA_INFO_T pRaInfo
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 stage_BUF;
|
u8 stage_BUF;
|
||||||
|
@ -581,8 +581,8 @@ odm_PTDecision_8188E(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
odm_RATxRPTTimerSetting(
|
odm_RATxRPTTimerSetting(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u16 minRptTime
|
u16 minRptTime
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE,(" =====>odm_RATxRPTTimerSetting()\n"));
|
ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE,(" =====>odm_RATxRPTTimerSetting()\n"));
|
||||||
|
@ -600,7 +600,7 @@ odm_RATxRPTTimerSetting(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RASupport_Init(
|
ODM_RASupport_Init(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_LOUD, ("=====>ODM_RASupport_Init()\n"));
|
ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_LOUD, ("=====>ODM_RASupport_Init()\n"));
|
||||||
|
@ -615,8 +615,8 @@ ODM_RASupport_Init(
|
||||||
|
|
||||||
int
|
int
|
||||||
ODM_RAInfo_Init(
|
ODM_RAInfo_Init(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 MacID
|
u8 MacID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PODM_RA_INFO_T pRaInfo = &pDM_Odm->RAInfo[MacID];
|
PODM_RA_INFO_T pRaInfo = &pDM_Odm->RAInfo[MacID];
|
||||||
|
@ -681,7 +681,7 @@ ODM_RAInfo_Init(
|
||||||
|
|
||||||
int
|
int
|
||||||
ODM_RAInfo_Init_all(
|
ODM_RAInfo_Init_all(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 MacID = 0;
|
u8 MacID = 0;
|
||||||
|
@ -698,8 +698,8 @@ ODM_RAInfo_Init_all(
|
||||||
|
|
||||||
u8
|
u8
|
||||||
ODM_RA_GetShortGI_8188E(
|
ODM_RA_GetShortGI_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 MacID
|
u8 MacID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if((NULL == pDM_Odm) || (MacID >= ASSOCIATE_ENTRY_NUM))
|
if((NULL == pDM_Odm) || (MacID >= ASSOCIATE_ENTRY_NUM))
|
||||||
|
@ -711,8 +711,8 @@ ODM_RA_GetShortGI_8188E(
|
||||||
|
|
||||||
u8
|
u8
|
||||||
ODM_RA_GetDecisionRate_8188E(
|
ODM_RA_GetDecisionRate_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 MacID
|
u8 MacID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 DecisionRate = 0;
|
u8 DecisionRate = 0;
|
||||||
|
@ -727,8 +727,8 @@ ODM_RA_GetDecisionRate_8188E(
|
||||||
|
|
||||||
u8
|
u8
|
||||||
ODM_RA_GetHwPwrStatus_8188E(
|
ODM_RA_GetHwPwrStatus_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 MacID
|
u8 MacID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 PTStage = 5;
|
u8 PTStage = 5;
|
||||||
|
@ -742,11 +742,11 @@ ODM_RA_GetHwPwrStatus_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RA_UpdateRateInfo_8188E(
|
ODM_RA_UpdateRateInfo_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 MacID,
|
u8 MacID,
|
||||||
IN u8 RateID,
|
u8 RateID,
|
||||||
IN u32 RateMask,
|
u32 RateMask,
|
||||||
IN u8 SGIEnable
|
u8 SGIEnable
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PODM_RA_INFO_T pRaInfo = NULL;
|
PODM_RA_INFO_T pRaInfo = NULL;
|
||||||
|
@ -766,9 +766,9 @@ ODM_RA_UpdateRateInfo_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RA_SetRSSI_8188E(
|
ODM_RA_SetRSSI_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 MacID,
|
u8 MacID,
|
||||||
IN u8 Rssi
|
u8 Rssi
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PODM_RA_INFO_T pRaInfo = NULL;
|
PODM_RA_INFO_T pRaInfo = NULL;
|
||||||
|
@ -784,8 +784,8 @@ ODM_RA_SetRSSI_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RA_Set_TxRPT_Time(
|
ODM_RA_Set_TxRPT_Time(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u16 minRptTime
|
u16 minRptTime
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ODM_Write2Byte(pDM_Odm, REG_TX_RPT_TIME, minRptTime);
|
ODM_Write2Byte(pDM_Odm, REG_TX_RPT_TIME, minRptTime);
|
||||||
|
@ -794,11 +794,11 @@ ODM_RA_Set_TxRPT_Time(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RA_TxRPT2Handle_8188E(
|
ODM_RA_TxRPT2Handle_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 * TxRPT_Buf,
|
u8 * TxRPT_Buf,
|
||||||
IN u16 TxRPT_Len,
|
u16 TxRPT_Len,
|
||||||
IN u32 MacIDValidEntry0,
|
u32 MacIDValidEntry0,
|
||||||
IN u32 MacIDValidEntry1
|
u32 MacIDValidEntry1
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PODM_RA_INFO_T pRAInfo = NULL;
|
PODM_RA_INFO_T pRAInfo = NULL;
|
||||||
|
@ -912,8 +912,8 @@ ODM_RA_TxRPT2Handle_8188E(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
odm_RATxRPTTimerSetting(
|
odm_RATxRPTTimerSetting(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u16 minRptTime
|
u16 minRptTime
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
@ -922,7 +922,7 @@ odm_RATxRPTTimerSetting(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RASupport_Init(
|
ODM_RASupport_Init(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
@ -930,8 +930,8 @@ ODM_RASupport_Init(
|
||||||
|
|
||||||
int
|
int
|
||||||
ODM_RAInfo_Init(
|
ODM_RAInfo_Init(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 MacID
|
u8 MacID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -939,7 +939,7 @@ ODM_RAInfo_Init(
|
||||||
|
|
||||||
int
|
int
|
||||||
ODM_RAInfo_Init_all(
|
ODM_RAInfo_Init_all(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -947,8 +947,8 @@ ODM_RAInfo_Init_all(
|
||||||
|
|
||||||
u8
|
u8
|
||||||
ODM_RA_GetShortGI_8188E(
|
ODM_RA_GetShortGI_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 MacID
|
u8 MacID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -956,16 +956,16 @@ ODM_RA_GetShortGI_8188E(
|
||||||
|
|
||||||
u8
|
u8
|
||||||
ODM_RA_GetDecisionRate_8188E(
|
ODM_RA_GetDecisionRate_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 MacID
|
u8 MacID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
u8
|
u8
|
||||||
ODM_RA_GetHwPwrStatus_8188E(
|
ODM_RA_GetHwPwrStatus_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 MacID
|
u8 MacID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -973,11 +973,11 @@ ODM_RA_GetHwPwrStatus_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RA_UpdateRateInfo_8188E(
|
ODM_RA_UpdateRateInfo_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 MacID,
|
u8 MacID,
|
||||||
IN u8 RateID,
|
u8 RateID,
|
||||||
IN u32 RateMask,
|
u32 RateMask,
|
||||||
IN u8 SGIEnable
|
u8 SGIEnable
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
@ -985,9 +985,9 @@ ODM_RA_UpdateRateInfo_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RA_SetRSSI_8188E(
|
ODM_RA_SetRSSI_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 MacID,
|
u8 MacID,
|
||||||
IN u8 Rssi
|
u8 Rssi
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
@ -995,8 +995,8 @@ ODM_RA_SetRSSI_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RA_Set_TxRPT_Time(
|
ODM_RA_Set_TxRPT_Time(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u16 minRptTime
|
u16 minRptTime
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
@ -1004,11 +1004,11 @@ ODM_RA_Set_TxRPT_Time(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RA_TxRPT2Handle_8188E(
|
ODM_RA_TxRPT2Handle_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 * TxRPT_Buf,
|
u8 * TxRPT_Buf,
|
||||||
IN u16 TxRPT_Len,
|
u16 TxRPT_Len,
|
||||||
IN u32 MacIDValidEntry0,
|
u32 MacIDValidEntry0,
|
||||||
IN u32 MacIDValidEntry1
|
u32 MacIDValidEntry1
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -40,67 +40,67 @@ Major Change History:
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RASupport_Init(
|
ODM_RASupport_Init(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
|
|
||||||
int
|
int
|
||||||
ODM_RAInfo_Init_all(
|
ODM_RAInfo_Init_all(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
|
|
||||||
int
|
int
|
||||||
ODM_RAInfo_Init(
|
ODM_RAInfo_Init(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 MacID
|
u8 MacID
|
||||||
);
|
);
|
||||||
|
|
||||||
u8
|
u8
|
||||||
ODM_RA_GetShortGI_8188E(
|
ODM_RA_GetShortGI_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 MacID
|
u8 MacID
|
||||||
);
|
);
|
||||||
|
|
||||||
u8
|
u8
|
||||||
ODM_RA_GetDecisionRate_8188E(
|
ODM_RA_GetDecisionRate_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 MacID
|
u8 MacID
|
||||||
);
|
);
|
||||||
|
|
||||||
u8
|
u8
|
||||||
ODM_RA_GetHwPwrStatus_8188E(
|
ODM_RA_GetHwPwrStatus_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 MacID
|
u8 MacID
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
ODM_RA_UpdateRateInfo_8188E(
|
ODM_RA_UpdateRateInfo_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 MacID,
|
u8 MacID,
|
||||||
IN u8 RateID,
|
u8 RateID,
|
||||||
IN u32 RateMask,
|
u32 RateMask,
|
||||||
IN u8 SGIEnable
|
u8 SGIEnable
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RA_SetRSSI_8188E(
|
ODM_RA_SetRSSI_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 MacID,
|
u8 MacID,
|
||||||
IN u8 Rssi
|
u8 Rssi
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RA_TxRPT2Handle_8188E(
|
ODM_RA_TxRPT2Handle_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 * TxRPT_Buf,
|
u8 * TxRPT_Buf,
|
||||||
IN u16 TxRPT_Len,
|
u16 TxRPT_Len,
|
||||||
IN u32 MacIDValidEntry0,
|
u32 MacIDValidEntry0,
|
||||||
IN u32 MacIDValidEntry1
|
u32 MacIDValidEntry1
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RA_Set_TxRPT_Time(
|
ODM_RA_Set_TxRPT_Time(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u16 minRptTime
|
u16 minRptTime
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -325,7 +325,7 @@ static u32 Array_AGC_TAB_1T_8188E[] = {
|
||||||
|
|
||||||
HAL_STATUS
|
HAL_STATUS
|
||||||
ODM_ReadAndConfig_AGC_TAB_1T_8188E(
|
ODM_ReadAndConfig_AGC_TAB_1T_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while(0)
|
#define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while(0)
|
||||||
|
@ -532,7 +532,7 @@ static u32 Array_MP_8188E_AGC_TAB_1T_ICUT[] = {
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_ReadAndConfig_AGC_TAB_1T_ICUT_8188E(
|
ODM_ReadAndConfig_AGC_TAB_1T_ICUT_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while(0)
|
#define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while(0)
|
||||||
|
@ -812,7 +812,7 @@ static u32 Array_PHY_REG_1T_8188E[] = {
|
||||||
|
|
||||||
HAL_STATUS
|
HAL_STATUS
|
||||||
ODM_ReadAndConfig_PHY_REG_1T_8188E(
|
ODM_ReadAndConfig_PHY_REG_1T_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while(0)
|
#define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while(0)
|
||||||
|
@ -1071,7 +1071,7 @@ static u32 Array_MP_8188E_PHY_REG_1T_ICUT[] = {
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_ReadAndConfig_PHY_REG_1T_ICUT_8188E(
|
ODM_ReadAndConfig_PHY_REG_1T_ICUT_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while(0)
|
#define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while(0)
|
||||||
|
@ -1143,7 +1143,7 @@ static u32 Array_PHY_REG_PG_8188E[] = {
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_ReadAndConfig_PHY_REG_PG_8188E(
|
ODM_ReadAndConfig_PHY_REG_PG_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 hex = 0;
|
u32 hex = 0;
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
HAL_STATUS
|
HAL_STATUS
|
||||||
ODM_ReadAndConfig_AGC_TAB_1T_8188E(
|
ODM_ReadAndConfig_AGC_TAB_1T_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* AGC_TAB_1T_ICUT.TXT
|
* AGC_TAB_1T_ICUT.TXT
|
||||||
|
@ -37,7 +37,7 @@ ODM_ReadAndConfig_AGC_TAB_1T_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_ReadAndConfig_AGC_TAB_1T_ICUT_8188E( /* TC: Test Chip, MP: MP Chip */
|
ODM_ReadAndConfig_AGC_TAB_1T_ICUT_8188E( /* TC: Test Chip, MP: MP Chip */
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* PHY_REG_1T.TXT
|
* PHY_REG_1T.TXT
|
||||||
|
@ -45,7 +45,7 @@ ODM_ReadAndConfig_AGC_TAB_1T_ICUT_8188E( /* TC: Test Chip, MP: MP Chip */
|
||||||
|
|
||||||
HAL_STATUS
|
HAL_STATUS
|
||||||
ODM_ReadAndConfig_PHY_REG_1T_8188E(
|
ODM_ReadAndConfig_PHY_REG_1T_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* PHY_REG_1T_ICUT.TXT
|
* PHY_REG_1T_ICUT.TXT
|
||||||
|
@ -53,7 +53,7 @@ ODM_ReadAndConfig_PHY_REG_1T_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_ReadAndConfig_PHY_REG_1T_ICUT_8188E( /* TC: Test Chip, MP: MP Chip */
|
ODM_ReadAndConfig_PHY_REG_1T_ICUT_8188E( /* TC: Test Chip, MP: MP Chip */
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
|
@ -62,7 +62,7 @@ ODM_ReadAndConfig_PHY_REG_1T_ICUT_8188E( /* TC: Test Chip, MP: MP Chip */
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_ReadAndConfig_PHY_REG_PG_8188E(
|
ODM_ReadAndConfig_PHY_REG_PG_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
|
|
||||||
#endif /* end of HWIMG_SUPPORT */
|
#endif /* end of HWIMG_SUPPORT */
|
||||||
|
|
|
@ -155,7 +155,7 @@ static u32 Array_MAC_REG_8188E[] = {
|
||||||
|
|
||||||
HAL_STATUS
|
HAL_STATUS
|
||||||
ODM_ReadAndConfig_MAC_REG_8188E(
|
ODM_ReadAndConfig_MAC_REG_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while(0)
|
#define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while(0)
|
||||||
|
@ -315,7 +315,7 @@ static u32 Array_MP_8188E_MAC_REG_ICUT[] = {
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_ReadAndConfig_MAC_REG_ICUT_8188E(
|
ODM_ReadAndConfig_MAC_REG_ICUT_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while(0)
|
#define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while(0)
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
HAL_STATUS
|
HAL_STATUS
|
||||||
ODM_ReadAndConfig_MAC_REG_8188E(
|
ODM_ReadAndConfig_MAC_REG_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
|
@ -38,7 +38,7 @@ ODM_ReadAndConfig_MAC_REG_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_ReadAndConfig_MAC_REG_ICUT_8188E( /* TC: Test Chip, MP: MP Chip */
|
ODM_ReadAndConfig_MAC_REG_ICUT_8188E( /* TC: Test Chip, MP: MP Chip */
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -174,7 +174,7 @@ static u32 Array_RadioA_1T_8188E[] = {
|
||||||
|
|
||||||
HAL_STATUS
|
HAL_STATUS
|
||||||
ODM_ReadAndConfig_RadioA_1T_8188E(
|
ODM_ReadAndConfig_RadioA_1T_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while(0)
|
#define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while(0)
|
||||||
|
@ -345,7 +345,7 @@ static u32 Array_MP_8188E_RadioA_1T_ICUT[] = {
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_ReadAndConfig_RadioA_1T_ICUT_8188E(
|
ODM_ReadAndConfig_RadioA_1T_ICUT_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while(0)
|
#define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while(0)
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
HAL_STATUS
|
HAL_STATUS
|
||||||
ODM_ReadAndConfig_RadioA_1T_8188E(
|
ODM_ReadAndConfig_RadioA_1T_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* RadioA_1T_ICUT.TXT
|
* RadioA_1T_ICUT.TXT
|
||||||
|
@ -37,7 +37,7 @@ ODM_ReadAndConfig_RadioA_1T_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_ReadAndConfig_RadioA_1T_ICUT_8188E( /* TC: Test Chip, MP: MP Chip */
|
ODM_ReadAndConfig_RadioA_1T_ICUT_8188E( /* TC: Test Chip, MP: MP Chip */
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_ResetIQKResult(
|
ODM_ResetIQKResult(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 i;
|
u8 i;
|
||||||
|
|
|
@ -337,7 +337,7 @@ odm_TxPwrTrackSetPwr88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_TXPowerTrackingCallback_ThermalMeter_8188E(
|
odm_TXPowerTrackingCallback_ThermalMeter_8188E(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -560,8 +560,8 @@ odm_TXPowerTrackingCallback_ThermalMeter_8188E(
|
||||||
|
|
||||||
static u8 /* bit0 = 1 => Tx OK, bit1 = 1 => Rx OK */
|
static u8 /* bit0 = 1 => Tx OK, bit1 = 1 => Rx OK */
|
||||||
phy_PathA_IQK_8188E(
|
phy_PathA_IQK_8188E(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN bool configPathB
|
bool configPathB
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 regEAC, regE94, regE9C, regEA4;
|
u32 regEAC, regE94, regE9C, regEA4;
|
||||||
|
@ -613,8 +613,8 @@ phy_PathA_IQK_8188E(
|
||||||
|
|
||||||
static u8 /* bit0 = 1 => Tx OK, bit1 = 1 => Rx OK */
|
static u8 /* bit0 = 1 => Tx OK, bit1 = 1 => Rx OK */
|
||||||
phy_PathA_RxIQK(
|
phy_PathA_RxIQK(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN bool configPathB
|
bool configPathB
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 regEAC, regE94, regE9C, regEA4, u4tmp;
|
u32 regEAC, regE94, regE9C, regEA4, u4tmp;
|
||||||
|
@ -750,7 +750,7 @@ phy_PathA_RxIQK(
|
||||||
|
|
||||||
static u8 /* bit0 = 1 => Tx OK, bit1 = 1 => Rx OK */
|
static u8 /* bit0 = 1 => Tx OK, bit1 = 1 => Rx OK */
|
||||||
phy_PathB_IQK_8188E(
|
phy_PathB_IQK_8188E(
|
||||||
IN struct adapter *pAdapter
|
struct adapter *pAdapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 regEAC, regEB4, regEBC, regEC4, regECC;
|
u32 regEAC, regEB4, regEBC, regEC4, regECC;
|
||||||
|
@ -802,11 +802,11 @@ phy_PathB_IQK_8188E(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_PHY_PathAFillIQKMatrix(
|
_PHY_PathAFillIQKMatrix(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN bool bIQKOK,
|
bool bIQKOK,
|
||||||
IN s32 result[][8],
|
s32 result[][8],
|
||||||
IN u8 final_candidate,
|
u8 final_candidate,
|
||||||
IN bool bTxOnly
|
bool bTxOnly
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 Oldval_0, X, TX0_A, reg;
|
u32 Oldval_0, X, TX0_A, reg;
|
||||||
|
@ -862,11 +862,11 @@ _PHY_PathAFillIQKMatrix(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_PHY_PathBFillIQKMatrix(
|
_PHY_PathBFillIQKMatrix(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN bool bIQKOK,
|
bool bIQKOK,
|
||||||
IN s32 result[][8],
|
s32 result[][8],
|
||||||
IN u8 final_candidate,
|
u8 final_candidate,
|
||||||
IN bool bTxOnly /* do Tx only */
|
bool bTxOnly /* do Tx only */
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 Oldval_1, X, TX1_A, reg;
|
u32 Oldval_1, X, TX1_A, reg;
|
||||||
|
@ -922,17 +922,17 @@ _PHY_PathBFillIQKMatrix(
|
||||||
/* MP Already declare in odm.c */
|
/* MP Already declare in odm.c */
|
||||||
static bool
|
static bool
|
||||||
ODM_CheckPowerStatus(
|
ODM_CheckPowerStatus(
|
||||||
IN struct adapter * Adapter)
|
struct adapter * Adapter)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
_PHY_SaveADDARegisters(
|
_PHY_SaveADDARegisters(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u32 * ADDAReg,
|
u32 * ADDAReg,
|
||||||
IN u32 * ADDABackup,
|
u32 * ADDABackup,
|
||||||
IN u32 RegisterNum
|
u32 RegisterNum
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 i;
|
u32 i;
|
||||||
|
@ -950,9 +950,9 @@ _PHY_SaveADDARegisters(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_PHY_SaveMACRegisters(
|
_PHY_SaveMACRegisters(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u32 * MACReg,
|
u32 * MACReg,
|
||||||
IN u32 * MACBackup
|
u32 * MACBackup
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 i;
|
u32 i;
|
||||||
|
@ -970,10 +970,10 @@ _PHY_SaveMACRegisters(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_PHY_ReloadADDARegisters(
|
_PHY_ReloadADDARegisters(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u32 * ADDAReg,
|
u32 * ADDAReg,
|
||||||
IN u32 * ADDABackup,
|
u32 * ADDABackup,
|
||||||
IN u32 RegiesterNum
|
u32 RegiesterNum
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 i;
|
u32 i;
|
||||||
|
@ -989,9 +989,9 @@ _PHY_ReloadADDARegisters(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_PHY_ReloadMACRegisters(
|
_PHY_ReloadMACRegisters(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u32 * MACReg,
|
u32 * MACReg,
|
||||||
IN u32 * MACBackup
|
u32 * MACBackup
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 i;
|
u32 i;
|
||||||
|
@ -1008,10 +1008,10 @@ _PHY_ReloadMACRegisters(
|
||||||
|
|
||||||
void
|
void
|
||||||
_PHY_PathADDAOn(
|
_PHY_PathADDAOn(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u32 * ADDAReg,
|
u32 * ADDAReg,
|
||||||
IN bool isPathAOn,
|
bool isPathAOn,
|
||||||
IN bool is2T
|
bool is2T
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 pathOn;
|
u32 pathOn;
|
||||||
|
@ -1038,9 +1038,9 @@ _PHY_PathADDAOn(
|
||||||
|
|
||||||
void
|
void
|
||||||
_PHY_MACSettingCalibration(
|
_PHY_MACSettingCalibration(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u32 * MACReg,
|
u32 * MACReg,
|
||||||
IN u32 * MACBackup
|
u32 * MACBackup
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 i = 0;
|
u32 i = 0;
|
||||||
|
@ -1060,7 +1060,7 @@ _PHY_MACSettingCalibration(
|
||||||
|
|
||||||
void
|
void
|
||||||
_PHY_PathAStandBy(
|
_PHY_PathAStandBy(
|
||||||
IN struct adapter *pAdapter
|
struct adapter *pAdapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -1075,8 +1075,8 @@ _PHY_PathAStandBy(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_PHY_PIModeSwitch(
|
_PHY_PIModeSwitch(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN bool PIMode
|
bool PIMode
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 mode;
|
u32 mode;
|
||||||
|
@ -1092,10 +1092,10 @@ _PHY_PIModeSwitch(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
phy_SimularityCompare_8188E(
|
phy_SimularityCompare_8188E(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN s32 result[][8],
|
s32 result[][8],
|
||||||
IN u8 c1,
|
u8 c1,
|
||||||
IN u8 c2
|
u8 c2
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 i, j, diff, SimularityBitMap, bound = 0;
|
u32 i, j, diff, SimularityBitMap, bound = 0;
|
||||||
|
@ -1213,10 +1213,10 @@ phy_SimularityCompare_8188E(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
phy_IQCalibrate_8188E(
|
phy_IQCalibrate_8188E(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN s32 result[][8],
|
s32 result[][8],
|
||||||
IN u8 t,
|
u8 t,
|
||||||
IN bool is2T
|
bool is2T
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -1406,8 +1406,8 @@ else
|
||||||
|
|
||||||
static void
|
static void
|
||||||
phy_LCCalibrate_8188E(
|
phy_LCCalibrate_8188E(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN bool is2T
|
bool is2T
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 tmpReg;
|
u8 tmpReg;
|
||||||
|
@ -1475,9 +1475,9 @@ phy_LCCalibrate_8188E(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
phy_APCalibrate_8188E(
|
phy_APCalibrate_8188E(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN s8 delta,
|
s8 delta,
|
||||||
IN bool is2T
|
bool is2T
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -1908,8 +1908,8 @@ if ( *(pDM_Odm->mp_mode) == 1)
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_IQCalibrate_8188E(
|
PHY_IQCalibrate_8188E(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN bool bReCovery
|
bool bReCovery
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -2093,7 +2093,7 @@ if (*(pDM_Odm->mp_mode) == 1)
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_LCCalibrate_8188E(
|
PHY_LCCalibrate_8188E(
|
||||||
IN struct adapter *pAdapter
|
struct adapter *pAdapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
bool bStartContTx = false, bSingleTone = false, bCarrierSuppression = false;
|
bool bStartContTx = false, bSingleTone = false, bCarrierSuppression = false;
|
||||||
|
@ -2158,16 +2158,16 @@ if (*(pDM_Odm->mp_mode) == 1)
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_APCalibrate_8188E(
|
PHY_APCalibrate_8188E(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN s8 delta
|
s8 delta
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static void phy_SetRFPathSwitch_8188E(
|
static void phy_SetRFPathSwitch_8188E(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN bool bMain,
|
bool bMain,
|
||||||
IN bool is2T
|
bool is2T
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -2198,8 +2198,8 @@ static void phy_SetRFPathSwitch_8188E(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void PHY_SetRFPathSwitch_8188E(
|
void PHY_SetRFPathSwitch_8188E(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN bool bMain
|
bool bMain
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
|
|
@ -44,7 +44,7 @@ ODM_TxPwrTrackAdjust88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_TXPowerTrackingCallback_ThermalMeter_8188E(
|
odm_TXPowerTrackingCallback_ThermalMeter_8188E(
|
||||||
IN struct adapter * Adapter
|
struct adapter * Adapter
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
@ -52,8 +52,8 @@ odm_TXPowerTrackingCallback_ThermalMeter_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_IQCalibrate_8188E(
|
PHY_IQCalibrate_8188E(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN bool bReCovery);
|
bool bReCovery);
|
||||||
|
|
||||||
|
|
||||||
/* */
|
/* */
|
||||||
|
@ -61,7 +61,7 @@ PHY_IQCalibrate_8188E(
|
||||||
/* */
|
/* */
|
||||||
void
|
void
|
||||||
PHY_LCCalibrate_8188E(
|
PHY_LCCalibrate_8188E(
|
||||||
IN struct adapter * pAdapter
|
struct adapter * pAdapter
|
||||||
);
|
);
|
||||||
|
|
||||||
/* */
|
/* */
|
||||||
|
@ -69,40 +69,40 @@ PHY_LCCalibrate_8188E(
|
||||||
/* */
|
/* */
|
||||||
void
|
void
|
||||||
PHY_APCalibrate_8188E(
|
PHY_APCalibrate_8188E(
|
||||||
IN struct adapter * pAdapter,
|
struct adapter * pAdapter,
|
||||||
IN s8 delta);
|
s8 delta);
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_DigitalPredistortion_8188E( IN struct adapter * pAdapter);
|
PHY_DigitalPredistortion_8188E(struct adapter * pAdapter);
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
_PHY_SaveADDARegisters(
|
_PHY_SaveADDARegisters(
|
||||||
IN struct adapter * pAdapter,
|
struct adapter * pAdapter,
|
||||||
IN u32 * ADDAReg,
|
u32 * ADDAReg,
|
||||||
IN u32 * ADDABackup,
|
u32 * ADDABackup,
|
||||||
IN u32 RegisterNum
|
u32 RegisterNum
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
_PHY_PathADDAOn(
|
_PHY_PathADDAOn(
|
||||||
IN struct adapter * pAdapter,
|
struct adapter * pAdapter,
|
||||||
IN u32 * ADDAReg,
|
u32 * ADDAReg,
|
||||||
IN bool isPathAOn,
|
bool isPathAOn,
|
||||||
IN bool is2T
|
bool is2T
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
_PHY_MACSettingCalibration(
|
_PHY_MACSettingCalibration(
|
||||||
IN struct adapter * pAdapter,
|
struct adapter * pAdapter,
|
||||||
IN u32 * MACReg,
|
u32 * MACReg,
|
||||||
IN u32 * MACBackup
|
u32 * MACBackup
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
_PHY_PathAStandBy(
|
_PHY_PathAStandBy(
|
||||||
IN struct adapter * pAdapter
|
struct adapter * pAdapter
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -73,11 +73,11 @@ void dump_chip_info(HAL_VERSION ChipVersion)
|
||||||
|
|
||||||
u8 /* return the final channel plan decision */
|
u8 /* return the final channel plan decision */
|
||||||
hal_com_get_channel_plan(
|
hal_com_get_channel_plan(
|
||||||
IN struct adapter *padapter,
|
struct adapter *padapter,
|
||||||
IN u8 hw_channel_plan, /* channel plan from HW (efuse/eeprom) */
|
u8 hw_channel_plan, /* channel plan from HW (efuse/eeprom) */
|
||||||
IN u8 sw_channel_plan, /* channel plan from SW (registry/module param) */
|
u8 sw_channel_plan, /* channel plan from SW (registry/module param) */
|
||||||
IN u8 def_channel_plan, /* channel plan used when the former two is invalid */
|
u8 def_channel_plan, /* channel plan used when the former two is invalid */
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 swConfig;
|
u8 swConfig;
|
||||||
|
@ -140,9 +140,9 @@ u8 MRateToHwRate(u8 rate)
|
||||||
}
|
}
|
||||||
|
|
||||||
void HalSetBrateCfg(
|
void HalSetBrateCfg(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN u8 *mBratesOS,
|
u8 *mBratesOS,
|
||||||
OUT u16 *pBrateCfg)
|
u16 *pBrateCfg)
|
||||||
{
|
{
|
||||||
u8 i, is_brate, brate;
|
u8 i, is_brate, brate;
|
||||||
|
|
||||||
|
@ -174,7 +174,7 @@ void HalSetBrateCfg(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_OneOutPipeMapping(
|
_OneOutPipeMapping(
|
||||||
IN struct adapter *pAdapter
|
struct adapter *pAdapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
|
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
|
||||||
|
@ -192,8 +192,8 @@ _OneOutPipeMapping(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_TwoOutPipeMapping(
|
_TwoOutPipeMapping(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN bool bWIFICfg
|
bool bWIFICfg
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
|
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
|
||||||
|
@ -237,8 +237,8 @@ _TwoOutPipeMapping(
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _ThreeOutPipeMapping(
|
static void _ThreeOutPipeMapping(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN bool bWIFICfg
|
bool bWIFICfg
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
|
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
|
||||||
|
@ -282,8 +282,8 @@ static void _ThreeOutPipeMapping(
|
||||||
|
|
||||||
bool
|
bool
|
||||||
Hal_MappingOutPipe(
|
Hal_MappingOutPipe(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 NumOutPipe
|
u8 NumOutPipe
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct registry_priv *pregistrypriv = &pAdapter->registrypriv;
|
struct registry_priv *pregistrypriv = &pAdapter->registrypriv;
|
||||||
|
|
|
@ -1425,7 +1425,7 @@ ODM_RAStateCheck(
|
||||||
PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
s32 RSSI,
|
s32 RSSI,
|
||||||
bool bForceUpdate,
|
bool bForceUpdate,
|
||||||
OUT u8 * pRATRState
|
u8 * pRATRState
|
||||||
);
|
);
|
||||||
|
|
||||||
#define dm_SWAW_RSSI_Check ODM_SwAntDivChkPerPktRssi
|
#define dm_SWAW_RSSI_Check ODM_SwAntDivChkPerPktRssi
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
static u8
|
static u8
|
||||||
odm_QueryRxPwrPercentage(
|
odm_QueryRxPwrPercentage(
|
||||||
IN s8 AntPower
|
s8 AntPower
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if ((AntPower <= -100) || (AntPower >= 20))
|
if ((AntPower <= -100) || (AntPower >= 20))
|
||||||
|
@ -55,7 +55,7 @@ odm_QueryRxPwrPercentage(
|
||||||
/* */
|
/* */
|
||||||
static s32
|
static s32
|
||||||
odm_SignalScaleMapping_92CSeries_patch_RT_CID_819x_Lenovo(
|
odm_SignalScaleMapping_92CSeries_patch_RT_CID_819x_Lenovo(
|
||||||
IN OUT PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
s32 CurrSig
|
s32 CurrSig
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -65,7 +65,7 @@ odm_SignalScaleMapping_92CSeries_patch_RT_CID_819x_Lenovo(
|
||||||
|
|
||||||
static s32
|
static s32
|
||||||
odm_SignalScaleMapping_92CSeries_patch_RT_CID_819x_Netcore(
|
odm_SignalScaleMapping_92CSeries_patch_RT_CID_819x_Netcore(
|
||||||
IN OUT PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
s32 CurrSig
|
s32 CurrSig
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -76,8 +76,8 @@ odm_SignalScaleMapping_92CSeries_patch_RT_CID_819x_Netcore(
|
||||||
|
|
||||||
static s32
|
static s32
|
||||||
odm_SignalScaleMapping_92CSeries(
|
odm_SignalScaleMapping_92CSeries(
|
||||||
IN OUT PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN s32 CurrSig
|
s32 CurrSig
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
s32 RetSig;
|
s32 RetSig;
|
||||||
|
@ -169,8 +169,8 @@ odm_SignalScaleMapping_92CSeries(
|
||||||
}
|
}
|
||||||
static s32
|
static s32
|
||||||
odm_SignalScaleMapping(
|
odm_SignalScaleMapping(
|
||||||
IN OUT PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN s32 CurrSig
|
s32 CurrSig
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if( (pDM_Odm->SupportPlatform == ODM_MP) &&
|
if( (pDM_Odm->SupportPlatform == ODM_MP) &&
|
||||||
|
@ -193,11 +193,11 @@ odm_SignalScaleMapping(
|
||||||
|
|
||||||
/* pMgntInfo->CustomerID == RT_CID_819x_Lenovo */
|
/* pMgntInfo->CustomerID == RT_CID_819x_Lenovo */
|
||||||
static u8 odm_SQ_process_patch_RT_CID_819x_Lenovo(
|
static u8 odm_SQ_process_patch_RT_CID_819x_Lenovo(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 isCCKrate,
|
u8 isCCKrate,
|
||||||
IN u8 PWDB_ALL,
|
u8 PWDB_ALL,
|
||||||
IN u8 path,
|
u8 path,
|
||||||
IN u8 RSSI
|
u8 RSSI
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 SQ;
|
u8 SQ;
|
||||||
|
@ -206,7 +206,7 @@ static u8 odm_SQ_process_patch_RT_CID_819x_Lenovo(
|
||||||
|
|
||||||
static u8
|
static u8
|
||||||
odm_EVMdbToPercentage(
|
odm_EVMdbToPercentage(
|
||||||
IN s8 Value
|
s8 Value
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* */
|
/* */
|
||||||
|
@ -237,10 +237,10 @@ odm_EVMdbToPercentage(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
odm_RxPhyStatus92CSeries_Parsing(
|
odm_RxPhyStatus92CSeries_Parsing(
|
||||||
IN OUT PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
OUT PODM_PHY_INFO_T pPhyInfo,
|
PODM_PHY_INFO_T pPhyInfo,
|
||||||
IN u8 * pPhyStatus,
|
u8 * pPhyStatus,
|
||||||
IN PODM_PACKET_INFO_T pPktinfo
|
PODM_PACKET_INFO_T pPktinfo
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
SWAT_T *pDM_SWAT_Table = &pDM_Odm->DM_SWAT_Table;
|
SWAT_T *pDM_SWAT_Table = &pDM_Odm->DM_SWAT_Table;
|
||||||
|
@ -558,7 +558,7 @@ odm_RxPhyStatus92CSeries_Parsing(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_Init_RSSIForDM(
|
odm_Init_RSSIForDM(
|
||||||
IN OUT PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -566,9 +566,9 @@ odm_Init_RSSIForDM(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
odm_Process_RSSIForDM(
|
odm_Process_RSSIForDM(
|
||||||
IN OUT PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PODM_PHY_INFO_T pPhyInfo,
|
PODM_PHY_INFO_T pPhyInfo,
|
||||||
IN PODM_PACKET_INFO_T pPktinfo
|
PODM_PACKET_INFO_T pPktinfo
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -765,10 +765,10 @@ odm_Process_RSSIForDM(
|
||||||
/* */
|
/* */
|
||||||
static void
|
static void
|
||||||
ODM_PhyStatusQuery_92CSeries(
|
ODM_PhyStatusQuery_92CSeries(
|
||||||
IN OUT PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
OUT PODM_PHY_INFO_T pPhyInfo,
|
PODM_PHY_INFO_T pPhyInfo,
|
||||||
IN u8 * pPhyStatus,
|
u8 * pPhyStatus,
|
||||||
IN PODM_PACKET_INFO_T pPktinfo
|
PODM_PACKET_INFO_T pPktinfo
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -793,10 +793,10 @@ ODM_PhyStatusQuery_92CSeries(
|
||||||
/* */
|
/* */
|
||||||
static void
|
static void
|
||||||
ODM_PhyStatusQuery_JaguarSeries(
|
ODM_PhyStatusQuery_JaguarSeries(
|
||||||
IN OUT PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
OUT PODM_PHY_INFO_T pPhyInfo,
|
PODM_PHY_INFO_T pPhyInfo,
|
||||||
IN u8 * pPhyStatus,
|
u8 * pPhyStatus,
|
||||||
IN PODM_PACKET_INFO_T pPktinfo
|
PODM_PACKET_INFO_T pPktinfo
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -805,10 +805,10 @@ ODM_PhyStatusQuery_JaguarSeries(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_PhyStatusQuery(
|
ODM_PhyStatusQuery(
|
||||||
IN OUT PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
OUT PODM_PHY_INFO_T pPhyInfo,
|
PODM_PHY_INFO_T pPhyInfo,
|
||||||
IN u8 * pPhyStatus,
|
u8 * pPhyStatus,
|
||||||
IN PODM_PACKET_INFO_T pPktinfo
|
PODM_PACKET_INFO_T pPktinfo
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ODM_PhyStatusQuery_92CSeries(pDM_Odm,pPhyInfo,pPhyStatus,pPktinfo);
|
ODM_PhyStatusQuery_92CSeries(pDM_Odm,pPhyInfo,pPhyStatus,pPktinfo);
|
||||||
|
@ -817,12 +817,12 @@ ODM_PhyStatusQuery(
|
||||||
/* For future use. */
|
/* For future use. */
|
||||||
void
|
void
|
||||||
ODM_MacStatusQuery(
|
ODM_MacStatusQuery(
|
||||||
IN OUT PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 * pMacStatus,
|
u8 * pMacStatus,
|
||||||
IN u8 MacID,
|
u8 MacID,
|
||||||
IN bool bPacketMatchBSSID,
|
bool bPacketMatchBSSID,
|
||||||
IN bool bPacketToSelf,
|
bool bPacketToSelf,
|
||||||
IN bool bPacketBeacon
|
bool bPacketBeacon
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* 2011/10/19 Driver team will handle in the future. */
|
/* 2011/10/19 Driver team will handle in the future. */
|
||||||
|
@ -831,9 +831,9 @@ ODM_MacStatusQuery(
|
||||||
|
|
||||||
HAL_STATUS
|
HAL_STATUS
|
||||||
ODM_ConfigRFWithHeaderFile(
|
ODM_ConfigRFWithHeaderFile(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN ODM_RF_RADIO_PATH_E Content,
|
ODM_RF_RADIO_PATH_E Content,
|
||||||
IN ODM_RF_RADIO_PATH_E eRFPath
|
ODM_RF_RADIO_PATH_E eRFPath
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* RT_STATUS rtStatus = RT_STATUS_SUCCESS; */
|
/* RT_STATUS rtStatus = RT_STATUS_SUCCESS; */
|
||||||
|
@ -859,8 +859,8 @@ ODM_ConfigRFWithHeaderFile(
|
||||||
|
|
||||||
HAL_STATUS
|
HAL_STATUS
|
||||||
ODM_ConfigBBWithHeaderFile(
|
ODM_ConfigBBWithHeaderFile(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN ODM_BB_Config_Type ConfigType
|
ODM_BB_Config_Type ConfigType
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if(pDM_Odm->SupportICType == ODM_RTL8188E) {
|
if(pDM_Odm->SupportICType == ODM_RTL8188E) {
|
||||||
|
@ -884,7 +884,7 @@ ODM_ConfigBBWithHeaderFile(
|
||||||
|
|
||||||
HAL_STATUS
|
HAL_STATUS
|
||||||
ODM_ConfigMACWithHeaderFile(
|
ODM_ConfigMACWithHeaderFile(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 result = HAL_STATUS_SUCCESS;
|
u8 result = HAL_STATUS_SUCCESS;
|
||||||
|
|
|
@ -185,7 +185,7 @@ ODM_ConfigBBWithHeaderFile(
|
||||||
|
|
||||||
HAL_STATUS
|
HAL_STATUS
|
||||||
ODM_ConfigMACWithHeaderFile(
|
ODM_ConfigMACWithHeaderFile(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_DIG_LowerBound_88E(
|
ODM_DIG_LowerBound_88E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
pDIG_T pDM_DigTable = &pDM_Odm->DM_DigTable;
|
pDIG_T pDM_DigTable = &pDM_Odm->DM_DigTable;
|
||||||
|
@ -44,7 +44,7 @@ ODM_DIG_LowerBound_88E(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
odm_RX_HWAntDivInit(
|
odm_RX_HWAntDivInit(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 value32;
|
u32 value32;
|
||||||
|
@ -82,7 +82,7 @@ odm_RX_HWAntDivInit(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
odm_TRX_HWAntDivInit(
|
odm_TRX_HWAntDivInit(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 value32;
|
u32 value32;
|
||||||
|
@ -133,7 +133,7 @@ odm_TRX_HWAntDivInit(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_FastAntTrainingInit(
|
odm_FastAntTrainingInit(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 value32, i;
|
u32 value32, i;
|
||||||
|
@ -239,7 +239,7 @@ odm_FastAntTrainingInit(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_AntennaDiversityInit_88E(
|
ODM_AntennaDiversityInit_88E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if(pDM_Odm->SupportICType != ODM_RTL8188E)
|
if(pDM_Odm->SupportICType != ODM_RTL8188E)
|
||||||
|
@ -260,7 +260,7 @@ ODM_AntennaDiversityInit_88E(
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_UpdateRxIdleAnt_88E(IN PDM_ODM_T pDM_Odm, IN u8 Ant)
|
ODM_UpdateRxIdleAnt_88E(PDM_ODM_T pDM_Odm, u8 Ant)
|
||||||
{
|
{
|
||||||
pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable;
|
pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable;
|
||||||
u32 DefaultAnt, OptionalAnt;
|
u32 DefaultAnt, OptionalAnt;
|
||||||
|
@ -300,7 +300,7 @@ ODM_UpdateRxIdleAnt_88E(IN PDM_ODM_T pDM_Odm, IN u8 Ant)
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
odm_UpdateTxAnt_88E(IN PDM_ODM_T pDM_Odm, IN u8 Ant, IN u32 MacId)
|
odm_UpdateTxAnt_88E(PDM_ODM_T pDM_Odm, u8 Ant, u32 MacId)
|
||||||
{
|
{
|
||||||
pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable;
|
pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable;
|
||||||
u8 TargetAnt;
|
u8 TargetAnt;
|
||||||
|
@ -322,9 +322,9 @@ odm_UpdateTxAnt_88E(IN PDM_ODM_T pDM_Odm, IN u8 Ant, IN u32 MacId)
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_SetTxAntByTxInfo_88E(
|
ODM_SetTxAntByTxInfo_88E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 * pDesc,
|
u8 * pDesc,
|
||||||
IN u8 macId
|
u8 macId
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable;
|
pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable;
|
||||||
|
@ -341,10 +341,10 @@ ODM_SetTxAntByTxInfo_88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_AntselStatistics_88E(
|
ODM_AntselStatistics_88E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u8 antsel_tr_mux,
|
u8 antsel_tr_mux,
|
||||||
IN u32 MacId,
|
u32 MacId,
|
||||||
IN u8 RxPWDBAll
|
u8 RxPWDBAll
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable;
|
pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable;
|
||||||
|
@ -383,7 +383,7 @@ ODM_AntselStatistics_88E(
|
||||||
#define TX_BY_REG 0
|
#define TX_BY_REG 0
|
||||||
static void
|
static void
|
||||||
odm_HWAntDiv(
|
odm_HWAntDiv(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 i, MinRSSI=0xFF, AntDivMaxRSSI=0, MaxRSSI=0, LocalMinRSSI, LocalMaxRSSI;
|
u32 i, MinRSSI=0xFF, AntDivMaxRSSI=0, MaxRSSI=0, LocalMinRSSI, LocalMaxRSSI;
|
||||||
|
@ -450,7 +450,7 @@ odm_HWAntDiv(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_AntennaDiversity_88E(
|
ODM_AntennaDiversity_88E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable;
|
pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable;
|
||||||
|
@ -502,7 +502,7 @@ ODM_AntennaDiversity_88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_PrimaryCCA_Init(
|
odm_PrimaryCCA_Init(
|
||||||
IN PDM_ODM_T pDM_Odm)
|
PDM_ODM_T pDM_Odm)
|
||||||
{
|
{
|
||||||
pPri_CCA_T PrimaryCCA = &(pDM_Odm->DM_PriCCA);
|
pPri_CCA_T PrimaryCCA = &(pDM_Odm->DM_PriCCA);
|
||||||
PrimaryCCA->DupRTS_flag = 0;
|
PrimaryCCA->DupRTS_flag = 0;
|
||||||
|
@ -514,7 +514,7 @@ odm_PrimaryCCA_Init(
|
||||||
|
|
||||||
bool
|
bool
|
||||||
ODM_DynamicPrimaryCCA_DupRTS(
|
ODM_DynamicPrimaryCCA_DupRTS(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
pPri_CCA_T PrimaryCCA = &(pDM_Odm->DM_PriCCA);
|
pPri_CCA_T PrimaryCCA = &(pDM_Odm->DM_PriCCA);
|
||||||
|
@ -524,7 +524,7 @@ ODM_DynamicPrimaryCCA_DupRTS(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_DynamicPrimaryCCA(
|
odm_DynamicPrimaryCCA(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct adapter *Adapter = pDM_Odm->Adapter; /* for NIC */
|
struct adapter *Adapter = pDM_Odm->Adapter; /* for NIC */
|
||||||
|
|
|
@ -22,11 +22,11 @@
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigRFReg_8188E(
|
odm_ConfigRFReg_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 Addr,
|
u32 Addr,
|
||||||
IN u32 Data,
|
u32 Data,
|
||||||
IN ODM_RF_RADIO_PATH_E RF_PATH,
|
ODM_RF_RADIO_PATH_E RF_PATH,
|
||||||
IN u32 RegAddr
|
u32 RegAddr
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if(Addr == 0xffe)
|
if(Addr == 0xffe)
|
||||||
|
@ -64,9 +64,9 @@ odm_ConfigRFReg_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigRF_RadioA_8188E(
|
odm_ConfigRF_RadioA_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 Addr,
|
u32 Addr,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 content = 0x1000; /* RF_Content: radioa_txt */
|
u32 content = 0x1000; /* RF_Content: radioa_txt */
|
||||||
|
@ -79,9 +79,9 @@ odm_ConfigRF_RadioA_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigRF_RadioB_8188E(
|
odm_ConfigRF_RadioB_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 Addr,
|
u32 Addr,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 content = 0x1001; /* RF_Content: radiob_txt */
|
u32 content = 0x1001; /* RF_Content: radiob_txt */
|
||||||
|
@ -95,9 +95,9 @@ odm_ConfigRF_RadioB_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigMAC_8188E(
|
odm_ConfigMAC_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 Addr,
|
u32 Addr,
|
||||||
IN u8 Data
|
u8 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ODM_Write1Byte(pDM_Odm, Addr, Data);
|
ODM_Write1Byte(pDM_Odm, Addr, Data);
|
||||||
|
@ -106,10 +106,10 @@ odm_ConfigMAC_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigBB_AGC_8188E(
|
odm_ConfigBB_AGC_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 Addr,
|
u32 Addr,
|
||||||
IN u32 Bitmask,
|
u32 Bitmask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ODM_SetBBReg(pDM_Odm, Addr, Bitmask, Data);
|
ODM_SetBBReg(pDM_Odm, Addr, Bitmask, Data);
|
||||||
|
@ -121,10 +121,10 @@ odm_ConfigBB_AGC_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigBB_PHY_REG_PG_8188E(
|
odm_ConfigBB_PHY_REG_PG_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 Addr,
|
u32 Addr,
|
||||||
IN u32 Bitmask,
|
u32 Bitmask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (Addr == 0xfe){
|
if (Addr == 0xfe){
|
||||||
|
@ -149,10 +149,10 @@ odm_ConfigBB_PHY_REG_PG_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigBB_PHY_8188E(
|
odm_ConfigBB_PHY_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 Addr,
|
u32 Addr,
|
||||||
IN u32 Bitmask,
|
u32 Bitmask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (Addr == 0xfe){
|
if (Addr == 0xfe){
|
||||||
|
|
|
@ -22,56 +22,56 @@
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigRFReg_8188E(
|
odm_ConfigRFReg_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 Addr,
|
u32 Addr,
|
||||||
IN u32 Data,
|
u32 Data,
|
||||||
IN ODM_RF_RADIO_PATH_E RF_PATH,
|
ODM_RF_RADIO_PATH_E RF_PATH,
|
||||||
IN u32 RegAddr
|
u32 RegAddr
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigRF_RadioA_8188E(
|
odm_ConfigRF_RadioA_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 Addr,
|
u32 Addr,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigRF_RadioB_8188E(
|
odm_ConfigRF_RadioB_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 Addr,
|
u32 Addr,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigMAC_8188E(
|
odm_ConfigMAC_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 Addr,
|
u32 Addr,
|
||||||
IN u8 Data
|
u8 Data
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigBB_AGC_8188E(
|
odm_ConfigBB_AGC_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 Addr,
|
u32 Addr,
|
||||||
IN u32 Bitmask,
|
u32 Bitmask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigBB_PHY_REG_PG_8188E(
|
odm_ConfigBB_PHY_REG_PG_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 Addr,
|
u32 Addr,
|
||||||
IN u32 Bitmask,
|
u32 Bitmask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigBB_PHY_8188E(
|
odm_ConfigBB_PHY_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 Addr,
|
u32 Addr,
|
||||||
IN u32 Bitmask,
|
u32 Bitmask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
);
|
);
|
||||||
|
|
||||||
#endif /* end of SUPPORT */
|
#endif /* end of SUPPORT */
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_InitDebugSetting(
|
ODM_InitDebugSetting(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
pDM_Odm->DebugLevel = ODM_DBG_TRACE;
|
pDM_Odm->DebugLevel = ODM_DBG_TRACE;
|
||||||
|
|
|
@ -163,7 +163,7 @@
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_InitDebugSetting(
|
ODM_InitDebugSetting(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
|
|
||||||
#endif /* __ODM_DBG_H__ */
|
#endif /* __ODM_DBG_H__ */
|
||||||
|
|
|
@ -29,8 +29,8 @@
|
||||||
|
|
||||||
u8
|
u8
|
||||||
ODM_Read1Byte(
|
ODM_Read1Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 RegAddr
|
u32 RegAddr
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct adapter * Adapter = pDM_Odm->Adapter;
|
struct adapter * Adapter = pDM_Odm->Adapter;
|
||||||
|
@ -40,8 +40,8 @@ ODM_Read1Byte(
|
||||||
|
|
||||||
u16
|
u16
|
||||||
ODM_Read2Byte(
|
ODM_Read2Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 RegAddr
|
u32 RegAddr
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct adapter * Adapter = pDM_Odm->Adapter;
|
struct adapter * Adapter = pDM_Odm->Adapter;
|
||||||
|
@ -50,8 +50,8 @@ ODM_Read2Byte(
|
||||||
|
|
||||||
u32
|
u32
|
||||||
ODM_Read4Byte(
|
ODM_Read4Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 RegAddr
|
u32 RegAddr
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct adapter * Adapter = pDM_Odm->Adapter;
|
struct adapter * Adapter = pDM_Odm->Adapter;
|
||||||
|
@ -60,9 +60,9 @@ ODM_Read4Byte(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_Write1Byte(
|
ODM_Write1Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u8 Data
|
u8 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct adapter * Adapter = pDM_Odm->Adapter;
|
struct adapter * Adapter = pDM_Odm->Adapter;
|
||||||
|
@ -71,9 +71,9 @@ ODM_Write1Byte(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_Write2Byte(
|
ODM_Write2Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u16 Data
|
u16 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct adapter * Adapter = pDM_Odm->Adapter;
|
struct adapter * Adapter = pDM_Odm->Adapter;
|
||||||
|
@ -82,9 +82,9 @@ ODM_Write2Byte(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_Write4Byte(
|
ODM_Write4Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct adapter * Adapter = pDM_Odm->Adapter;
|
struct adapter * Adapter = pDM_Odm->Adapter;
|
||||||
|
@ -93,10 +93,10 @@ ODM_Write4Byte(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_SetMACReg(
|
ODM_SetMACReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct adapter * Adapter = pDM_Odm->Adapter;
|
struct adapter * Adapter = pDM_Odm->Adapter;
|
||||||
|
@ -105,9 +105,9 @@ ODM_SetMACReg(
|
||||||
|
|
||||||
u32
|
u32
|
||||||
ODM_GetMACReg(
|
ODM_GetMACReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask
|
u32 BitMask
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct adapter * Adapter = pDM_Odm->Adapter;
|
struct adapter * Adapter = pDM_Odm->Adapter;
|
||||||
|
@ -116,10 +116,10 @@ ODM_GetMACReg(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_SetBBReg(
|
ODM_SetBBReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct adapter * Adapter = pDM_Odm->Adapter;
|
struct adapter * Adapter = pDM_Odm->Adapter;
|
||||||
|
@ -129,9 +129,9 @@ ODM_SetBBReg(
|
||||||
|
|
||||||
u32
|
u32
|
||||||
ODM_GetBBReg(
|
ODM_GetBBReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask
|
u32 BitMask
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct adapter * Adapter = pDM_Odm->Adapter;
|
struct adapter * Adapter = pDM_Odm->Adapter;
|
||||||
|
@ -140,11 +140,11 @@ ODM_GetBBReg(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_SetRFReg(
|
ODM_SetRFReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN ODM_RF_RADIO_PATH_E eRFPath,
|
ODM_RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct adapter * Adapter = pDM_Odm->Adapter;
|
struct adapter * Adapter = pDM_Odm->Adapter;
|
||||||
|
@ -153,10 +153,10 @@ ODM_SetRFReg(
|
||||||
|
|
||||||
u32
|
u32
|
||||||
ODM_GetRFReg(
|
ODM_GetRFReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN ODM_RF_RADIO_PATH_E eRFPath,
|
ODM_RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask
|
u32 BitMask
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct adapter * Adapter = pDM_Odm->Adapter;
|
struct adapter * Adapter = pDM_Odm->Adapter;
|
||||||
|
@ -170,9 +170,9 @@ ODM_GetRFReg(
|
||||||
/* */
|
/* */
|
||||||
void
|
void
|
||||||
ODM_AllocateMemory(
|
ODM_AllocateMemory(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
OUT void * *pPtr,
|
void * *pPtr,
|
||||||
IN u32 length
|
u32 length
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
*pPtr = rtw_zvmalloc(length);
|
*pPtr = rtw_zvmalloc(length);
|
||||||
|
@ -181,19 +181,19 @@ ODM_AllocateMemory(
|
||||||
/* length could be ignored, used to detect memory leakage. */
|
/* length could be ignored, used to detect memory leakage. */
|
||||||
void
|
void
|
||||||
ODM_FreeMemory(
|
ODM_FreeMemory(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
OUT void * pPtr,
|
void * pPtr,
|
||||||
IN u32 length
|
u32 length
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rtw_vmfree(pPtr, length);
|
rtw_vmfree(pPtr, length);
|
||||||
}
|
}
|
||||||
|
|
||||||
s32 ODM_CompareMemory(
|
s32 ODM_CompareMemory(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN void * pBuf1,
|
void * pBuf1,
|
||||||
IN void * pBuf2,
|
void * pBuf2,
|
||||||
IN u32 length
|
u32 length
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return _rtw_memcmp(pBuf1,pBuf2,length);
|
return _rtw_memcmp(pBuf1,pBuf2,length);
|
||||||
|
@ -204,16 +204,16 @@ s32 ODM_CompareMemory(
|
||||||
/* */
|
/* */
|
||||||
void
|
void
|
||||||
ODM_AcquireSpinLock(
|
ODM_AcquireSpinLock(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN RT_SPINLOCK_TYPE type
|
RT_SPINLOCK_TYPE type
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_ReleaseSpinLock(
|
ODM_ReleaseSpinLock(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN RT_SPINLOCK_TYPE type
|
RT_SPINLOCK_TYPE type
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -223,46 +223,46 @@ ODM_ReleaseSpinLock(
|
||||||
/* */
|
/* */
|
||||||
void
|
void
|
||||||
ODM_InitializeWorkItem(
|
ODM_InitializeWorkItem(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PRT_WORK_ITEM pRtWorkItem,
|
PRT_WORK_ITEM pRtWorkItem,
|
||||||
IN RT_WORKITEM_CALL_BACK RtWorkItemCallback,
|
RT_WORKITEM_CALL_BACK RtWorkItemCallback,
|
||||||
IN void * pContext,
|
void * pContext,
|
||||||
IN const char* szID
|
const char* szID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_StartWorkItem(
|
ODM_StartWorkItem(
|
||||||
IN PRT_WORK_ITEM pRtWorkItem
|
PRT_WORK_ITEM pRtWorkItem
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_StopWorkItem(
|
ODM_StopWorkItem(
|
||||||
IN PRT_WORK_ITEM pRtWorkItem
|
PRT_WORK_ITEM pRtWorkItem
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_FreeWorkItem(
|
ODM_FreeWorkItem(
|
||||||
IN PRT_WORK_ITEM pRtWorkItem
|
PRT_WORK_ITEM pRtWorkItem
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_ScheduleWorkItem(
|
ODM_ScheduleWorkItem(
|
||||||
IN PRT_WORK_ITEM pRtWorkItem
|
PRT_WORK_ITEM pRtWorkItem
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_IsWorkItemScheduled(
|
ODM_IsWorkItemScheduled(
|
||||||
IN PRT_WORK_ITEM pRtWorkItem
|
PRT_WORK_ITEM pRtWorkItem
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -272,41 +272,41 @@ ODM_IsWorkItemScheduled(
|
||||||
/* */
|
/* */
|
||||||
void
|
void
|
||||||
ODM_StallExecution(
|
ODM_StallExecution(
|
||||||
IN u32 usDelay
|
u32 usDelay
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rtw_udelay_os(usDelay);
|
rtw_udelay_os(usDelay);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_delay_ms(IN u32 ms)
|
ODM_delay_ms(u32 ms)
|
||||||
{
|
{
|
||||||
rtw_mdelay_os(ms);
|
rtw_mdelay_os(ms);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_delay_us(IN u32 us)
|
ODM_delay_us(u32 us)
|
||||||
{
|
{
|
||||||
rtw_udelay_os(us);
|
rtw_udelay_os(us);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_sleep_ms(IN u32 ms)
|
ODM_sleep_ms(u32 ms)
|
||||||
{
|
{
|
||||||
rtw_msleep_os(ms);
|
rtw_msleep_os(ms);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_sleep_us(IN u32 us)
|
ODM_sleep_us(u32 us)
|
||||||
{
|
{
|
||||||
rtw_usleep_os(us);
|
rtw_usleep_os(us);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_SetTimer(
|
ODM_SetTimer(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PRT_TIMER pTimer,
|
PRT_TIMER pTimer,
|
||||||
IN u32 msDelay
|
u32 msDelay
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
_set_timer(pTimer,msDelay ); /* ms */
|
_set_timer(pTimer,msDelay ); /* ms */
|
||||||
|
@ -314,11 +314,11 @@ ODM_SetTimer(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_InitializeTimer(
|
ODM_InitializeTimer(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PRT_TIMER pTimer,
|
PRT_TIMER pTimer,
|
||||||
IN RT_TIMER_CALL_BACK CallBackFunc,
|
RT_TIMER_CALL_BACK CallBackFunc,
|
||||||
IN void * pContext,
|
void * pContext,
|
||||||
IN const char* szID
|
const char* szID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct adapter *Adapter = pDM_Odm->Adapter;
|
struct adapter *Adapter = pDM_Odm->Adapter;
|
||||||
|
@ -327,8 +327,8 @@ ODM_InitializeTimer(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_CancelTimer(
|
ODM_CancelTimer(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PRT_TIMER pTimer
|
PRT_TIMER pTimer
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
_cancel_timer_ex(pTimer);
|
_cancel_timer_ex(pTimer);
|
||||||
|
@ -336,8 +336,8 @@ ODM_CancelTimer(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_ReleaseTimer(
|
ODM_ReleaseTimer(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PRT_TIMER pTimer
|
PRT_TIMER pTimer
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -347,13 +347,13 @@ ODM_ReleaseTimer(
|
||||||
/* */
|
/* */
|
||||||
u32
|
u32
|
||||||
ODM_FillH2CCmd(
|
ODM_FillH2CCmd(
|
||||||
IN u8 * pH2CBuffer,
|
u8 * pH2CBuffer,
|
||||||
IN u32 H2CBufferLen,
|
u32 H2CBufferLen,
|
||||||
IN u32 CmdNum,
|
u32 CmdNum,
|
||||||
IN u32 * pElementID,
|
u32 * pElementID,
|
||||||
IN u32 * pCmdLen,
|
u32 * pCmdLen,
|
||||||
IN u8 ** pCmbBuffer,
|
u8 ** pCmbBuffer,
|
||||||
IN u8 * CmdStartSeq
|
u8 * CmdStartSeq
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -93,88 +93,88 @@ typedef void (*RT_WORKITEM_CALL_BACK)(void * pContext);
|
||||||
|
|
||||||
u8
|
u8
|
||||||
ODM_Read1Byte(
|
ODM_Read1Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 RegAddr
|
u32 RegAddr
|
||||||
);
|
);
|
||||||
|
|
||||||
u16
|
u16
|
||||||
ODM_Read2Byte(
|
ODM_Read2Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 RegAddr
|
u32 RegAddr
|
||||||
);
|
);
|
||||||
|
|
||||||
u32
|
u32
|
||||||
ODM_Read4Byte(
|
ODM_Read4Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 RegAddr
|
u32 RegAddr
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_Write1Byte(
|
ODM_Write1Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u8 Data
|
u8 Data
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_Write2Byte(
|
ODM_Write2Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u16 Data
|
u16 Data
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_Write4Byte(
|
ODM_Write4Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_SetMACReg(
|
ODM_SetMACReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
);
|
);
|
||||||
|
|
||||||
u32
|
u32
|
||||||
ODM_GetMACReg(
|
ODM_GetMACReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask
|
u32 BitMask
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_SetBBReg(
|
ODM_SetBBReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
);
|
);
|
||||||
|
|
||||||
u32
|
u32
|
||||||
ODM_GetBBReg(
|
ODM_GetBBReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask
|
u32 BitMask
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_SetRFReg(
|
ODM_SetRFReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN ODM_RF_RADIO_PATH_E eRFPath,
|
ODM_RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
);
|
);
|
||||||
|
|
||||||
u32
|
u32
|
||||||
ODM_GetRFReg(
|
ODM_GetRFReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN ODM_RF_RADIO_PATH_E eRFPath,
|
ODM_RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask
|
u32 BitMask
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
@ -183,22 +183,22 @@ ODM_GetRFReg(
|
||||||
/* */
|
/* */
|
||||||
void
|
void
|
||||||
ODM_AllocateMemory(
|
ODM_AllocateMemory(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
OUT void * *pPtr,
|
void * *pPtr,
|
||||||
IN u32 length
|
u32 length
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
ODM_FreeMemory(
|
ODM_FreeMemory(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
OUT void * pPtr,
|
void * pPtr,
|
||||||
IN u32 length
|
u32 length
|
||||||
);
|
);
|
||||||
|
|
||||||
s32 ODM_CompareMemory(
|
s32 ODM_CompareMemory(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN void * pBuf1,
|
void * pBuf1,
|
||||||
IN void * pBuf2,
|
void * pBuf2,
|
||||||
IN u32 length
|
u32 length
|
||||||
);
|
);
|
||||||
|
|
||||||
/* */
|
/* */
|
||||||
|
@ -206,14 +206,14 @@ s32 ODM_CompareMemory(
|
||||||
/* */
|
/* */
|
||||||
void
|
void
|
||||||
ODM_AcquireSpinLock(
|
ODM_AcquireSpinLock(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN RT_SPINLOCK_TYPE type
|
RT_SPINLOCK_TYPE type
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_ReleaseSpinLock(
|
ODM_ReleaseSpinLock(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN RT_SPINLOCK_TYPE type
|
RT_SPINLOCK_TYPE type
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
@ -222,36 +222,36 @@ ODM_ReleaseSpinLock(
|
||||||
/* */
|
/* */
|
||||||
void
|
void
|
||||||
ODM_InitializeWorkItem(
|
ODM_InitializeWorkItem(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PRT_WORK_ITEM pRtWorkItem,
|
PRT_WORK_ITEM pRtWorkItem,
|
||||||
IN RT_WORKITEM_CALL_BACK RtWorkItemCallback,
|
RT_WORKITEM_CALL_BACK RtWorkItemCallback,
|
||||||
IN void * pContext,
|
void * pContext,
|
||||||
IN const char* szID
|
const char* szID
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_StartWorkItem(
|
ODM_StartWorkItem(
|
||||||
IN PRT_WORK_ITEM pRtWorkItem
|
PRT_WORK_ITEM pRtWorkItem
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_StopWorkItem(
|
ODM_StopWorkItem(
|
||||||
IN PRT_WORK_ITEM pRtWorkItem
|
PRT_WORK_ITEM pRtWorkItem
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_FreeWorkItem(
|
ODM_FreeWorkItem(
|
||||||
IN PRT_WORK_ITEM pRtWorkItem
|
PRT_WORK_ITEM pRtWorkItem
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_ScheduleWorkItem(
|
ODM_ScheduleWorkItem(
|
||||||
IN PRT_WORK_ITEM pRtWorkItem
|
PRT_WORK_ITEM pRtWorkItem
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_IsWorkItemScheduled(
|
ODM_IsWorkItemScheduled(
|
||||||
IN PRT_WORK_ITEM pRtWorkItem
|
PRT_WORK_ITEM pRtWorkItem
|
||||||
);
|
);
|
||||||
|
|
||||||
/* */
|
/* */
|
||||||
|
@ -259,48 +259,48 @@ ODM_IsWorkItemScheduled(
|
||||||
/* */
|
/* */
|
||||||
void
|
void
|
||||||
ODM_StallExecution(
|
ODM_StallExecution(
|
||||||
IN u32 usDelay
|
u32 usDelay
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_delay_ms(IN u32 ms);
|
ODM_delay_ms(u32 ms);
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_delay_us(IN u32 us);
|
ODM_delay_us(u32 us);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_sleep_ms(IN u32 ms);
|
ODM_sleep_ms(u32 ms);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_sleep_us(IN u32 us);
|
ODM_sleep_us(u32 us);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_SetTimer(
|
ODM_SetTimer(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PRT_TIMER pTimer,
|
PRT_TIMER pTimer,
|
||||||
IN u32 msDelay
|
u32 msDelay
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_InitializeTimer(
|
ODM_InitializeTimer(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PRT_TIMER pTimer,
|
PRT_TIMER pTimer,
|
||||||
IN RT_TIMER_CALL_BACK CallBackFunc,
|
RT_TIMER_CALL_BACK CallBackFunc,
|
||||||
IN void * pContext,
|
void * pContext,
|
||||||
IN const char* szID
|
const char* szID
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_CancelTimer(
|
ODM_CancelTimer(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PRT_TIMER pTimer
|
PRT_TIMER pTimer
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_ReleaseTimer(
|
ODM_ReleaseTimer(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PRT_TIMER pTimer
|
PRT_TIMER pTimer
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
@ -309,13 +309,13 @@ ODM_ReleaseTimer(
|
||||||
/* */
|
/* */
|
||||||
u32
|
u32
|
||||||
ODM_FillH2CCmd(
|
ODM_FillH2CCmd(
|
||||||
IN u8 * pH2CBuffer,
|
u8 * pH2CBuffer,
|
||||||
IN u32 H2CBufferLen,
|
u32 H2CBufferLen,
|
||||||
IN u32 CmdNum,
|
u32 CmdNum,
|
||||||
IN u32 * pElementID,
|
u32 * pElementID,
|
||||||
IN u32 * pCmdLen,
|
u32 * pCmdLen,
|
||||||
IN u8 ** pCmbBuffer,
|
u8 ** pCmbBuffer,
|
||||||
IN u8 * CmdStartSeq
|
u8 * CmdStartSeq
|
||||||
);
|
);
|
||||||
|
|
||||||
#endif /* __ODM_INTERFACE_H__ */
|
#endif /* __ODM_INTERFACE_H__ */
|
||||||
|
|
|
@ -555,7 +555,7 @@ static void rtl8188e_set_FwRsvdPage_cmd(struct adapter *padapter, PRSVDPAGE_LOC
|
||||||
/* 2010.06.23. Added by tynli. */
|
/* 2010.06.23. Added by tynli. */
|
||||||
void
|
void
|
||||||
CheckFwRsvdPageContent(
|
CheckFwRsvdPageContent(
|
||||||
IN struct adapter * Adapter
|
struct adapter * Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE* pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE* pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
|
|
@ -42,14 +42,14 @@
|
||||||
|
|
||||||
static void
|
static void
|
||||||
dm_CheckProtection(
|
dm_CheckProtection(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
dm_CheckStatistics(
|
dm_CheckStatistics(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -99,7 +99,7 @@ static void dm_CheckPbcGPIO(struct adapter *padapter)
|
||||||
/* Initialize GPIO setting registers */
|
/* Initialize GPIO setting registers */
|
||||||
static void
|
static void
|
||||||
dm_InitGPIOSetting(
|
dm_InitGPIOSetting(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -244,7 +244,7 @@ static void Update_ODM_ComInfo_88E(struct adapter *Adapter)
|
||||||
|
|
||||||
void
|
void
|
||||||
rtl8188e_InitHalDm(
|
rtl8188e_InitHalDm(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -267,7 +267,7 @@ rtl8188e_InitHalDm(
|
||||||
|
|
||||||
void
|
void
|
||||||
rtl8188e_HalDmWatchDog(
|
rtl8188e_HalDmWatchDog(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
bool bFwCurrentInPSMode = false;
|
bool bFwCurrentInPSMode = false;
|
||||||
|
@ -329,7 +329,7 @@ skip_dm:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void rtl8188e_init_dm_priv(IN struct adapter *Adapter)
|
void rtl8188e_init_dm_priv(struct adapter *Adapter)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
||||||
struct dm_priv *pdmpriv = &pHalData->dmpriv;
|
struct dm_priv *pdmpriv = &pHalData->dmpriv;
|
||||||
|
@ -340,7 +340,7 @@ void rtl8188e_init_dm_priv(IN struct adapter *Adapter)
|
||||||
ODM_InitDebugSetting(podmpriv);
|
ODM_InitDebugSetting(podmpriv);
|
||||||
}
|
}
|
||||||
|
|
||||||
void rtl8188e_deinit_dm_priv(IN struct adapter *Adapter)
|
void rtl8188e_deinit_dm_priv(struct adapter *Adapter)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
||||||
struct dm_priv *pdmpriv = &pHalData->dmpriv;
|
struct dm_priv *pdmpriv = &pHalData->dmpriv;
|
||||||
|
|
|
@ -517,8 +517,8 @@ void rtw_IOL_cmd_tx_pkt_buf_dump(struct adapter *Adapter,int data_len)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_FWDownloadEnable(
|
_FWDownloadEnable(
|
||||||
IN struct adapter * padapter,
|
struct adapter * padapter,
|
||||||
IN bool enable
|
bool enable
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 tmp;
|
u8 tmp;
|
||||||
|
@ -547,9 +547,9 @@ _FWDownloadEnable(
|
||||||
#define MAX_REG_BOLCK_SIZE 196
|
#define MAX_REG_BOLCK_SIZE 196
|
||||||
static int
|
static int
|
||||||
_BlockWrite(
|
_BlockWrite(
|
||||||
IN struct adapter * padapter,
|
struct adapter * padapter,
|
||||||
IN void * buffer,
|
void * buffer,
|
||||||
IN u32 buffSize
|
u32 buffSize
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int ret = _SUCCESS;
|
int ret = _SUCCESS;
|
||||||
|
@ -627,10 +627,10 @@ exit:
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_PageWrite(
|
_PageWrite(
|
||||||
IN struct adapter *padapter,
|
struct adapter *padapter,
|
||||||
IN u32 page,
|
u32 page,
|
||||||
IN void * buffer,
|
void * buffer,
|
||||||
IN u32 size
|
u32 size
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 value8;
|
u8 value8;
|
||||||
|
@ -664,9 +664,9 @@ _FillDummy(
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_WriteFW(
|
_WriteFW(
|
||||||
IN struct adapter * padapter,
|
struct adapter * padapter,
|
||||||
IN void * buffer,
|
void * buffer,
|
||||||
IN u32 size
|
u32 size
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* Since we need dynamic decide method of dwonload fw, so we call this function to get chip version. */
|
/* Since we need dynamic decide method of dwonload fw, so we call this function to get chip version. */
|
||||||
|
@ -921,31 +921,31 @@ enum{
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
hal_EfusePgPacketWrite2ByteHeader(
|
hal_EfusePgPacketWrite2ByteHeader(
|
||||||
IN struct adapter * pAdapter,
|
struct adapter * pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN bool bPseudoTest);
|
bool bPseudoTest);
|
||||||
static bool
|
static bool
|
||||||
hal_EfusePgPacketWrite1ByteHeader(
|
hal_EfusePgPacketWrite1ByteHeader(
|
||||||
IN struct adapter * pAdapter,
|
struct adapter * pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN bool bPseudoTest);
|
bool bPseudoTest);
|
||||||
static bool
|
static bool
|
||||||
hal_EfusePgPacketWriteData(
|
hal_EfusePgPacketWriteData(
|
||||||
IN struct adapter * pAdapter,
|
struct adapter * pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN bool bPseudoTest);
|
bool bPseudoTest);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
hal_EfusePowerSwitch_RTL8188E(
|
hal_EfusePowerSwitch_RTL8188E(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 bWrite,
|
u8 bWrite,
|
||||||
IN u8 PwrState)
|
u8 PwrState)
|
||||||
{
|
{
|
||||||
u8 tempval;
|
u8 tempval;
|
||||||
u16 tmpV16;
|
u16 tmpV16;
|
||||||
|
@ -997,9 +997,9 @@ hal_EfusePowerSwitch_RTL8188E(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
rtl8188e_EfusePowerSwitch(
|
rtl8188e_EfusePowerSwitch(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 bWrite,
|
u8 bWrite,
|
||||||
IN u8 PwrState)
|
u8 PwrState)
|
||||||
{
|
{
|
||||||
hal_EfusePowerSwitch_RTL8188E(pAdapter, bWrite, PwrState);
|
hal_EfusePowerSwitch_RTL8188E(pAdapter, bWrite, PwrState);
|
||||||
}
|
}
|
||||||
|
@ -1053,7 +1053,7 @@ Hal_EfuseReadEFuse88E(
|
||||||
u16 _offset,
|
u16 _offset,
|
||||||
u16 _size_byte,
|
u16 _size_byte,
|
||||||
u8 *pbuf,
|
u8 *pbuf,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* u8 efuseTbl[EFUSE_MAP_LEN_88E]; */
|
/* u8 efuseTbl[EFUSE_MAP_LEN_88E]; */
|
||||||
|
@ -1244,9 +1244,9 @@ exit:
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
Hal_EfuseSwitchToBank(
|
Hal_EfuseSwitchToBank(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 bank,
|
u8 bank,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
bool bRet = false;
|
bool bRet = false;
|
||||||
|
@ -1301,7 +1301,7 @@ ReadEFuseByIC(
|
||||||
u16 _offset,
|
u16 _offset,
|
||||||
u16 _size_byte,
|
u16 _size_byte,
|
||||||
u8 *pbuf,
|
u8 *pbuf,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#ifdef DBG_IOL_READ_EFUSE_MAP
|
#ifdef DBG_IOL_READ_EFUSE_MAP
|
||||||
|
@ -1358,7 +1358,7 @@ ReadEFuse_Pseudo(
|
||||||
u16 _offset,
|
u16 _offset,
|
||||||
u16 _size_byte,
|
u16 _size_byte,
|
||||||
u8 *pbuf,
|
u8 *pbuf,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
Hal_EfuseReadEFuse88E(Adapter, _offset, _size_byte, pbuf, bPseudoTest);
|
Hal_EfuseReadEFuse88E(Adapter, _offset, _size_byte, pbuf, bPseudoTest);
|
||||||
|
@ -1371,7 +1371,7 @@ rtl8188e_ReadEFuse(
|
||||||
u16 _offset,
|
u16 _offset,
|
||||||
u16 _size_byte,
|
u16 _size_byte,
|
||||||
u8 *pbuf,
|
u8 *pbuf,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if(bPseudoTest)
|
if(bPseudoTest)
|
||||||
|
@ -1386,10 +1386,10 @@ rtl8188e_ReadEFuse(
|
||||||
|
|
||||||
/* Do not support BT */
|
/* Do not support BT */
|
||||||
static void Hal_EFUSEGetEfuseDefinition88E(
|
static void Hal_EFUSEGetEfuseDefinition88E(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u8 type,
|
u8 type,
|
||||||
OUT void * pOut
|
void * pOut
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
switch(type) {
|
switch(type) {
|
||||||
|
@ -1453,10 +1453,10 @@ static void Hal_EFUSEGetEfuseDefinition88E(
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Hal_EFUSEGetEfuseDefinition_Pseudo88E(
|
static void Hal_EFUSEGetEfuseDefinition_Pseudo88E(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u8 type,
|
u8 type,
|
||||||
OUT void * pOut
|
void * pOut
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
switch(type)
|
switch(type)
|
||||||
|
@ -1523,11 +1523,11 @@ static void Hal_EFUSEGetEfuseDefinition_Pseudo88E(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
rtl8188e_EFUSE_GetEfuseDefinition(
|
rtl8188e_EFUSE_GetEfuseDefinition(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u8 type,
|
u8 type,
|
||||||
OUT void *pOut,
|
void *pOut,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if(bPseudoTest)
|
if(bPseudoTest)
|
||||||
|
@ -1541,11 +1541,11 @@ rtl8188e_EFUSE_GetEfuseDefinition(
|
||||||
}
|
}
|
||||||
|
|
||||||
static u8
|
static u8
|
||||||
Hal_EfuseWordEnableDataWrite( IN struct adapter *pAdapter,
|
Hal_EfuseWordEnableDataWrite(struct adapter *pAdapter,
|
||||||
IN u16 efuse_addr,
|
u16 efuse_addr,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
u16 tmpaddr = 0;
|
u16 tmpaddr = 0;
|
||||||
u16 start_addr = efuse_addr;
|
u16 start_addr = efuse_addr;
|
||||||
|
@ -1607,11 +1607,11 @@ Hal_EfuseWordEnableDataWrite( IN struct adapter *pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
static u8
|
static u8
|
||||||
Hal_EfuseWordEnableDataWrite_Pseudo( IN struct adapter *pAdapter,
|
Hal_EfuseWordEnableDataWrite_Pseudo(struct adapter *pAdapter,
|
||||||
IN u16 efuse_addr,
|
u16 efuse_addr,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
u8 ret=0;
|
u8 ret=0;
|
||||||
|
|
||||||
|
@ -1621,11 +1621,11 @@ Hal_EfuseWordEnableDataWrite_Pseudo( IN struct adapter *pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
static u8
|
static u8
|
||||||
rtl8188e_Efuse_WordEnableDataWrite( IN struct adapter *pAdapter,
|
rtl8188e_Efuse_WordEnableDataWrite(struct adapter *pAdapter,
|
||||||
IN u16 efuse_addr,
|
u16 efuse_addr,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
u8 ret=0;
|
u8 ret=0;
|
||||||
|
|
||||||
|
@ -1643,8 +1643,8 @@ rtl8188e_Efuse_WordEnableDataWrite( IN struct adapter *pAdapter,
|
||||||
|
|
||||||
|
|
||||||
static u16
|
static u16
|
||||||
hal_EfuseGetCurrentSize_8188e(IN struct adapter *pAdapter,
|
hal_EfuseGetCurrentSize_8188e(struct adapter *pAdapter,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
int bContinual = true;
|
int bContinual = true;
|
||||||
|
|
||||||
|
@ -1714,8 +1714,8 @@ hal_EfuseGetCurrentSize_8188e(IN struct adapter *pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
static u16
|
static u16
|
||||||
Hal_EfuseGetCurrentSize_Pseudo(IN struct adapter *pAdapter,
|
Hal_EfuseGetCurrentSize_Pseudo(struct adapter *pAdapter,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
u16 ret=0;
|
u16 ret=0;
|
||||||
|
|
||||||
|
@ -1727,9 +1727,9 @@ Hal_EfuseGetCurrentSize_Pseudo(IN struct adapter *pAdapter,
|
||||||
|
|
||||||
static u16
|
static u16
|
||||||
rtl8188e_EfuseGetCurrentSize(
|
rtl8188e_EfuseGetCurrentSize(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
u16 ret=0;
|
u16 ret=0;
|
||||||
|
|
||||||
|
@ -1749,10 +1749,10 @@ rtl8188e_EfuseGetCurrentSize(
|
||||||
|
|
||||||
static int
|
static int
|
||||||
hal_EfusePgPacketRead_8188e(
|
hal_EfusePgPacketRead_8188e(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
u8 ReadState = PG_STATE_HEADER;
|
u8 ReadState = PG_STATE_HEADER;
|
||||||
|
|
||||||
|
@ -1864,10 +1864,10 @@ hal_EfusePgPacketRead_8188e(
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
Hal_EfusePgPacketRead( IN struct adapter *pAdapter,
|
Hal_EfusePgPacketRead( struct adapter *pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret=0;
|
int ret=0;
|
||||||
|
|
||||||
|
@ -1878,10 +1878,10 @@ Hal_EfusePgPacketRead( IN struct adapter *pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
Hal_EfusePgPacketRead_Pseudo( IN struct adapter *pAdapter,
|
Hal_EfusePgPacketRead_Pseudo( struct adapter *pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret=0;
|
int ret=0;
|
||||||
|
|
||||||
|
@ -1891,10 +1891,10 @@ Hal_EfusePgPacketRead_Pseudo( IN struct adapter *pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
rtl8188e_Efuse_PgPacketRead( IN struct adapter *pAdapter,
|
rtl8188e_Efuse_PgPacketRead( struct adapter *pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret=0;
|
int ret=0;
|
||||||
|
|
||||||
|
@ -1912,11 +1912,11 @@ rtl8188e_Efuse_PgPacketRead( IN struct adapter *pAdapter,
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
hal_EfuseFixHeaderProcess(
|
hal_EfuseFixHeaderProcess(
|
||||||
IN struct adapter * pAdapter,
|
struct adapter * pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN PPGPKT_STRUCT pFixPkt,
|
PPGPKT_STRUCT pFixPkt,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 originaldata[8], badworden=0;
|
u8 originaldata[8], badworden=0;
|
||||||
|
@ -1953,11 +1953,11 @@ hal_EfuseFixHeaderProcess(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
hal_EfusePgPacketWrite2ByteHeader(
|
hal_EfusePgPacketWrite2ByteHeader(
|
||||||
IN struct adapter * pAdapter,
|
struct adapter * pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
bool bRet=false, bContinual=true;
|
bool bRet=false, bContinual=true;
|
||||||
u16 efuse_addr=*pAddr, efuse_max_available_len=0;
|
u16 efuse_addr=*pAddr, efuse_max_available_len=0;
|
||||||
|
@ -2050,11 +2050,11 @@ hal_EfusePgPacketWrite2ByteHeader(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
hal_EfusePgPacketWrite1ByteHeader(
|
hal_EfusePgPacketWrite1ByteHeader(
|
||||||
IN struct adapter * pAdapter,
|
struct adapter * pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
bool bRet=false;
|
bool bRet=false;
|
||||||
u8 pg_header=0, tmp_header=0;
|
u8 pg_header=0, tmp_header=0;
|
||||||
|
@ -2098,11 +2098,11 @@ hal_EfusePgPacketWrite1ByteHeader(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
hal_EfusePgPacketWriteData(
|
hal_EfusePgPacketWriteData(
|
||||||
IN struct adapter * pAdapter,
|
struct adapter * pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
bool bRet=false;
|
bool bRet=false;
|
||||||
u16 efuse_addr=*pAddr;
|
u16 efuse_addr=*pAddr;
|
||||||
|
@ -2135,11 +2135,11 @@ hal_EfusePgPacketWriteData(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
hal_EfusePgPacketWriteHeader(
|
hal_EfusePgPacketWriteHeader(
|
||||||
IN struct adapter * pAdapter,
|
struct adapter * pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
bool bRet=false;
|
bool bRet=false;
|
||||||
|
|
||||||
|
@ -2157,9 +2157,9 @@ hal_EfusePgPacketWriteHeader(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
wordEnMatched(
|
wordEnMatched(
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN PPGPKT_STRUCT pCurPkt,
|
PPGPKT_STRUCT pCurPkt,
|
||||||
IN u8 *pWden
|
u8 *pWden
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 match_word_en = 0x0F; /* default all words are disabled */
|
u8 match_word_en = 0x0F; /* default all words are disabled */
|
||||||
|
@ -2197,10 +2197,10 @@ wordEnMatched(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
hal_EfuseCheckIfDatafollowed(
|
hal_EfuseCheckIfDatafollowed(
|
||||||
IN struct adapter * pAdapter,
|
struct adapter * pAdapter,
|
||||||
IN u8 word_cnts,
|
u8 word_cnts,
|
||||||
IN u16 startAddr,
|
u16 startAddr,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
bool bRet=false;
|
bool bRet=false;
|
||||||
|
@ -2217,11 +2217,11 @@ hal_EfuseCheckIfDatafollowed(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
hal_EfusePartialWriteCheck(
|
hal_EfusePartialWriteCheck(
|
||||||
IN struct adapter * pAdapter,
|
struct adapter * pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
bool bRet=false;
|
bool bRet=false;
|
||||||
|
@ -2342,9 +2342,9 @@ hal_EfusePartialWriteCheck(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
hal_EfusePgCheckAvailableAddr(
|
hal_EfusePgCheckAvailableAddr(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u16 efuse_max_available_len=0;
|
u16 efuse_max_available_len=0;
|
||||||
|
@ -2365,10 +2365,10 @@ hal_EfusePgCheckAvailableAddr(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
hal_EfuseConstructPGPkt(
|
hal_EfuseConstructPGPkt(
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *pData,
|
u8 *pData,
|
||||||
IN PPGPKT_STRUCT pTargetPkt
|
PPGPKT_STRUCT pTargetPkt
|
||||||
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -2383,11 +2383,11 @@ hal_EfuseConstructPGPkt(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
hal_EfusePgPacketWrite_BT(
|
hal_EfusePgPacketWrite_BT(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *pData,
|
u8 *pData,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PGPKT_STRUCT targetPkt;
|
PGPKT_STRUCT targetPkt;
|
||||||
|
@ -2413,11 +2413,11 @@ hal_EfusePgPacketWrite_BT(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
hal_EfusePgPacketWrite_8188e(
|
hal_EfusePgPacketWrite_8188e(
|
||||||
IN struct adapter * pAdapter,
|
struct adapter * pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *pData,
|
u8 *pData,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PGPKT_STRUCT targetPkt;
|
PGPKT_STRUCT targetPkt;
|
||||||
|
@ -2443,11 +2443,11 @@ hal_EfusePgPacketWrite_8188e(
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
Hal_EfusePgPacketWrite_Pseudo(IN struct adapter *pAdapter,
|
Hal_EfusePgPacketWrite_Pseudo(struct adapter *pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -2457,11 +2457,11 @@ Hal_EfusePgPacketWrite_Pseudo(IN struct adapter *pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
Hal_EfusePgPacketWrite(IN struct adapter *pAdapter,
|
Hal_EfusePgPacketWrite(struct adapter *pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret=0;
|
int ret=0;
|
||||||
ret = hal_EfusePgPacketWrite_8188e(pAdapter, offset, word_en, data, bPseudoTest);
|
ret = hal_EfusePgPacketWrite_8188e(pAdapter, offset, word_en, data, bPseudoTest);
|
||||||
|
@ -2471,11 +2471,11 @@ Hal_EfusePgPacketWrite(IN struct adapter *pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
rtl8188e_Efuse_PgPacketWrite(IN struct adapter *pAdapter,
|
rtl8188e_Efuse_PgPacketWrite(struct adapter *pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -2492,7 +2492,7 @@ rtl8188e_Efuse_PgPacketWrite(IN struct adapter *pAdapter,
|
||||||
|
|
||||||
static HAL_VERSION
|
static HAL_VERSION
|
||||||
ReadChipVersion8188E(
|
ReadChipVersion8188E(
|
||||||
IN struct adapter *padapter
|
struct adapter *padapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 value32;
|
u32 value32;
|
||||||
|
@ -2827,8 +2827,8 @@ Hal_InitPGData88E(struct adapter *padapter)
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_EfuseParseIDCode88E(
|
Hal_EfuseParseIDCode88E(
|
||||||
IN struct adapter *padapter,
|
struct adapter *padapter,
|
||||||
IN u8 *hwinfo
|
u8 *hwinfo
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(padapter);
|
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(padapter);
|
||||||
|
@ -2850,9 +2850,9 @@ Hal_EfuseParseIDCode88E(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
Hal_EEValueCheck(
|
Hal_EEValueCheck(
|
||||||
IN u8 EEType,
|
u8 EEType,
|
||||||
IN void * pInValue,
|
void * pInValue,
|
||||||
OUT void * pOutValue
|
void * pOutValue
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
switch(EEType)
|
switch(EEType)
|
||||||
|
@ -2881,10 +2881,10 @@ Hal_EEValueCheck(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
Hal_ReadPowerValueFromPROM_8188E(
|
Hal_ReadPowerValueFromPROM_8188E(
|
||||||
IN struct adapter * padapter,
|
struct adapter * padapter,
|
||||||
IN PTxPowerInfo24G pwrInfo24G,
|
PTxPowerInfo24G pwrInfo24G,
|
||||||
IN u8* PROMContent,
|
u8* PROMContent,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 rfPath, eeAddr=EEPROM_TX_PWR_INX_88E, group,TxCount=0;
|
u32 rfPath, eeAddr=EEPROM_TX_PWR_INX_88E, group,TxCount=0;
|
||||||
|
@ -3021,7 +3021,7 @@ Hal_ReadPowerValueFromPROM_8188E(
|
||||||
|
|
||||||
static u8
|
static u8
|
||||||
Hal_GetChnlGroup(
|
Hal_GetChnlGroup(
|
||||||
IN u8 chnl
|
u8 chnl
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 group=0;
|
u8 group=0;
|
||||||
|
@ -3037,8 +3037,8 @@ Hal_GetChnlGroup(
|
||||||
}
|
}
|
||||||
static u8
|
static u8
|
||||||
Hal_GetChnlGroup88E(
|
Hal_GetChnlGroup88E(
|
||||||
IN u8 chnl,
|
u8 chnl,
|
||||||
OUT u8* pGroup
|
u8* pGroup
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 bIn24G=true;
|
u8 bIn24G=true;
|
||||||
|
@ -3106,8 +3106,8 @@ Hal_GetChnlGroup88E(
|
||||||
|
|
||||||
void Hal_ReadPowerSavingMode88E(
|
void Hal_ReadPowerSavingMode88E(
|
||||||
struct adapter * padapter,
|
struct adapter * padapter,
|
||||||
IN u8* hwinfo,
|
u8* hwinfo,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||||
|
@ -3144,9 +3144,9 @@ void Hal_ReadPowerSavingMode88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_ReadTxPowerInfo88E(
|
Hal_ReadTxPowerInfo88E(
|
||||||
IN struct adapter * padapter,
|
struct adapter * padapter,
|
||||||
IN u8* PROMContent,
|
u8* PROMContent,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||||
|
@ -3225,9 +3225,9 @@ Hal_ReadTxPowerInfo88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_EfuseParseXtal_8188E(
|
Hal_EfuseParseXtal_8188E(
|
||||||
IN struct adapter * pAdapter,
|
struct adapter * pAdapter,
|
||||||
IN u8* hwinfo,
|
u8* hwinfo,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -3247,9 +3247,9 @@ Hal_EfuseParseXtal_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_EfuseParseBoardType88E(
|
Hal_EfuseParseBoardType88E(
|
||||||
IN struct adapter * pAdapter,
|
struct adapter * pAdapter,
|
||||||
IN u8* hwinfo,
|
u8* hwinfo,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -3263,9 +3263,9 @@ Hal_EfuseParseBoardType88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_EfuseParseEEPROMVer88E(
|
Hal_EfuseParseEEPROMVer88E(
|
||||||
IN struct adapter * padapter,
|
struct adapter * padapter,
|
||||||
IN u8* hwinfo,
|
u8* hwinfo,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||||
|
@ -3284,9 +3284,9 @@ Hal_EfuseParseEEPROMVer88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
rtl8188e_EfuseParseChnlPlan(
|
rtl8188e_EfuseParseChnlPlan(
|
||||||
IN struct adapter * padapter,
|
struct adapter * padapter,
|
||||||
IN u8* hwinfo,
|
u8* hwinfo,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
padapter->mlmepriv.ChannelPlan = hal_com_get_channel_plan(
|
padapter->mlmepriv.ChannelPlan = hal_com_get_channel_plan(
|
||||||
|
@ -3302,9 +3302,9 @@ rtl8188e_EfuseParseChnlPlan(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_EfuseParseCustomerID88E(
|
Hal_EfuseParseCustomerID88E(
|
||||||
IN struct adapter * padapter,
|
struct adapter * padapter,
|
||||||
IN u8* hwinfo,
|
u8* hwinfo,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||||
|
@ -3326,9 +3326,9 @@ Hal_EfuseParseCustomerID88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_ReadAntennaDiversity88E(
|
Hal_ReadAntennaDiversity88E(
|
||||||
IN struct adapter * pAdapter,
|
struct adapter * pAdapter,
|
||||||
IN u8* PROMContent,
|
u8* PROMContent,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -3374,9 +3374,9 @@ Hal_ReadAntennaDiversity88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_ReadThermalMeter_88E(
|
Hal_ReadThermalMeter_88E(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u8* PROMContent,
|
u8* PROMContent,
|
||||||
IN bool AutoloadFail
|
bool AutoloadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -3404,7 +3404,7 @@ Hal_ReadThermalMeter_88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_InitChannelPlan(
|
Hal_InitChannelPlan(
|
||||||
IN struct adapter *padapter
|
struct adapter *padapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,7 +80,7 @@ phy_CalculateBitShift(
|
||||||
#if(SIC_ENABLE == 1)
|
#if(SIC_ENABLE == 1)
|
||||||
static bool
|
static bool
|
||||||
sic_IsSICReady(
|
sic_IsSICReady(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
bool bRet=false;
|
bool bRet=false;
|
||||||
|
@ -189,10 +189,10 @@ sic_Write4Byte(
|
||||||
/* */
|
/* */
|
||||||
static void
|
static void
|
||||||
SIC_SetBBReg(
|
SIC_SetBBReg(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -220,9 +220,9 @@ SIC_SetBBReg(
|
||||||
|
|
||||||
static u32
|
static u32
|
||||||
SIC_QueryBBReg(
|
SIC_QueryBBReg(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask
|
u32 BitMask
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -245,7 +245,7 @@ SIC_QueryBBReg(
|
||||||
|
|
||||||
void
|
void
|
||||||
SIC_Init(
|
SIC_Init(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* Here we need to write 0x1b8~0x1bf = 0 after fw is downloaded */
|
/* Here we need to write 0x1b8~0x1bf = 0 after fw is downloaded */
|
||||||
|
@ -271,7 +271,7 @@ SIC_Init(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
SIC_LedOff(
|
SIC_LedOff(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* When SIC is enabled, led pin will be used as debug pin, */
|
/* When SIC is enabled, led pin will be used as debug pin, */
|
||||||
|
@ -296,9 +296,9 @@ SIC_LedOff(
|
||||||
*/
|
*/
|
||||||
u32
|
u32
|
||||||
rtl8188e_PHY_QueryBBReg(
|
rtl8188e_PHY_QueryBBReg(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask
|
u32 BitMask
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 ReturnValue = 0, OriginalValue, BitShift;
|
u32 ReturnValue = 0, OriginalValue, BitShift;
|
||||||
|
@ -341,10 +341,10 @@ rtl8188e_PHY_QueryBBReg(
|
||||||
|
|
||||||
void
|
void
|
||||||
rtl8188e_PHY_SetBBReg(
|
rtl8188e_PHY_SetBBReg(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -394,9 +394,9 @@ rtl8188e_PHY_SetBBReg(
|
||||||
*/
|
*/
|
||||||
static u32
|
static u32
|
||||||
phy_RFSerialRead(
|
phy_RFSerialRead(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 Offset
|
u32 Offset
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 retValue = 0;
|
u32 retValue = 0;
|
||||||
|
@ -511,10 +511,10 @@ phy_RFSerialRead(
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
phy_RFSerialWrite(
|
phy_RFSerialWrite(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 Offset,
|
u32 Offset,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 DataAndAddr = 0;
|
u32 DataAndAddr = 0;
|
||||||
|
@ -592,11 +592,11 @@ u32 rtl8188e_PHY_QueryRFReg(struct adapter *Adapter, RF_RADIO_PATH_E eRFPath, u3
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
rtl8188e_PHY_SetRFReg(
|
rtl8188e_PHY_SetRFReg(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -643,8 +643,8 @@ rtl8188e_PHY_SetRFReg(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static int
|
static int
|
||||||
phy_ConfigMACWithParaFile(
|
phy_ConfigMACWithParaFile(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN u8* pFileName
|
u8* pFileName
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -706,7 +706,7 @@ s32 PHY_MACConfig8188E(struct adapter *Adapter)
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
phy_InitBBRFRegisterDefinition(
|
phy_InitBBRFRegisterDefinition(
|
||||||
IN struct adapter * Adapter
|
struct adapter * Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -830,8 +830,8 @@ phy_InitBBRFRegisterDefinition(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static int
|
static int
|
||||||
phy_ConfigBBWithParaFile(
|
phy_ConfigBBWithParaFile(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN u8* pFileName
|
u8* pFileName
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -848,17 +848,17 @@ phy_ConfigBBWithParaFile(
|
||||||
/* */
|
/* */
|
||||||
static void
|
static void
|
||||||
phy_ConfigBBExternalPA(
|
phy_ConfigBBExternalPA(
|
||||||
IN struct adapter * Adapter
|
struct adapter * Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
storePwrIndexDiffRateOffset(
|
storePwrIndexDiffRateOffset(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -988,8 +988,8 @@ storePwrIndexDiffRateOffset(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static int
|
static int
|
||||||
phy_ConfigBBWithPgParaFile(
|
phy_ConfigBBWithPgParaFile(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN u8* pFileName)
|
u8* pFileName)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
|
||||||
|
@ -1002,7 +1002,7 @@ phy_ConfigBBWithPgParaFile(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
phy_BB8192C_Config_1T(
|
phy_BB8192C_Config_1T(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* for path - B */
|
/* for path - B */
|
||||||
|
@ -1028,7 +1028,7 @@ phy_BB8192C_Config_1T(
|
||||||
/* Now it is just for 8256. */
|
/* Now it is just for 8256. */
|
||||||
static int
|
static int
|
||||||
phy_BB8190_Config_HardCode(
|
phy_BB8190_Config_HardCode(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* RT_ASSERT(false, ("This function is not implement yet!! \n")); */
|
/* RT_ASSERT(false, ("This function is not implement yet!! \n")); */
|
||||||
|
@ -1037,7 +1037,7 @@ phy_BB8190_Config_HardCode(
|
||||||
|
|
||||||
static int
|
static int
|
||||||
phy_BB8188E_Config_ParaFile(
|
phy_BB8188E_Config_ParaFile(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(Adapter);
|
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(Adapter);
|
||||||
|
@ -1112,7 +1112,7 @@ phy_BB8190_Config_ParaFile_Fail:
|
||||||
|
|
||||||
int
|
int
|
||||||
PHY_BBConfig8188E(
|
PHY_BBConfig8188E(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int rtStatus = _SUCCESS;
|
int rtStatus = _SUCCESS;
|
||||||
|
@ -1152,7 +1152,7 @@ PHY_BBConfig8188E(
|
||||||
|
|
||||||
int
|
int
|
||||||
PHY_RFConfig8188E(
|
PHY_RFConfig8188E(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -1183,8 +1183,8 @@ PHY_RFConfig8188E(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
int
|
int
|
||||||
rtl8188e_PHY_ConfigRFWithParaFile(
|
rtl8188e_PHY_ConfigRFWithParaFile(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN u8* pFileName,
|
u8* pFileName,
|
||||||
RF_RADIO_PATH_E eRFPath
|
RF_RADIO_PATH_E eRFPath
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -1218,7 +1218,7 @@ static u32 Rtl8192S_HighPower_RadioA_Array[HighPowerRadioAArrayLen] = {
|
||||||
|
|
||||||
static int
|
static int
|
||||||
PHY_ConfigRFExternalPA(
|
PHY_ConfigRFExternalPA(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
RF_RADIO_PATH_E eRFPath
|
RF_RADIO_PATH_E eRFPath
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -1249,9 +1249,9 @@ PHY_ConfigRFExternalPA(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static int
|
static int
|
||||||
PHY_CheckBBAndRFOK(
|
PHY_CheckBBAndRFOK(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN HW90_BLOCK_E CheckBlock,
|
HW90_BLOCK_E CheckBlock,
|
||||||
IN RF_RADIO_PATH_E eRFPath
|
RF_RADIO_PATH_E eRFPath
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int rtStatus = _SUCCESS;
|
int rtStatus = _SUCCESS;
|
||||||
|
@ -1324,7 +1324,7 @@ PHY_CheckBBAndRFOK(
|
||||||
|
|
||||||
void
|
void
|
||||||
rtl8192c_PHY_GetHWRegOriginalValue(
|
rtl8192c_PHY_GetHWRegOriginalValue(
|
||||||
IN struct adapter * Adapter
|
struct adapter * Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -1356,9 +1356,9 @@ rtl8192c_PHY_GetHWRegOriginalValue(
|
||||||
/* */
|
/* */
|
||||||
static u8
|
static u8
|
||||||
phy_DbmToTxPwrIdx(
|
phy_DbmToTxPwrIdx(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN WIRELESS_MODE WirelessMode,
|
WIRELESS_MODE WirelessMode,
|
||||||
IN int PowerInDbm
|
int PowerInDbm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 TxPwrIdx = 0;
|
u8 TxPwrIdx = 0;
|
||||||
|
@ -1412,9 +1412,9 @@ phy_DbmToTxPwrIdx(
|
||||||
/* */
|
/* */
|
||||||
static int
|
static int
|
||||||
phy_TxPwrIdxToDbm(
|
phy_TxPwrIdxToDbm(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN WIRELESS_MODE WirelessMode,
|
WIRELESS_MODE WirelessMode,
|
||||||
IN u8 TxPwrIdx
|
u8 TxPwrIdx
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int Offset = 0;
|
int Offset = 0;
|
||||||
|
@ -1458,8 +1458,8 @@ phy_TxPwrIdxToDbm(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
PHY_GetTxPowerLevel8188E(
|
PHY_GetTxPowerLevel8188E(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
OUT u32* powerlevel
|
u32* powerlevel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -1493,12 +1493,12 @@ PHY_GetTxPowerLevel8188E(
|
||||||
}
|
}
|
||||||
|
|
||||||
static void getTxPowerIndex88E(
|
static void getTxPowerIndex88E(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN u8 channel,
|
u8 channel,
|
||||||
IN OUT u8* cckPowerLevel,
|
u8* cckPowerLevel,
|
||||||
IN OUT u8* ofdmPowerLevel,
|
u8* ofdmPowerLevel,
|
||||||
IN OUT u8* BW20PowerLevel,
|
u8* BW20PowerLevel,
|
||||||
IN OUT u8* BW40PowerLevel
|
u8* BW40PowerLevel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -1550,12 +1550,12 @@ static void getTxPowerIndex88E(
|
||||||
}
|
}
|
||||||
|
|
||||||
static void phy_PowerIndexCheck88E(
|
static void phy_PowerIndexCheck88E(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u8 channel,
|
u8 channel,
|
||||||
IN OUT u8 * cckPowerLevel,
|
u8 * cckPowerLevel,
|
||||||
IN OUT u8 * ofdmPowerLevel,
|
u8 * ofdmPowerLevel,
|
||||||
IN OUT u8 * BW20PowerLevel,
|
u8 * BW20PowerLevel,
|
||||||
IN OUT u8 * BW40PowerLevel
|
u8 * BW40PowerLevel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -1586,8 +1586,8 @@ static void phy_PowerIndexCheck88E(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
PHY_SetTxPowerLevel8188E(
|
PHY_SetTxPowerLevel8188E(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN u8 channel
|
u8 channel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -1628,8 +1628,8 @@ PHY_SetTxPowerLevel8188E(
|
||||||
/* */
|
/* */
|
||||||
bool
|
bool
|
||||||
PHY_UpdateTxPowerDbm8188E(
|
PHY_UpdateTxPowerDbm8188E(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN int powerInDbm
|
int powerInDbm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -1671,8 +1671,8 @@ PHY_UpdateTxPowerDbm8188E(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
rtl8192c_PHY_SetBeaconHwReg(
|
rtl8192c_PHY_SetBeaconHwReg(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN u16 BeaconInterval
|
u16 BeaconInterval
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -1681,8 +1681,8 @@ rtl8192c_PHY_SetBeaconHwReg(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_ScanOperationBackup8188E(
|
PHY_ScanOperationBackup8188E(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u8 Operation
|
u8 Operation
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -1704,7 +1704,7 @@ PHY_ScanOperationBackup8188E(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
_PHY_SetBWMode92C(
|
_PHY_SetBWMode92C(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -1844,9 +1844,9 @@ _PHY_SetBWMode92C(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
PHY_SetBWMode8188E(
|
PHY_SetBWMode8188E(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN HT_CHANNEL_WIDTH Bandwidth, /* 20M or 40M */
|
HT_CHANNEL_WIDTH Bandwidth, /* 20M or 40M */
|
||||||
IN unsigned char Offset /* Upper, Lower, or Don't care */
|
unsigned char Offset /* Upper, Lower, or Don't care */
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -1893,7 +1893,7 @@ static void _PHY_SwChnl8192C(struct adapter *Adapter, u8 channel)
|
||||||
}
|
}
|
||||||
/* <20130708, James> A workaround to eliminate the 2480MHz spur for 8188E I-Cut */
|
/* <20130708, James> A workaround to eliminate the 2480MHz spur for 8188E I-Cut */
|
||||||
static void phy_SpurCalibration_8188E(
|
static void phy_SpurCalibration_8188E(
|
||||||
IN struct adapter * Adapter
|
struct adapter * Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -1911,8 +1911,8 @@ static void phy_SpurCalibration_8188E(
|
||||||
}
|
}
|
||||||
void
|
void
|
||||||
PHY_SwChnl8188E( /* Call after initialization */
|
PHY_SwChnl8188E( /* Call after initialization */
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u8 channel
|
u8 channel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* struct adapter *Adapter = ADJUST_TO_ADAPTIVE_ADAPTER(pAdapter, true); */
|
/* struct adapter *Adapter = ADJUST_TO_ADAPTIVE_ADAPTER(pAdapter, true); */
|
||||||
|
@ -1998,11 +1998,11 @@ PHY_SwChnl8188E( /* Call after initialization */
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
phy_SwChnlStepByStep(
|
phy_SwChnlStepByStep(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u8 channel,
|
u8 channel,
|
||||||
IN u8 *stage,
|
u8 *stage,
|
||||||
IN u8 *step,
|
u8 *step,
|
||||||
OUT u32 *delay
|
u32 *delay
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
@ -2047,8 +2047,8 @@ phy_SetSwChnlCmdArray(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
phy_FinishSwChnlNow( /* We should not call this function directly */
|
phy_FinishSwChnlNow( /* We should not call this function directly */
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u8 channel
|
u8 channel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -2064,8 +2064,8 @@ phy_FinishSwChnlNow( /* We should not call this function directly */
|
||||||
/* */
|
/* */
|
||||||
void
|
void
|
||||||
PHY_SwChnlPhy8192C( /* Only called during initialize */
|
PHY_SwChnlPhy8192C( /* Only called during initialize */
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u8 channel
|
u8 channel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -2110,8 +2110,8 @@ PHY_SwChnlPhy8192C( /* Only called during initialize */
|
||||||
/* */
|
/* */
|
||||||
void
|
void
|
||||||
PHY_SetMonitorMode8192C(
|
PHY_SetMonitorMode8192C(
|
||||||
IN struct adapter * pAdapter,
|
struct adapter * pAdapter,
|
||||||
IN bool bEnableMonitorMode
|
bool bEnableMonitorMode
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -2136,8 +2136,8 @@ PHY_SetMonitorMode8192C(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
bool
|
bool
|
||||||
PHY_CheckIsLegalRfPath8192C(
|
PHY_CheckIsLegalRfPath8192C(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u32 eRFPath)
|
u32 eRFPath)
|
||||||
{
|
{
|
||||||
bool rtValue = true;
|
bool rtValue = true;
|
||||||
|
|
||||||
|
@ -2147,9 +2147,9 @@ PHY_CheckIsLegalRfPath8192C(
|
||||||
} /* PHY_CheckIsLegalRfPath8192C */
|
} /* PHY_CheckIsLegalRfPath8192C */
|
||||||
|
|
||||||
static void _PHY_SetRFPathSwitch(
|
static void _PHY_SetRFPathSwitch(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN bool bMain,
|
bool bMain,
|
||||||
IN bool is2T
|
bool is2T
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 u1bTmp;
|
u8 u1bTmp;
|
||||||
|
@ -2183,8 +2183,8 @@ static void _PHY_SetRFPathSwitch(
|
||||||
/* return value true => Main; false => Aux */
|
/* return value true => Main; false => Aux */
|
||||||
|
|
||||||
static bool _PHY_QueryRFPathSwitch(
|
static bool _PHY_QueryRFPathSwitch(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN bool is2T
|
bool is2T
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* if(is2T) */
|
/* if(is2T) */
|
||||||
|
@ -2214,7 +2214,7 @@ static bool _PHY_QueryRFPathSwitch(
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_PHY_DumpRFReg(IN struct adapter *pAdapter)
|
_PHY_DumpRFReg(struct adapter *pAdapter)
|
||||||
{
|
{
|
||||||
u32 rfRegValue,rfRegOffset;
|
u32 rfRegValue,rfRegOffset;
|
||||||
|
|
||||||
|
@ -2239,7 +2239,7 @@ _PHY_DumpRFReg(IN struct adapter *pAdapter)
|
||||||
/* Added by Roger, 2009.03.10. */
|
/* Added by Roger, 2009.03.10. */
|
||||||
/* */
|
/* */
|
||||||
static void DumpBBDbgPort_92CU(
|
static void DumpBBDbgPort_92CU(
|
||||||
IN struct adapter * Adapter
|
struct adapter * Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PHY_SetBBReg(Adapter, 0x0908, 0xffff, 0x0000);
|
PHY_SetBBReg(Adapter, 0x0908, 0xffff, 0x0000);
|
||||||
|
|
|
@ -92,8 +92,8 @@ static RF_SHADOW_T RF_Shadow[RF6052_MAX_PATH][RF6052_MAX_REG];
|
||||||
* Firmwaer support the utility later.
|
* Firmwaer support the utility later.
|
||||||
*
|
*
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void rtl8188e_RF_ChangeTxPath( IN struct adapter *Adapter,
|
void rtl8188e_RF_ChangeTxPath( struct adapter *Adapter,
|
||||||
IN u16 DataRate)
|
u16 DataRate)
|
||||||
{
|
{
|
||||||
/* We do not support gain table change inACUT now !!!! Delete later !!! */
|
/* We do not support gain table change inACUT now !!!! Delete later !!! */
|
||||||
} /* RF_ChangeTxPath */
|
} /* RF_ChangeTxPath */
|
||||||
|
@ -115,8 +115,8 @@ void rtl8188e_RF_ChangeTxPath( IN struct adapter *Adapter,
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
rtl8188e_PHY_RF6052SetBandwidth(
|
rtl8188e_PHY_RF6052SetBandwidth(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN HT_CHANNEL_WIDTH Bandwidth) /* 20M or 40M */
|
HT_CHANNEL_WIDTH Bandwidth) /* 20M or 40M */
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
|
||||||
|
@ -158,8 +158,8 @@ rtl8188e_PHY_RF6052SetBandwidth(
|
||||||
|
|
||||||
void
|
void
|
||||||
rtl8188e_PHY_RF6052SetCckTxPower(
|
rtl8188e_PHY_RF6052SetCckTxPower(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN u8* pPowerlevel)
|
u8* pPowerlevel)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
struct mlme_priv *pmlmepriv = &Adapter->mlmepriv;
|
struct mlme_priv *pmlmepriv = &Adapter->mlmepriv;
|
||||||
|
@ -274,13 +274,13 @@ rtl8188e_PHY_RF6052SetCckTxPower(
|
||||||
/* powerbase0 for OFDM rates */
|
/* powerbase0 for OFDM rates */
|
||||||
/* powerbase1 for HT MCS rates */
|
/* powerbase1 for HT MCS rates */
|
||||||
static void getPowerBase88E(
|
static void getPowerBase88E(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u8* pPowerLevelOFDM,
|
u8* pPowerLevelOFDM,
|
||||||
IN u8* pPowerLevelBW20,
|
u8* pPowerLevelBW20,
|
||||||
IN u8* pPowerLevelBW40,
|
u8* pPowerLevelBW40,
|
||||||
IN u8 Channel,
|
u8 Channel,
|
||||||
IN OUT u32* OfdmBase,
|
u32* OfdmBase,
|
||||||
IN OUT u32* MCSBase
|
u32* MCSBase
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -317,12 +317,12 @@ static void getPowerBase88E(
|
||||||
}
|
}
|
||||||
|
|
||||||
static void getTxPowerWriteValByRegulatory88E(
|
static void getTxPowerWriteValByRegulatory88E(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u8 Channel,
|
u8 Channel,
|
||||||
IN u8 index,
|
u8 index,
|
||||||
IN u32* powerBase0,
|
u32* powerBase0,
|
||||||
IN u32* powerBase1,
|
u32* powerBase1,
|
||||||
OUT u32* pOutWriteVal
|
u32* pOutWriteVal
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -483,9 +483,9 @@ static void getTxPowerWriteValByRegulatory88E(
|
||||||
}
|
}
|
||||||
|
|
||||||
static void writeOFDMPowerReg88E(
|
static void writeOFDMPowerReg88E(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u8 index,
|
u8 index,
|
||||||
IN u32* pValue
|
u32* pValue
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -567,11 +567,11 @@ static void writeOFDMPowerReg88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
rtl8188e_PHY_RF6052SetOFDMTxPower(
|
rtl8188e_PHY_RF6052SetOFDMTxPower(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u8* pPowerLevelOFDM,
|
u8* pPowerLevelOFDM,
|
||||||
IN u8* pPowerLevelBW20,
|
u8* pPowerLevelBW20,
|
||||||
IN u8* pPowerLevelBW40,
|
u8* pPowerLevelBW40,
|
||||||
IN u8 Channel)
|
u8 Channel)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
u32 writeVal[2], powerBase0[2], powerBase1[2], pwrtrac_value;
|
u32 writeVal[2], powerBase0[2], powerBase1[2], pwrtrac_value;
|
||||||
|
@ -612,7 +612,7 @@ rtl8188e_PHY_RF6052SetOFDMTxPower(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
phy_RF6052_Config_HardCode(
|
phy_RF6052_Config_HardCode(
|
||||||
IN struct adapter * Adapter
|
struct adapter * Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -625,7 +625,7 @@ phy_RF6052_Config_HardCode(
|
||||||
|
|
||||||
static int
|
static int
|
||||||
phy_RF6052_Config_ParaFile(
|
phy_RF6052_Config_ParaFile(
|
||||||
IN struct adapter * Adapter
|
struct adapter * Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 u4RegValue;
|
u32 u4RegValue;
|
||||||
|
@ -729,7 +729,7 @@ phy_RF6052_Config_ParaFile_Fail:
|
||||||
|
|
||||||
int
|
int
|
||||||
PHY_RF6052_Config8188E(
|
PHY_RF6052_Config8188E(
|
||||||
IN struct adapter * Adapter)
|
struct adapter * Adapter)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
int rtStatus = _SUCCESS;
|
int rtStatus = _SUCCESS;
|
||||||
|
@ -781,9 +781,9 @@ PHY_RF6052_Config8188E(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static u32
|
static u32
|
||||||
PHY_RFShadowRead(
|
PHY_RFShadowRead(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 Offset)
|
u32 Offset)
|
||||||
{
|
{
|
||||||
return RF_Shadow[eRFPath][Offset].Value;
|
return RF_Shadow[eRFPath][Offset].Value;
|
||||||
|
|
||||||
|
@ -792,10 +792,10 @@ PHY_RFShadowRead(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
PHY_RFShadowWrite(
|
PHY_RFShadowWrite(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 Offset,
|
u32 Offset,
|
||||||
IN u32 Data)
|
u32 Data)
|
||||||
{
|
{
|
||||||
RF_Shadow[eRFPath][Offset].Value = (Data & bRFRegOffsetMask);
|
RF_Shadow[eRFPath][Offset].Value = (Data & bRFRegOffsetMask);
|
||||||
RF_Shadow[eRFPath][Offset].Driver_Write = true;
|
RF_Shadow[eRFPath][Offset].Driver_Write = true;
|
||||||
|
@ -805,9 +805,9 @@ PHY_RFShadowWrite(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
PHY_RFShadowCompare(
|
PHY_RFShadowCompare(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 Offset)
|
u32 Offset)
|
||||||
{
|
{
|
||||||
u32 reg;
|
u32 reg;
|
||||||
/* Check if we need to check the register */
|
/* Check if we need to check the register */
|
||||||
|
@ -831,9 +831,9 @@ PHY_RFShadowCompare(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
PHY_RFShadowRecorver(
|
PHY_RFShadowRecorver(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 Offset)
|
u32 Offset)
|
||||||
{
|
{
|
||||||
/* Check if the address is error */
|
/* Check if the address is error */
|
||||||
if (RF_Shadow[eRFPath][Offset].ErrorOrNot == true)
|
if (RF_Shadow[eRFPath][Offset].ErrorOrNot == true)
|
||||||
|
@ -854,7 +854,7 @@ PHY_RFShadowRecorver(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
PHY_RFShadowCompareAll(
|
PHY_RFShadowCompareAll(
|
||||||
IN struct adapter * Adapter)
|
struct adapter * Adapter)
|
||||||
{
|
{
|
||||||
u32 eRFPath;
|
u32 eRFPath;
|
||||||
u32 Offset;
|
u32 Offset;
|
||||||
|
@ -872,7 +872,7 @@ PHY_RFShadowCompareAll(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
PHY_RFShadowRecorverAll(
|
PHY_RFShadowRecorverAll(
|
||||||
IN struct adapter * Adapter)
|
struct adapter * Adapter)
|
||||||
{
|
{
|
||||||
u32 eRFPath;
|
u32 eRFPath;
|
||||||
u32 Offset;
|
u32 Offset;
|
||||||
|
@ -890,10 +890,10 @@ PHY_RFShadowRecorverAll(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
PHY_RFShadowCompareFlagSet(
|
PHY_RFShadowCompareFlagSet(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 Offset,
|
u32 Offset,
|
||||||
IN u8 Type)
|
u8 Type)
|
||||||
{
|
{
|
||||||
/* Set True or False!!! */
|
/* Set True or False!!! */
|
||||||
RF_Shadow[eRFPath][Offset].Compare = Type;
|
RF_Shadow[eRFPath][Offset].Compare = Type;
|
||||||
|
@ -903,10 +903,10 @@ PHY_RFShadowCompareFlagSet(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
PHY_RFShadowRecorverFlagSet(
|
PHY_RFShadowRecorverFlagSet(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 Offset,
|
u32 Offset,
|
||||||
IN u8 Type)
|
u8 Type)
|
||||||
{
|
{
|
||||||
/* Set True or False!!! */
|
/* Set True or False!!! */
|
||||||
RF_Shadow[eRFPath][Offset].Recorver= Type;
|
RF_Shadow[eRFPath][Offset].Recorver= Type;
|
||||||
|
@ -916,7 +916,7 @@ PHY_RFShadowRecorverFlagSet(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
PHY_RFShadowCompareFlagSetAll(
|
PHY_RFShadowCompareFlagSetAll(
|
||||||
IN struct adapter * Adapter)
|
struct adapter * Adapter)
|
||||||
{
|
{
|
||||||
u32 eRFPath;
|
u32 eRFPath;
|
||||||
u32 Offset;
|
u32 Offset;
|
||||||
|
@ -938,7 +938,7 @@ PHY_RFShadowCompareFlagSetAll(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
PHY_RFShadowRecorverFlagSetAll(
|
PHY_RFShadowRecorverFlagSetAll(
|
||||||
IN struct adapter * Adapter)
|
struct adapter * Adapter)
|
||||||
{
|
{
|
||||||
u32 eRFPath;
|
u32 eRFPath;
|
||||||
u32 Offset;
|
u32 Offset;
|
||||||
|
@ -959,7 +959,7 @@ PHY_RFShadowRecorverFlagSetAll(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
PHY_RFShadowRefresh(
|
PHY_RFShadowRefresh(
|
||||||
IN struct adapter * Adapter)
|
struct adapter * Adapter)
|
||||||
{
|
{
|
||||||
u32 eRFPath;
|
u32 eRFPath;
|
||||||
u32 Offset;
|
u32 Offset;
|
||||||
|
|
|
@ -44,8 +44,8 @@
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_ConfigNormalChipOutEP_8188E(
|
_ConfigNormalChipOutEP_8188E(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 NumOutPipe
|
u8 NumOutPipe
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -72,9 +72,9 @@ _ConfigNormalChipOutEP_8188E(
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool HalUsbSetQueuePipeMapping8188EUsb(
|
static bool HalUsbSetQueuePipeMapping8188EUsb(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 NumInPipe,
|
u8 NumInPipe,
|
||||||
IN u8 NumOutPipe
|
u8 NumOutPipe
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -281,7 +281,7 @@ static void _InitBTCoexist(struct adapter *padapter)
|
||||||
/* */
|
/* */
|
||||||
static void
|
static void
|
||||||
_SetMacID(
|
_SetMacID(
|
||||||
IN struct adapter *Adapter, u8* MacID
|
struct adapter *Adapter, u8* MacID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 i;
|
u32 i;
|
||||||
|
@ -292,7 +292,7 @@ _SetMacID(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_SetBSSID(
|
_SetBSSID(
|
||||||
IN struct adapter *Adapter, u8* BSSID
|
struct adapter *Adapter, u8* BSSID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 i;
|
u32 i;
|
||||||
|
@ -305,7 +305,7 @@ _SetBSSID(
|
||||||
/* Shall USB interface init this? */
|
/* Shall USB interface init this? */
|
||||||
static void
|
static void
|
||||||
_InitInterrupt(
|
_InitInterrupt(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 imr,imr_ex;
|
u32 imr,imr_ex;
|
||||||
|
@ -343,7 +343,7 @@ _InitInterrupt(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitQueueReservedPage(
|
_InitQueueReservedPage(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -392,8 +392,8 @@ _InitQueueReservedPage(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitTxBufferBoundary(
|
_InitTxBufferBoundary(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u8 txpktbuf_bndy
|
u8 txpktbuf_bndy
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct registry_priv *pregistrypriv = &Adapter->registrypriv;
|
struct registry_priv *pregistrypriv = &Adapter->registrypriv;
|
||||||
|
@ -411,7 +411,7 @@ _InitTxBufferBoundary(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitPageBoundary(
|
_InitPageBoundary(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* RX Page Boundary */
|
/* RX Page Boundary */
|
||||||
|
@ -424,13 +424,13 @@ _InitPageBoundary(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitNormalChipRegPriority(
|
_InitNormalChipRegPriority(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u16 beQ,
|
u16 beQ,
|
||||||
IN u16 bkQ,
|
u16 bkQ,
|
||||||
IN u16 viQ,
|
u16 viQ,
|
||||||
IN u16 voQ,
|
u16 voQ,
|
||||||
IN u16 mgtQ,
|
u16 mgtQ,
|
||||||
IN u16 hiQ
|
u16 hiQ
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u16 value16 = (rtw_read16(Adapter, REG_TRXDMA_CTRL) & 0x7);
|
u16 value16 = (rtw_read16(Adapter, REG_TRXDMA_CTRL) & 0x7);
|
||||||
|
@ -444,7 +444,7 @@ _InitNormalChipRegPriority(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitNormalChipOneOutEpPriority(
|
_InitNormalChipOneOutEpPriority(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -479,7 +479,7 @@ _InitNormalChipOneOutEpPriority(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitNormalChipTwoOutEpPriority(
|
_InitNormalChipTwoOutEpPriority(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -532,7 +532,7 @@ _InitNormalChipTwoOutEpPriority(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitNormalChipThreeOutEpPriority(
|
_InitNormalChipThreeOutEpPriority(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct registry_priv *pregistrypriv = &Adapter->registrypriv;
|
struct registry_priv *pregistrypriv = &Adapter->registrypriv;
|
||||||
|
@ -559,7 +559,7 @@ _InitNormalChipThreeOutEpPriority(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitQueuePriority(
|
_InitQueuePriority(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -587,7 +587,7 @@ _InitQueuePriority(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitHardwareDropIncorrectBulkOut(
|
_InitHardwareDropIncorrectBulkOut(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 value32 = rtw_read32(Adapter, REG_TXDMA_OFFSET_CHK);
|
u32 value32 = rtw_read32(Adapter, REG_TXDMA_OFFSET_CHK);
|
||||||
|
@ -598,7 +598,7 @@ _InitHardwareDropIncorrectBulkOut(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitNetworkType(
|
_InitNetworkType(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 value32;
|
u32 value32;
|
||||||
|
@ -613,7 +613,7 @@ _InitNetworkType(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitTransferPageSize(
|
_InitTransferPageSize(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* Tx page size is always 128. */
|
/* Tx page size is always 128. */
|
||||||
|
@ -625,8 +625,8 @@ _InitTransferPageSize(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitDriverInfoSize(
|
_InitDriverInfoSize(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u8 drvInfoSize
|
u8 drvInfoSize
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rtw_write8(Adapter,REG_RX_DRVINFO_SZ, drvInfoSize);
|
rtw_write8(Adapter,REG_RX_DRVINFO_SZ, drvInfoSize);
|
||||||
|
@ -634,7 +634,7 @@ _InitDriverInfoSize(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitWMACSetting(
|
_InitWMACSetting(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* u32 value32; */
|
/* u32 value32; */
|
||||||
|
@ -676,7 +676,7 @@ _InitWMACSetting(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitAdaptiveCtrl(
|
_InitAdaptiveCtrl(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u16 value16;
|
u16 value16;
|
||||||
|
@ -703,7 +703,7 @@ _InitAdaptiveCtrl(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitRateFallback(
|
_InitRateFallback(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* Set Data Auto Rate Fallback Retry Count register. */
|
/* Set Data Auto Rate Fallback Retry Count register. */
|
||||||
|
@ -717,7 +717,7 @@ _InitRateFallback(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitEDCA(
|
_InitEDCA(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* Set Spec SIFS (used in NAV) */
|
/* Set Spec SIFS (used in NAV) */
|
||||||
|
@ -740,8 +740,8 @@ _InitEDCA(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitBeaconMaxError(
|
_InitBeaconMaxError(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN bool InfraMode
|
bool InfraMode
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -750,7 +750,7 @@ _InitBeaconMaxError(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitRDGSetting(
|
_InitRDGSetting(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rtw_write8(Adapter,REG_RD_CTRL,0xFF);
|
rtw_write8(Adapter,REG_RD_CTRL,0xFF);
|
||||||
|
@ -760,7 +760,7 @@ _InitRDGSetting(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitRxSetting(
|
_InitRxSetting(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rtw_write32(Adapter, REG_MACID, 0x87654321);
|
rtw_write32(Adapter, REG_MACID, 0x87654321);
|
||||||
|
@ -769,7 +769,7 @@ _InitRxSetting(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitRetryFunction(
|
_InitRetryFunction(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 value8;
|
u8 value8;
|
||||||
|
@ -797,7 +797,7 @@ _InitRetryFunction(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
usb_AggSettingTxUpdate(
|
usb_AggSettingTxUpdate(
|
||||||
IN struct adapter * Adapter
|
struct adapter * Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -834,7 +834,7 @@ usb_AggSettingTxUpdate(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
usb_AggSettingRxUpdate(
|
usb_AggSettingRxUpdate(
|
||||||
IN struct adapter * Adapter
|
struct adapter * Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -918,7 +918,7 @@ usb_AggSettingRxUpdate(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
InitUsbAggregationSetting(
|
InitUsbAggregationSetting(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -933,8 +933,8 @@ InitUsbAggregationSetting(
|
||||||
pHalData->UsbRxHighSpeedMode = false;
|
pHalData->UsbRxHighSpeedMode = false;
|
||||||
}
|
}
|
||||||
static void HalRxAggr8188EUsb(
|
static void HalRxAggr8188EUsb(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN bool Value
|
bool Value
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -959,14 +959,14 @@ static void HalRxAggr8188EUsb(
|
||||||
*
|
*
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static void USB_AggModeSwitch(
|
static void USB_AggModeSwitch(
|
||||||
IN struct adapter * Adapter
|
struct adapter * Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
} /* USB_AggModeSwitch */
|
} /* USB_AggModeSwitch */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitOperationMode(
|
_InitOperationMode(
|
||||||
IN struct adapter * Adapter
|
struct adapter * Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -974,7 +974,7 @@ _InitOperationMode(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitBeaconParameters(
|
_InitBeaconParameters(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -999,7 +999,7 @@ _InitBeaconParameters(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitRFType(
|
_InitRFType(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct registry_priv *pregpriv = &Adapter->registrypriv;
|
struct registry_priv *pregpriv = &Adapter->registrypriv;
|
||||||
|
@ -1029,9 +1029,9 @@ _InitRFType(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_BeaconFunctionEnable(
|
_BeaconFunctionEnable(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN bool Enable,
|
bool Enable,
|
||||||
IN bool Linked
|
bool Linked
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rtw_write8(Adapter, REG_BCN_CTRL, (BIT4 | BIT3 | BIT1));
|
rtw_write8(Adapter, REG_BCN_CTRL, (BIT4 | BIT3 | BIT1));
|
||||||
|
@ -1044,7 +1044,7 @@ _BeaconFunctionEnable(
|
||||||
|
|
||||||
/* Set CCK and OFDM Block "ON" */
|
/* Set CCK and OFDM Block "ON" */
|
||||||
static void _BBTurnOnBlock(
|
static void _BBTurnOnBlock(
|
||||||
IN struct adapter * Adapter
|
struct adapter * Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DISABLE_BB_RF)
|
#if (DISABLE_BB_RF)
|
||||||
|
@ -1056,7 +1056,7 @@ static void _BBTurnOnBlock(
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _RfPowerSave(
|
static void _RfPowerSave(
|
||||||
IN struct adapter * Adapter
|
struct adapter * Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -1067,7 +1067,7 @@ enum {
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitAntenna_Selection(IN struct adapter *Adapter)
|
_InitAntenna_Selection(struct adapter *Adapter)
|
||||||
{
|
{
|
||||||
|
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -1095,7 +1095,7 @@ _InitAntenna_Selection(IN struct adapter *Adapter)
|
||||||
/* */
|
/* */
|
||||||
static void
|
static void
|
||||||
HalDetectSelectiveSuspendMode(
|
HalDetectSelectiveSuspendMode(
|
||||||
IN struct adapter * Adapter
|
struct adapter * Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
} /* HalDetectSelectiveSuspendMode */
|
} /* HalDetectSelectiveSuspendMode */
|
||||||
|
@ -1116,14 +1116,14 @@ HalDetectSelectiveSuspendMode(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
HwSuspendModeEnable_88eu(
|
HwSuspendModeEnable_88eu(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 Type
|
u8 Type
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
} /* HwSuspendModeEnable92Cu */
|
} /* HwSuspendModeEnable92Cu */
|
||||||
|
|
||||||
rt_rf_power_state RfOnOffDetect(IN struct adapter *pAdapter )
|
rt_rf_power_state RfOnOffDetect(struct adapter *pAdapter )
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
u8 val8;
|
u8 val8;
|
||||||
|
@ -1546,7 +1546,7 @@ void _ps_open_RF(struct adapter *padapter) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void hal_poweroff_rtl8188eu(
|
static void hal_poweroff_rtl8188eu(
|
||||||
IN struct adapter * Adapter
|
struct adapter * Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 val8;
|
u8 val8;
|
||||||
|
@ -1735,9 +1735,9 @@ static unsigned int rtl8188eu_inirp_deinit(struct adapter *Adapter)
|
||||||
/* */
|
/* */
|
||||||
static void
|
static void
|
||||||
_ReadIDs(
|
_ReadIDs(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u8* PROMContent,
|
u8* PROMContent,
|
||||||
IN bool AutoloadFail
|
bool AutoloadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -1745,18 +1745,18 @@ _ReadIDs(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_ReadMACAddress(
|
_ReadMACAddress(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u8* PROMContent,
|
u8* PROMContent,
|
||||||
IN bool AutoloadFail
|
bool AutoloadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_ReadBoardType(
|
_ReadBoardType(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u8* PROMContent,
|
u8* PROMContent,
|
||||||
IN bool AutoloadFail
|
bool AutoloadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -1765,9 +1765,9 @@ _ReadBoardType(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_ReadLEDSetting(
|
_ReadLEDSetting(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u8* PROMContent,
|
u8* PROMContent,
|
||||||
IN bool AutoloadFail
|
bool AutoloadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct led_priv *pledpriv = &(Adapter->ledpriv);
|
struct led_priv *pledpriv = &(Adapter->ledpriv);
|
||||||
|
@ -1789,36 +1789,36 @@ _ReadLEDSetting(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_ReadThermalMeter(
|
_ReadThermalMeter(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u8* PROMContent,
|
u8* PROMContent,
|
||||||
IN bool AutoloadFail
|
bool AutoloadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_ReadRFSetting(
|
_ReadRFSetting(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u8* PROMContent,
|
u8* PROMContent,
|
||||||
IN bool AutoloadFail
|
bool AutoloadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_ReadPROMVersion(
|
_ReadPROMVersion(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u8* PROMContent,
|
u8* PROMContent,
|
||||||
IN bool AutoloadFail
|
bool AutoloadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
readAntennaDiversity(
|
readAntennaDiversity(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 *hwinfo,
|
u8 *hwinfo,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -1829,16 +1829,16 @@ readAntennaDiversity(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
hal_InitPGData(
|
hal_InitPGData(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN OUT u8 *PROMContent
|
u8 *PROMContent
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
static void
|
static void
|
||||||
Hal_EfuseParsePIDVID_8188EU(
|
Hal_EfuseParsePIDVID_8188EU(
|
||||||
IN struct adapter * pAdapter,
|
struct adapter * pAdapter,
|
||||||
IN u8* hwinfo,
|
u8* hwinfo,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -1868,9 +1868,9 @@ Hal_EfuseParsePIDVID_8188EU(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
Hal_EfuseParseMACAddr_8188EU(
|
Hal_EfuseParseMACAddr_8188EU(
|
||||||
IN struct adapter * padapter,
|
struct adapter * padapter,
|
||||||
IN u8* hwinfo,
|
u8* hwinfo,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u16 i, usValue;
|
u16 i, usValue;
|
||||||
|
@ -1901,19 +1901,19 @@ Hal_EfuseParseMACAddr_8188EU(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
Hal_CustomizeByCustomerID_8188EU(
|
Hal_CustomizeByCustomerID_8188EU(
|
||||||
IN struct adapter * padapter
|
struct adapter * padapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read HW power down mode selection */
|
/* Read HW power down mode selection */
|
||||||
static void _ReadPSSetting(IN struct adapter *Adapter,IN u8*PROMContent,IN u8 AutoloadFail)
|
static void _ReadPSSetting(struct adapter *Adapter,u8*PROMContent,u8 AutoloadFail)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
readAdapterInfo_8188EU(
|
readAdapterInfo_8188EU(
|
||||||
IN struct adapter *padapter
|
struct adapter *padapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(padapter);
|
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(padapter);
|
||||||
|
@ -1943,7 +1943,7 @@ readAdapterInfo_8188EU(
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _ReadPROMContent(
|
static void _ReadPROMContent(
|
||||||
IN struct adapter * Adapter
|
struct adapter * Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(Adapter);
|
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(Adapter);
|
||||||
|
@ -1965,7 +1965,7 @@ static void _ReadPROMContent(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_ReadRFType(
|
_ReadRFType(
|
||||||
IN struct adapter *Adapter
|
struct adapter *Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -2938,9 +2938,9 @@ static void GetHwReg8188EU(struct adapter *Adapter, u8 variable, u8* val)
|
||||||
/* Query setting of specified variable. */
|
/* Query setting of specified variable. */
|
||||||
/* */
|
/* */
|
||||||
static u8 GetHalDefVar8188EUsb(
|
static u8 GetHalDefVar8188EUsb(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN HAL_DEF_VARIABLE eVariable,
|
HAL_DEF_VARIABLE eVariable,
|
||||||
IN void * pValue
|
void * pValue
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -3063,9 +3063,9 @@ static u8 GetHalDefVar8188EUsb(
|
||||||
/* Change default setting of specified variable. */
|
/* Change default setting of specified variable. */
|
||||||
/* */
|
/* */
|
||||||
static u8 SetHalDefVar8188EUsb(
|
static u8 SetHalDefVar8188EUsb(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN HAL_DEF_VARIABLE eVariable,
|
HAL_DEF_VARIABLE eVariable,
|
||||||
IN void * pValue
|
void * pValue
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
|
|
@ -211,127 +211,107 @@ typedef struct _R_ANTENNA_SELECT_CCK{
|
||||||
//
|
//
|
||||||
// BB and RF register read/write
|
// BB and RF register read/write
|
||||||
//
|
//
|
||||||
u32 rtl8188e_PHY_QueryBBReg( IN struct adapter *Adapter,
|
u32 rtl8188e_PHY_QueryBBReg( struct adapter *Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask );
|
u32 BitMask );
|
||||||
void rtl8188e_PHY_SetBBReg( IN struct adapter *Adapter,
|
void rtl8188e_PHY_SetBBReg( struct adapter *Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data );
|
u32 Data );
|
||||||
u32 rtl8188e_PHY_QueryRFReg( IN struct adapter * Adapter,
|
u32 rtl8188e_PHY_QueryRFReg( struct adapter * Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask );
|
u32 BitMask );
|
||||||
void rtl8188e_PHY_SetRFReg( IN struct adapter * Adapter,
|
void rtl8188e_PHY_SetRFReg( struct adapter * Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data );
|
u32 Data );
|
||||||
|
|
||||||
//
|
//
|
||||||
// Initialization related function
|
// Initialization related function
|
||||||
//
|
//
|
||||||
/* MAC/BB/RF HAL config */
|
/* MAC/BB/RF HAL config */
|
||||||
int PHY_MACConfig8188E(IN struct adapter *Adapter );
|
int PHY_MACConfig8188E(struct adapter *Adapter );
|
||||||
int PHY_BBConfig8188E(IN struct adapter *Adapter );
|
int PHY_BBConfig8188E(struct adapter *Adapter );
|
||||||
int PHY_RFConfig8188E(IN struct adapter *Adapter );
|
int PHY_RFConfig8188E(struct adapter *Adapter );
|
||||||
|
|
||||||
/* RF config */
|
/* RF config */
|
||||||
int rtl8188e_PHY_ConfigRFWithParaFile(IN struct adapter *Adapter, IN u8 * pFileName, RF_RADIO_PATH_E eRFPath);
|
int rtl8188e_PHY_ConfigRFWithParaFile(struct adapter *Adapter, u8 * pFileName, RF_RADIO_PATH_E eRFPath);
|
||||||
int rtl8188e_PHY_ConfigRFWithHeaderFile( IN struct adapter * Adapter,
|
int rtl8188e_PHY_ConfigRFWithHeaderFile(struct adapter *Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath);
|
RF_RADIO_PATH_E eRFPath);
|
||||||
|
|
||||||
/* Read initi reg value for tx power setting. */
|
/* Read initi reg value for tx power setting. */
|
||||||
void rtl8192c_PHY_GetHWRegOriginalValue( IN struct adapter * Adapter );
|
void rtl8192c_PHY_GetHWRegOriginalValue(struct adapter * Adapter );
|
||||||
|
|
||||||
//
|
|
||||||
// RF Power setting
|
|
||||||
//
|
|
||||||
//extern bool PHY_SetRFPowerState(IN struct adapter * Adapter,
|
|
||||||
// IN RT_RF_POWER_STATE eRFPowerState);
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// BB TX Power R/W
|
// BB TX Power R/W
|
||||||
//
|
//
|
||||||
void PHY_GetTxPowerLevel8188E( IN struct adapter * Adapter,
|
void PHY_GetTxPowerLevel8188E(struct adapter *Adapter, u32 *powerlevel);
|
||||||
OUT u32* powerlevel );
|
void PHY_SetTxPowerLevel8188E(struct adapter *Adapter, u8 channel);
|
||||||
void PHY_SetTxPowerLevel8188E( IN struct adapter * Adapter,
|
bool PHY_UpdateTxPowerDbm8188E(struct adapter *Adapter, int powerInDbm);
|
||||||
IN u8 channel );
|
|
||||||
bool PHY_UpdateTxPowerDbm8188E( IN struct adapter *Adapter,
|
|
||||||
IN int powerInDbm );
|
|
||||||
|
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
PHY_ScanOperationBackup8188E(IN struct adapter *Adapter,
|
PHY_ScanOperationBackup8188E(struct adapter *Adapter, u8 Operation);
|
||||||
IN u8 Operation );
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Switch bandwidth for 8192S
|
// Switch bandwidth for 8192S
|
||||||
//
|
//
|
||||||
//extern void PHY_SetBWModeCallback8192C( IN PRT_TIMER pTimer );
|
void PHY_SetBWMode8188E(struct adapter *pAdapter, HT_CHANNEL_WIDTH ChnlWidth, unsigned char Offset);
|
||||||
void PHY_SetBWMode8188E( IN struct adapter * pAdapter,
|
|
||||||
IN HT_CHANNEL_WIDTH ChnlWidth,
|
|
||||||
IN unsigned char Offset );
|
|
||||||
|
|
||||||
//
|
|
||||||
// Set FW CMD IO for 8192S.
|
|
||||||
//
|
|
||||||
//extern bool HalSetIO8192C( IN struct adapter * Adapter,
|
|
||||||
// IN IO_TYPE IOType);
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Set A2 entry to fw for 8192S
|
// Set A2 entry to fw for 8192S
|
||||||
//
|
//
|
||||||
extern void FillA2Entry8192C( IN struct adapter * Adapter,
|
extern void FillA2Entry8192C( struct adapter * Adapter,
|
||||||
IN u8 index,
|
u8 index,
|
||||||
IN u8* val);
|
u8* val);
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// channel switch related funciton
|
// channel switch related funciton
|
||||||
//
|
//
|
||||||
//extern void PHY_SwChnlCallback8192C( IN PRT_TIMER pTimer );
|
void PHY_SwChnl8188E( struct adapter * pAdapter,
|
||||||
void PHY_SwChnl8188E( IN struct adapter * pAdapter,
|
u8 channel );
|
||||||
IN u8 channel );
|
|
||||||
// Call after initialization
|
// Call after initialization
|
||||||
void PHY_SwChnlPhy8192C( IN struct adapter * pAdapter,
|
void PHY_SwChnlPhy8192C( struct adapter * pAdapter,
|
||||||
IN u8 channel );
|
u8 channel );
|
||||||
|
|
||||||
void ChkFwCmdIoDone( IN struct adapter *Adapter);
|
void ChkFwCmdIoDone( struct adapter *Adapter);
|
||||||
|
|
||||||
//
|
//
|
||||||
// BB/MAC/RF other monitor API
|
// BB/MAC/RF other monitor API
|
||||||
//
|
//
|
||||||
void PHY_SetMonitorMode8192C(IN struct adapter *pAdapter,
|
void PHY_SetMonitorMode8192C(struct adapter *pAdapter,
|
||||||
IN bool bEnableMonitorMode );
|
bool bEnableMonitorMode );
|
||||||
|
|
||||||
bool PHY_CheckIsLegalRfPath8192C(IN struct adapter *pAdapter,
|
bool PHY_CheckIsLegalRfPath8192C(struct adapter *pAdapter,
|
||||||
IN u32 eRFPath );
|
u32 eRFPath );
|
||||||
|
|
||||||
void PHY_SetRFPathSwitch_8188E(IN struct adapter *pAdapter, IN bool bMain);
|
void PHY_SetRFPathSwitch_8188E(struct adapter *pAdapter, bool bMain);
|
||||||
|
|
||||||
extern void
|
extern void
|
||||||
PHY_SwitchEphyParameter(
|
PHY_SwitchEphyParameter(
|
||||||
IN struct adapter * Adapter
|
struct adapter * Adapter
|
||||||
);
|
);
|
||||||
|
|
||||||
extern void
|
extern void
|
||||||
PHY_EnableHostClkReq(
|
PHY_EnableHostClkReq(
|
||||||
IN struct adapter * Adapter
|
struct adapter * Adapter
|
||||||
);
|
);
|
||||||
|
|
||||||
bool
|
bool
|
||||||
SetAntennaConfig92C(
|
SetAntennaConfig92C(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u8 DefaultAnt
|
u8 DefaultAnt
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
storePwrIndexDiffRateOffset(
|
storePwrIndexDiffRateOffset(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
);
|
);
|
||||||
|
|
||||||
/*--------------------------Exported Function prototype---------------------*/
|
/*--------------------------Exported Function prototype---------------------*/
|
||||||
|
|
|
@ -27,8 +27,6 @@
|
||||||
#define FAIL (-1)
|
#define FAIL (-1)
|
||||||
|
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
#define IN
|
|
||||||
#define OUT
|
|
||||||
#define NDIS_OID uint
|
#define NDIS_OID uint
|
||||||
#define NDIS_STATUS uint
|
#define NDIS_STATUS uint
|
||||||
|
|
||||||
|
|
|
@ -153,24 +153,24 @@ void dump_chip_info(HAL_VERSION ChipVersion);
|
||||||
|
|
||||||
u8 //return the final channel plan decision
|
u8 //return the final channel plan decision
|
||||||
hal_com_get_channel_plan(
|
hal_com_get_channel_plan(
|
||||||
IN struct adapter *padapter,
|
struct adapter *padapter,
|
||||||
IN u8 hw_channel_plan, //channel plan from HW (efuse/eeprom)
|
u8 hw_channel_plan, //channel plan from HW (efuse/eeprom)
|
||||||
IN u8 sw_channel_plan, //channel plan from SW (registry/module param)
|
u8 sw_channel_plan, //channel plan from SW (registry/module param)
|
||||||
IN u8 def_channel_plan, //channel plan used when the former two is invalid
|
u8 def_channel_plan, //channel plan used when the former two is invalid
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
);
|
);
|
||||||
|
|
||||||
u8 MRateToHwRate(u8 rate);
|
u8 MRateToHwRate(u8 rate);
|
||||||
|
|
||||||
void HalSetBrateCfg(
|
void HalSetBrateCfg(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN u8 *mBratesOS,
|
u8 *mBratesOS,
|
||||||
OUT u16 *pBrateCfg);
|
u16 *pBrateCfg);
|
||||||
|
|
||||||
bool
|
bool
|
||||||
Hal_MappingOutPipe(
|
Hal_MappingOutPipe(
|
||||||
IN struct adapter *pAdapter,
|
struct adapter *pAdapter,
|
||||||
IN u8 NumOutPipe
|
u8 NumOutPipe
|
||||||
);
|
);
|
||||||
|
|
||||||
void hal_init_macaddr(struct adapter *adapter);
|
void hal_init_macaddr(struct adapter *adapter);
|
||||||
|
|
|
@ -27,17 +27,17 @@
|
||||||
int rtw_hw_suspend(struct adapter *padapter );
|
int rtw_hw_suspend(struct adapter *padapter );
|
||||||
int rtw_hw_resume(struct adapter *padapter);
|
int rtw_hw_resume(struct adapter *padapter);
|
||||||
|
|
||||||
extern void rtw_dev_unload(struct adapter *padapter);
|
void rtw_dev_unload(struct adapter *padapter);
|
||||||
extern sint _rtw_init_recv_priv(struct recv_priv *precvpriv, struct adapter *padapter);
|
sint _rtw_init_recv_priv(struct recv_priv *precvpriv, struct adapter *padapter);
|
||||||
extern void _rtw_free_recv_priv (struct recv_priv *precvpriv);
|
void _rtw_free_recv_priv (struct recv_priv *precvpriv);
|
||||||
|
|
||||||
|
|
||||||
extern s32 rtw_recv_entry(union recv_frame *precv_frame);
|
s32 rtw_recv_entry(union recv_frame *precv_frame);
|
||||||
extern int rtw_recv_indicatepkt(struct adapter *adapter, union recv_frame *precv_frame);
|
int rtw_recv_indicatepkt(struct adapter *adapter, union recv_frame *precv_frame);
|
||||||
extern void rtw_recv_returnpacket(IN _nic_hdl cnxt, IN _pkt *preturnedpkt);
|
void rtw_recv_returnpacket(_nic_hdl cnxt, _pkt *preturnedpkt);
|
||||||
|
|
||||||
extern void rtw_hostapd_mlme_rx(struct adapter *padapter, union recv_frame *precv_frame);
|
void rtw_hostapd_mlme_rx(struct adapter *padapter, union recv_frame *precv_frame);
|
||||||
extern void rtw_handle_tkip_mic_err(struct adapter *padapter,u8 bgroup);
|
void rtw_handle_tkip_mic_err(struct adapter *padapter,u8 bgroup);
|
||||||
|
|
||||||
|
|
||||||
int rtw_init_recv_priv(struct recv_priv *precvpriv, struct adapter *padapter);
|
int rtw_init_recv_priv(struct recv_priv *precvpriv, struct adapter *padapter);
|
||||||
|
|
|
@ -54,10 +54,10 @@ struct dm_priv
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
void rtl8188e_init_dm_priv(IN struct adapter *Adapter);
|
void rtl8188e_init_dm_priv(struct adapter *Adapter);
|
||||||
void rtl8188e_deinit_dm_priv(IN struct adapter *Adapter);
|
void rtl8188e_deinit_dm_priv(struct adapter *Adapter);
|
||||||
void rtl8188e_InitHalDm(IN struct adapter *Adapter);
|
void rtl8188e_InitHalDm(struct adapter *Adapter);
|
||||||
void rtl8188e_HalDmWatchDog(IN struct adapter *Adapter);
|
void rtl8188e_HalDmWatchDog(struct adapter *Adapter);
|
||||||
|
|
||||||
void AntDivCompare8188E(struct adapter *Adapter, struct wlan_bssid_ex *dst, struct wlan_bssid_ex *src);
|
void AntDivCompare8188E(struct adapter *Adapter, struct wlan_bssid_ex *dst, struct wlan_bssid_ex *src);
|
||||||
u8 AntDivBeforeLink8188E(struct adapter *Adapter );
|
u8 AntDivBeforeLink8188E(struct adapter *Adapter );
|
||||||
|
|
|
@ -25,20 +25,20 @@
|
||||||
#define RF6052_MAX_PATH 2
|
#define RF6052_MAX_PATH 2
|
||||||
|
|
||||||
|
|
||||||
int PHY_RF6052_Config8188E( IN struct adapter * Adapter );
|
int PHY_RF6052_Config8188E( struct adapter * Adapter );
|
||||||
void rtl8188e_RF_ChangeTxPath( IN struct adapter *Adapter,
|
void rtl8188e_RF_ChangeTxPath( struct adapter *Adapter,
|
||||||
IN u16 DataRate);
|
u16 DataRate);
|
||||||
void rtl8188e_PHY_RF6052SetBandwidth(
|
void rtl8188e_PHY_RF6052SetBandwidth(
|
||||||
IN struct adapter * Adapter,
|
struct adapter * Adapter,
|
||||||
IN HT_CHANNEL_WIDTH Bandwidth);
|
HT_CHANNEL_WIDTH Bandwidth);
|
||||||
void rtl8188e_PHY_RF6052SetCckTxPower(
|
void rtl8188e_PHY_RF6052SetCckTxPower(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u8* pPowerlevel);
|
u8* pPowerlevel);
|
||||||
void rtl8188e_PHY_RF6052SetOFDMTxPower(
|
void rtl8188e_PHY_RF6052SetOFDMTxPower(
|
||||||
IN struct adapter *Adapter,
|
struct adapter *Adapter,
|
||||||
IN u8* pPowerLevelOFDM,
|
u8* pPowerLevelOFDM,
|
||||||
IN u8* pPowerLevelBW20,
|
u8* pPowerLevelBW20,
|
||||||
IN u8* pPowerLevelBW40,
|
u8* pPowerLevelBW40,
|
||||||
IN u8 Channel);
|
u8 Channel);
|
||||||
|
|
||||||
#endif//__RTL8188E_RF_H__
|
#endif//__RTL8188E_RF_H__
|
||||||
|
|
|
@ -108,21 +108,21 @@ extern struct iw_handler_def rtw_handlers_def;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern NDIS_STATUS drv_query_info(
|
extern NDIS_STATUS drv_query_info(
|
||||||
IN _nic_hdl MiniportAdapterContext,
|
_nic_hdl MiniportAdapterContext,
|
||||||
IN NDIS_OID Oid,
|
NDIS_OID Oid,
|
||||||
IN void * InformationBuffer,
|
void * InformationBuffer,
|
||||||
IN u32 InformationBufferLength,
|
u32 InformationBufferLength,
|
||||||
OUT u32* BytesWritten,
|
u32* BytesWritten,
|
||||||
OUT u32* BytesNeeded
|
u32* BytesNeeded
|
||||||
);
|
);
|
||||||
|
|
||||||
extern NDIS_STATUS drv_set_info(
|
extern NDIS_STATUS drv_set_info(
|
||||||
IN _nic_hdl MiniportAdapterContext,
|
_nic_hdl MiniportAdapterContext,
|
||||||
IN NDIS_OID Oid,
|
NDIS_OID Oid,
|
||||||
IN void * InformationBuffer,
|
void * InformationBuffer,
|
||||||
IN u32 InformationBufferLength,
|
u32 InformationBufferLength,
|
||||||
OUT u32* BytesRead,
|
u32* BytesRead,
|
||||||
OUT u32* BytesNeeded
|
u32* BytesNeeded
|
||||||
);
|
);
|
||||||
|
|
||||||
#endif // #ifndef __INC_CEINFO_
|
#endif // #ifndef __INC_CEINFO_
|
||||||
|
|
|
@ -165,7 +165,7 @@ struct mp_tx
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
typedef void (*MPT_WORK_ITEM_HANDLER)(IN void * Adapter);
|
typedef void (*MPT_WORK_ITEM_HANDLER)(void * Adapter);
|
||||||
typedef struct _MPT_CONTEXT
|
typedef struct _MPT_CONTEXT
|
||||||
{
|
{
|
||||||
// Indicate if we have started Mass Production Test.
|
// Indicate if we have started Mass Production Test.
|
||||||
|
|
|
@ -297,7 +297,7 @@ void rtw_ps_processor(struct adapter*padapter);
|
||||||
#ifdef CONFIG_AUTOSUSPEND
|
#ifdef CONFIG_AUTOSUSPEND
|
||||||
int autoresume_enter(struct adapter* padapter);
|
int autoresume_enter(struct adapter* padapter);
|
||||||
#endif
|
#endif
|
||||||
rt_rf_power_state RfOnOffDetect(IN struct adapter *pAdapter );
|
rt_rf_power_state RfOnOffDetect(struct adapter *pAdapter );
|
||||||
|
|
||||||
s32 LPS_RF_ON_check(struct adapter *padapter, u32 delay_ms);
|
s32 LPS_RF_ON_check(struct adapter *padapter, u32 delay_ms);
|
||||||
void LPS_Enter(struct adapter *padapter);
|
void LPS_Enter(struct adapter *padapter);
|
||||||
|
|
Loading…
Reference in a new issue