mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-26 22:33:39 +00:00
rtl8188eu: Remove the Windows IN and OUT pseudodirectives
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
722e1c9b2e
commit
21b9be0939
31 changed files with 1105 additions and 1107 deletions
214
core/rtw_efuse.c
214
core/rtw_efuse.c
|
@ -979,10 +979,10 @@ hal_EfuseSwitchToBank(
|
||||||
/* 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 PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 addr,
|
u16 addr,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
u32 tmpidx = 0;
|
u32 tmpidx = 0;
|
||||||
u8 bResult;
|
u8 bResult;
|
||||||
|
@ -1180,14 +1180,14 @@ static void efuse_PostUpdateAction(
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
Efuse_Read1ByteFromFakeContent(
|
Efuse_Read1ByteFromFakeContent(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN OUT u8 *Value);
|
u8 *Value);
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
Efuse_Read1ByteFromFakeContent(
|
Efuse_Read1ByteFromFakeContent(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN OUT u8 *Value)
|
u8 *Value)
|
||||||
{
|
{
|
||||||
if (Offset >= EFUSE_MAX_HW_SIZE)
|
if (Offset >= EFUSE_MAX_HW_SIZE)
|
||||||
return _FALSE;
|
return _FALSE;
|
||||||
|
@ -1201,14 +1201,14 @@ Efuse_Read1ByteFromFakeContent(
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
Efuse_Write1ByteToFakeContent(
|
Efuse_Write1ByteToFakeContent(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN u8 Value);
|
u8 Value);
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
Efuse_Write1ByteToFakeContent(
|
Efuse_Write1ByteToFakeContent(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN u8 Value)
|
u8 Value)
|
||||||
{
|
{
|
||||||
if (Offset >= EFUSE_MAX_HW_SIZE)
|
if (Offset >= EFUSE_MAX_HW_SIZE)
|
||||||
return _FALSE;
|
return _FALSE;
|
||||||
|
@ -1239,18 +1239,18 @@ Efuse_Write1ByteToFakeContent(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
Efuse_PowerSwitch(
|
Efuse_PowerSwitch(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 bWrite,
|
u8 bWrite,
|
||||||
IN u8 PwrState)
|
u8 PwrState)
|
||||||
{
|
{
|
||||||
pAdapter->hal_func.EfusePowerSwitch(pAdapter, bWrite, PwrState);
|
pAdapter->hal_func.EfusePowerSwitch(pAdapter, bWrite, PwrState);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
BTEfuse_PowerSwitch(
|
BTEfuse_PowerSwitch(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 bWrite,
|
u8 bWrite,
|
||||||
IN u8 PwrState)
|
u8 PwrState)
|
||||||
{
|
{
|
||||||
if (pAdapter->hal_func.BTEfusePowerSwitch)
|
if (pAdapter->hal_func.BTEfusePowerSwitch)
|
||||||
pAdapter->hal_func.BTEfusePowerSwitch(pAdapter, bWrite, PwrState);
|
pAdapter->hal_func.BTEfusePowerSwitch(pAdapter, bWrite, PwrState);
|
||||||
|
@ -1274,9 +1274,9 @@ BTEfuse_PowerSwitch(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
u16
|
u16
|
||||||
Efuse_GetCurrentSize(
|
Efuse_GetCurrentSize(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
u16 ret = 0;
|
u16 ret = 0;
|
||||||
|
|
||||||
|
@ -1301,7 +1301,7 @@ ReadEFuseByte(
|
||||||
PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
u16 _offset,
|
u16 _offset,
|
||||||
u8 *pbuf,
|
u8 *pbuf,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
u32 value32;
|
u32 value32;
|
||||||
u8 readbyte;
|
u8 readbyte;
|
||||||
|
@ -1367,7 +1367,7 @@ efuse_ReadEFuse(
|
||||||
u16 _offset,
|
u16 _offset,
|
||||||
u16 _size_byte,
|
u16 _size_byte,
|
||||||
u8 *pbuf,
|
u8 *pbuf,
|
||||||
IN BOOLEAN bPseudoTest
|
BOOLEAN bPseudoTest
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
efuse_ReadEFuse(
|
efuse_ReadEFuse(
|
||||||
|
@ -1376,7 +1376,7 @@ efuse_ReadEFuse(
|
||||||
u16 _offset,
|
u16 _offset,
|
||||||
u16 _size_byte,
|
u16 _size_byte,
|
||||||
u8 *pbuf,
|
u8 *pbuf,
|
||||||
IN BOOLEAN bPseudoTest
|
BOOLEAN bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
Adapter->hal_func.ReadEFuse(Adapter, efuseType, _offset, _size_byte, pbuf, bPseudoTest);
|
Adapter->hal_func.ReadEFuse(Adapter, efuseType, _offset, _size_byte, pbuf, bPseudoTest);
|
||||||
|
@ -1384,11 +1384,11 @@ efuse_ReadEFuse(
|
||||||
|
|
||||||
void
|
void
|
||||||
EFUSE_GetEfuseDefinition(
|
EFUSE_GetEfuseDefinition(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u8 type,
|
u8 type,
|
||||||
OUT void *pOut,
|
void *pOut,
|
||||||
IN BOOLEAN bPseudoTest
|
BOOLEAN bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
pAdapter->hal_func.EFUSEGetEfuseDefinition(pAdapter, efuseType, type, pOut, bPseudoTest);
|
pAdapter->hal_func.EFUSEGetEfuseDefinition(pAdapter, efuseType, type, pOut, bPseudoTest);
|
||||||
|
@ -1398,10 +1398,10 @@ EFUSE_GetEfuseDefinition(
|
||||||
/* 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 PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 addr,
|
u16 addr,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
u32 tmpidx = 0;
|
u32 tmpidx = 0;
|
||||||
u8 bResult;
|
u8 bResult;
|
||||||
|
@ -1455,10 +1455,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 PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 addr,
|
u16 addr,
|
||||||
IN u8 data,
|
u8 data,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
u8 tmpidx = 0;
|
u8 tmpidx = 0;
|
||||||
u8 bResult = _FALSE;
|
u8 bResult = _FALSE;
|
||||||
|
@ -1522,10 +1522,10 @@ efuse_OneByteWrite(
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
Efuse_PgPacketRead(IN PADAPTER pAdapter,
|
Efuse_PgPacketRead(PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
|
@ -1535,11 +1535,11 @@ Efuse_PgPacketRead(IN PADAPTER pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
Efuse_PgPacketWrite(IN PADAPTER pAdapter,
|
Efuse_PgPacketWrite(PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -1550,11 +1550,11 @@ Efuse_PgPacketWrite(IN PADAPTER pAdapter,
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
Efuse_PgPacketWrite_BT(IN PADAPTER pAdapter,
|
Efuse_PgPacketWrite_BT(PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -1565,11 +1565,11 @@ Efuse_PgPacketWrite_BT(IN PADAPTER pAdapter,
|
||||||
|
|
||||||
|
|
||||||
u8
|
u8
|
||||||
Efuse_WordEnableDataWrite(IN PADAPTER pAdapter,
|
Efuse_WordEnableDataWrite(PADAPTER pAdapter,
|
||||||
IN u16 efuse_addr,
|
u16 efuse_addr,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
u8 ret = 0;
|
u8 ret = 0;
|
||||||
|
|
||||||
|
@ -1942,16 +1942,16 @@ exit:
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
Efuse_ReadAllMap(
|
Efuse_ReadAllMap(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN OUT u8 *Efuse,
|
u8 *Efuse,
|
||||||
IN BOOLEAN bPseudoTest);
|
BOOLEAN bPseudoTest);
|
||||||
void
|
void
|
||||||
Efuse_ReadAllMap(
|
Efuse_ReadAllMap(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN OUT u8 *Efuse,
|
u8 *Efuse,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
u16 mapLen = 0;
|
u16 mapLen = 0;
|
||||||
|
|
||||||
|
@ -1984,9 +1984,9 @@ Efuse_ReadAllMap(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
efuse_ShadowRead1Byte(
|
efuse_ShadowRead1Byte(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN OUT u8 *Value)
|
u8 *Value)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
|
||||||
|
@ -1997,9 +1997,9 @@ efuse_ShadowRead1Byte(
|
||||||
/* ---------------Read Two Bytes */
|
/* ---------------Read Two Bytes */
|
||||||
static void
|
static void
|
||||||
efuse_ShadowRead2Byte(
|
efuse_ShadowRead2Byte(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN OUT u16 *Value)
|
u16 *Value)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
|
||||||
|
@ -2011,9 +2011,9 @@ efuse_ShadowRead2Byte(
|
||||||
/* ---------------Read Four Bytes */
|
/* ---------------Read Four Bytes */
|
||||||
static void
|
static void
|
||||||
efuse_ShadowRead4Byte(
|
efuse_ShadowRead4Byte(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN OUT u32 *Value)
|
u32 *Value)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
|
||||||
|
@ -2046,9 +2046,9 @@ efuse_ShadowRead4Byte(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
efuse_ShadowWrite1Byte(
|
efuse_ShadowWrite1Byte(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN u8 Value)
|
u8 Value)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
|
||||||
|
@ -2059,9 +2059,9 @@ efuse_ShadowWrite1Byte(
|
||||||
/* ---------------Write Two Bytes */
|
/* ---------------Write Two Bytes */
|
||||||
static void
|
static void
|
||||||
efuse_ShadowWrite2Byte(
|
efuse_ShadowWrite2Byte(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN u16 Value)
|
u16 Value)
|
||||||
{
|
{
|
||||||
|
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -2075,9 +2075,9 @@ efuse_ShadowWrite2Byte(
|
||||||
/* ---------------Write Four Bytes */
|
/* ---------------Write Four Bytes */
|
||||||
static void
|
static void
|
||||||
efuse_ShadowWrite4Byte(
|
efuse_ShadowWrite4Byte(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN u32 Value)
|
u32 Value)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
|
||||||
|
@ -2107,10 +2107,10 @@ efuse_ShadowWrite4Byte(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
EFUSE_ShadowRead(
|
EFUSE_ShadowRead(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER 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);
|
||||||
|
@ -2139,16 +2139,16 @@ EFUSE_ShadowRead(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
EFUSE_ShadowWrite(
|
EFUSE_ShadowWrite(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 Type,
|
u8 Type,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN OUT u32 Value);
|
u32 Value);
|
||||||
void
|
void
|
||||||
EFUSE_ShadowWrite(
|
EFUSE_ShadowWrite(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER 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;
|
||||||
|
@ -2168,11 +2168,11 @@ EFUSE_ShadowWrite(
|
||||||
|
|
||||||
void
|
void
|
||||||
Efuse_InitSomeVar(
|
Efuse_InitSomeVar(
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
Efuse_InitSomeVar(
|
Efuse_InitSomeVar(
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 i;
|
u8 i;
|
||||||
|
@ -2194,7 +2194,7 @@ Efuse_InitSomeVar(
|
||||||
#endif /* !RTW_HALMAC */
|
#endif /* !RTW_HALMAC */
|
||||||
/* 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)))
|
if (!(word_en & BIT(0)))
|
||||||
|
@ -2226,9 +2226,9 @@ Efuse_CalculateWordCnts(IN u8 word_en)
|
||||||
*
|
*
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
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))) {
|
||||||
targetdata[0] = sourdata[0];
|
targetdata[0] = sourdata[0];
|
||||||
|
@ -2265,9 +2265,9 @@ efuse_WordEnableDataRead(IN u8 word_en,
|
||||||
*
|
*
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void EFUSE_ShadowMapUpdate(
|
void EFUSE_ShadowMapUpdate(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
|
||||||
u16 mapLen = 0;
|
u16 mapLen = 0;
|
||||||
|
|
|
@ -10334,8 +10334,8 @@ Following are some utitity fuctions for WiFi MLME
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
BOOLEAN IsLegal5GChannel(
|
BOOLEAN IsLegal5GChannel(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 channel)
|
u8 channel)
|
||||||
{
|
{
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
|
@ -281,23 +281,23 @@ void free_mp_priv(struct mp_priv *pmp_priv)
|
||||||
|
|
||||||
|
|
||||||
static void PHY_IQCalibrate_default(
|
static void PHY_IQCalibrate_default(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN BOOLEAN bReCovery
|
BOOLEAN bReCovery
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
RTW_INFO("%s\n", __func__);
|
RTW_INFO("%s\n", __func__);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void PHY_LCCalibrate_default(
|
static void PHY_LCCalibrate_default(
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
RTW_INFO("%s\n", __func__);
|
RTW_INFO("%s\n", __func__);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void PHY_SetRFPathSwitch_default(
|
static void PHY_SetRFPathSwitch_default(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN BOOLEAN bMain
|
BOOLEAN bMain
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
RTW_INFO("%s\n", __func__);
|
RTW_INFO("%s\n", __func__);
|
||||||
|
@ -337,8 +337,8 @@ static void PHY_SetRFPathSwitch(PADAPTER padapter , BOOLEAN bMain) {
|
||||||
|
|
||||||
s32
|
s32
|
||||||
MPT_InitializeAdapter(
|
MPT_InitializeAdapter(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 Channel
|
u8 Channel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -398,7 +398,7 @@ MPT_InitializeAdapter(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
MPT_DeInitAdapter(
|
MPT_DeInitAdapter(
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PMPT_CONTEXT pMptCtx = &pAdapter->mppriv.mpt_ctx;
|
PMPT_CONTEXT pMptCtx = &pAdapter->mppriv.mpt_ctx;
|
||||||
|
@ -725,7 +725,7 @@ end_of_mp_stop_test:
|
||||||
*
|
*
|
||||||
* Overview: Change RF Setting when we siwthc channel/rate/BW for MP.
|
* Overview: Change RF Setting when we siwthc channel/rate/BW for MP.
|
||||||
*
|
*
|
||||||
* Input: IN PADAPTER pAdapter
|
* Input: PADAPTER pAdapter
|
||||||
*
|
*
|
||||||
* Output: NONE
|
* Output: NONE
|
||||||
*
|
*
|
||||||
|
@ -1293,7 +1293,7 @@ u32 mp_query_psd(PADAPTER pAdapter, u8 *data)
|
||||||
|
|
||||||
u8
|
u8
|
||||||
mpt_to_mgnt_rate(
|
mpt_to_mgnt_rate(
|
||||||
IN ULONG MptRateIdx
|
ULONG MptRateIdx
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* Mapped to MGN_XXX defined in MgntGen.h */
|
/* Mapped to MGN_XXX defined in MgntGen.h */
|
||||||
|
|
|
@ -1234,7 +1234,7 @@ void LeaveAllPowerSaveModeDirect(PADAPTER Adapter)
|
||||||
* 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 PADAPTER Adapter)
|
void LeaveAllPowerSaveMode(PADAPTER Adapter)
|
||||||
{
|
{
|
||||||
struct dvobj_priv *dvobj = adapter_to_dvobj(Adapter);
|
struct dvobj_priv *dvobj = adapter_to_dvobj(Adapter);
|
||||||
struct mlme_priv *pmlmepriv = &(Adapter->mlmepriv);
|
struct mlme_priv *pmlmepriv = &(Adapter->mlmepriv);
|
||||||
|
|
|
@ -389,8 +389,8 @@ void set_mcs_rate_by_mask(u8 *mcs_set, u32 mask)
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateBrateTbl(
|
void UpdateBrateTbl(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 *mBratesOS
|
u8 *mBratesOS
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 i;
|
u8 i;
|
||||||
|
|
|
@ -74,7 +74,7 @@ EFUSE_GetArrayLen_MP_8188E_MUSB(void)
|
||||||
|
|
||||||
void
|
void
|
||||||
EFUSE_GetMaskArray_MP_8188E_MUSB(
|
EFUSE_GetMaskArray_MP_8188E_MUSB(
|
||||||
IN OUT pu1Byte Array
|
pu1Byte Array
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u2Byte len = EFUSE_GetArrayLen_MP_8188E_MUSB(), i = 0;
|
u2Byte len = EFUSE_GetArrayLen_MP_8188E_MUSB(), i = 0;
|
||||||
|
@ -84,7 +84,7 @@ EFUSE_GetMaskArray_MP_8188E_MUSB(
|
||||||
}
|
}
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
EFUSE_IsAddressMasked_MP_8188E_MUSB(
|
EFUSE_IsAddressMasked_MP_8188E_MUSB(
|
||||||
IN u2Byte Offset
|
u2Byte Offset
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int r = Offset / 16;
|
int r = Offset / 16;
|
||||||
|
|
|
@ -30,10 +30,10 @@ EFUSE_GetArrayLen_MP_8188E_MUSB(void);
|
||||||
|
|
||||||
void
|
void
|
||||||
EFUSE_GetMaskArray_MP_8188E_MUSB(
|
EFUSE_GetMaskArray_MP_8188E_MUSB(
|
||||||
IN OUT pu1Byte Array
|
pu1Byte Array
|
||||||
);
|
);
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
EFUSE_IsAddressMasked_MP_8188E_MUSB(/* TC: Test Chip, MP: MP Chip */
|
EFUSE_IsAddressMasked_MP_8188E_MUSB(/* TC: Test Chip, MP: MP Chip */
|
||||||
IN u2Byte Offset
|
u2Byte Offset
|
||||||
);
|
);
|
||||||
|
|
|
@ -49,11 +49,11 @@ do {\
|
||||||
#define BTC_ANT_PATH_WIFI5G 3
|
#define BTC_ANT_PATH_WIFI5G 3
|
||||||
#define BTC_ANT_PATH_AUTO 4
|
#define BTC_ANT_PATH_AUTO 4
|
||||||
/* dual Antenna definition */
|
/* dual Antenna definition */
|
||||||
#define BTC_ANT_WIFI_AT_MAIN 0
|
#define BTC_ANT_WIFI_AT_MA 0
|
||||||
#define BTC_ANT_WIFI_AT_AUX 1
|
#define BTC_ANT_WIFI_AT_AUX 1
|
||||||
#define BTC_ANT_WIFI_AT_DIVERSITY 2
|
#define BTC_ANT_WIFI_AT_DIVERSITY 2
|
||||||
/* coupler Antenna definition */
|
/* coupler Antenna definition */
|
||||||
#define BTC_ANT_WIFI_AT_CPL_MAIN 0
|
#define BTC_ANT_WIFI_AT_CPL_MA0
|
||||||
#define BTC_ANT_WIFI_AT_CPL_AUX 1
|
#define BTC_ANT_WIFI_AT_CPL_AUX 1
|
||||||
|
|
||||||
typedef enum _BTC_POWERSAVE_TYPE {
|
typedef enum _BTC_POWERSAVE_TYPE {
|
||||||
|
@ -437,7 +437,7 @@ typedef enum _COL_H2C_STATUS {
|
||||||
/* other COL status start from here */
|
/* other COL status start from here */
|
||||||
COL_STATUS_C2H_REQ_NUM_MISMATCH , /* c2h req_num mismatch, means this c2h is not we expected. */
|
COL_STATUS_C2H_REQ_NUM_MISMATCH , /* c2h req_num mismatch, means this c2h is not we expected. */
|
||||||
COL_STATUS_H2C_HALMAC_FAIL , /* HALMAC return fail. */
|
COL_STATUS_H2C_HALMAC_FAIL , /* HALMAC return fail. */
|
||||||
COL_STATUS_H2C_TIMTOUT , /* not received the c2h response from fw */
|
COL_STATUS_H2C_TIMT , /* not received the c2h response from fw */
|
||||||
COL_STATUS_INVALID_C2H_LEN , /* invalid coex offload c2h ack length, must >= 3 */
|
COL_STATUS_INVALID_C2H_LEN , /* invalid coex offload c2h ack length, must >= 3 */
|
||||||
COL_STATUS_COEX_DATA_OVERFLOW , /* coex returned length over the c2h ack length. */
|
COL_STATUS_COEX_DATA_OVERFLOW , /* coex returned length over the c2h ack length. */
|
||||||
COL_STATUS_MAX
|
COL_STATUS_MAX
|
||||||
|
@ -506,190 +506,190 @@ extern BTC_OFFLOAD gl_coex_offload;
|
||||||
|
|
||||||
typedef u1Byte
|
typedef u1Byte
|
||||||
(*BFP_BTC_R1)(
|
(*BFP_BTC_R1)(
|
||||||
IN void * pBtcContext,
|
void * pBtcContext,
|
||||||
IN u4Byte RegAddr
|
u4Byte RegAddr
|
||||||
);
|
);
|
||||||
typedef u2Byte
|
typedef u2Byte
|
||||||
(*BFP_BTC_R2)(
|
(*BFP_BTC_R2)(
|
||||||
IN void * pBtcContext,
|
void * pBtcContext,
|
||||||
IN u4Byte RegAddr
|
u4Byte RegAddr
|
||||||
);
|
);
|
||||||
typedef u4Byte
|
typedef u4Byte
|
||||||
(*BFP_BTC_R4)(
|
(*BFP_BTC_R4)(
|
||||||
IN void * pBtcContext,
|
void * pBtcContext,
|
||||||
IN u4Byte RegAddr
|
u4Byte RegAddr
|
||||||
);
|
);
|
||||||
typedef void
|
typedef void
|
||||||
(*BFP_BTC_W1)(
|
(*BFP_BTC_W1)(
|
||||||
IN void * pBtcContext,
|
void * pBtcContext,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u1Byte Data
|
u1Byte Data
|
||||||
);
|
);
|
||||||
typedef void
|
typedef void
|
||||||
(*BFP_BTC_W1_BIT_MASK)(
|
(*BFP_BTC_W1_BIT_MASK)(
|
||||||
IN void * pBtcContext,
|
void * pBtcContext,
|
||||||
IN u4Byte regAddr,
|
u4Byte regAddr,
|
||||||
IN u1Byte bitMask,
|
u1Byte bitMask,
|
||||||
IN u1Byte data1b
|
u1Byte data1b
|
||||||
);
|
);
|
||||||
typedef void
|
typedef void
|
||||||
(*BFP_BTC_W2)(
|
(*BFP_BTC_W2)(
|
||||||
IN void * pBtcContext,
|
void * pBtcContext,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u2Byte Data
|
u2Byte Data
|
||||||
);
|
);
|
||||||
typedef void
|
typedef void
|
||||||
(*BFP_BTC_W4)(
|
(*BFP_BTC_W4)(
|
||||||
IN void * pBtcContext,
|
void * pBtcContext,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u4Byte Data
|
u4Byte Data
|
||||||
);
|
);
|
||||||
typedef void
|
typedef void
|
||||||
(*BFP_BTC_LOCAL_REG_W1)(
|
(*BFP_BTC_LOCAL_REG_W1)(
|
||||||
IN void * pBtcContext,
|
void * pBtcContext,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u1Byte Data
|
u1Byte Data
|
||||||
);
|
);
|
||||||
typedef void
|
typedef void
|
||||||
(*BFP_BTC_SET_BB_REG)(
|
(*BFP_BTC_SET_BB_REG)(
|
||||||
IN void * pBtcContext,
|
void * pBtcContext,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u4Byte BitMask,
|
u4Byte BitMask,
|
||||||
IN u4Byte Data
|
u4Byte Data
|
||||||
);
|
);
|
||||||
typedef u4Byte
|
typedef u4Byte
|
||||||
(*BFP_BTC_GET_BB_REG)(
|
(*BFP_BTC_GET_BB_REG)(
|
||||||
IN void * pBtcContext,
|
void * pBtcContext,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u4Byte BitMask
|
u4Byte BitMask
|
||||||
);
|
);
|
||||||
typedef void
|
typedef void
|
||||||
(*BFP_BTC_SET_RF_REG)(
|
(*BFP_BTC_SET_RF_REG)(
|
||||||
IN void * pBtcContext,
|
void * pBtcContext,
|
||||||
IN u1Byte eRFPath,
|
u1Byte eRFPath,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u4Byte BitMask,
|
u4Byte BitMask,
|
||||||
IN u4Byte Data
|
u4Byte Data
|
||||||
);
|
);
|
||||||
typedef u4Byte
|
typedef u4Byte
|
||||||
(*BFP_BTC_GET_RF_REG)(
|
(*BFP_BTC_GET_RF_REG)(
|
||||||
IN void * pBtcContext,
|
void * pBtcContext,
|
||||||
IN u1Byte eRFPath,
|
u1Byte eRFPath,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u4Byte BitMask
|
u4Byte BitMask
|
||||||
);
|
);
|
||||||
typedef void
|
typedef void
|
||||||
(*BFP_BTC_FILL_H2C)(
|
(*BFP_BTC_FILL_H2C)(
|
||||||
IN void * pBtcContext,
|
void * pBtcContext,
|
||||||
IN u1Byte elementId,
|
u1Byte elementId,
|
||||||
IN u4Byte cmdLen,
|
u4Byte cmdLen,
|
||||||
IN pu1Byte pCmdBuffer
|
pu1Byte pCmdBuffer
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef BOOLEAN
|
typedef BOOLEAN
|
||||||
(*BFP_BTC_GET)(
|
(*BFP_BTC_GET)(
|
||||||
IN void * pBtCoexist,
|
void * pBtCoexist,
|
||||||
IN u1Byte getType,
|
u1Byte getType,
|
||||||
OUT void * pOutBuf
|
void * pOutBuf
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef BOOLEAN
|
typedef BOOLEAN
|
||||||
(*BFP_BTC_SET)(
|
(*BFP_BTC_SET)(
|
||||||
IN void * pBtCoexist,
|
void * pBtCoexist,
|
||||||
IN u1Byte setType,
|
u1Byte setType,
|
||||||
OUT void * pInBuf
|
void * pInBuf
|
||||||
);
|
);
|
||||||
typedef u2Byte
|
typedef u2Byte
|
||||||
(*BFP_BTC_SET_BT_REG)(
|
(*BFP_BTC_SET_BT_REG)(
|
||||||
IN void * pBtcContext,
|
void * pBtcContext,
|
||||||
IN u1Byte regType,
|
u1Byte regType,
|
||||||
IN u4Byte offset,
|
u4Byte offset,
|
||||||
IN u4Byte value
|
u4Byte value
|
||||||
);
|
);
|
||||||
typedef BOOLEAN
|
typedef BOOLEAN
|
||||||
(*BFP_BTC_SET_BT_ANT_DETECTION)(
|
(*BFP_BTC_SET_BT_ANT_DETECTION)(
|
||||||
IN void * pBtcContext,
|
void * pBtcContext,
|
||||||
IN u1Byte txTime,
|
u1Byte txTime,
|
||||||
IN u1Byte btChnl
|
u1Byte btChnl
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef BOOLEAN
|
typedef BOOLEAN
|
||||||
(*BFP_BTC_SET_BT_TRX_MASK)(
|
(*BFP_BTC_SET_BT_TRX_MASK)(
|
||||||
IN void * pBtcContext,
|
void * pBtcContext,
|
||||||
IN u1Byte bt_trx_mask
|
u1Byte bt_trx_mask
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef u4Byte
|
typedef u4Byte
|
||||||
(*BFP_BTC_GET_BT_REG)(
|
(*BFP_BTC_GET_BT_REG)(
|
||||||
IN void * pBtcContext,
|
void * pBtcContext,
|
||||||
IN u1Byte regType,
|
u1Byte regType,
|
||||||
IN u4Byte offset
|
u4Byte offset
|
||||||
);
|
);
|
||||||
typedef void
|
typedef void
|
||||||
(*BFP_BTC_DISP_DBG_MSG)(
|
(*BFP_BTC_DISP_DBG_MSG)(
|
||||||
IN void * pBtCoexist,
|
void * pBtCoexist,
|
||||||
IN u1Byte dispType
|
u1Byte dispType
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef COL_H2C_STATUS
|
typedef COL_H2C_STATUS
|
||||||
(*BFP_BTC_COEX_H2C_PROCESS)(
|
(*BFP_BTC_COEX_H2C_PROCESS)(
|
||||||
IN void * pBtCoexist,
|
void * pBtCoexist,
|
||||||
IN u1Byte opcode,
|
u1Byte opcode,
|
||||||
IN u1Byte opcode_ver,
|
u1Byte opcode_ver,
|
||||||
IN pu1Byte ph2c_par,
|
pu1Byte ph2c_par,
|
||||||
IN u1Byte h2c_par_len
|
u1Byte h2c_par_len
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef u4Byte
|
typedef u4Byte
|
||||||
(*BFP_BTC_GET_BT_COEX_SUPPORTED_FEATURE)(
|
(*BFP_BTC_GET_BT_COEX_SUPPORTED_FEATURE)(
|
||||||
IN void * pBtcContext
|
void * pBtcContext
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef u4Byte
|
typedef u4Byte
|
||||||
(*BFP_BTC_GET_BT_COEX_SUPPORTED_VERSION)(
|
(*BFP_BTC_GET_BT_COEX_SUPPORTED_VERSION)(
|
||||||
IN void * pBtcContext
|
void * pBtcContext
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef u4Byte
|
typedef u4Byte
|
||||||
(*BFP_BTC_GET_PHYDM_VERSION)(
|
(*BFP_BTC_GET_PHYDM_VERSION)(
|
||||||
IN void * pBtcContext
|
void * pBtcContext
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef void
|
typedef void
|
||||||
(*BTC_PHYDM_MODIFY_RA_PCR_THRESHLOD)(
|
(*BTC_PHYDM_MODIFY_RA_PCR_THRESHLOD)(
|
||||||
IN void * pDM_Odm,
|
void * pDM_Odm,
|
||||||
IN u1Byte RA_offset_direction,
|
u1Byte RA_offset_direction,
|
||||||
IN u1Byte RA_threshold_offset
|
u1Byte RA_threshold_offset
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef u4Byte
|
typedef u4Byte
|
||||||
(*BTC_PHYDM_CMNINFOQUERY)(
|
(*BTC_PHYDM_CMNINFOQUERY)(
|
||||||
IN void * pDM_Odm,
|
void * pDM_Odm,
|
||||||
IN u1Byte info_type
|
u1Byte info_type
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef u1Byte
|
typedef u1Byte
|
||||||
(*BFP_BTC_GET_ANT_DET_VAL_FROM_BT)(
|
(*BFP_BTC_GET_ANT_DET_VAL_FROM_BT)(
|
||||||
|
|
||||||
IN void * pBtcContext
|
void * pBtcContext
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef u1Byte
|
typedef u1Byte
|
||||||
(*BFP_BTC_GET_BLE_SCAN_TYPE_FROM_BT)(
|
(*BFP_BTC_GET_BLE_SCAN_TYPE_FROM_BT)(
|
||||||
IN void * pBtcContext
|
void * pBtcContext
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef u4Byte
|
typedef u4Byte
|
||||||
(*BFP_BTC_GET_BLE_SCAN_PARA_FROM_BT)(
|
(*BFP_BTC_GET_BLE_SCAN_PARA_FROM_BT)(
|
||||||
IN void * pBtcContext,
|
void * pBtcContext,
|
||||||
IN u1Byte scanType
|
u1Byte scanType
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef BOOLEAN
|
typedef BOOLEAN
|
||||||
(*BFP_BTC_GET_BT_AFH_MAP_FROM_BT)(
|
(*BFP_BTC_GET_BT_AFH_MAP_FROM_BT)(
|
||||||
IN void * pBtcContext,
|
void * pBtcContext,
|
||||||
IN u1Byte mapType,
|
u1Byte mapType,
|
||||||
OUT pu1Byte afhMap
|
pu1Byte afhMap
|
||||||
);
|
);
|
||||||
|
|
||||||
struct btc_bt_info {
|
struct btc_bt_info {
|
||||||
|
@ -841,107 +841,107 @@ extern struct btc_coexist GLBtCoexist;
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
EXhalbtcoutsrc_InitlizeVariables(
|
EXhalbtcoutsrc_InitlizeVariables(
|
||||||
IN void * Adapter
|
void * Adapter
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_PowerOnSetting(
|
EXhalbtcoutsrc_PowerOnSetting(
|
||||||
IN PBTC_COEXIST pBtCoexist
|
PBTC_COEXIST pBtCoexist
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_PreLoadFirmware(
|
EXhalbtcoutsrc_PreLoadFirmware(
|
||||||
IN PBTC_COEXIST pBtCoexist
|
PBTC_COEXIST pBtCoexist
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_InitHwConfig(
|
EXhalbtcoutsrc_InitHwConfig(
|
||||||
IN PBTC_COEXIST pBtCoexist,
|
PBTC_COEXIST pBtCoexist,
|
||||||
IN BOOLEAN bWifiOnly
|
BOOLEAN bWifiOnly
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_InitCoexDm(
|
EXhalbtcoutsrc_InitCoexDm(
|
||||||
IN PBTC_COEXIST pBtCoexist
|
PBTC_COEXIST pBtCoexist
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_IpsNotify(
|
EXhalbtcoutsrc_IpsNotify(
|
||||||
IN PBTC_COEXIST pBtCoexist,
|
PBTC_COEXIST pBtCoexist,
|
||||||
IN u1Byte type
|
u1Byte type
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_LpsNotify(
|
EXhalbtcoutsrc_LpsNotify(
|
||||||
IN PBTC_COEXIST pBtCoexist,
|
PBTC_COEXIST pBtCoexist,
|
||||||
IN u1Byte type
|
u1Byte type
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_ScanNotify(
|
EXhalbtcoutsrc_ScanNotify(
|
||||||
IN PBTC_COEXIST pBtCoexist,
|
PBTC_COEXIST pBtCoexist,
|
||||||
IN u1Byte type
|
u1Byte type
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_SetAntennaPathNotify(
|
EXhalbtcoutsrc_SetAntennaPathNotify(
|
||||||
IN PBTC_COEXIST pBtCoexist,
|
PBTC_COEXIST pBtCoexist,
|
||||||
IN u1Byte type
|
u1Byte type
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_ConnectNotify(
|
EXhalbtcoutsrc_ConnectNotify(
|
||||||
IN PBTC_COEXIST pBtCoexist,
|
PBTC_COEXIST pBtCoexist,
|
||||||
IN u1Byte action
|
u1Byte action
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_MediaStatusNotify(
|
EXhalbtcoutsrc_MediaStatusNotify(
|
||||||
IN PBTC_COEXIST pBtCoexist,
|
PBTC_COEXIST pBtCoexist,
|
||||||
IN RT_MEDIA_STATUS mediaStatus
|
RT_MEDIA_STATUS mediaStatus
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_SpecificPacketNotify(
|
EXhalbtcoutsrc_SpecificPacketNotify(
|
||||||
IN PBTC_COEXIST pBtCoexist,
|
PBTC_COEXIST pBtCoexist,
|
||||||
IN u1Byte pktType
|
u1Byte pktType
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_BtInfoNotify(
|
EXhalbtcoutsrc_BtInfoNotify(
|
||||||
IN PBTC_COEXIST pBtCoexist,
|
PBTC_COEXIST pBtCoexist,
|
||||||
IN pu1Byte tmpBuf,
|
pu1Byte tmpBuf,
|
||||||
IN u1Byte length
|
u1Byte length
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_RfStatusNotify(
|
EXhalbtcoutsrc_RfStatusNotify(
|
||||||
IN PBTC_COEXIST pBtCoexist,
|
PBTC_COEXIST pBtCoexist,
|
||||||
IN u1Byte type
|
u1Byte type
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_StackOperationNotify(
|
EXhalbtcoutsrc_StackOperationNotify(
|
||||||
IN PBTC_COEXIST pBtCoexist,
|
PBTC_COEXIST pBtCoexist,
|
||||||
IN u1Byte type
|
u1Byte type
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_HaltNotify(
|
EXhalbtcoutsrc_HaltNotify(
|
||||||
IN PBTC_COEXIST pBtCoexist
|
PBTC_COEXIST pBtCoexist
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_PnpNotify(
|
EXhalbtcoutsrc_PnpNotify(
|
||||||
IN PBTC_COEXIST pBtCoexist,
|
PBTC_COEXIST pBtCoexist,
|
||||||
IN u1Byte pnpState
|
u1Byte pnpState
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_CoexDmSwitch(
|
EXhalbtcoutsrc_CoexDmSwitch(
|
||||||
IN PBTC_COEXIST pBtCoexist
|
PBTC_COEXIST pBtCoexist
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_Periodical(
|
EXhalbtcoutsrc_Periodical(
|
||||||
IN PBTC_COEXIST pBtCoexist
|
PBTC_COEXIST pBtCoexist
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_DbgControl(
|
EXhalbtcoutsrc_DbgControl(
|
||||||
IN PBTC_COEXIST pBtCoexist,
|
PBTC_COEXIST pBtCoexist,
|
||||||
IN u1Byte opCode,
|
u1Byte opCode,
|
||||||
IN u1Byte opLen,
|
u1Byte opLen,
|
||||||
IN pu1Byte pData
|
pu1Byte pData
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_AntennaDetection(
|
EXhalbtcoutsrc_AntennaDetection(
|
||||||
IN PBTC_COEXIST pBtCoexist,
|
PBTC_COEXIST pBtCoexist,
|
||||||
IN u4Byte centFreq,
|
u4Byte centFreq,
|
||||||
IN u4Byte offset,
|
u4Byte offset,
|
||||||
IN u4Byte span,
|
u4Byte span,
|
||||||
IN u4Byte seconds
|
u4Byte seconds
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_StackUpdateProfileInfo(
|
EXhalbtcoutsrc_StackUpdateProfileInfo(
|
||||||
|
@ -949,37 +949,37 @@ EXhalbtcoutsrc_StackUpdateProfileInfo(
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_SetHciVersion(
|
EXhalbtcoutsrc_SetHciVersion(
|
||||||
IN u2Byte hciVersion
|
u2Byte hciVersion
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_SetBtPatchVersion(
|
EXhalbtcoutsrc_SetBtPatchVersion(
|
||||||
IN u2Byte btHciVersion,
|
u2Byte btHciVersion,
|
||||||
IN u2Byte btPatchVersion
|
u2Byte btPatchVersion
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_UpdateMinBtRssi(
|
EXhalbtcoutsrc_UpdateMinBtRssi(
|
||||||
IN s1Byte btRssi
|
s1Byte btRssi
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_SetChipType(
|
EXhalbtcoutsrc_SetChipType(
|
||||||
IN u1Byte chipType
|
u1Byte chipType
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_SetAntNum(
|
EXhalbtcoutsrc_SetAntNum(
|
||||||
IN u1Byte type,
|
u1Byte type,
|
||||||
IN u1Byte antNum
|
u1Byte antNum
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_SetSingleAntPath(
|
EXhalbtcoutsrc_SetSingleAntPath(
|
||||||
IN u1Byte singleAntPath
|
u1Byte singleAntPath
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_DisplayBtCoexInfo(
|
EXhalbtcoutsrc_DisplayBtCoexInfo(
|
||||||
IN PBTC_COEXIST pBtCoexist
|
PBTC_COEXIST pBtCoexist
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
EXhalbtcoutsrc_DisplayAntDetection(
|
EXhalbtcoutsrc_DisplayAntDetection(
|
||||||
IN PBTC_COEXIST pBtCoexist
|
PBTC_COEXIST pBtCoexist
|
||||||
);
|
);
|
||||||
|
|
||||||
#define MASKBYTE0 0xff
|
#define MASKBYTE0 0xff
|
||||||
|
|
|
@ -238,13 +238,13 @@ void rtw_hal_config_rftype(PADAPTER padapter)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
u8 hal_com_config_channel_plan(
|
u8 hal_com_config_channel_plan(
|
||||||
IN PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN char *hw_alpha2,
|
char *hw_alpha2,
|
||||||
IN u8 hw_chplan,
|
u8 hw_chplan,
|
||||||
IN char *sw_alpha2,
|
char *sw_alpha2,
|
||||||
IN u8 sw_chplan,
|
u8 sw_chplan,
|
||||||
IN u8 def_chplan,
|
u8 def_chplan,
|
||||||
IN BOOLEAN AutoLoadFail
|
BOOLEAN AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData;
|
PHAL_DATA_TYPE pHalData;
|
||||||
|
@ -328,8 +328,8 @@ done:
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
HAL_IsLegalChannel(
|
HAL_IsLegalChannel(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u32 Channel
|
u32 Channel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
BOOLEAN bLegalChannel = _TRUE;
|
BOOLEAN bLegalChannel = _TRUE;
|
||||||
|
@ -886,9 +886,9 @@ u8 hw_rate_to_m_rate(u8 rate)
|
||||||
}
|
}
|
||||||
|
|
||||||
void HalSetBrateCfg(
|
void HalSetBrateCfg(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 *mBratesOS,
|
u8 *mBratesOS,
|
||||||
OUT u16 *pBrateCfg)
|
u16 *pBrateCfg)
|
||||||
{
|
{
|
||||||
u8 i, is_brate, brate;
|
u8 i, is_brate, brate;
|
||||||
|
|
||||||
|
@ -941,7 +941,7 @@ void HalSetBrateCfg(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_OneOutPipeMapping(
|
_OneOutPipeMapping(
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
|
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
|
||||||
|
@ -959,8 +959,8 @@ _OneOutPipeMapping(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_TwoOutPipeMapping(
|
_TwoOutPipeMapping(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN BOOLEAN bWIFICfg
|
BOOLEAN bWIFICfg
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
|
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
|
||||||
|
@ -1003,8 +1003,8 @@ _TwoOutPipeMapping(
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _ThreeOutPipeMapping(
|
static void _ThreeOutPipeMapping(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN BOOLEAN bWIFICfg
|
BOOLEAN bWIFICfg
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
|
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
|
||||||
|
@ -1045,8 +1045,8 @@ static void _ThreeOutPipeMapping(
|
||||||
|
|
||||||
}
|
}
|
||||||
static void _FourOutPipeMapping(
|
static void _FourOutPipeMapping(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN BOOLEAN bWIFICfg
|
BOOLEAN bWIFICfg
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
|
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
|
||||||
|
@ -1088,8 +1088,8 @@ static void _FourOutPipeMapping(
|
||||||
}
|
}
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
Hal_MappingOutPipe(
|
Hal_MappingOutPipe(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 NumOutPipe
|
u8 NumOutPipe
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct registry_priv *pregistrypriv = &pAdapter->registrypriv;
|
struct registry_priv *pregistrypriv = &pAdapter->registrypriv;
|
||||||
|
@ -8672,7 +8672,7 @@ eqNByte(
|
||||||
* */
|
* */
|
||||||
u32
|
u32
|
||||||
MapCharToHexDigit(
|
MapCharToHexDigit(
|
||||||
IN char chTmp
|
char chTmp
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (chTmp >= '0' && chTmp <= '9')
|
if (chTmp >= '0' && chTmp <= '9')
|
||||||
|
@ -8693,9 +8693,9 @@ MapCharToHexDigit(
|
||||||
* */
|
* */
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
GetHexValueFromString(
|
GetHexValueFromString(
|
||||||
IN char *szStr,
|
char *szStr,
|
||||||
IN OUT u32 *pu4bVal,
|
u32 *pu4bVal,
|
||||||
IN OUT u32 *pu4bMove
|
u32 *pu4bMove
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
char *szScan = szStr;
|
char *szScan = szStr;
|
||||||
|
@ -8742,10 +8742,10 @@ GetHexValueFromString(
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
GetFractionValueFromString(
|
GetFractionValueFromString(
|
||||||
IN char *szStr,
|
char *szStr,
|
||||||
IN OUT u8 *pInteger,
|
u8 *pInteger,
|
||||||
IN OUT u8 *pFraction,
|
u8 *pFraction,
|
||||||
IN OUT u32 *pu4bMove
|
u32 *pu4bMove
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
char *szScan = szStr;
|
char *szScan = szStr;
|
||||||
|
@ -8793,7 +8793,7 @@ GetFractionValueFromString(
|
||||||
* */
|
* */
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
IsCommentString(
|
IsCommentString(
|
||||||
IN char *szStr
|
char *szStr
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (*szStr == '/' && *(szStr + 1) == '/')
|
if (*szStr == '/' && *(szStr + 1) == '/')
|
||||||
|
@ -8804,8 +8804,8 @@ IsCommentString(
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
GetU1ByteIntegerFromStringInDecimal(
|
GetU1ByteIntegerFromStringInDecimal(
|
||||||
IN char *Str,
|
char *Str,
|
||||||
IN OUT u8 *pInt
|
u8 *pInt
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u16 i = 0;
|
u16 i = 0;
|
||||||
|
@ -8828,11 +8828,11 @@ GetU1ByteIntegerFromStringInDecimal(
|
||||||
* If RightQualifier does not exist, it will hang on in the while loop */
|
* If RightQualifier does not exist, it will hang on in the while loop */
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
ParseQualifiedString(
|
ParseQualifiedString(
|
||||||
IN char *In,
|
char *In,
|
||||||
IN OUT u32 *Start,
|
u32 *Start,
|
||||||
OUT char *Out,
|
char *Out,
|
||||||
IN char LeftQualifier,
|
char LeftQualifier,
|
||||||
IN char RightQualifier
|
char RightQualifier
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 i = 0, j = 0;
|
u32 i = 0, j = 0;
|
||||||
|
|
|
@ -1044,10 +1044,10 @@ void dump_hal_txpwr_info_5g(void *sel, _adapter *adapter, u8 rfpath_num, u8 max_
|
||||||
* Return dBm or -1 for undefined
|
* Return dBm or -1 for undefined
|
||||||
*/
|
*/
|
||||||
static s8 rtw_regsty_get_target_tx_power(
|
static s8 rtw_regsty_get_target_tx_power(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 Band,
|
u8 Band,
|
||||||
IN u8 RfPath,
|
u8 RfPath,
|
||||||
IN RATE_SECTION RateSection
|
RATE_SECTION RateSection
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct registry_priv *regsty = adapter_to_regsty(Adapter);
|
struct registry_priv *regsty = adapter_to_regsty(Adapter);
|
||||||
|
@ -1132,11 +1132,11 @@ static bool rtw_regsty_chk_target_tx_power_valid(_adapter *adapter)
|
||||||
*/
|
*/
|
||||||
u8
|
u8
|
||||||
PHY_GetTxPowerByRateBase(
|
PHY_GetTxPowerByRateBase(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 Band,
|
u8 Band,
|
||||||
IN u8 RfPath,
|
u8 RfPath,
|
||||||
IN u8 TxNum,
|
u8 TxNum,
|
||||||
IN RATE_SECTION RateSection
|
RATE_SECTION RateSection
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -1170,12 +1170,12 @@ PHY_GetTxPowerByRateBase(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
phy_SetTxPowerByRateBase(
|
phy_SetTxPowerByRateBase(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 Band,
|
u8 Band,
|
||||||
IN u8 RfPath,
|
u8 RfPath,
|
||||||
IN RATE_SECTION RateSection,
|
RATE_SECTION RateSection,
|
||||||
IN u8 TxNum,
|
u8 TxNum,
|
||||||
IN u8 Value
|
u8 Value
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -1293,7 +1293,7 @@ static void phy_txpwr_by_rate_chk_for_path_dup(_adapter *adapter)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
phy_StoreTxPowerByRateBase(
|
phy_StoreTxPowerByRateBase(
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct hal_spec_t *hal_spec = GET_HAL_SPEC(pAdapter);
|
struct hal_spec_t *hal_spec = GET_HAL_SPEC(pAdapter);
|
||||||
|
@ -1345,13 +1345,13 @@ phy_StoreTxPowerByRateBase(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_GetRateValuesOfTxPowerByRate(
|
PHY_GetRateValuesOfTxPowerByRate(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Value,
|
u32 Value,
|
||||||
OUT u8 *Rate,
|
u8 *Rate,
|
||||||
OUT s8 *PwrByRateVal,
|
s8 *PwrByRateVal,
|
||||||
OUT u8 *RateNum
|
u8 *RateNum
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -1735,13 +1735,13 @@ PHY_GetRateValuesOfTxPowerByRate(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
PHY_StoreTxPowerByRateNew(
|
PHY_StoreTxPowerByRateNew(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u32 Band,
|
u32 Band,
|
||||||
IN u32 RfPath,
|
u32 RfPath,
|
||||||
IN u32 TxNum,
|
u32 TxNum,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -1783,7 +1783,7 @@ PHY_StoreTxPowerByRateNew(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_InitTxPowerByRate(
|
PHY_InitTxPowerByRate(
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -1798,13 +1798,13 @@ PHY_InitTxPowerByRate(
|
||||||
|
|
||||||
void
|
void
|
||||||
phy_store_tx_power_by_rate(
|
phy_store_tx_power_by_rate(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u32 Band,
|
u32 Band,
|
||||||
IN u32 RfPath,
|
u32 RfPath,
|
||||||
IN u32 TxNum,
|
u32 TxNum,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -1819,7 +1819,7 @@ phy_store_tx_power_by_rate(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
phy_ConvertTxPowerByRateInDbmToRelativeValues(
|
phy_ConvertTxPowerByRateInDbmToRelativeValues(
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -1913,7 +1913,7 @@ phy_ConvertTxPowerByRateInDbmToRelativeValues(
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
PHY_TxPowerByRateConfiguration(
|
PHY_TxPowerByRateConfiguration(
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -1925,10 +1925,10 @@ PHY_TxPowerByRateConfiguration(
|
||||||
|
|
||||||
void
|
void
|
||||||
phy_set_tx_power_index_by_rate_section(
|
phy_set_tx_power_index_by_rate_section(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 RFPath,
|
u8 RFPath,
|
||||||
IN u8 Channel,
|
u8 Channel,
|
||||||
IN u8 RateSection
|
u8 RateSection
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -1973,12 +1973,12 @@ static BOOLEAN phy_GetChnlIndex(u8 Channel, u8 *ChannelIdx)
|
||||||
|
|
||||||
u8
|
u8
|
||||||
PHY_GetTxPowerIndexBase(
|
PHY_GetTxPowerIndexBase(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 RFPath,
|
u8 RFPath,
|
||||||
IN u8 Rate,
|
u8 Rate,
|
||||||
IN CHANNEL_WIDTH BandWidth,
|
CHANNEL_WIDTH BandWidth,
|
||||||
IN u8 Channel,
|
u8 Channel,
|
||||||
OUT PBOOLEAN bIn24G
|
PBOOLEAN bIn24G
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -2161,7 +2161,7 @@ PHY_GetTxPowerTrackingOffset(
|
||||||
/*The same as MRateToHwRate in hal_com.c*/
|
/*The same as MRateToHwRate in hal_com.c*/
|
||||||
u8
|
u8
|
||||||
PHY_GetRateIndexOfTxPowerByRate(
|
PHY_GetRateIndexOfTxPowerByRate(
|
||||||
IN u8 Rate
|
u8 Rate
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 index = 0;
|
u8 index = 0;
|
||||||
|
@ -2428,11 +2428,11 @@ PHY_GetRateIndexOfTxPowerByRate(
|
||||||
|
|
||||||
s8
|
s8
|
||||||
_PHY_GetTxPowerByRate(
|
_PHY_GetTxPowerByRate(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 Band,
|
u8 Band,
|
||||||
IN u8 RFPath,
|
u8 RFPath,
|
||||||
IN u8 TxNum,
|
u8 TxNum,
|
||||||
IN u8 Rate
|
u8 Rate
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -2465,11 +2465,11 @@ exit:
|
||||||
|
|
||||||
s8
|
s8
|
||||||
PHY_GetTxPowerByRate(
|
PHY_GetTxPowerByRate(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 Band,
|
u8 Band,
|
||||||
IN u8 RFPath,
|
u8 RFPath,
|
||||||
IN u8 TxNum,
|
u8 TxNum,
|
||||||
IN u8 Rate
|
u8 Rate
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (!phy_is_tx_power_by_rate_needed(pAdapter))
|
if (!phy_is_tx_power_by_rate_needed(pAdapter))
|
||||||
|
@ -2481,11 +2481,11 @@ PHY_GetTxPowerByRate(
|
||||||
#ifdef CONFIG_PHYDM_POWERTRACK_BY_TSSI
|
#ifdef CONFIG_PHYDM_POWERTRACK_BY_TSSI
|
||||||
s8
|
s8
|
||||||
PHY_GetTxPowerByRateOriginal(
|
PHY_GetTxPowerByRateOriginal(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 Band,
|
u8 Band,
|
||||||
IN u8 RFPath,
|
u8 RFPath,
|
||||||
IN u8 TxNum,
|
u8 TxNum,
|
||||||
IN u8 Rate
|
u8 Rate
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -2523,12 +2523,12 @@ PHY_GetTxPowerByRateOriginal(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_SetTxPowerByRate(
|
PHY_SetTxPowerByRate(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 Band,
|
u8 Band,
|
||||||
IN u8 RFPath,
|
u8 RFPath,
|
||||||
IN u8 TxNum,
|
u8 TxNum,
|
||||||
IN u8 Rate,
|
u8 Rate,
|
||||||
IN s8 Value
|
s8 Value
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -2556,9 +2556,9 @@ PHY_SetTxPowerByRate(
|
||||||
|
|
||||||
void
|
void
|
||||||
phy_set_tx_power_level_by_path(
|
phy_set_tx_power_level_by_path(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 channel,
|
u8 channel,
|
||||||
IN u8 path
|
u8 path
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -2583,12 +2583,12 @@ phy_set_tx_power_level_by_path(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_SetTxPowerIndexByRateArray(
|
PHY_SetTxPowerIndexByRateArray(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 RFPath,
|
u8 RFPath,
|
||||||
IN CHANNEL_WIDTH BandWidth,
|
CHANNEL_WIDTH BandWidth,
|
||||||
IN u8 Channel,
|
u8 Channel,
|
||||||
IN u8 *Rates,
|
u8 *Rates,
|
||||||
IN u8 RateArraySize
|
u8 RateArraySize
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 powerIndex = 0;
|
u32 powerIndex = 0;
|
||||||
|
@ -2644,13 +2644,13 @@ static s8 phy_GetChannelIndexOfTxPowerLimit(u8 Band, u8 Channel)
|
||||||
}
|
}
|
||||||
|
|
||||||
static s8 _phy_get_txpwr_lmt(
|
static s8 _phy_get_txpwr_lmt(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u32 RegPwrTblSel,
|
u32 RegPwrTblSel,
|
||||||
IN BAND_TYPE Band,
|
BAND_TYPE Band,
|
||||||
IN CHANNEL_WIDTH Bandwidth,
|
CHANNEL_WIDTH Bandwidth,
|
||||||
IN u8 RfPath,
|
u8 RfPath,
|
||||||
IN u8 DataRate,
|
u8 DataRate,
|
||||||
IN u8 Channel,
|
u8 Channel,
|
||||||
BOOLEAN no_sc
|
BOOLEAN no_sc
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -2807,13 +2807,13 @@ exit:
|
||||||
|
|
||||||
inline s8
|
inline s8
|
||||||
PHY_GetTxPowerLimit(
|
PHY_GetTxPowerLimit(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u32 RegPwrTblSel,
|
u32 RegPwrTblSel,
|
||||||
IN BAND_TYPE Band,
|
BAND_TYPE Band,
|
||||||
IN CHANNEL_WIDTH Bandwidth,
|
CHANNEL_WIDTH Bandwidth,
|
||||||
IN u8 RfPath,
|
u8 RfPath,
|
||||||
IN u8 DataRate,
|
u8 DataRate,
|
||||||
IN u8 Channel
|
u8 Channel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
BOOLEAN no_sc = _FALSE;
|
BOOLEAN no_sc = _FALSE;
|
||||||
|
@ -2827,13 +2827,13 @@ PHY_GetTxPowerLimit(
|
||||||
|
|
||||||
inline s8
|
inline s8
|
||||||
PHY_GetTxPowerLimit_no_sc(
|
PHY_GetTxPowerLimit_no_sc(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u32 RegPwrTblSel,
|
u32 RegPwrTblSel,
|
||||||
IN BAND_TYPE Band,
|
BAND_TYPE Band,
|
||||||
IN CHANNEL_WIDTH Bandwidth,
|
CHANNEL_WIDTH Bandwidth,
|
||||||
IN u8 RfPath,
|
u8 RfPath,
|
||||||
IN u8 DataRate,
|
u8 DataRate,
|
||||||
IN u8 Channel
|
u8 Channel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return _phy_get_txpwr_lmt(Adapter, RegPwrTblSel, Band, Bandwidth, RfPath, DataRate, Channel, _TRUE);
|
return _phy_get_txpwr_lmt(Adapter, RegPwrTblSel, Band, Bandwidth, RfPath, DataRate, Channel, _TRUE);
|
||||||
|
@ -2842,13 +2842,13 @@ PHY_GetTxPowerLimit_no_sc(
|
||||||
#ifdef CONFIG_PHYDM_POWERTRACK_BY_TSSI
|
#ifdef CONFIG_PHYDM_POWERTRACK_BY_TSSI
|
||||||
s8
|
s8
|
||||||
PHY_GetTxPowerLimitOriginal(
|
PHY_GetTxPowerLimitOriginal(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u32 RegPwrTblSel,
|
u32 RegPwrTblSel,
|
||||||
IN BAND_TYPE Band,
|
BAND_TYPE Band,
|
||||||
IN CHANNEL_WIDTH Bandwidth,
|
CHANNEL_WIDTH Bandwidth,
|
||||||
IN u8 RfPath,
|
u8 RfPath,
|
||||||
IN u8 DataRate,
|
u8 DataRate,
|
||||||
IN u8 Channel
|
u8 Channel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -3192,7 +3192,7 @@ static void phy_CrossReferenceHTAndVHTTxPowerLimit(PADAPTER pAdapter)
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_ConvertTxPowerLimitToPowerIndex(
|
PHY_ConvertTxPowerLimitToPowerIndex(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -3236,7 +3236,7 @@ PHY_ConvertTxPowerLimitToPowerIndex(
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
PHY_InitTxPowerLimit(
|
PHY_InitTxPowerLimit(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -3262,14 +3262,14 @@ PHY_InitTxPowerLimit(
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
phy_set_tx_power_limit(
|
phy_set_tx_power_limit(
|
||||||
IN struct PHY_DM_STRUCT *pDM_Odm,
|
struct PHY_DM_STRUCT *pDM_Odm,
|
||||||
IN u8 *Regulation,
|
u8 *Regulation,
|
||||||
IN u8 *Band,
|
u8 *Band,
|
||||||
IN u8 *Bandwidth,
|
u8 *Bandwidth,
|
||||||
IN u8 *RateSection,
|
u8 *RateSection,
|
||||||
IN u8 *RfPath,
|
u8 *RfPath,
|
||||||
IN u8 *Channel,
|
u8 *Channel,
|
||||||
IN u8 *PowerLimit
|
u8 *PowerLimit
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PADAPTER Adapter = pDM_Odm->adapter;
|
PADAPTER Adapter = pDM_Odm->adapter;
|
||||||
|
@ -3393,11 +3393,11 @@ phy_set_tx_power_limit(
|
||||||
|
|
||||||
u8
|
u8
|
||||||
phy_get_tx_power_index(
|
phy_get_tx_power_index(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 RFPath,
|
u8 RFPath,
|
||||||
IN u8 Rate,
|
u8 Rate,
|
||||||
IN CHANNEL_WIDTH BandWidth,
|
CHANNEL_WIDTH BandWidth,
|
||||||
IN u8 Channel
|
u8 Channel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return rtw_hal_get_tx_power_index(pAdapter, RFPath, Rate, BandWidth, Channel, NULL);
|
return rtw_hal_get_tx_power_index(pAdapter, RFPath, Rate, BandWidth, Channel, NULL);
|
||||||
|
@ -3405,10 +3405,10 @@ phy_get_tx_power_index(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_SetTxPowerIndex(
|
PHY_SetTxPowerIndex(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u32 PowerIndex,
|
u32 PowerIndex,
|
||||||
IN u8 RFPath,
|
u8 RFPath,
|
||||||
IN u8 Rate
|
u8 Rate
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (IS_HARDWARE_TYPE_8188E(pAdapter))
|
if (IS_HARDWARE_TYPE_8188E(pAdapter))
|
||||||
|
@ -3945,8 +3945,8 @@ int rtw_get_phy_file_path(_adapter *adapter, const char *file_name)
|
||||||
#ifdef CONFIG_LOAD_PHY_PARA_FROM_FILE
|
#ifdef CONFIG_LOAD_PHY_PARA_FROM_FILE
|
||||||
int
|
int
|
||||||
phy_ConfigMACWithParaFile(
|
phy_ConfigMACWithParaFile(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN char *pFileName
|
char *pFileName
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -4007,9 +4007,9 @@ phy_ConfigMACWithParaFile(
|
||||||
|
|
||||||
int
|
int
|
||||||
phy_ConfigBBWithParaFile(
|
phy_ConfigBBWithParaFile(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN char *pFileName,
|
char *pFileName,
|
||||||
IN u32 ConfigType
|
u32 ConfigType
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -4405,8 +4405,8 @@ static int phy_ParseBBPgParaFile(PADAPTER Adapter, char *buffer)
|
||||||
|
|
||||||
int
|
int
|
||||||
phy_ConfigBBWithPgParaFile(
|
phy_ConfigBBWithPgParaFile(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN const char *pFileName)
|
const char *pFileName)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
int rlen = 0, rtStatus = _FAIL;
|
int rlen = 0, rtStatus = _FAIL;
|
||||||
|
@ -4451,8 +4451,8 @@ phy_ConfigBBWithPgParaFile(
|
||||||
|
|
||||||
int
|
int
|
||||||
phy_ConfigBBWithMpParaFile(
|
phy_ConfigBBWithMpParaFile(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN char *pFileName
|
char *pFileName
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -4537,9 +4537,9 @@ phy_ConfigBBWithMpParaFile(
|
||||||
|
|
||||||
int
|
int
|
||||||
PHY_ConfigRFWithParaFile(
|
PHY_ConfigRFWithParaFile(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN char *pFileName,
|
char *pFileName,
|
||||||
IN u8 eRFPath
|
u8 eRFPath
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -4747,8 +4747,8 @@ static void initDeltaSwingIndexTables(
|
||||||
|
|
||||||
int
|
int
|
||||||
PHY_ConfigRFWithTxPwrTrackParaFile(
|
PHY_ConfigRFWithTxPwrTrackParaFile(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN char *pFileName
|
char *pFileName
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -5069,8 +5069,8 @@ static int phy_ParsePowerLimitTableFile(
|
||||||
|
|
||||||
int
|
int
|
||||||
PHY_ConfigRFWithPowerLimitTableParaFile(
|
PHY_ConfigRFWithPowerLimitTableParaFile(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN const char *pFileName
|
const char *pFileName
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
|
|
@ -84,9 +84,9 @@ PHY_CalculateBitShift(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
u32
|
u32
|
||||||
PHY_RFShadowRead(
|
PHY_RFShadowRead(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 eRFPath,
|
u8 eRFPath,
|
||||||
IN u32 Offset)
|
u32 Offset)
|
||||||
{
|
{
|
||||||
return RF_Shadow[eRFPath][Offset].Value;
|
return RF_Shadow[eRFPath][Offset].Value;
|
||||||
|
|
||||||
|
@ -95,10 +95,10 @@ PHY_RFShadowRead(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowWrite(
|
PHY_RFShadowWrite(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 eRFPath,
|
u8 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;
|
||||||
|
@ -108,9 +108,9 @@ PHY_RFShadowWrite(
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
PHY_RFShadowCompare(
|
PHY_RFShadowCompare(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 eRFPath,
|
u8 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 */
|
||||||
|
@ -129,9 +129,9 @@ PHY_RFShadowCompare(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowRecorver(
|
PHY_RFShadowRecorver(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 eRFPath,
|
u8 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) {
|
||||||
|
@ -147,7 +147,7 @@ PHY_RFShadowRecorver(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowCompareAll(
|
PHY_RFShadowCompareAll(
|
||||||
IN PADAPTER Adapter)
|
PADAPTER Adapter)
|
||||||
{
|
{
|
||||||
u8 eRFPath = 0 ;
|
u8 eRFPath = 0 ;
|
||||||
u32 Offset = 0, maxReg = GET_RF6052_REAL_MAX_REG(Adapter);
|
u32 Offset = 0, maxReg = GET_RF6052_REAL_MAX_REG(Adapter);
|
||||||
|
@ -162,7 +162,7 @@ PHY_RFShadowCompareAll(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowRecorverAll(
|
PHY_RFShadowRecorverAll(
|
||||||
IN PADAPTER Adapter)
|
PADAPTER Adapter)
|
||||||
{
|
{
|
||||||
u8 eRFPath = 0;
|
u8 eRFPath = 0;
|
||||||
u32 Offset = 0, maxReg = GET_RF6052_REAL_MAX_REG(Adapter);
|
u32 Offset = 0, maxReg = GET_RF6052_REAL_MAX_REG(Adapter);
|
||||||
|
@ -177,10 +177,10 @@ PHY_RFShadowRecorverAll(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowCompareFlagSet(
|
PHY_RFShadowCompareFlagSet(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 eRFPath,
|
u8 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;
|
||||||
|
@ -190,10 +190,10 @@ PHY_RFShadowCompareFlagSet(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowRecorverFlagSet(
|
PHY_RFShadowRecorverFlagSet(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 eRFPath,
|
u8 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;
|
||||||
|
@ -203,7 +203,7 @@ PHY_RFShadowRecorverFlagSet(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowCompareFlagSetAll(
|
PHY_RFShadowCompareFlagSetAll(
|
||||||
IN PADAPTER Adapter)
|
PADAPTER Adapter)
|
||||||
{
|
{
|
||||||
u8 eRFPath = 0;
|
u8 eRFPath = 0;
|
||||||
u32 Offset = 0, maxReg = GET_RF6052_REAL_MAX_REG(Adapter);
|
u32 Offset = 0, maxReg = GET_RF6052_REAL_MAX_REG(Adapter);
|
||||||
|
@ -223,7 +223,7 @@ PHY_RFShadowCompareFlagSetAll(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowRecorverFlagSetAll(
|
PHY_RFShadowRecorverFlagSetAll(
|
||||||
IN PADAPTER Adapter)
|
PADAPTER Adapter)
|
||||||
{
|
{
|
||||||
u8 eRFPath = 0;
|
u8 eRFPath = 0;
|
||||||
u32 Offset = 0, maxReg = GET_RF6052_REAL_MAX_REG(Adapter);
|
u32 Offset = 0, maxReg = GET_RF6052_REAL_MAX_REG(Adapter);
|
||||||
|
@ -242,7 +242,7 @@ PHY_RFShadowRecorverFlagSetAll(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowRefresh(
|
PHY_RFShadowRefresh(
|
||||||
IN PADAPTER Adapter)
|
PADAPTER Adapter)
|
||||||
{
|
{
|
||||||
u8 eRFPath = 0;
|
u8 eRFPath = 0;
|
||||||
u32 Offset = 0, maxReg = GET_RF6052_REAL_MAX_REG(Adapter);
|
u32 Offset = 0, maxReg = GET_RF6052_REAL_MAX_REG(Adapter);
|
||||||
|
|
|
@ -1465,7 +1465,7 @@ SwLedBlink12(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
SwLedBlink13(
|
SwLedBlink13(
|
||||||
IN PLED_USB pLed
|
PLED_USB pLed
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PADAPTER Adapter = pLed->padapter;
|
PADAPTER Adapter = pLed->padapter;
|
||||||
|
@ -1526,7 +1526,7 @@ SwLedBlink13(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
SwLedBlink14(
|
SwLedBlink14(
|
||||||
IN PLED_USB pLed
|
PLED_USB pLed
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PADAPTER Adapter = pLed->padapter;
|
PADAPTER Adapter = pLed->padapter;
|
||||||
|
@ -1577,7 +1577,7 @@ SwLedBlink14(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
SwLedBlink15(
|
SwLedBlink15(
|
||||||
IN PLED_USB pLed
|
PLED_USB pLed
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PADAPTER Adapter = pLed->padapter;
|
PADAPTER Adapter = pLed->padapter;
|
||||||
|
@ -3066,8 +3066,8 @@ SwLedControlMode8(
|
||||||
/* page added for Belkin AC950, 20120813 */
|
/* page added for Belkin AC950, 20120813 */
|
||||||
static void
|
static void
|
||||||
SwLedControlMode9(
|
SwLedControlMode9(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN LED_CTL_MODE LedAction
|
LED_CTL_MODE LedAction
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct led_priv *ledpriv = &(Adapter->ledpriv);
|
struct led_priv *ledpriv = &(Adapter->ledpriv);
|
||||||
|
@ -3733,8 +3733,8 @@ SwLedControlMode12(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
SwLedControlMode13(
|
SwLedControlMode13(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN LED_CTL_MODE LedAction
|
LED_CTL_MODE LedAction
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct led_priv *ledpriv = &(Adapter->ledpriv);
|
struct led_priv *ledpriv = &(Adapter->ledpriv);
|
||||||
|
@ -3879,8 +3879,8 @@ SwLedControlMode13(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
SwLedControlMode14(
|
SwLedControlMode14(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN LED_CTL_MODE LedAction
|
LED_CTL_MODE LedAction
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct led_priv *ledpriv = &(Adapter->ledpriv);
|
struct led_priv *ledpriv = &(Adapter->ledpriv);
|
||||||
|
@ -3929,8 +3929,8 @@ SwLedControlMode14(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
SwLedControlMode15(
|
SwLedControlMode15(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN LED_CTL_MODE LedAction
|
LED_CTL_MODE LedAction
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct led_priv *ledpriv = &(Adapter->ledpriv);
|
struct led_priv *ledpriv = &(Adapter->ledpriv);
|
||||||
|
|
|
@ -530,7 +530,7 @@ static void rtl8188e_set_FwRsvdPage_cmd(PADAPTER padapter, PRSVDPAGE_LOC rsvdpag
|
||||||
* 2010.06.23. Added by tynli. */
|
* 2010.06.23. Added by tynli. */
|
||||||
void
|
void
|
||||||
CheckFwRsvdPageContent(
|
CheckFwRsvdPageContent(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
|
|
@ -39,14 +39,14 @@
|
||||||
|
|
||||||
static void
|
static void
|
||||||
dm_CheckProtection(
|
dm_CheckProtection(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
dm_CheckStatistics(
|
dm_CheckStatistics(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@ static void dm_CheckPbcGPIO(_adapter *padapter)
|
||||||
/* Initialize GPIO setting registers */
|
/* Initialize GPIO setting registers */
|
||||||
static void
|
static void
|
||||||
dm_InitGPIOSetting(
|
dm_InitGPIOSetting(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -191,7 +191,7 @@ static void Update_ODM_ComInfo_88E(PADAPTER Adapter)
|
||||||
|
|
||||||
void
|
void
|
||||||
rtl8188e_InitHalDm(
|
rtl8188e_InitHalDm(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -209,7 +209,7 @@ rtl8188e_InitHalDm(
|
||||||
|
|
||||||
void
|
void
|
||||||
rtl8188e_HalDmWatchDog(
|
rtl8188e_HalDmWatchDog(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
BOOLEAN bFwCurrentInPSMode = _FALSE;
|
BOOLEAN bFwCurrentInPSMode = _FALSE;
|
||||||
|
@ -272,7 +272,7 @@ skip_dm:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void rtl8188e_init_dm_priv(IN PADAPTER Adapter)
|
void rtl8188e_init_dm_priv(PADAPTER Adapter)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
||||||
struct PHY_DM_STRUCT *podmpriv = &pHalData->odmpriv;
|
struct PHY_DM_STRUCT *podmpriv = &pHalData->odmpriv;
|
||||||
|
@ -283,7 +283,7 @@ void rtl8188e_init_dm_priv(IN PADAPTER Adapter)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void rtl8188e_deinit_dm_priv(IN PADAPTER Adapter)
|
void rtl8188e_deinit_dm_priv(PADAPTER Adapter)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
||||||
struct PHY_DM_STRUCT *podmpriv = &pHalData->odmpriv;
|
struct PHY_DM_STRUCT *podmpriv = &pHalData->odmpriv;
|
||||||
|
|
|
@ -489,8 +489,8 @@ void rtw_IOL_cmd_tx_pkt_buf_dump(ADAPTER *Adapter, int data_len)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_FWDownloadEnable_8188E(
|
_FWDownloadEnable_8188E(
|
||||||
IN PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN BOOLEAN enable
|
BOOLEAN enable
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 tmp;
|
u8 tmp;
|
||||||
|
@ -516,9 +516,9 @@ _FWDownloadEnable_8188E(
|
||||||
#define MAX_REG_BOLCK_SIZE 196
|
#define MAX_REG_BOLCK_SIZE 196
|
||||||
static int
|
static int
|
||||||
_BlockWrite(
|
_BlockWrite(
|
||||||
IN PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN void * buffer,
|
void * buffer,
|
||||||
IN u32 buffSize
|
u32 buffSize
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int ret = _SUCCESS;
|
int ret = _SUCCESS;
|
||||||
|
@ -584,10 +584,10 @@ exit:
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_PageWrite(
|
_PageWrite(
|
||||||
IN PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN u32 page,
|
u32 page,
|
||||||
IN void * buffer,
|
void * buffer,
|
||||||
IN u32 size
|
u32 size
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 value8;
|
u8 value8;
|
||||||
|
@ -620,9 +620,9 @@ _FillDummy(
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_WriteFW(
|
_WriteFW(
|
||||||
IN PADAPTER padapter,
|
PADAPTER 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. */
|
||||||
|
@ -972,31 +972,31 @@ enum {
|
||||||
|
|
||||||
static BOOLEAN
|
static BOOLEAN
|
||||||
hal_EfusePgPacketWrite2ByteHeader(
|
hal_EfusePgPacketWrite2ByteHeader(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN BOOLEAN bPseudoTest);
|
BOOLEAN bPseudoTest);
|
||||||
static BOOLEAN
|
static BOOLEAN
|
||||||
hal_EfusePgPacketWrite1ByteHeader(
|
hal_EfusePgPacketWrite1ByteHeader(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN BOOLEAN bPseudoTest);
|
BOOLEAN bPseudoTest);
|
||||||
static BOOLEAN
|
static BOOLEAN
|
||||||
hal_EfusePgPacketWriteData(
|
hal_EfusePgPacketWriteData(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN BOOLEAN bPseudoTest);
|
BOOLEAN bPseudoTest);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
hal_EfusePowerSwitch_RTL8188E(
|
hal_EfusePowerSwitch_RTL8188E(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 bWrite,
|
u8 bWrite,
|
||||||
IN u8 PwrState)
|
u8 PwrState)
|
||||||
{
|
{
|
||||||
u8 tempval;
|
u8 tempval;
|
||||||
u16 tmpV16;
|
u16 tmpV16;
|
||||||
|
@ -1042,9 +1042,9 @@ hal_EfusePowerSwitch_RTL8188E(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
rtl8188e_EfusePowerSwitch(
|
rtl8188e_EfusePowerSwitch(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 bWrite,
|
u8 bWrite,
|
||||||
IN u8 PwrState)
|
u8 PwrState)
|
||||||
{
|
{
|
||||||
hal_EfusePowerSwitch_RTL8188E(pAdapter, bWrite, PwrState);
|
hal_EfusePowerSwitch_RTL8188E(pAdapter, bWrite, PwrState);
|
||||||
}
|
}
|
||||||
|
@ -1094,7 +1094,7 @@ Hal_EfuseReadEFuse88E(
|
||||||
u16 _offset,
|
u16 _offset,
|
||||||
u16 _size_byte,
|
u16 _size_byte,
|
||||||
u8 *pbuf,
|
u8 *pbuf,
|
||||||
IN BOOLEAN bPseudoTest
|
BOOLEAN bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* u8 efuseTbl[EFUSE_MAP_LEN_88E]; */
|
/* u8 efuseTbl[EFUSE_MAP_LEN_88E]; */
|
||||||
|
@ -1277,9 +1277,9 @@ exit:
|
||||||
|
|
||||||
static BOOLEAN
|
static BOOLEAN
|
||||||
Hal_EfuseSwitchToBank(
|
Hal_EfuseSwitchToBank(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 bank,
|
u8 bank,
|
||||||
IN BOOLEAN bPseudoTest
|
BOOLEAN bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
BOOLEAN bRet = _FALSE;
|
BOOLEAN bRet = _FALSE;
|
||||||
|
@ -1303,7 +1303,7 @@ ReadEFuseByIC(
|
||||||
u16 _offset,
|
u16 _offset,
|
||||||
u16 _size_byte,
|
u16 _size_byte,
|
||||||
u8 *pbuf,
|
u8 *pbuf,
|
||||||
IN BOOLEAN bPseudoTest
|
BOOLEAN bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -1359,7 +1359,7 @@ ReadEFuse_Pseudo(
|
||||||
u16 _offset,
|
u16 _offset,
|
||||||
u16 _size_byte,
|
u16 _size_byte,
|
||||||
u8 *pbuf,
|
u8 *pbuf,
|
||||||
IN BOOLEAN bPseudoTest
|
BOOLEAN bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
Hal_EfuseReadEFuse88E(Adapter, _offset, _size_byte, pbuf, bPseudoTest);
|
Hal_EfuseReadEFuse88E(Adapter, _offset, _size_byte, pbuf, bPseudoTest);
|
||||||
|
@ -1372,7 +1372,7 @@ rtl8188e_ReadEFuse(
|
||||||
u16 _offset,
|
u16 _offset,
|
||||||
u16 _size_byte,
|
u16 _size_byte,
|
||||||
u8 *pbuf,
|
u8 *pbuf,
|
||||||
IN BOOLEAN bPseudoTest
|
BOOLEAN bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (bPseudoTest)
|
if (bPseudoTest)
|
||||||
|
@ -1384,10 +1384,10 @@ rtl8188e_ReadEFuse(
|
||||||
/* Do not support BT */
|
/* Do not support BT */
|
||||||
static void
|
static void
|
||||||
Hal_EFUSEGetEfuseDefinition88E(
|
Hal_EFUSEGetEfuseDefinition88E(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u1Byte efuseType,
|
u1Byte efuseType,
|
||||||
IN u1Byte type,
|
u1Byte type,
|
||||||
OUT void * pOut
|
void * pOut
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
@ -1444,10 +1444,10 @@ Hal_EFUSEGetEfuseDefinition88E(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
Hal_EFUSEGetEfuseDefinition_Pseudo88E(
|
Hal_EFUSEGetEfuseDefinition_Pseudo88E(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u8 type,
|
u8 type,
|
||||||
OUT void * pOut
|
void * pOut
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
@ -1505,11 +1505,11 @@ Hal_EFUSEGetEfuseDefinition_Pseudo88E(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
rtl8188e_EFUSE_GetEfuseDefinition(
|
rtl8188e_EFUSE_GetEfuseDefinition(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u8 type,
|
u8 type,
|
||||||
OUT void *pOut,
|
void *pOut,
|
||||||
IN BOOLEAN bPseudoTest
|
BOOLEAN bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (bPseudoTest)
|
if (bPseudoTest)
|
||||||
|
@ -1519,11 +1519,11 @@ rtl8188e_EFUSE_GetEfuseDefinition(
|
||||||
}
|
}
|
||||||
|
|
||||||
static u8
|
static u8
|
||||||
Hal_EfuseWordEnableDataWrite(IN PADAPTER pAdapter,
|
Hal_EfuseWordEnableDataWrite(PADAPTER pAdapter,
|
||||||
IN u16 efuse_addr,
|
u16 efuse_addr,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
u16 tmpaddr = 0;
|
u16 tmpaddr = 0;
|
||||||
u16 start_addr = efuse_addr;
|
u16 start_addr = efuse_addr;
|
||||||
|
@ -1588,11 +1588,11 @@ Hal_EfuseWordEnableDataWrite(IN PADAPTER pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
static u8
|
static u8
|
||||||
Hal_EfuseWordEnableDataWrite_Pseudo(IN PADAPTER pAdapter,
|
Hal_EfuseWordEnableDataWrite_Pseudo(PADAPTER pAdapter,
|
||||||
IN u16 efuse_addr,
|
u16 efuse_addr,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
u8 ret = 0;
|
u8 ret = 0;
|
||||||
|
|
||||||
|
@ -1602,11 +1602,11 @@ Hal_EfuseWordEnableDataWrite_Pseudo(IN PADAPTER pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
static u8
|
static u8
|
||||||
rtl8188e_Efuse_WordEnableDataWrite(IN PADAPTER pAdapter,
|
rtl8188e_Efuse_WordEnableDataWrite(PADAPTER pAdapter,
|
||||||
IN u16 efuse_addr,
|
u16 efuse_addr,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
u8 ret = 0;
|
u8 ret = 0;
|
||||||
|
|
||||||
|
@ -1620,8 +1620,8 @@ rtl8188e_Efuse_WordEnableDataWrite(IN PADAPTER pAdapter,
|
||||||
|
|
||||||
|
|
||||||
static u16
|
static u16
|
||||||
hal_EfuseGetCurrentSize_8188e(IN PADAPTER pAdapter,
|
hal_EfuseGetCurrentSize_8188e(PADAPTER pAdapter,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
int bContinual = _TRUE;
|
int bContinual = _TRUE;
|
||||||
|
|
||||||
|
@ -1673,8 +1673,8 @@ hal_EfuseGetCurrentSize_8188e(IN PADAPTER pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
static u16
|
static u16
|
||||||
Hal_EfuseGetCurrentSize_Pseudo(IN PADAPTER pAdapter,
|
Hal_EfuseGetCurrentSize_Pseudo(PADAPTER pAdapter,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
u16 ret = 0;
|
u16 ret = 0;
|
||||||
|
|
||||||
|
@ -1686,9 +1686,9 @@ Hal_EfuseGetCurrentSize_Pseudo(IN PADAPTER pAdapter,
|
||||||
|
|
||||||
static u16
|
static u16
|
||||||
rtl8188e_EfuseGetCurrentSize(
|
rtl8188e_EfuseGetCurrentSize(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
u16 ret = 0;
|
u16 ret = 0;
|
||||||
|
|
||||||
|
@ -1704,10 +1704,10 @@ rtl8188e_EfuseGetCurrentSize(
|
||||||
|
|
||||||
static int
|
static int
|
||||||
hal_EfusePgPacketRead_8188e(
|
hal_EfusePgPacketRead_8188e(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
u8 ReadState = PG_STATE_HEADER;
|
u8 ReadState = PG_STATE_HEADER;
|
||||||
|
|
||||||
|
@ -1801,10 +1801,10 @@ hal_EfusePgPacketRead_8188e(
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
Hal_EfusePgPacketRead(IN PADAPTER pAdapter,
|
Hal_EfusePgPacketRead(PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
|
@ -1815,10 +1815,10 @@ Hal_EfusePgPacketRead(IN PADAPTER pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
Hal_EfusePgPacketRead_Pseudo(IN PADAPTER pAdapter,
|
Hal_EfusePgPacketRead_Pseudo(PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
|
@ -1828,10 +1828,10 @@ Hal_EfusePgPacketRead_Pseudo(IN PADAPTER pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
rtl8188e_Efuse_PgPacketRead(IN PADAPTER pAdapter,
|
rtl8188e_Efuse_PgPacketRead(PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
|
@ -1845,11 +1845,11 @@ rtl8188e_Efuse_PgPacketRead(IN PADAPTER pAdapter,
|
||||||
|
|
||||||
static BOOLEAN
|
static BOOLEAN
|
||||||
hal_EfuseFixHeaderProcess(
|
hal_EfuseFixHeaderProcess(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN PPGPKT_STRUCT pFixPkt,
|
PPGPKT_STRUCT pFixPkt,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN BOOLEAN bPseudoTest
|
BOOLEAN bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 originaldata[8], badworden = 0;
|
u8 originaldata[8], badworden = 0;
|
||||||
|
@ -1879,11 +1879,11 @@ hal_EfuseFixHeaderProcess(
|
||||||
|
|
||||||
static BOOLEAN
|
static BOOLEAN
|
||||||
hal_EfusePgPacketWrite2ByteHeader(
|
hal_EfusePgPacketWrite2ByteHeader(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
BOOLEAN bRet = _FALSE, bContinual = _TRUE;
|
BOOLEAN bRet = _FALSE, bContinual = _TRUE;
|
||||||
u16 efuse_addr = *pAddr, efuse_max_available_len = 0;
|
u16 efuse_addr = *pAddr, efuse_max_available_len = 0;
|
||||||
|
@ -1962,11 +1962,11 @@ hal_EfusePgPacketWrite2ByteHeader(
|
||||||
|
|
||||||
static BOOLEAN
|
static BOOLEAN
|
||||||
hal_EfusePgPacketWrite1ByteHeader(
|
hal_EfusePgPacketWrite1ByteHeader(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
BOOLEAN bRet = _FALSE;
|
BOOLEAN bRet = _FALSE;
|
||||||
u8 pg_header = 0, tmp_header = 0;
|
u8 pg_header = 0, tmp_header = 0;
|
||||||
|
@ -2008,11 +2008,11 @@ hal_EfusePgPacketWrite1ByteHeader(
|
||||||
|
|
||||||
static BOOLEAN
|
static BOOLEAN
|
||||||
hal_EfusePgPacketWriteData(
|
hal_EfusePgPacketWriteData(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
BOOLEAN bRet = _FALSE;
|
BOOLEAN bRet = _FALSE;
|
||||||
u16 efuse_addr = *pAddr;
|
u16 efuse_addr = *pAddr;
|
||||||
|
@ -2042,11 +2042,11 @@ hal_EfusePgPacketWriteData(
|
||||||
|
|
||||||
static BOOLEAN
|
static BOOLEAN
|
||||||
hal_EfusePgPacketWriteHeader(
|
hal_EfusePgPacketWriteHeader(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
BOOLEAN bRet = _FALSE;
|
BOOLEAN bRet = _FALSE;
|
||||||
|
|
||||||
|
@ -2060,9 +2060,9 @@ hal_EfusePgPacketWriteHeader(
|
||||||
|
|
||||||
static BOOLEAN
|
static BOOLEAN
|
||||||
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 */
|
||||||
|
@ -2096,10 +2096,10 @@ wordEnMatched(
|
||||||
|
|
||||||
static BOOLEAN
|
static BOOLEAN
|
||||||
hal_EfuseCheckIfDatafollowed(
|
hal_EfuseCheckIfDatafollowed(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 word_cnts,
|
u8 word_cnts,
|
||||||
IN u16 startAddr,
|
u16 startAddr,
|
||||||
IN BOOLEAN bPseudoTest
|
BOOLEAN bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
BOOLEAN bRet = _FALSE;
|
BOOLEAN bRet = _FALSE;
|
||||||
|
@ -2115,11 +2115,11 @@ hal_EfuseCheckIfDatafollowed(
|
||||||
|
|
||||||
static BOOLEAN
|
static BOOLEAN
|
||||||
hal_EfusePartialWriteCheck(
|
hal_EfusePartialWriteCheck(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN BOOLEAN bPseudoTest
|
BOOLEAN bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
BOOLEAN bRet = _FALSE;
|
BOOLEAN bRet = _FALSE;
|
||||||
|
@ -2214,9 +2214,9 @@ hal_EfusePartialWriteCheck(
|
||||||
|
|
||||||
static BOOLEAN
|
static BOOLEAN
|
||||||
hal_EfusePgCheckAvailableAddr(
|
hal_EfusePgCheckAvailableAddr(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN BOOLEAN bPseudoTest
|
BOOLEAN bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u16 efuse_max_available_len = 0;
|
u16 efuse_max_available_len = 0;
|
||||||
|
@ -2236,10 +2236,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
|
||||||
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -2254,11 +2254,11 @@ hal_EfuseConstructPGPkt(
|
||||||
|
|
||||||
static BOOLEAN
|
static BOOLEAN
|
||||||
hal_EfusePgPacketWrite_BT(
|
hal_EfusePgPacketWrite_BT(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *pData,
|
u8 *pData,
|
||||||
IN BOOLEAN bPseudoTest
|
BOOLEAN bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PGPKT_STRUCT targetPkt;
|
PGPKT_STRUCT targetPkt;
|
||||||
|
@ -2284,11 +2284,11 @@ hal_EfusePgPacketWrite_BT(
|
||||||
|
|
||||||
static BOOLEAN
|
static BOOLEAN
|
||||||
hal_EfusePgPacketWrite_8188e(
|
hal_EfusePgPacketWrite_8188e(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *pData,
|
u8 *pData,
|
||||||
IN BOOLEAN bPseudoTest
|
BOOLEAN bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PGPKT_STRUCT targetPkt;
|
PGPKT_STRUCT targetPkt;
|
||||||
|
@ -2314,11 +2314,11 @@ hal_EfusePgPacketWrite_8188e(
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
Hal_EfusePgPacketWrite_Pseudo(IN PADAPTER pAdapter,
|
Hal_EfusePgPacketWrite_Pseudo(PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -2328,11 +2328,11 @@ Hal_EfusePgPacketWrite_Pseudo(IN PADAPTER pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
Hal_EfusePgPacketWrite(IN PADAPTER pAdapter,
|
Hal_EfusePgPacketWrite(PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN 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);
|
||||||
|
@ -2342,11 +2342,11 @@ Hal_EfusePgPacketWrite(IN PADAPTER pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
rtl8188e_Efuse_PgPacketWrite(IN PADAPTER pAdapter,
|
rtl8188e_Efuse_PgPacketWrite(PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN BOOLEAN bPseudoTest)
|
BOOLEAN bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -2683,8 +2683,8 @@ Hal_InitPGData88E(PADAPTER padapter)
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_EfuseParseIDCode88E(
|
Hal_EfuseParseIDCode88E(
|
||||||
IN PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN u8 *hwinfo
|
u8 *hwinfo
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||||
|
@ -2704,8 +2704,8 @@ Hal_EfuseParseIDCode88E(
|
||||||
|
|
||||||
void Hal_ReadPowerSavingMode88E(
|
void Hal_ReadPowerSavingMode88E(
|
||||||
PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN u8 *hwinfo,
|
u8 *hwinfo,
|
||||||
IN BOOLEAN AutoLoadFail
|
BOOLEAN AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||||
|
@ -2739,9 +2739,9 @@ void Hal_ReadPowerSavingMode88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_ReadTxPowerInfo88E(
|
Hal_ReadTxPowerInfo88E(
|
||||||
IN PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN u8 *PROMContent,
|
u8 *PROMContent,
|
||||||
IN BOOLEAN AutoLoadFail
|
BOOLEAN AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||||
|
@ -2767,9 +2767,9 @@ Hal_ReadTxPowerInfo88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_EfuseParseXtal_8188E(
|
Hal_EfuseParseXtal_8188E(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 *hwinfo,
|
u8 *hwinfo,
|
||||||
IN BOOLEAN AutoLoadFail
|
BOOLEAN AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -2785,9 +2785,9 @@ Hal_EfuseParseXtal_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_ReadPAType_8188E(
|
Hal_ReadPAType_8188E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 *PROMContent,
|
u8 *PROMContent,
|
||||||
IN BOOLEAN AutoloadFail
|
BOOLEAN AutoloadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -2844,9 +2844,9 @@ Hal_ReadPAType_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_ReadAmplifierType_8188E(
|
Hal_ReadAmplifierType_8188E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN pu1Byte PROMContent,
|
pu1Byte PROMContent,
|
||||||
IN BOOLEAN AutoloadFail
|
BOOLEAN AutoloadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -2882,9 +2882,9 @@ Hal_ReadAmplifierType_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_ReadRFEType_8188E(
|
Hal_ReadRFEType_8188E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN pu1Byte PROMContent,
|
pu1Byte PROMContent,
|
||||||
IN BOOLEAN AutoloadFail
|
BOOLEAN AutoloadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -2928,9 +2928,9 @@ Hal_ReadRFEType_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_EfuseParseBoardType88E(
|
Hal_EfuseParseBoardType88E(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 *hwinfo,
|
u8 *hwinfo,
|
||||||
IN BOOLEAN AutoLoadFail
|
BOOLEAN AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -2946,9 +2946,9 @@ Hal_EfuseParseBoardType88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_EfuseParseEEPROMVer88E(
|
Hal_EfuseParseEEPROMVer88E(
|
||||||
IN PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN u8 *hwinfo,
|
u8 *hwinfo,
|
||||||
IN BOOLEAN AutoLoadFail
|
BOOLEAN AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||||
|
@ -2963,9 +2963,9 @@ Hal_EfuseParseEEPROMVer88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
rtl8188e_EfuseParseChnlPlan(
|
rtl8188e_EfuseParseChnlPlan(
|
||||||
IN PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN u8 *hwinfo,
|
u8 *hwinfo,
|
||||||
IN BOOLEAN AutoLoadFail
|
BOOLEAN AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
padapter->mlmepriv.ChannelPlan = hal_com_config_channel_plan(
|
padapter->mlmepriv.ChannelPlan = hal_com_config_channel_plan(
|
||||||
|
@ -2981,9 +2981,9 @@ rtl8188e_EfuseParseChnlPlan(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_EfuseParseCustomerID88E(
|
Hal_EfuseParseCustomerID88E(
|
||||||
IN PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN u8 *hwinfo,
|
u8 *hwinfo,
|
||||||
IN BOOLEAN AutoLoadFail
|
BOOLEAN AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||||
|
@ -3002,9 +3002,9 @@ Hal_EfuseParseCustomerID88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_ReadAntennaDiversity88E(
|
Hal_ReadAntennaDiversity88E(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 *PROMContent,
|
u8 *PROMContent,
|
||||||
IN BOOLEAN AutoLoadFail
|
BOOLEAN AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -3039,9 +3039,9 @@ Hal_ReadAntennaDiversity88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_ReadThermalMeter_88E(
|
Hal_ReadThermalMeter_88E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 *PROMContent,
|
u8 *PROMContent,
|
||||||
IN BOOLEAN AutoloadFail
|
BOOLEAN AutoloadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -3068,9 +3068,9 @@ Hal_ReadThermalMeter_88E(
|
||||||
|
|
||||||
#ifdef CONFIG_RF_POWER_TRIM
|
#ifdef CONFIG_RF_POWER_TRIM
|
||||||
void Hal_ReadRFGainOffset(
|
void Hal_ReadRFGainOffset(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 *PROMContent,
|
u8 *PROMContent,
|
||||||
IN BOOLEAN AutoloadFail)
|
BOOLEAN AutoloadFail)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
u8 thermal_offset = 0;
|
u8 thermal_offset = 0;
|
||||||
|
@ -4541,9 +4541,9 @@ static void hal_ra_info_dump(_adapter *padapter , void *sel)
|
||||||
|
|
||||||
u8
|
u8
|
||||||
GetHalDefVar8188E(
|
GetHalDefVar8188E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER 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);
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
#if (SIC_ENABLE == 1)
|
#if (SIC_ENABLE == 1)
|
||||||
static BOOLEAN
|
static BOOLEAN
|
||||||
sic_IsSICReady(
|
sic_IsSICReady(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
BOOLEAN bRet = _FALSE;
|
BOOLEAN bRet = _FALSE;
|
||||||
|
@ -200,10 +200,10 @@ sic_Write4Byte(
|
||||||
* ************************************************************ */
|
* ************************************************************ */
|
||||||
static void
|
static void
|
||||||
SIC_SetBBReg(
|
SIC_SetBBReg(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER 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);
|
||||||
|
@ -222,9 +222,9 @@ SIC_SetBBReg(
|
||||||
|
|
||||||
static u32
|
static u32
|
||||||
SIC_QueryBBReg(
|
SIC_QueryBBReg(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER 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);
|
||||||
|
@ -240,7 +240,7 @@ SIC_QueryBBReg(
|
||||||
|
|
||||||
void
|
void
|
||||||
SIC_Init(
|
SIC_Init(
|
||||||
IN PADAPTER Adapter
|
PADAPTER 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 */
|
||||||
|
@ -266,7 +266,7 @@ SIC_Init(
|
||||||
|
|
||||||
static BOOLEAN
|
static BOOLEAN
|
||||||
SIC_LedOff(
|
SIC_LedOff(
|
||||||
IN PADAPTER Adapter
|
PADAPTER 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, */
|
||||||
|
@ -291,9 +291,9 @@ SIC_LedOff(
|
||||||
*/
|
*/
|
||||||
u32
|
u32
|
||||||
PHY_QueryBBReg8188E(
|
PHY_QueryBBReg8188E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask
|
u32 BitMask
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 ReturnValue = 0, OriginalValue, BitShift;
|
u32 ReturnValue = 0, OriginalValue, BitShift;
|
||||||
|
@ -339,10 +339,10 @@ PHY_QueryBBReg8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_SetBBReg8188E(
|
PHY_SetBBReg8188E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER 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);
|
||||||
|
@ -396,9 +396,9 @@ PHY_SetBBReg8188E(
|
||||||
*/
|
*/
|
||||||
static u32
|
static u32
|
||||||
phy_RFSerialRead(
|
phy_RFSerialRead(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 eRFPath,
|
u8 eRFPath,
|
||||||
IN u32 Offset
|
u32 Offset
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 retValue = 0;
|
u32 retValue = 0;
|
||||||
|
@ -509,10 +509,10 @@ phy_RFSerialRead(
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
phy_RFSerialWrite(
|
phy_RFSerialWrite(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 eRFPath,
|
u8 eRFPath,
|
||||||
IN u32 Offset,
|
u32 Offset,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 DataAndAddr = 0;
|
u32 DataAndAddr = 0;
|
||||||
|
@ -550,10 +550,10 @@ phy_RFSerialWrite(
|
||||||
*/
|
*/
|
||||||
u32
|
u32
|
||||||
PHY_QueryRFReg8188E(
|
PHY_QueryRFReg8188E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 eRFPath,
|
u8 eRFPath,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask
|
u32 BitMask
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 Original_Value, Readback_Value, BitShift;
|
u32 Original_Value, Readback_Value, BitShift;
|
||||||
|
@ -594,11 +594,11 @@ PHY_QueryRFReg8188E(
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
PHY_SetRFReg8188E(
|
PHY_SetRFReg8188E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 eRFPath,
|
u8 eRFPath,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -689,7 +689,7 @@ s32 PHY_MACConfig8188E(PADAPTER Adapter)
|
||||||
-----------------------------------------------------------------------------*/
|
-----------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
phy_InitBBRFRegisterDefinition(
|
phy_InitBBRFRegisterDefinition(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -729,7 +729,7 @@ phy_InitBBRFRegisterDefinition(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
phy_BB8192C_Config_1T(
|
phy_BB8192C_Config_1T(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* for path - B */
|
/* for path - B */
|
||||||
|
@ -755,7 +755,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 PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* RT_ASSERT(FALSE, ("This function is not implement yet!!\n")); */
|
/* RT_ASSERT(FALSE, ("This function is not implement yet!!\n")); */
|
||||||
|
@ -764,7 +764,7 @@ phy_BB8190_Config_HardCode(
|
||||||
|
|
||||||
static int
|
static int
|
||||||
phy_BB8188E_Config_ParaFile(
|
phy_BB8188E_Config_ParaFile(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -836,7 +836,7 @@ phy_BB8190_Config_ParaFile_Fail:
|
||||||
|
|
||||||
int
|
int
|
||||||
PHY_BBConfig8188E(
|
PHY_BBConfig8188E(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int rtStatus = _SUCCESS;
|
int rtStatus = _SUCCESS;
|
||||||
|
@ -870,7 +870,7 @@ PHY_BBConfig8188E(
|
||||||
|
|
||||||
int
|
int
|
||||||
PHY_RFConfig8188E(
|
PHY_RFConfig8188E(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -899,9 +899,9 @@ PHY_RFConfig8188E(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
int
|
int
|
||||||
rtl8188e_PHY_ConfigRFWithParaFile(
|
rtl8188e_PHY_ConfigRFWithParaFile(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 *pFileName,
|
u8 *pFileName,
|
||||||
IN u8 eRFPath
|
u8 eRFPath
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -948,8 +948,8 @@ static u32 Rtl8192S_HighPower_RadioA_Array[HighPowerRadioAArrayLen] = {
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
PHY_GetTxPowerLevel8188E(
|
PHY_GetTxPowerLevel8188E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
OUT s32 *powerlevel
|
s32 *powerlevel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -973,8 +973,8 @@ PHY_GetTxPowerLevel8188E(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
PHY_SetTxPowerLevel8188E(
|
PHY_SetTxPowerLevel8188E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 Channel
|
u8 Channel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* RTW_INFO("==>PHY_SetTxPowerLevel8188E()\n"); */
|
/* RTW_INFO("==>PHY_SetTxPowerLevel8188E()\n"); */
|
||||||
|
@ -986,10 +986,10 @@ PHY_SetTxPowerLevel8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_SetTxPowerIndex_8188E(
|
PHY_SetTxPowerIndex_8188E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u32 PowerIndex,
|
u32 PowerIndex,
|
||||||
IN u8 RFPath,
|
u8 RFPath,
|
||||||
IN u8 Rate
|
u8 Rate
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (RFPath == ODM_RF_PATH_A) {
|
if (RFPath == ODM_RF_PATH_A) {
|
||||||
|
@ -1192,8 +1192,8 @@ PHY_SetTxPowerIndex_8188E(
|
||||||
|
|
||||||
static u8
|
static u8
|
||||||
phy_GetCurrentTxNum_8188E(
|
phy_GetCurrentTxNum_8188E(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 Rate
|
u8 Rate
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 tmpByte = 0;
|
u8 tmpByte = 0;
|
||||||
|
@ -1209,10 +1209,10 @@ phy_GetCurrentTxNum_8188E(
|
||||||
}
|
}
|
||||||
|
|
||||||
static s8 tx_power_extra_bias(
|
static s8 tx_power_extra_bias(
|
||||||
IN u8 RFPath,
|
u8 RFPath,
|
||||||
IN u8 Rate,
|
u8 Rate,
|
||||||
IN CHANNEL_WIDTH BandWidth,
|
CHANNEL_WIDTH BandWidth,
|
||||||
IN u8 Channel
|
u8 Channel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
s8 bias = 0;
|
s8 bias = 0;
|
||||||
|
@ -1225,11 +1225,11 @@ static s8 tx_power_extra_bias(
|
||||||
|
|
||||||
u8
|
u8
|
||||||
PHY_GetTxPowerIndex_8188E(
|
PHY_GetTxPowerIndex_8188E(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 RFPath,
|
u8 RFPath,
|
||||||
IN u8 Rate,
|
u8 Rate,
|
||||||
IN u8 BandWidth,
|
u8 BandWidth,
|
||||||
IN u8 Channel,
|
u8 Channel,
|
||||||
struct txpwr_idx_comp *tic
|
struct txpwr_idx_comp *tic
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -1276,8 +1276,8 @@ PHY_GetTxPowerIndex_8188E(
|
||||||
* */
|
* */
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
PHY_UpdateTxPowerDbm8188E(
|
PHY_UpdateTxPowerDbm8188E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN int powerInDbm
|
int powerInDbm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return _TRUE;
|
return _TRUE;
|
||||||
|
@ -1285,15 +1285,15 @@ PHY_UpdateTxPowerDbm8188E(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
PHY_ScanOperationBackup8188E(
|
PHY_ScanOperationBackup8188E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 Operation
|
u8 Operation
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
phy_SpurCalibration_8188E(
|
phy_SpurCalibration_8188E(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -1332,7 +1332,7 @@ phy_SpurCalibration_8188E(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
_PHY_SetBWMode88E(
|
_PHY_SetBWMode88E(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* PADAPTER Adapter = (PADAPTER)pTimer->Adapter; */
|
/* PADAPTER Adapter = (PADAPTER)pTimer->Adapter; */
|
||||||
|
@ -1467,9 +1467,9 @@ _PHY_SetBWMode88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_SetBWMode8188E(
|
PHY_SetBWMode8188E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN CHANNEL_WIDTH Bandwidth, /* 20M or 40M */
|
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);
|
||||||
|
@ -1539,8 +1539,8 @@ static void _PHY_SwChnl8188E(PADAPTER Adapter, u8 channel)
|
||||||
}
|
}
|
||||||
void
|
void
|
||||||
PHY_SwChnl8188E(/* Call after initialization */
|
PHY_SwChnl8188E(/* Call after initialization */
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 channel
|
u8 channel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -1590,11 +1590,11 @@ PHY_SwChnl8188E(/* Call after initialization */
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_SetSwChnlBWMode8188E(
|
PHY_SetSwChnlBWMode8188E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 channel,
|
u8 channel,
|
||||||
IN CHANNEL_WIDTH Bandwidth,
|
CHANNEL_WIDTH Bandwidth,
|
||||||
IN u8 Offset40,
|
u8 Offset40,
|
||||||
IN u8 Offset80
|
u8 Offset80
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* RTW_INFO("%s()===>\n",__func__); */
|
/* RTW_INFO("%s()===>\n",__func__); */
|
||||||
|
@ -1606,9 +1606,9 @@ PHY_SetSwChnlBWMode8188E(
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _PHY_SetRFPathSwitch(
|
static void _PHY_SetRFPathSwitch(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN BOOLEAN bMain,
|
BOOLEAN bMain,
|
||||||
IN BOOLEAN is2T
|
BOOLEAN is2T
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 u1bTmp;
|
u8 u1bTmp;
|
||||||
|
@ -1638,8 +1638,8 @@ static void _PHY_SetRFPathSwitch(
|
||||||
/* return value TRUE => Main; FALSE => Aux */
|
/* return value TRUE => Main; FALSE => Aux */
|
||||||
|
|
||||||
static BOOLEAN _PHY_QueryRFPathSwitch(
|
static BOOLEAN _PHY_QueryRFPathSwitch(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN BOOLEAN is2T
|
BOOLEAN is2T
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* if(is2T)
|
/* if(is2T)
|
||||||
|
@ -1665,7 +1665,7 @@ static BOOLEAN _PHY_QueryRFPathSwitch(
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_PHY_DumpRFReg(IN PADAPTER pAdapter)
|
_PHY_DumpRFReg(PADAPTER pAdapter)
|
||||||
{
|
{
|
||||||
u32 rfRegValue, rfRegOffset;
|
u32 rfRegValue, rfRegOffset;
|
||||||
|
|
||||||
|
@ -1708,7 +1708,7 @@ static void DumpBBDbgPort_92CU(PADAPTER Adapter)
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_SetRFEReg_8188E(
|
PHY_SetRFEReg_8188E(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 u1tmp = 0;
|
u8 u1tmp = 0;
|
||||||
|
|
|
@ -75,8 +75,8 @@
|
||||||
* Firmwaer support the utility later.
|
* Firmwaer support the utility later.
|
||||||
*
|
*
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void rtl8188e_RF_ChangeTxPath(IN PADAPTER Adapter,
|
void rtl8188e_RF_ChangeTxPath(PADAPTER 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 */
|
||||||
|
@ -97,8 +97,8 @@ void rtl8188e_RF_ChangeTxPath(IN PADAPTER Adapter,
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
rtl8188e_PHY_RF6052SetBandwidth(
|
rtl8188e_PHY_RF6052SetBandwidth(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN CHANNEL_WIDTH Bandwidth) /* 20M or 40M */
|
CHANNEL_WIDTH Bandwidth) /* 20M or 40M */
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ rtl8188e_PHY_RF6052SetBandwidth(
|
||||||
|
|
||||||
static int
|
static int
|
||||||
phy_RF6052_Config_ParaFile(
|
phy_RF6052_Config_ParaFile(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 u4RegValue = 0;
|
u32 u4RegValue = 0;
|
||||||
|
@ -237,7 +237,7 @@ phy_RF6052_Config_ParaFile_Fail:
|
||||||
|
|
||||||
int
|
int
|
||||||
PHY_RF6052_Config8188E(
|
PHY_RF6052_Config8188E(
|
||||||
IN PADAPTER Adapter)
|
PADAPTER Adapter)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
int rtStatus = _SUCCESS;
|
int rtStatus = _SUCCESS;
|
||||||
|
|
|
@ -25,8 +25,8 @@
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_ConfigNormalChipOutEP_8188E(
|
_ConfigNormalChipOutEP_8188E(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 NumOutPipe
|
u8 NumOutPipe
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -53,9 +53,9 @@ _ConfigNormalChipOutEP_8188E(
|
||||||
}
|
}
|
||||||
|
|
||||||
static BOOLEAN HalUsbSetQueuePipeMapping8188EUsb(
|
static BOOLEAN HalUsbSetQueuePipeMapping8188EUsb(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER 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);
|
||||||
|
@ -246,7 +246,7 @@ static void _InitBTCoexist(_adapter *padapter)
|
||||||
/* Shall USB interface init this? */
|
/* Shall USB interface init this? */
|
||||||
static void
|
static void
|
||||||
_InitInterrupt(
|
_InitInterrupt(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 imr, imr_ex;
|
u32 imr, imr_ex;
|
||||||
|
@ -291,7 +291,7 @@ _InitInterrupt(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitQueueReservedPage(
|
_InitQueueReservedPage(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -339,8 +339,8 @@ _InitQueueReservedPage(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitTxBufferBoundary(
|
_InitTxBufferBoundary(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 txpktbuf_bndy
|
u8 txpktbuf_bndy
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct registry_priv *pregistrypriv = &Adapter->registrypriv;
|
struct registry_priv *pregistrypriv = &Adapter->registrypriv;
|
||||||
|
@ -358,7 +358,7 @@ _InitTxBufferBoundary(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitPageBoundary(
|
_InitPageBoundary(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* RX Page Boundary */
|
/* RX Page Boundary */
|
||||||
|
@ -371,13 +371,13 @@ _InitPageBoundary(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitNormalChipRegPriority(
|
_InitNormalChipRegPriority(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER 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);
|
||||||
|
@ -391,7 +391,7 @@ _InitNormalChipRegPriority(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitNormalChipOneOutEpPriority(
|
_InitNormalChipOneOutEpPriority(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -425,7 +425,7 @@ _InitNormalChipOneOutEpPriority(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitNormalChipTwoOutEpPriority(
|
_InitNormalChipTwoOutEpPriority(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -475,7 +475,7 @@ _InitNormalChipTwoOutEpPriority(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitNormalChipThreeOutEpPriority(
|
_InitNormalChipThreeOutEpPriority(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct registry_priv *pregistrypriv = &Adapter->registrypriv;
|
struct registry_priv *pregistrypriv = &Adapter->registrypriv;
|
||||||
|
@ -501,7 +501,7 @@ _InitNormalChipThreeOutEpPriority(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitQueuePriority(
|
_InitQueuePriority(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -525,7 +525,7 @@ _InitQueuePriority(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitHardwareDropIncorrectBulkOut(
|
_InitHardwareDropIncorrectBulkOut(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_USB_DROP_INCORRECT_OUT
|
#ifdef ENABLE_USB_DROP_INCORRECT_OUT
|
||||||
|
@ -537,7 +537,7 @@ _InitHardwareDropIncorrectBulkOut(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitNetworkType(
|
_InitNetworkType(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 value32;
|
u32 value32;
|
||||||
|
@ -552,8 +552,8 @@ _InitNetworkType(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitDriverInfoSize(
|
_InitDriverInfoSize(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 drvInfoSize
|
u8 drvInfoSize
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rtw_write8(Adapter, REG_RX_DRVINFO_SZ, drvInfoSize);
|
rtw_write8(Adapter, REG_RX_DRVINFO_SZ, drvInfoSize);
|
||||||
|
@ -561,7 +561,7 @@ _InitDriverInfoSize(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitWMACSetting(
|
_InitWMACSetting(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* u4Byte value32; */
|
/* u4Byte value32; */
|
||||||
|
@ -606,7 +606,7 @@ _InitWMACSetting(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitAdaptiveCtrl(
|
_InitAdaptiveCtrl(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u16 value16;
|
u16 value16;
|
||||||
|
@ -633,7 +633,7 @@ _InitAdaptiveCtrl(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitRateFallback(
|
_InitRateFallback(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* Set Data Auto Rate Fallback Retry Count register. */
|
/* Set Data Auto Rate Fallback Retry Count register. */
|
||||||
|
@ -646,7 +646,7 @@ _InitRateFallback(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitEDCA(
|
_InitEDCA(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* Set Spec SIFS (used in NAV) */
|
/* Set Spec SIFS (used in NAV) */
|
||||||
|
@ -668,8 +668,8 @@ _InitEDCA(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitBeaconMaxError(
|
_InitBeaconMaxError(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN BOOLEAN InfraMode
|
BOOLEAN InfraMode
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -692,7 +692,7 @@ static void _InitHWLed(PADAPTER Adapter)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitRDGSetting(
|
_InitRDGSetting(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rtw_write8(Adapter, REG_RD_CTRL, 0xFF);
|
rtw_write8(Adapter, REG_RD_CTRL, 0xFF);
|
||||||
|
@ -702,7 +702,7 @@ _InitRDGSetting(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitRetryFunction(
|
_InitRetryFunction(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 value8;
|
u8 value8;
|
||||||
|
@ -732,7 +732,7 @@ _InitRetryFunction(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
usb_AggSettingTxUpdate(
|
usb_AggSettingTxUpdate(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_USB_TX_AGGREGATION
|
#ifdef CONFIG_USB_TX_AGGREGATION
|
||||||
|
@ -771,7 +771,7 @@ usb_AggSettingTxUpdate(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
usb_AggSettingRxUpdate(
|
usb_AggSettingRxUpdate(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_USB_RX_AGGREGATION
|
#ifdef CONFIG_USB_RX_AGGREGATION
|
||||||
|
@ -854,7 +854,7 @@ usb_AggSettingRxUpdate(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
InitUsbAggregationSetting(
|
InitUsbAggregationSetting(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -871,8 +871,8 @@ InitUsbAggregationSetting(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
HalRxAggr8188EUsb(
|
HalRxAggr8188EUsb(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN BOOLEAN Value
|
BOOLEAN Value
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -898,21 +898,21 @@ HalRxAggr8188EUsb(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
USB_AggModeSwitch(
|
USB_AggModeSwitch(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
} /* USB_AggModeSwitch */
|
} /* USB_AggModeSwitch */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitOperationMode(
|
_InitOperationMode(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitBeaconParameters(
|
_InitBeaconParameters(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -944,7 +944,7 @@ _InitBeaconParameters(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitRFType(
|
_InitRFType(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct registry_priv *pregpriv = &Adapter->registrypriv;
|
struct registry_priv *pregpriv = &Adapter->registrypriv;
|
||||||
|
@ -965,9 +965,9 @@ _InitRFType(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_BeaconFunctionEnable(
|
_BeaconFunctionEnable(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN BOOLEAN Enable,
|
BOOLEAN Enable,
|
||||||
IN BOOLEAN Linked
|
BOOLEAN Linked
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rtw_write8(Adapter, REG_BCN_CTRL, (BIT4 | BIT3 | BIT1));
|
rtw_write8(Adapter, REG_BCN_CTRL, (BIT4 | BIT3 | BIT1));
|
||||||
|
@ -978,7 +978,7 @@ _BeaconFunctionEnable(
|
||||||
|
|
||||||
/* Set CCK and OFDM Block "ON" */
|
/* Set CCK and OFDM Block "ON" */
|
||||||
static void _BBTurnOnBlock(
|
static void _BBTurnOnBlock(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DISABLE_BB_RF)
|
#if (DISABLE_BB_RF)
|
||||||
|
@ -990,7 +990,7 @@ static void _BBTurnOnBlock(
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _RfPowerSave(
|
static void _RfPowerSave(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -1001,7 +1001,7 @@ enum {
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitAntenna_Selection(IN PADAPTER Adapter)
|
_InitAntenna_Selection(PADAPTER Adapter)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_ANTENNA_DIVERSITY
|
#ifdef CONFIG_ANTENNA_DIVERSITY
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -1022,12 +1022,12 @@ _InitAntenna_Selection(IN PADAPTER Adapter)
|
||||||
* */
|
* */
|
||||||
static void
|
static void
|
||||||
HalDetectSelectiveSuspendMode(
|
HalDetectSelectiveSuspendMode(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
} /* HalDetectSelectiveSuspendMode */
|
} /* HalDetectSelectiveSuspendMode */
|
||||||
|
|
||||||
rt_rf_power_state RfOnOffDetect(IN PADAPTER pAdapter)
|
rt_rf_power_state RfOnOffDetect(PADAPTER pAdapter)
|
||||||
{
|
{
|
||||||
struct pwrctrl_priv *pwrctl = adapter_to_pwrctl(pAdapter);
|
struct pwrctrl_priv *pwrctl = adapter_to_pwrctl(pAdapter);
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -1492,7 +1492,7 @@ static void _ps_close_RF(_adapter *padapter)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
hal_poweroff_8188eu(
|
hal_poweroff_8188eu(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -1680,9 +1680,9 @@ static unsigned int rtl8188eu_inirp_deinit(PADAPTER Adapter)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_ReadLEDSetting(
|
_ReadLEDSetting(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 *PROMContent,
|
u8 *PROMContent,
|
||||||
IN BOOLEAN AutoloadFail
|
BOOLEAN AutoloadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct led_priv *pledpriv = &(Adapter->ledpriv);
|
struct led_priv *pledpriv = &(Adapter->ledpriv);
|
||||||
|
@ -1703,25 +1703,25 @@ _ReadLEDSetting(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_ReadRFSetting(
|
_ReadRFSetting(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 *PROMContent,
|
u8 *PROMContent,
|
||||||
IN BOOLEAN AutoloadFail
|
BOOLEAN AutoloadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
hal_InitPGData(
|
hal_InitPGData(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN OUT u8 *PROMContent
|
u8 *PROMContent
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
static void
|
static void
|
||||||
Hal_EfuseParsePIDVID_8188EU(
|
Hal_EfuseParsePIDVID_8188EU(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 *hwinfo,
|
u8 *hwinfo,
|
||||||
IN BOOLEAN AutoLoadFail
|
BOOLEAN AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -1752,14 +1752,14 @@ Hal_EfuseParsePIDVID_8188EU(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
Hal_CustomizeByCustomerID_8188EU(
|
Hal_CustomizeByCustomerID_8188EU(
|
||||||
IN PADAPTER padapter
|
PADAPTER padapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
readAdapterInfo_8188EU(
|
readAdapterInfo_8188EU(
|
||||||
IN PADAPTER padapter
|
PADAPTER padapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(padapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(padapter);
|
||||||
|
@ -1790,7 +1790,7 @@ readAdapterInfo_8188EU(
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _ReadPROMContent(
|
static void _ReadPROMContent(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -1812,7 +1812,7 @@ static void _ReadPROMContent(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_ReadRFType(
|
_ReadRFType(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -1918,9 +1918,9 @@ static void GetHwReg8188EU(PADAPTER Adapter, u8 variable, u8 *val)
|
||||||
* */
|
* */
|
||||||
static u8
|
static u8
|
||||||
GetHalDefVar8188EUsb(
|
GetHalDefVar8188EUsb(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER 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);
|
||||||
|
@ -1955,9 +1955,9 @@ GetHalDefVar8188EUsb(
|
||||||
* */
|
* */
|
||||||
static u8
|
static u8
|
||||||
SetHalDefVar8188EUsb(
|
SetHalDefVar8188EUsb(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER 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);
|
||||||
|
|
|
@ -60,129 +60,129 @@
|
||||||
/*
|
/*
|
||||||
* BB and RF register read/write
|
* BB and RF register read/write
|
||||||
* */
|
* */
|
||||||
u32 PHY_QueryBBReg8188E(IN PADAPTER Adapter,
|
u32 PHY_QueryBBReg8188E(PADAPTER Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask);
|
u32 BitMask);
|
||||||
void PHY_SetBBReg8188E(IN PADAPTER Adapter,
|
void PHY_SetBBReg8188E(PADAPTER Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data);
|
u32 Data);
|
||||||
u32 PHY_QueryRFReg8188E(IN PADAPTER Adapter,
|
u32 PHY_QueryRFReg8188E(PADAPTER Adapter,
|
||||||
IN u8 eRFPath,
|
u8 eRFPath,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask);
|
u32 BitMask);
|
||||||
void PHY_SetRFReg8188E(IN PADAPTER Adapter,
|
void PHY_SetRFReg8188E(PADAPTER Adapter,
|
||||||
IN u8 eRFPath,
|
u8 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 PADAPTER Adapter);
|
int PHY_MACConfig8188E(PADAPTER Adapter);
|
||||||
int PHY_BBConfig8188E(IN PADAPTER Adapter);
|
int PHY_BBConfig8188E(PADAPTER Adapter);
|
||||||
int PHY_RFConfig8188E(IN PADAPTER Adapter);
|
int PHY_RFConfig8188E(PADAPTER Adapter);
|
||||||
|
|
||||||
/* RF config */
|
/* RF config */
|
||||||
int rtl8188e_PHY_ConfigRFWithParaFile(IN PADAPTER Adapter, IN u8 *pFileName, u8 eRFPath);
|
int rtl8188e_PHY_ConfigRFWithParaFile(PADAPTER Adapter, u8 *pFileName, u8 eRFPath);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* RF Power setting
|
* RF Power setting
|
||||||
*/
|
*/
|
||||||
/* extern BOOLEAN PHY_SetRFPowerState(IN PADAPTER Adapter,
|
/* extern BOOLEAN PHY_SetRFPowerState(PADAPTER Adapter,
|
||||||
* IN RT_RF_POWER_STATE eRFPowerState); */
|
* RT_RF_POWER_STATE eRFPowerState); */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* BB TX Power R/W
|
* BB TX Power R/W
|
||||||
* */
|
* */
|
||||||
void PHY_GetTxPowerLevel8188E(IN PADAPTER Adapter,
|
void PHY_GetTxPowerLevel8188E(PADAPTER Adapter,
|
||||||
OUT s32 *powerlevel);
|
s32 *powerlevel);
|
||||||
void PHY_SetTxPowerLevel8188E(IN PADAPTER Adapter,
|
void PHY_SetTxPowerLevel8188E(PADAPTER Adapter,
|
||||||
IN u8 channel);
|
u8 channel);
|
||||||
BOOLEAN PHY_UpdateTxPowerDbm8188E(IN PADAPTER Adapter,
|
BOOLEAN PHY_UpdateTxPowerDbm8188E(PADAPTER Adapter,
|
||||||
IN int powerInDbm);
|
int powerInDbm);
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_SetTxPowerIndex_8188E(
|
PHY_SetTxPowerIndex_8188E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u32 PowerIndex,
|
u32 PowerIndex,
|
||||||
IN u8 RFPath,
|
u8 RFPath,
|
||||||
IN u8 Rate
|
u8 Rate
|
||||||
);
|
);
|
||||||
|
|
||||||
u8
|
u8
|
||||||
PHY_GetTxPowerIndex_8188E(
|
PHY_GetTxPowerIndex_8188E(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 RFPath,
|
u8 RFPath,
|
||||||
IN u8 Rate,
|
u8 Rate,
|
||||||
IN u8 BandWidth,
|
u8 BandWidth,
|
||||||
IN u8 Channel,
|
u8 Channel,
|
||||||
struct txpwr_idx_comp *tic
|
struct txpwr_idx_comp *tic
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Switch bandwidth for 8192S
|
* Switch bandwidth for 8192S
|
||||||
*/
|
*/
|
||||||
/* extern void PHY_SetBWModeCallback8192C( IN PRT_TIMER pTimer ); */
|
/* extern void PHY_SetBWModeCallback8192C( PRT_TIMER pTimer ); */
|
||||||
void PHY_SetBWMode8188E(IN PADAPTER pAdapter,
|
void PHY_SetBWMode8188E(PADAPTER pAdapter,
|
||||||
IN CHANNEL_WIDTH ChnlWidth,
|
CHANNEL_WIDTH ChnlWidth,
|
||||||
IN unsigned char Offset);
|
unsigned char Offset);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set FW CMD IO for 8192S.
|
* Set FW CMD IO for 8192S.
|
||||||
*/
|
*/
|
||||||
/* extern BOOLEAN HalSetIO8192C( IN PADAPTER Adapter,
|
/* extern BOOLEAN HalSetIO8192C(PADAPTER Adapter,
|
||||||
* IN IO_TYPE IOType); */
|
* IO_TYPE IOType); */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set A2 entry to fw for 8192S
|
* Set A2 entry to fw for 8192S
|
||||||
* */
|
* */
|
||||||
extern void FillA2Entry8192C(IN PADAPTER Adapter,
|
extern void FillA2Entry8192C(PADAPTER 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 ); */
|
/* extern void PHY_SwChnlCallback8192C( PRT_TIMER pTimer ); */
|
||||||
void PHY_SwChnl8188E(IN PADAPTER pAdapter,
|
void PHY_SwChnl8188E(PADAPTER pAdapter,
|
||||||
IN u8 channel);
|
u8 channel);
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_SetSwChnlBWMode8188E(
|
PHY_SetSwChnlBWMode8188E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 channel,
|
u8 channel,
|
||||||
IN CHANNEL_WIDTH Bandwidth,
|
CHANNEL_WIDTH Bandwidth,
|
||||||
IN u8 Offset40,
|
u8 Offset40,
|
||||||
IN u8 Offset80
|
u8 Offset80
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_SetRFEReg_8188E(
|
PHY_SetRFEReg_8188E(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
);
|
);
|
||||||
/*
|
/*
|
||||||
* BB/MAC/RF other monitor API
|
* BB/MAC/RF other monitor API
|
||||||
* */
|
* */
|
||||||
void phy_set_rf_path_switch_8188e(IN PADAPTER pAdapter, IN bool bMain);
|
void phy_set_rf_path_switch_8188e(PADAPTER pAdapter, bool bMain);
|
||||||
|
|
||||||
extern void
|
extern void
|
||||||
PHY_SwitchEphyParameter(
|
PHY_SwitchEphyParameter(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
);
|
);
|
||||||
|
|
||||||
extern void
|
extern void
|
||||||
PHY_EnableHostClkReq(
|
PHY_EnableHostClkReq(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
);
|
);
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
SetAntennaConfig92C(
|
SetAntennaConfig92C(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 DefaultAnt
|
u8 DefaultAnt
|
||||||
);
|
);
|
||||||
|
|
||||||
/*--------------------------Exported Function prototype---------------------*/
|
/*--------------------------Exported Function prototype---------------------*/
|
||||||
|
@ -239,7 +239,7 @@ SetAntennaConfig92C(
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (SIC_ENABLE == 1)
|
#if (SIC_ENABLE == 1)
|
||||||
void SIC_Init(IN PADAPTER Adapter);
|
void SIC_Init(PADAPTER Adapter);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -42,8 +42,6 @@
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/utsname.h>
|
#include <linux/utsname.h>
|
||||||
#define IN
|
|
||||||
#define OUT
|
|
||||||
#define NDIS_OID uint
|
#define NDIS_OID uint
|
||||||
#define NDIS_STATUS uint
|
#define NDIS_STATUS uint
|
||||||
|
|
||||||
|
|
|
@ -348,21 +348,21 @@ u8 hal_largest_bw(_adapter *adapter, u8 in_bw);
|
||||||
bool hal_chk_wl_func(_adapter *adapter, u8 func);
|
bool hal_chk_wl_func(_adapter *adapter, u8 func);
|
||||||
|
|
||||||
u8 hal_com_config_channel_plan(
|
u8 hal_com_config_channel_plan(
|
||||||
IN PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN char *hw_alpha2,
|
char *hw_alpha2,
|
||||||
IN u8 hw_chplan,
|
u8 hw_chplan,
|
||||||
IN char *sw_alpha2,
|
char *sw_alpha2,
|
||||||
IN u8 sw_chplan,
|
u8 sw_chplan,
|
||||||
IN u8 def_chplan,
|
u8 def_chplan,
|
||||||
IN BOOLEAN AutoLoadFail
|
BOOLEAN AutoLoadFail
|
||||||
);
|
);
|
||||||
|
|
||||||
int hal_config_macaddr(_adapter *adapter, bool autoload_fail);
|
int hal_config_macaddr(_adapter *adapter, bool autoload_fail);
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
HAL_IsLegalChannel(
|
HAL_IsLegalChannel(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u32 Channel
|
u32 Channel
|
||||||
);
|
);
|
||||||
|
|
||||||
u8 MRateToHwRate(u8 rate);
|
u8 MRateToHwRate(u8 rate);
|
||||||
|
@ -370,14 +370,14 @@ u8 MRateToHwRate(u8 rate);
|
||||||
u8 hw_rate_to_m_rate(u8 rate);
|
u8 hw_rate_to_m_rate(u8 rate);
|
||||||
|
|
||||||
void HalSetBrateCfg(
|
void HalSetBrateCfg(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 *mBratesOS,
|
u8 *mBratesOS,
|
||||||
OUT u16 *pBrateCfg);
|
u16 *pBrateCfg);
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
Hal_MappingOutPipe(
|
Hal_MappingOutPipe(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 NumOutPipe
|
u8 NumOutPipe
|
||||||
);
|
);
|
||||||
|
|
||||||
void rtw_dump_fw_info(void *sel, _adapter *adapter);
|
void rtw_dump_fw_info(void *sel, _adapter *adapter);
|
||||||
|
@ -433,42 +433,42 @@ eqNByte(
|
||||||
|
|
||||||
u32
|
u32
|
||||||
MapCharToHexDigit(
|
MapCharToHexDigit(
|
||||||
IN char chTmp
|
char chTmp
|
||||||
);
|
);
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
GetHexValueFromString(
|
GetHexValueFromString(
|
||||||
IN char *szStr,
|
char *szStr,
|
||||||
IN OUT u32 *pu4bVal,
|
u32 *pu4bVal,
|
||||||
IN OUT u32 *pu4bMove
|
u32 *pu4bMove
|
||||||
);
|
);
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
GetFractionValueFromString(
|
GetFractionValueFromString(
|
||||||
IN char *szStr,
|
char *szStr,
|
||||||
IN OUT u8 *pInteger,
|
u8 *pInteger,
|
||||||
IN OUT u8 *pFraction,
|
u8 *pFraction,
|
||||||
IN OUT u32 *pu4bMove
|
u32 *pu4bMove
|
||||||
);
|
);
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
IsCommentString(
|
IsCommentString(
|
||||||
IN char *szStr
|
char *szStr
|
||||||
);
|
);
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
ParseQualifiedString(
|
ParseQualifiedString(
|
||||||
IN char *In,
|
char *In,
|
||||||
IN OUT u32 *Start,
|
u32 *Start,
|
||||||
OUT char *Out,
|
char *Out,
|
||||||
IN char LeftQualifier,
|
char LeftQualifier,
|
||||||
IN char RightQualifier
|
char RightQualifier
|
||||||
);
|
);
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
GetU1ByteIntegerFromStringInDecimal(
|
GetU1ByteIntegerFromStringInDecimal(
|
||||||
IN char *Str,
|
char *Str,
|
||||||
IN OUT u8 *pInt
|
u8 *pInt
|
||||||
);
|
);
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
|
|
|
@ -218,8 +218,8 @@ typedef enum _LED_STRATEGY_USB LED_STRATEGY, *PLED_STRATEGY;
|
||||||
|
|
||||||
void
|
void
|
||||||
LedControlUSB(
|
LedControlUSB(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN LED_CTL_MODE LedAction
|
LED_CTL_MODE LedAction
|
||||||
);
|
);
|
||||||
|
|
||||||
struct led_priv {
|
struct led_priv {
|
||||||
|
|
|
@ -76,167 +76,167 @@ typedef struct _BB_REGISTER_DEFINITION {
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
u8
|
u8
|
||||||
PHY_GetTxPowerByRateBase(
|
PHY_GetTxPowerByRateBase(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 Band,
|
u8 Band,
|
||||||
IN u8 RfPath,
|
u8 RfPath,
|
||||||
IN u8 TxNum,
|
u8 TxNum,
|
||||||
IN RATE_SECTION RateSection
|
RATE_SECTION RateSection
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_GetRateValuesOfTxPowerByRate(
|
PHY_GetRateValuesOfTxPowerByRate(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Value,
|
u32 Value,
|
||||||
OUT u8 *Rate,
|
u8 *Rate,
|
||||||
OUT s8 *PwrByRateVal,
|
s8 *PwrByRateVal,
|
||||||
OUT u8 *RateNum
|
u8 *RateNum
|
||||||
);
|
);
|
||||||
|
|
||||||
u8
|
u8
|
||||||
PHY_GetRateIndexOfTxPowerByRate(
|
PHY_GetRateIndexOfTxPowerByRate(
|
||||||
IN u8 Rate
|
u8 Rate
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
phy_set_tx_power_index_by_rate_section(
|
phy_set_tx_power_index_by_rate_section(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 RFPath,
|
u8 RFPath,
|
||||||
IN u8 Channel,
|
u8 Channel,
|
||||||
IN u8 RateSection
|
u8 RateSection
|
||||||
);
|
);
|
||||||
|
|
||||||
s8
|
s8
|
||||||
_PHY_GetTxPowerByRate(
|
_PHY_GetTxPowerByRate(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 Band,
|
u8 Band,
|
||||||
IN u8 RFPath,
|
u8 RFPath,
|
||||||
IN u8 TxNum,
|
u8 TxNum,
|
||||||
IN u8 RateIndex
|
u8 RateIndex
|
||||||
);
|
);
|
||||||
|
|
||||||
s8
|
s8
|
||||||
PHY_GetTxPowerByRate(
|
PHY_GetTxPowerByRate(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 Band,
|
u8 Band,
|
||||||
IN u8 RFPath,
|
u8 RFPath,
|
||||||
IN u8 TxNum,
|
u8 TxNum,
|
||||||
IN u8 RateIndex
|
u8 RateIndex
|
||||||
);
|
);
|
||||||
|
|
||||||
#ifdef CONFIG_PHYDM_POWERTRACK_BY_TSSI
|
#ifdef CONFIG_PHYDM_POWERTRACK_BY_TSSI
|
||||||
s8
|
s8
|
||||||
PHY_GetTxPowerByRateOriginal(
|
PHY_GetTxPowerByRateOriginal(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 Band,
|
u8 Band,
|
||||||
IN u8 RFPath,
|
u8 RFPath,
|
||||||
IN u8 TxNum,
|
u8 TxNum,
|
||||||
IN u8 Rate
|
u8 Rate
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_SetTxPowerByRate(
|
PHY_SetTxPowerByRate(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 Band,
|
u8 Band,
|
||||||
IN u8 RFPath,
|
u8 RFPath,
|
||||||
IN u8 TxNum,
|
u8 TxNum,
|
||||||
IN u8 Rate,
|
u8 Rate,
|
||||||
IN s8 Value
|
s8 Value
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
phy_set_tx_power_level_by_path(
|
phy_set_tx_power_level_by_path(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 channel,
|
u8 channel,
|
||||||
IN u8 path
|
u8 path
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_SetTxPowerIndexByRateArray(
|
PHY_SetTxPowerIndexByRateArray(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 RFPath,
|
u8 RFPath,
|
||||||
IN CHANNEL_WIDTH BandWidth,
|
CHANNEL_WIDTH BandWidth,
|
||||||
IN u8 Channel,
|
u8 Channel,
|
||||||
IN u8 *Rates,
|
u8 *Rates,
|
||||||
IN u8 RateArraySize
|
u8 RateArraySize
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_InitTxPowerByRate(
|
PHY_InitTxPowerByRate(
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
phy_store_tx_power_by_rate(
|
phy_store_tx_power_by_rate(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u32 Band,
|
u32 Band,
|
||||||
IN u32 RfPath,
|
u32 RfPath,
|
||||||
IN u32 TxNum,
|
u32 TxNum,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_TxPowerByRateConfiguration(
|
PHY_TxPowerByRateConfiguration(
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
);
|
);
|
||||||
|
|
||||||
u8
|
u8
|
||||||
PHY_GetTxPowerIndexBase(
|
PHY_GetTxPowerIndexBase(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 RFPath,
|
u8 RFPath,
|
||||||
IN u8 Rate,
|
u8 Rate,
|
||||||
IN CHANNEL_WIDTH BandWidth,
|
CHANNEL_WIDTH BandWidth,
|
||||||
IN u8 Channel,
|
u8 Channel,
|
||||||
OUT PBOOLEAN bIn24G
|
PBOOLEAN bIn24G
|
||||||
);
|
);
|
||||||
|
|
||||||
s8
|
s8
|
||||||
PHY_GetTxPowerLimit(
|
PHY_GetTxPowerLimit(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u32 RegPwrTblSel,
|
u32 RegPwrTblSel,
|
||||||
IN BAND_TYPE Band,
|
BAND_TYPE Band,
|
||||||
IN CHANNEL_WIDTH Bandwidth,
|
CHANNEL_WIDTH Bandwidth,
|
||||||
IN u8 RfPath,
|
u8 RfPath,
|
||||||
IN u8 DataRate,
|
u8 DataRate,
|
||||||
IN u8 Channel
|
u8 Channel
|
||||||
);
|
);
|
||||||
|
|
||||||
s8
|
s8
|
||||||
PHY_GetTxPowerLimit_no_sc(
|
PHY_GetTxPowerLimit_no_sc(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u32 RegPwrTblSel,
|
u32 RegPwrTblSel,
|
||||||
IN BAND_TYPE Band,
|
BAND_TYPE Band,
|
||||||
IN CHANNEL_WIDTH Bandwidth,
|
CHANNEL_WIDTH Bandwidth,
|
||||||
IN u8 RfPath,
|
u8 RfPath,
|
||||||
IN u8 DataRate,
|
u8 DataRate,
|
||||||
IN u8 Channel
|
u8 Channel
|
||||||
);
|
);
|
||||||
|
|
||||||
#ifdef CONFIG_PHYDM_POWERTRACK_BY_TSSI
|
#ifdef CONFIG_PHYDM_POWERTRACK_BY_TSSI
|
||||||
s8
|
s8
|
||||||
PHY_GetTxPowerLimitOriginal(
|
PHY_GetTxPowerLimitOriginal(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u32 RegPwrTblSel,
|
u32 RegPwrTblSel,
|
||||||
IN BAND_TYPE Band,
|
BAND_TYPE Band,
|
||||||
IN CHANNEL_WIDTH Bandwidth,
|
CHANNEL_WIDTH Bandwidth,
|
||||||
IN u8 RfPath,
|
u8 RfPath,
|
||||||
IN u8 DataRate,
|
u8 DataRate,
|
||||||
IN u8 Channel
|
u8 Channel
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_ConvertTxPowerLimitToPowerIndex(
|
PHY_ConvertTxPowerLimitToPowerIndex(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_InitTxPowerLimit(
|
PHY_InitTxPowerLimit(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
);
|
);
|
||||||
|
|
||||||
s8
|
s8
|
||||||
|
@ -256,19 +256,19 @@ struct txpwr_idx_comp {
|
||||||
|
|
||||||
u8
|
u8
|
||||||
phy_get_tx_power_index(
|
phy_get_tx_power_index(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 RFPath,
|
u8 RFPath,
|
||||||
IN u8 Rate,
|
u8 Rate,
|
||||||
IN CHANNEL_WIDTH BandWidth,
|
CHANNEL_WIDTH BandWidth,
|
||||||
IN u8 Channel
|
u8 Channel
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_SetTxPowerIndex(
|
PHY_SetTxPowerIndex(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u32 PowerIndex,
|
u32 PowerIndex,
|
||||||
IN u8 RFPath,
|
u8 RFPath,
|
||||||
IN u8 Rate
|
u8 Rate
|
||||||
);
|
);
|
||||||
|
|
||||||
void dump_tx_power_idx_title(void *sel, _adapter *adapter);
|
void dump_tx_power_idx_title(void *sel, _adapter *adapter);
|
||||||
|
@ -334,13 +334,13 @@ int rtw_get_phy_file_path(_adapter *adapter, const char *file_name);
|
||||||
#define LOAD_RF_TXPWR_TRACK_PARA_FILE BIT5
|
#define LOAD_RF_TXPWR_TRACK_PARA_FILE BIT5
|
||||||
#define LOAD_RF_TXPWR_LMT_PARA_FILE BIT6
|
#define LOAD_RF_TXPWR_LMT_PARA_FILE BIT6
|
||||||
|
|
||||||
int phy_ConfigMACWithParaFile(IN PADAPTER Adapter, IN char *pFileName);
|
int phy_ConfigMACWithParaFile(PADAPTER Adapter, char *pFileName);
|
||||||
int phy_ConfigBBWithParaFile(IN PADAPTER Adapter, IN char *pFileName, IN u32 ConfigType);
|
int phy_ConfigBBWithParaFile(PADAPTER Adapter, char *pFileName, u32 ConfigType);
|
||||||
int phy_ConfigBBWithPgParaFile(IN PADAPTER Adapter, IN const char *pFileName);
|
int phy_ConfigBBWithPgParaFile(PADAPTER Adapter, const char *pFileName);
|
||||||
int phy_ConfigBBWithMpParaFile(IN PADAPTER Adapter, IN char *pFileName);
|
int phy_ConfigBBWithMpParaFile(PADAPTER Adapter, char *pFileName);
|
||||||
int PHY_ConfigRFWithParaFile(IN PADAPTER Adapter, IN char *pFileName, IN u8 eRFPath);
|
int PHY_ConfigRFWithParaFile(PADAPTER Adapter, char *pFileName, u8 eRFPath);
|
||||||
int PHY_ConfigRFWithTxPwrTrackParaFile(IN PADAPTER Adapter, IN char *pFileName);
|
int PHY_ConfigRFWithTxPwrTrackParaFile(PADAPTER Adapter, char *pFileName);
|
||||||
int PHY_ConfigRFWithPowerLimitTableParaFile(IN PADAPTER Adapter, IN const char *pFileName);
|
int PHY_ConfigRFWithPowerLimitTableParaFile(PADAPTER Adapter, const char *pFileName);
|
||||||
void phy_free_filebuf_mask(_adapter *padapter, u8 mask);
|
void phy_free_filebuf_mask(_adapter *padapter, u8 mask);
|
||||||
void phy_free_filebuf(_adapter *padapter);
|
void phy_free_filebuf(_adapter *padapter);
|
||||||
#endif /* CONFIG_LOAD_PHY_PARA_FROM_FILE */
|
#endif /* CONFIG_LOAD_PHY_PARA_FROM_FILE */
|
||||||
|
|
|
@ -183,61 +183,61 @@ PHY_CalculateBitShift(
|
||||||
|
|
||||||
u32
|
u32
|
||||||
PHY_RFShadowRead(
|
PHY_RFShadowRead(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 eRFPath,
|
u8 eRFPath,
|
||||||
IN u32 Offset);
|
u32 Offset);
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowWrite(
|
PHY_RFShadowWrite(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 eRFPath,
|
u8 eRFPath,
|
||||||
IN u32 Offset,
|
u32 Offset,
|
||||||
IN u32 Data);
|
u32 Data);
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
PHY_RFShadowCompare(
|
PHY_RFShadowCompare(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 eRFPath,
|
u8 eRFPath,
|
||||||
IN u32 Offset);
|
u32 Offset);
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowRecorver(
|
PHY_RFShadowRecorver(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 eRFPath,
|
u8 eRFPath,
|
||||||
IN u32 Offset);
|
u32 Offset);
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowCompareAll(
|
PHY_RFShadowCompareAll(
|
||||||
IN PADAPTER Adapter);
|
PADAPTER Adapter);
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowRecorverAll(
|
PHY_RFShadowRecorverAll(
|
||||||
IN PADAPTER Adapter);
|
PADAPTER Adapter);
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowCompareFlagSet(
|
PHY_RFShadowCompareFlagSet(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 eRFPath,
|
u8 eRFPath,
|
||||||
IN u32 Offset,
|
u32 Offset,
|
||||||
IN u8 Type);
|
u8 Type);
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowRecorverFlagSet(
|
PHY_RFShadowRecorverFlagSet(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 eRFPath,
|
u8 eRFPath,
|
||||||
IN u32 Offset,
|
u32 Offset,
|
||||||
IN u8 Type);
|
u8 Type);
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowCompareFlagSetAll(
|
PHY_RFShadowCompareFlagSetAll(
|
||||||
IN PADAPTER Adapter);
|
PADAPTER Adapter);
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowRecorverFlagSetAll(
|
PHY_RFShadowRecorverFlagSetAll(
|
||||||
IN PADAPTER Adapter);
|
PADAPTER Adapter);
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowRefresh(
|
PHY_RFShadowRefresh(
|
||||||
IN PADAPTER Adapter);
|
PADAPTER Adapter);
|
||||||
|
|
||||||
#endif /* __HAL_COMMON_H__ */
|
#endif /* __HAL_COMMON_H__ */
|
||||||
|
|
|
@ -27,7 +27,7 @@ extern void _rtw_free_recv_priv(struct recv_priv *precvpriv);
|
||||||
|
|
||||||
extern s32 rtw_recv_entry(union recv_frame *precv_frame);
|
extern s32 rtw_recv_entry(union recv_frame *precv_frame);
|
||||||
extern int rtw_recv_indicatepkt(_adapter *adapter, union recv_frame *precv_frame);
|
extern int rtw_recv_indicatepkt(_adapter *adapter, union recv_frame *precv_frame);
|
||||||
extern void rtw_recv_returnpacket(IN _nic_hdl cnxt, IN _pkt *preturnedpkt);
|
extern void rtw_recv_returnpacket(_nic_hdl cnxt, _pkt *preturnedpkt);
|
||||||
|
|
||||||
extern int rtw_recv_monitor(_adapter *padapter, union recv_frame *precv_frame);
|
extern int rtw_recv_monitor(_adapter *padapter, union recv_frame *precv_frame);
|
||||||
|
|
||||||
|
|
|
@ -20,10 +20,10 @@
|
||||||
#ifndef __RTL8188E_DM_H__
|
#ifndef __RTL8188E_DM_H__
|
||||||
#define __RTL8188E_DM_H__
|
#define __RTL8188E_DM_H__
|
||||||
|
|
||||||
void rtl8188e_init_dm_priv(IN PADAPTER Adapter);
|
void rtl8188e_init_dm_priv(PADAPTER Adapter);
|
||||||
void rtl8188e_deinit_dm_priv(IN PADAPTER Adapter);
|
void rtl8188e_deinit_dm_priv(PADAPTER Adapter);
|
||||||
void rtl8188e_InitHalDm(IN PADAPTER Adapter);
|
void rtl8188e_InitHalDm(PADAPTER Adapter);
|
||||||
void rtl8188e_HalDmWatchDog(IN PADAPTER Adapter);
|
void rtl8188e_HalDmWatchDog(PADAPTER Adapter);
|
||||||
|
|
||||||
/* void rtl8192c_dm_CheckTXPowerTracking(IN PADAPTER Adapter); */
|
/* void rtl8192c_dm_CheckTXPowerTracking(IN PADAPTER Adapter); */
|
||||||
|
|
||||||
|
|
|
@ -283,9 +283,9 @@ void GetHwReg8188E(PADAPTER padapter, u8 variable, u8 *val);
|
||||||
|
|
||||||
u8
|
u8
|
||||||
GetHalDefVar8188E(
|
GetHalDefVar8188E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN HAL_DEF_VARIABLE eVariable,
|
HAL_DEF_VARIABLE eVariable,
|
||||||
IN void * pValue
|
void * pValue
|
||||||
);
|
);
|
||||||
#ifdef CONFIG_GPIO_API
|
#ifdef CONFIG_GPIO_API
|
||||||
int rtl8188e_GpioFuncCheck(PADAPTER adapter, u8 gpio_num);
|
int rtl8188e_GpioFuncCheck(PADAPTER adapter, u8 gpio_num);
|
||||||
|
|
|
@ -22,11 +22,11 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int PHY_RF6052_Config8188E(IN PADAPTER Adapter);
|
int PHY_RF6052_Config8188E(PADAPTER Adapter);
|
||||||
void rtl8188e_RF_ChangeTxPath(IN PADAPTER Adapter,
|
void rtl8188e_RF_ChangeTxPath(PADAPTER Adapter,
|
||||||
IN u16 DataRate);
|
u16 DataRate);
|
||||||
void rtl8188e_PHY_RF6052SetBandwidth(
|
void rtl8188e_PHY_RF6052SetBandwidth(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN CHANNEL_WIDTH Bandwidth);
|
CHANNEL_WIDTH Bandwidth);
|
||||||
|
|
||||||
#endif/* __RTL8188E_RF_H__ */
|
#endif/* __RTL8188E_RF_H__ */
|
||||||
|
|
|
@ -164,21 +164,21 @@ extern struct iw_handler_def rtw_handlers_def;
|
||||||
extern void rtw_request_wps_pbc_event(_adapter *padapter);
|
extern void rtw_request_wps_pbc_event(_adapter *padapter);
|
||||||
|
|
||||||
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
|
||||||
);
|
);
|
||||||
|
|
||||||
#ifdef CONFIG_APPEND_VENDOR_IE_ENABLE
|
#ifdef CONFIG_APPEND_VENDOR_IE_ENABLE
|
||||||
|
|
|
@ -153,7 +153,7 @@ typedef struct _RT_PMAC_TX_INFO {
|
||||||
} RT_PMAC_TX_INFO, *PRT_PMAC_TX_INFO;
|
} RT_PMAC_TX_INFO, *PRT_PMAC_TX_INFO;
|
||||||
|
|
||||||
|
|
||||||
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. */
|
||||||
BOOLEAN bMassProdTest;
|
BOOLEAN bMassProdTest;
|
||||||
|
|
|
@ -501,7 +501,7 @@ void rtw_ps_processor(_adapter *padapter);
|
||||||
int autoresume_enter(_adapter *padapter);
|
int autoresume_enter(_adapter *padapter);
|
||||||
#endif
|
#endif
|
||||||
#ifdef SUPPORT_HW_RFOFF_DETECTED
|
#ifdef SUPPORT_HW_RFOFF_DETECTED
|
||||||
rt_rf_power_state RfOnOffDetect(IN PADAPTER pAdapter);
|
rt_rf_power_state RfOnOffDetect(PADAPTER pAdapter);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue