rtl8188eu: Remove the Windows IN and OUT pseudodirectives

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2018-11-13 09:28:01 -06:00
parent 722e1c9b2e
commit 21b9be0939
31 changed files with 1105 additions and 1107 deletions

View file

@ -979,10 +979,10 @@ hal_EfuseSwitchToBank(
/* 11/16/2008 MH Read one byte from real Efuse. */
u8
efuse_OneByteRead(
IN PADAPTER pAdapter,
IN u16 addr,
IN u8 *data,
IN BOOLEAN bPseudoTest)
PADAPTER pAdapter,
u16 addr,
u8 *data,
BOOLEAN bPseudoTest)
{
u32 tmpidx = 0;
u8 bResult;
@ -1180,14 +1180,14 @@ static void efuse_PostUpdateAction(
BOOLEAN
Efuse_Read1ByteFromFakeContent(
IN PADAPTER pAdapter,
IN u16 Offset,
IN OUT u8 *Value);
PADAPTER pAdapter,
u16 Offset,
u8 *Value);
BOOLEAN
Efuse_Read1ByteFromFakeContent(
IN PADAPTER pAdapter,
IN u16 Offset,
IN OUT u8 *Value)
PADAPTER pAdapter,
u16 Offset,
u8 *Value)
{
if (Offset >= EFUSE_MAX_HW_SIZE)
return _FALSE;
@ -1201,14 +1201,14 @@ Efuse_Read1ByteFromFakeContent(
BOOLEAN
Efuse_Write1ByteToFakeContent(
IN PADAPTER pAdapter,
IN u16 Offset,
IN u8 Value);
PADAPTER pAdapter,
u16 Offset,
u8 Value);
BOOLEAN
Efuse_Write1ByteToFakeContent(
IN PADAPTER pAdapter,
IN u16 Offset,
IN u8 Value)
PADAPTER pAdapter,
u16 Offset,
u8 Value)
{
if (Offset >= EFUSE_MAX_HW_SIZE)
return _FALSE;
@ -1239,18 +1239,18 @@ Efuse_Write1ByteToFakeContent(
*---------------------------------------------------------------------------*/
void
Efuse_PowerSwitch(
IN PADAPTER pAdapter,
IN u8 bWrite,
IN u8 PwrState)
PADAPTER pAdapter,
u8 bWrite,
u8 PwrState)
{
pAdapter->hal_func.EfusePowerSwitch(pAdapter, bWrite, PwrState);
}
void
BTEfuse_PowerSwitch(
IN PADAPTER pAdapter,
IN u8 bWrite,
IN u8 PwrState)
PADAPTER pAdapter,
u8 bWrite,
u8 PwrState)
{
if (pAdapter->hal_func.BTEfusePowerSwitch)
pAdapter->hal_func.BTEfusePowerSwitch(pAdapter, bWrite, PwrState);
@ -1274,9 +1274,9 @@ BTEfuse_PowerSwitch(
*---------------------------------------------------------------------------*/
u16
Efuse_GetCurrentSize(
IN PADAPTER pAdapter,
IN u8 efuseType,
IN BOOLEAN bPseudoTest)
PADAPTER pAdapter,
u8 efuseType,
BOOLEAN bPseudoTest)
{
u16 ret = 0;
@ -1301,7 +1301,7 @@ ReadEFuseByte(
PADAPTER Adapter,
u16 _offset,
u8 *pbuf,
IN BOOLEAN bPseudoTest)
BOOLEAN bPseudoTest)
{
u32 value32;
u8 readbyte;
@ -1367,7 +1367,7 @@ efuse_ReadEFuse(
u16 _offset,
u16 _size_byte,
u8 *pbuf,
IN BOOLEAN bPseudoTest
BOOLEAN bPseudoTest
);
void
efuse_ReadEFuse(
@ -1376,7 +1376,7 @@ efuse_ReadEFuse(
u16 _offset,
u16 _size_byte,
u8 *pbuf,
IN BOOLEAN bPseudoTest
BOOLEAN bPseudoTest
)
{
Adapter->hal_func.ReadEFuse(Adapter, efuseType, _offset, _size_byte, pbuf, bPseudoTest);
@ -1384,11 +1384,11 @@ efuse_ReadEFuse(
void
EFUSE_GetEfuseDefinition(
IN PADAPTER pAdapter,
IN u8 efuseType,
IN u8 type,
OUT void *pOut,
IN BOOLEAN bPseudoTest
PADAPTER pAdapter,
u8 efuseType,
u8 type,
void *pOut,
BOOLEAN 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. */
u8
efuse_OneByteRead(
IN PADAPTER pAdapter,
IN u16 addr,
IN u8 *data,
IN BOOLEAN bPseudoTest)
PADAPTER pAdapter,
u16 addr,
u8 *data,
BOOLEAN bPseudoTest)
{
u32 tmpidx = 0;
u8 bResult;
@ -1455,10 +1455,10 @@ efuse_OneByteRead(
/* 11/16/2008 MH Write one byte to reald Efuse. */
u8
efuse_OneByteWrite(
IN PADAPTER pAdapter,
IN u16 addr,
IN u8 data,
IN BOOLEAN bPseudoTest)
PADAPTER pAdapter,
u16 addr,
u8 data,
BOOLEAN bPseudoTest)
{
u8 tmpidx = 0;
u8 bResult = _FALSE;
@ -1522,10 +1522,10 @@ efuse_OneByteWrite(
}
int
Efuse_PgPacketRead(IN PADAPTER pAdapter,
IN u8 offset,
IN u8 *data,
IN BOOLEAN bPseudoTest)
Efuse_PgPacketRead(PADAPTER pAdapter,
u8 offset,
u8 *data,
BOOLEAN bPseudoTest)
{
int ret = 0;
@ -1535,11 +1535,11 @@ Efuse_PgPacketRead(IN PADAPTER pAdapter,
}
int
Efuse_PgPacketWrite(IN PADAPTER pAdapter,
IN u8 offset,
IN u8 word_en,
IN u8 *data,
IN BOOLEAN bPseudoTest)
Efuse_PgPacketWrite(PADAPTER pAdapter,
u8 offset,
u8 word_en,
u8 *data,
BOOLEAN bPseudoTest)
{
int ret;
@ -1550,11 +1550,11 @@ Efuse_PgPacketWrite(IN PADAPTER pAdapter,
static int
Efuse_PgPacketWrite_BT(IN PADAPTER pAdapter,
IN u8 offset,
IN u8 word_en,
IN u8 *data,
IN BOOLEAN bPseudoTest)
Efuse_PgPacketWrite_BT(PADAPTER pAdapter,
u8 offset,
u8 word_en,
u8 *data,
BOOLEAN bPseudoTest)
{
int ret;
@ -1565,11 +1565,11 @@ Efuse_PgPacketWrite_BT(IN PADAPTER pAdapter,
u8
Efuse_WordEnableDataWrite(IN PADAPTER pAdapter,
IN u16 efuse_addr,
IN u8 word_en,
IN u8 *data,
IN BOOLEAN bPseudoTest)
Efuse_WordEnableDataWrite(PADAPTER pAdapter,
u16 efuse_addr,
u8 word_en,
u8 *data,
BOOLEAN bPseudoTest)
{
u8 ret = 0;
@ -1942,16 +1942,16 @@ exit:
*---------------------------------------------------------------------------*/
void
Efuse_ReadAllMap(
IN PADAPTER pAdapter,
IN u8 efuseType,
IN OUT u8 *Efuse,
IN BOOLEAN bPseudoTest);
PADAPTER pAdapter,
u8 efuseType,
u8 *Efuse,
BOOLEAN bPseudoTest);
void
Efuse_ReadAllMap(
IN PADAPTER pAdapter,
IN u8 efuseType,
IN OUT u8 *Efuse,
IN BOOLEAN bPseudoTest)
PADAPTER pAdapter,
u8 efuseType,
u8 *Efuse,
BOOLEAN bPseudoTest)
{
u16 mapLen = 0;
@ -1984,9 +1984,9 @@ Efuse_ReadAllMap(
*---------------------------------------------------------------------------*/
static void
efuse_ShadowRead1Byte(
IN PADAPTER pAdapter,
IN u16 Offset,
IN OUT u8 *Value)
PADAPTER pAdapter,
u16 Offset,
u8 *Value)
{
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
@ -1997,9 +1997,9 @@ efuse_ShadowRead1Byte(
/* ---------------Read Two Bytes */
static void
efuse_ShadowRead2Byte(
IN PADAPTER pAdapter,
IN u16 Offset,
IN OUT u16 *Value)
PADAPTER pAdapter,
u16 Offset,
u16 *Value)
{
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
@ -2011,9 +2011,9 @@ efuse_ShadowRead2Byte(
/* ---------------Read Four Bytes */
static void
efuse_ShadowRead4Byte(
IN PADAPTER pAdapter,
IN u16 Offset,
IN OUT u32 *Value)
PADAPTER pAdapter,
u16 Offset,
u32 *Value)
{
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
@ -2046,9 +2046,9 @@ efuse_ShadowRead4Byte(
static void
efuse_ShadowWrite1Byte(
IN PADAPTER pAdapter,
IN u16 Offset,
IN u8 Value)
PADAPTER pAdapter,
u16 Offset,
u8 Value)
{
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
@ -2059,9 +2059,9 @@ efuse_ShadowWrite1Byte(
/* ---------------Write Two Bytes */
static void
efuse_ShadowWrite2Byte(
IN PADAPTER pAdapter,
IN u16 Offset,
IN u16 Value)
PADAPTER pAdapter,
u16 Offset,
u16 Value)
{
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
@ -2075,9 +2075,9 @@ efuse_ShadowWrite2Byte(
/* ---------------Write Four Bytes */
static void
efuse_ShadowWrite4Byte(
IN PADAPTER pAdapter,
IN u16 Offset,
IN u32 Value)
PADAPTER pAdapter,
u16 Offset,
u32 Value)
{
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
@ -2107,10 +2107,10 @@ efuse_ShadowWrite4Byte(
*---------------------------------------------------------------------------*/
void
EFUSE_ShadowRead(
IN PADAPTER pAdapter,
IN u8 Type,
IN u16 Offset,
IN OUT u32 *Value)
PADAPTER pAdapter,
u8 Type,
u16 Offset,
u32 *Value)
{
if (Type == 1)
efuse_ShadowRead1Byte(pAdapter, Offset, (u8 *)Value);
@ -2139,16 +2139,16 @@ EFUSE_ShadowRead(
*---------------------------------------------------------------------------*/
void
EFUSE_ShadowWrite(
IN PADAPTER pAdapter,
IN u8 Type,
IN u16 Offset,
IN OUT u32 Value);
PADAPTER pAdapter,
u8 Type,
u16 Offset,
u32 Value);
void
EFUSE_ShadowWrite(
IN PADAPTER pAdapter,
IN u8 Type,
IN u16 Offset,
IN OUT u32 Value)
PADAPTER pAdapter,
u8 Type,
u16 Offset,
u32 Value)
{
#if (MP_DRIVER == 0)
return;
@ -2168,11 +2168,11 @@ EFUSE_ShadowWrite(
void
Efuse_InitSomeVar(
IN PADAPTER pAdapter
PADAPTER pAdapter
);
void
Efuse_InitSomeVar(
IN PADAPTER pAdapter
PADAPTER pAdapter
)
{
u8 i;
@ -2194,7 +2194,7 @@ Efuse_InitSomeVar(
#endif /* !RTW_HALMAC */
/* 11/16/2008 MH Add description. Get current efuse area enabled word!!. */
u8
Efuse_CalculateWordCnts(IN u8 word_en)
Efuse_CalculateWordCnts(u8 word_en)
{
u8 word_cnts = 0;
if (!(word_en & BIT(0)))
@ -2226,9 +2226,9 @@ Efuse_CalculateWordCnts(IN u8 word_en)
*
*---------------------------------------------------------------------------*/
void
efuse_WordEnableDataRead(IN u8 word_en,
IN u8 *sourdata,
IN u8 *targetdata)
efuse_WordEnableDataRead(u8 word_en,
u8 *sourdata,
u8 *targetdata)
{
if (!(word_en & BIT(0))) {
targetdata[0] = sourdata[0];
@ -2265,9 +2265,9 @@ efuse_WordEnableDataRead(IN u8 word_en,
*
*---------------------------------------------------------------------------*/
void EFUSE_ShadowMapUpdate(
IN PADAPTER pAdapter,
IN u8 efuseType,
IN BOOLEAN bPseudoTest)
PADAPTER pAdapter,
u8 efuseType,
BOOLEAN bPseudoTest)
{
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
u16 mapLen = 0;

View file

@ -10334,8 +10334,8 @@ Following are some utitity fuctions for WiFi MLME
*****************************************************************************/
BOOLEAN IsLegal5GChannel(
IN PADAPTER Adapter,
IN u8 channel)
PADAPTER Adapter,
u8 channel)
{
int i = 0;

View file

@ -281,23 +281,23 @@ void free_mp_priv(struct mp_priv *pmp_priv)
static void PHY_IQCalibrate_default(
IN PADAPTER pAdapter,
IN BOOLEAN bReCovery
PADAPTER pAdapter,
BOOLEAN bReCovery
)
{
RTW_INFO("%s\n", __func__);
}
static void PHY_LCCalibrate_default(
IN PADAPTER pAdapter
PADAPTER pAdapter
)
{
RTW_INFO("%s\n", __func__);
}
static void PHY_SetRFPathSwitch_default(
IN PADAPTER pAdapter,
IN BOOLEAN bMain
PADAPTER pAdapter,
BOOLEAN bMain
)
{
RTW_INFO("%s\n", __func__);
@ -337,8 +337,8 @@ static void PHY_SetRFPathSwitch(PADAPTER padapter , BOOLEAN bMain) {
s32
MPT_InitializeAdapter(
IN PADAPTER pAdapter,
IN u8 Channel
PADAPTER pAdapter,
u8 Channel
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
@ -398,7 +398,7 @@ MPT_InitializeAdapter(
*---------------------------------------------------------------------------*/
void
MPT_DeInitAdapter(
IN PADAPTER pAdapter
PADAPTER pAdapter
)
{
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.
*
* Input: IN PADAPTER pAdapter
* Input: PADAPTER pAdapter
*
* Output: NONE
*
@ -1293,7 +1293,7 @@ u32 mp_query_psd(PADAPTER pAdapter, u8 *data)
u8
mpt_to_mgnt_rate(
IN ULONG MptRateIdx
ULONG MptRateIdx
)
{
/* Mapped to MGN_XXX defined in MgntGen.h */

View file

@ -1234,7 +1234,7 @@ void LeaveAllPowerSaveModeDirect(PADAPTER Adapter)
* Description: Leave all power save mode: LPS, FwLPS, IPS if needed.
* 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 mlme_priv *pmlmepriv = &(Adapter->mlmepriv);

View file

@ -389,8 +389,8 @@ void set_mcs_rate_by_mask(u8 *mcs_set, u32 mask)
}
void UpdateBrateTbl(
IN PADAPTER Adapter,
IN u8 *mBratesOS
PADAPTER Adapter,
u8 *mBratesOS
)
{
u8 i;

View file

@ -74,7 +74,7 @@ EFUSE_GetArrayLen_MP_8188E_MUSB(void)
void
EFUSE_GetMaskArray_MP_8188E_MUSB(
IN OUT pu1Byte Array
pu1Byte Array
)
{
u2Byte len = EFUSE_GetArrayLen_MP_8188E_MUSB(), i = 0;
@ -84,7 +84,7 @@ EFUSE_GetMaskArray_MP_8188E_MUSB(
}
BOOLEAN
EFUSE_IsAddressMasked_MP_8188E_MUSB(
IN u2Byte Offset
u2Byte Offset
)
{
int r = Offset / 16;

View file

@ -30,10 +30,10 @@ EFUSE_GetArrayLen_MP_8188E_MUSB(void);
void
EFUSE_GetMaskArray_MP_8188E_MUSB(
IN OUT pu1Byte Array
pu1Byte Array
);
BOOLEAN
EFUSE_IsAddressMasked_MP_8188E_MUSB(/* TC: Test Chip, MP: MP Chip */
IN u2Byte Offset
u2Byte Offset
);

View file

@ -49,11 +49,11 @@ do {\
#define BTC_ANT_PATH_WIFI5G 3
#define BTC_ANT_PATH_AUTO 4
/* 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_DIVERSITY 2
/* 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
typedef enum _BTC_POWERSAVE_TYPE {
@ -437,7 +437,7 @@ typedef enum _COL_H2C_STATUS {
/* 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_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_COEX_DATA_OVERFLOW , /* coex returned length over the c2h ack length. */
COL_STATUS_MAX
@ -506,190 +506,190 @@ extern BTC_OFFLOAD gl_coex_offload;
typedef u1Byte
(*BFP_BTC_R1)(
IN void * pBtcContext,
IN u4Byte RegAddr
void * pBtcContext,
u4Byte RegAddr
);
typedef u2Byte
(*BFP_BTC_R2)(
IN void * pBtcContext,
IN u4Byte RegAddr
void * pBtcContext,
u4Byte RegAddr
);
typedef u4Byte
(*BFP_BTC_R4)(
IN void * pBtcContext,
IN u4Byte RegAddr
void * pBtcContext,
u4Byte RegAddr
);
typedef void
(*BFP_BTC_W1)(
IN void * pBtcContext,
IN u4Byte RegAddr,
IN u1Byte Data
void * pBtcContext,
u4Byte RegAddr,
u1Byte Data
);
typedef void
(*BFP_BTC_W1_BIT_MASK)(
IN void * pBtcContext,
IN u4Byte regAddr,
IN u1Byte bitMask,
IN u1Byte data1b
void * pBtcContext,
u4Byte regAddr,
u1Byte bitMask,
u1Byte data1b
);
typedef void
(*BFP_BTC_W2)(
IN void * pBtcContext,
IN u4Byte RegAddr,
IN u2Byte Data
void * pBtcContext,
u4Byte RegAddr,
u2Byte Data
);
typedef void
(*BFP_BTC_W4)(
IN void * pBtcContext,
IN u4Byte RegAddr,
IN u4Byte Data
void * pBtcContext,
u4Byte RegAddr,
u4Byte Data
);
typedef void
(*BFP_BTC_LOCAL_REG_W1)(
IN void * pBtcContext,
IN u4Byte RegAddr,
IN u1Byte Data
void * pBtcContext,
u4Byte RegAddr,
u1Byte Data
);
typedef void
(*BFP_BTC_SET_BB_REG)(
IN void * pBtcContext,
IN u4Byte RegAddr,
IN u4Byte BitMask,
IN u4Byte Data
void * pBtcContext,
u4Byte RegAddr,
u4Byte BitMask,
u4Byte Data
);
typedef u4Byte
(*BFP_BTC_GET_BB_REG)(
IN void * pBtcContext,
IN u4Byte RegAddr,
IN u4Byte BitMask
void * pBtcContext,
u4Byte RegAddr,
u4Byte BitMask
);
typedef void
(*BFP_BTC_SET_RF_REG)(
IN void * pBtcContext,
IN u1Byte eRFPath,
IN u4Byte RegAddr,
IN u4Byte BitMask,
IN u4Byte Data
void * pBtcContext,
u1Byte eRFPath,
u4Byte RegAddr,
u4Byte BitMask,
u4Byte Data
);
typedef u4Byte
(*BFP_BTC_GET_RF_REG)(
IN void * pBtcContext,
IN u1Byte eRFPath,
IN u4Byte RegAddr,
IN u4Byte BitMask
void * pBtcContext,
u1Byte eRFPath,
u4Byte RegAddr,
u4Byte BitMask
);
typedef void
(*BFP_BTC_FILL_H2C)(
IN void * pBtcContext,
IN u1Byte elementId,
IN u4Byte cmdLen,
IN pu1Byte pCmdBuffer
void * pBtcContext,
u1Byte elementId,
u4Byte cmdLen,
pu1Byte pCmdBuffer
);
typedef BOOLEAN
(*BFP_BTC_GET)(
IN void * pBtCoexist,
IN u1Byte getType,
OUT void * pOutBuf
void * pBtCoexist,
u1Byte getType,
void * pOutBuf
);
typedef BOOLEAN
(*BFP_BTC_SET)(
IN void * pBtCoexist,
IN u1Byte setType,
OUT void * pInBuf
void * pBtCoexist,
u1Byte setType,
void * pInBuf
);
typedef u2Byte
(*BFP_BTC_SET_BT_REG)(
IN void * pBtcContext,
IN u1Byte regType,
IN u4Byte offset,
IN u4Byte value
void * pBtcContext,
u1Byte regType,
u4Byte offset,
u4Byte value
);
typedef BOOLEAN
(*BFP_BTC_SET_BT_ANT_DETECTION)(
IN void * pBtcContext,
IN u1Byte txTime,
IN u1Byte btChnl
void * pBtcContext,
u1Byte txTime,
u1Byte btChnl
);
typedef BOOLEAN
(*BFP_BTC_SET_BT_TRX_MASK)(
IN void * pBtcContext,
IN u1Byte bt_trx_mask
void * pBtcContext,
u1Byte bt_trx_mask
);
typedef u4Byte
(*BFP_BTC_GET_BT_REG)(
IN void * pBtcContext,
IN u1Byte regType,
IN u4Byte offset
void * pBtcContext,
u1Byte regType,
u4Byte offset
);
typedef void
(*BFP_BTC_DISP_DBG_MSG)(
IN void * pBtCoexist,
IN u1Byte dispType
void * pBtCoexist,
u1Byte dispType
);
typedef COL_H2C_STATUS
(*BFP_BTC_COEX_H2C_PROCESS)(
IN void * pBtCoexist,
IN u1Byte opcode,
IN u1Byte opcode_ver,
IN pu1Byte ph2c_par,
IN u1Byte h2c_par_len
void * pBtCoexist,
u1Byte opcode,
u1Byte opcode_ver,
pu1Byte ph2c_par,
u1Byte h2c_par_len
);
typedef u4Byte
(*BFP_BTC_GET_BT_COEX_SUPPORTED_FEATURE)(
IN void * pBtcContext
void * pBtcContext
);
typedef u4Byte
(*BFP_BTC_GET_BT_COEX_SUPPORTED_VERSION)(
IN void * pBtcContext
void * pBtcContext
);
typedef u4Byte
(*BFP_BTC_GET_PHYDM_VERSION)(
IN void * pBtcContext
void * pBtcContext
);
typedef void
(*BTC_PHYDM_MODIFY_RA_PCR_THRESHLOD)(
IN void * pDM_Odm,
IN u1Byte RA_offset_direction,
IN u1Byte RA_threshold_offset
void * pDM_Odm,
u1Byte RA_offset_direction,
u1Byte RA_threshold_offset
);
typedef u4Byte
(*BTC_PHYDM_CMNINFOQUERY)(
IN void * pDM_Odm,
IN u1Byte info_type
void * pDM_Odm,
u1Byte info_type
);
typedef u1Byte
(*BFP_BTC_GET_ANT_DET_VAL_FROM_BT)(
IN void * pBtcContext
void * pBtcContext
);
typedef u1Byte
(*BFP_BTC_GET_BLE_SCAN_TYPE_FROM_BT)(
IN void * pBtcContext
void * pBtcContext
);
typedef u4Byte
(*BFP_BTC_GET_BLE_SCAN_PARA_FROM_BT)(
IN void * pBtcContext,
IN u1Byte scanType
void * pBtcContext,
u1Byte scanType
);
typedef BOOLEAN
(*BFP_BTC_GET_BT_AFH_MAP_FROM_BT)(
IN void * pBtcContext,
IN u1Byte mapType,
OUT pu1Byte afhMap
void * pBtcContext,
u1Byte mapType,
pu1Byte afhMap
);
struct btc_bt_info {
@ -841,107 +841,107 @@ extern struct btc_coexist GLBtCoexist;
BOOLEAN
EXhalbtcoutsrc_InitlizeVariables(
IN void * Adapter
void * Adapter
);
void
EXhalbtcoutsrc_PowerOnSetting(
IN PBTC_COEXIST pBtCoexist
PBTC_COEXIST pBtCoexist
);
void
EXhalbtcoutsrc_PreLoadFirmware(
IN PBTC_COEXIST pBtCoexist
PBTC_COEXIST pBtCoexist
);
void
EXhalbtcoutsrc_InitHwConfig(
IN PBTC_COEXIST pBtCoexist,
IN BOOLEAN bWifiOnly
PBTC_COEXIST pBtCoexist,
BOOLEAN bWifiOnly
);
void
EXhalbtcoutsrc_InitCoexDm(
IN PBTC_COEXIST pBtCoexist
PBTC_COEXIST pBtCoexist
);
void
EXhalbtcoutsrc_IpsNotify(
IN PBTC_COEXIST pBtCoexist,
IN u1Byte type
PBTC_COEXIST pBtCoexist,
u1Byte type
);
void
EXhalbtcoutsrc_LpsNotify(
IN PBTC_COEXIST pBtCoexist,
IN u1Byte type
PBTC_COEXIST pBtCoexist,
u1Byte type
);
void
EXhalbtcoutsrc_ScanNotify(
IN PBTC_COEXIST pBtCoexist,
IN u1Byte type
PBTC_COEXIST pBtCoexist,
u1Byte type
);
void
EXhalbtcoutsrc_SetAntennaPathNotify(
IN PBTC_COEXIST pBtCoexist,
IN u1Byte type
PBTC_COEXIST pBtCoexist,
u1Byte type
);
void
EXhalbtcoutsrc_ConnectNotify(
IN PBTC_COEXIST pBtCoexist,
IN u1Byte action
PBTC_COEXIST pBtCoexist,
u1Byte action
);
void
EXhalbtcoutsrc_MediaStatusNotify(
IN PBTC_COEXIST pBtCoexist,
IN RT_MEDIA_STATUS mediaStatus
PBTC_COEXIST pBtCoexist,
RT_MEDIA_STATUS mediaStatus
);
void
EXhalbtcoutsrc_SpecificPacketNotify(
IN PBTC_COEXIST pBtCoexist,
IN u1Byte pktType
PBTC_COEXIST pBtCoexist,
u1Byte pktType
);
void
EXhalbtcoutsrc_BtInfoNotify(
IN PBTC_COEXIST pBtCoexist,
IN pu1Byte tmpBuf,
IN u1Byte length
PBTC_COEXIST pBtCoexist,
pu1Byte tmpBuf,
u1Byte length
);
void
EXhalbtcoutsrc_RfStatusNotify(
IN PBTC_COEXIST pBtCoexist,
IN u1Byte type
PBTC_COEXIST pBtCoexist,
u1Byte type
);
void
EXhalbtcoutsrc_StackOperationNotify(
IN PBTC_COEXIST pBtCoexist,
IN u1Byte type
PBTC_COEXIST pBtCoexist,
u1Byte type
);
void
EXhalbtcoutsrc_HaltNotify(
IN PBTC_COEXIST pBtCoexist
PBTC_COEXIST pBtCoexist
);
void
EXhalbtcoutsrc_PnpNotify(
IN PBTC_COEXIST pBtCoexist,
IN u1Byte pnpState
PBTC_COEXIST pBtCoexist,
u1Byte pnpState
);
void
EXhalbtcoutsrc_CoexDmSwitch(
IN PBTC_COEXIST pBtCoexist
PBTC_COEXIST pBtCoexist
);
void
EXhalbtcoutsrc_Periodical(
IN PBTC_COEXIST pBtCoexist
PBTC_COEXIST pBtCoexist
);
void
EXhalbtcoutsrc_DbgControl(
IN PBTC_COEXIST pBtCoexist,
IN u1Byte opCode,
IN u1Byte opLen,
IN pu1Byte pData
PBTC_COEXIST pBtCoexist,
u1Byte opCode,
u1Byte opLen,
pu1Byte pData
);
void
EXhalbtcoutsrc_AntennaDetection(
IN PBTC_COEXIST pBtCoexist,
IN u4Byte centFreq,
IN u4Byte offset,
IN u4Byte span,
IN u4Byte seconds
PBTC_COEXIST pBtCoexist,
u4Byte centFreq,
u4Byte offset,
u4Byte span,
u4Byte seconds
);
void
EXhalbtcoutsrc_StackUpdateProfileInfo(
@ -949,37 +949,37 @@ EXhalbtcoutsrc_StackUpdateProfileInfo(
);
void
EXhalbtcoutsrc_SetHciVersion(
IN u2Byte hciVersion
u2Byte hciVersion
);
void
EXhalbtcoutsrc_SetBtPatchVersion(
IN u2Byte btHciVersion,
IN u2Byte btPatchVersion
u2Byte btHciVersion,
u2Byte btPatchVersion
);
void
EXhalbtcoutsrc_UpdateMinBtRssi(
IN s1Byte btRssi
s1Byte btRssi
);
void
EXhalbtcoutsrc_SetChipType(
IN u1Byte chipType
u1Byte chipType
);
void
EXhalbtcoutsrc_SetAntNum(
IN u1Byte type,
IN u1Byte antNum
u1Byte type,
u1Byte antNum
);
void
EXhalbtcoutsrc_SetSingleAntPath(
IN u1Byte singleAntPath
u1Byte singleAntPath
);
void
EXhalbtcoutsrc_DisplayBtCoexInfo(
IN PBTC_COEXIST pBtCoexist
PBTC_COEXIST pBtCoexist
);
void
EXhalbtcoutsrc_DisplayAntDetection(
IN PBTC_COEXIST pBtCoexist
PBTC_COEXIST pBtCoexist
);
#define MASKBYTE0 0xff

View file

@ -238,13 +238,13 @@ void rtw_hal_config_rftype(PADAPTER padapter)
*
*/
u8 hal_com_config_channel_plan(
IN PADAPTER padapter,
IN char *hw_alpha2,
IN u8 hw_chplan,
IN char *sw_alpha2,
IN u8 sw_chplan,
IN u8 def_chplan,
IN BOOLEAN AutoLoadFail
PADAPTER padapter,
char *hw_alpha2,
u8 hw_chplan,
char *sw_alpha2,
u8 sw_chplan,
u8 def_chplan,
BOOLEAN AutoLoadFail
)
{
PHAL_DATA_TYPE pHalData;
@ -328,8 +328,8 @@ done:
BOOLEAN
HAL_IsLegalChannel(
IN PADAPTER Adapter,
IN u32 Channel
PADAPTER Adapter,
u32 Channel
)
{
BOOLEAN bLegalChannel = _TRUE;
@ -886,9 +886,9 @@ u8 hw_rate_to_m_rate(u8 rate)
}
void HalSetBrateCfg(
IN PADAPTER Adapter,
IN u8 *mBratesOS,
OUT u16 *pBrateCfg)
PADAPTER Adapter,
u8 *mBratesOS,
u16 *pBrateCfg)
{
u8 i, is_brate, brate;
@ -941,7 +941,7 @@ void HalSetBrateCfg(
static void
_OneOutPipeMapping(
IN PADAPTER pAdapter
PADAPTER pAdapter
)
{
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
@ -959,8 +959,8 @@ _OneOutPipeMapping(
static void
_TwoOutPipeMapping(
IN PADAPTER pAdapter,
IN BOOLEAN bWIFICfg
PADAPTER pAdapter,
BOOLEAN bWIFICfg
)
{
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
@ -1003,8 +1003,8 @@ _TwoOutPipeMapping(
}
static void _ThreeOutPipeMapping(
IN PADAPTER pAdapter,
IN BOOLEAN bWIFICfg
PADAPTER pAdapter,
BOOLEAN bWIFICfg
)
{
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
@ -1045,8 +1045,8 @@ static void _ThreeOutPipeMapping(
}
static void _FourOutPipeMapping(
IN PADAPTER pAdapter,
IN BOOLEAN bWIFICfg
PADAPTER pAdapter,
BOOLEAN bWIFICfg
)
{
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
@ -1088,8 +1088,8 @@ static void _FourOutPipeMapping(
}
BOOLEAN
Hal_MappingOutPipe(
IN PADAPTER pAdapter,
IN u8 NumOutPipe
PADAPTER pAdapter,
u8 NumOutPipe
)
{
struct registry_priv *pregistrypriv = &pAdapter->registrypriv;
@ -8672,7 +8672,7 @@ eqNByte(
* */
u32
MapCharToHexDigit(
IN char chTmp
char chTmp
)
{
if (chTmp >= '0' && chTmp <= '9')
@ -8693,9 +8693,9 @@ MapCharToHexDigit(
* */
BOOLEAN
GetHexValueFromString(
IN char *szStr,
IN OUT u32 *pu4bVal,
IN OUT u32 *pu4bMove
char *szStr,
u32 *pu4bVal,
u32 *pu4bMove
)
{
char *szScan = szStr;
@ -8742,10 +8742,10 @@ GetHexValueFromString(
BOOLEAN
GetFractionValueFromString(
IN char *szStr,
IN OUT u8 *pInteger,
IN OUT u8 *pFraction,
IN OUT u32 *pu4bMove
char *szStr,
u8 *pInteger,
u8 *pFraction,
u32 *pu4bMove
)
{
char *szScan = szStr;
@ -8793,7 +8793,7 @@ GetFractionValueFromString(
* */
BOOLEAN
IsCommentString(
IN char *szStr
char *szStr
)
{
if (*szStr == '/' && *(szStr + 1) == '/')
@ -8804,8 +8804,8 @@ IsCommentString(
BOOLEAN
GetU1ByteIntegerFromStringInDecimal(
IN char *Str,
IN OUT u8 *pInt
char *Str,
u8 *pInt
)
{
u16 i = 0;
@ -8828,11 +8828,11 @@ GetU1ByteIntegerFromStringInDecimal(
* If RightQualifier does not exist, it will hang on in the while loop */
BOOLEAN
ParseQualifiedString(
IN char *In,
IN OUT u32 *Start,
OUT char *Out,
IN char LeftQualifier,
IN char RightQualifier
char *In,
u32 *Start,
char *Out,
char LeftQualifier,
char RightQualifier
)
{
u32 i = 0, j = 0;

View file

@ -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
*/
static s8 rtw_regsty_get_target_tx_power(
IN PADAPTER Adapter,
IN u8 Band,
IN u8 RfPath,
IN RATE_SECTION RateSection
PADAPTER Adapter,
u8 Band,
u8 RfPath,
RATE_SECTION RateSection
)
{
struct registry_priv *regsty = adapter_to_regsty(Adapter);
@ -1132,11 +1132,11 @@ static bool rtw_regsty_chk_target_tx_power_valid(_adapter *adapter)
*/
u8
PHY_GetTxPowerByRateBase(
IN PADAPTER Adapter,
IN u8 Band,
IN u8 RfPath,
IN u8 TxNum,
IN RATE_SECTION RateSection
PADAPTER Adapter,
u8 Band,
u8 RfPath,
u8 TxNum,
RATE_SECTION RateSection
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -1170,12 +1170,12 @@ PHY_GetTxPowerByRateBase(
static void
phy_SetTxPowerByRateBase(
IN PADAPTER Adapter,
IN u8 Band,
IN u8 RfPath,
IN RATE_SECTION RateSection,
IN u8 TxNum,
IN u8 Value
PADAPTER Adapter,
u8 Band,
u8 RfPath,
RATE_SECTION RateSection,
u8 TxNum,
u8 Value
)
{
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
phy_StoreTxPowerByRateBase(
IN PADAPTER pAdapter
PADAPTER pAdapter
)
{
struct hal_spec_t *hal_spec = GET_HAL_SPEC(pAdapter);
@ -1345,13 +1345,13 @@ phy_StoreTxPowerByRateBase(
void
PHY_GetRateValuesOfTxPowerByRate(
IN PADAPTER pAdapter,
IN u32 RegAddr,
IN u32 BitMask,
IN u32 Value,
OUT u8 *Rate,
OUT s8 *PwrByRateVal,
OUT u8 *RateNum
PADAPTER pAdapter,
u32 RegAddr,
u32 BitMask,
u32 Value,
u8 *Rate,
s8 *PwrByRateVal,
u8 *RateNum
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
@ -1735,13 +1735,13 @@ PHY_GetRateValuesOfTxPowerByRate(
static void
PHY_StoreTxPowerByRateNew(
IN PADAPTER pAdapter,
IN u32 Band,
IN u32 RfPath,
IN u32 TxNum,
IN u32 RegAddr,
IN u32 BitMask,
IN u32 Data
PADAPTER pAdapter,
u32 Band,
u32 RfPath,
u32 TxNum,
u32 RegAddr,
u32 BitMask,
u32 Data
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
@ -1783,7 +1783,7 @@ PHY_StoreTxPowerByRateNew(
void
PHY_InitTxPowerByRate(
IN PADAPTER pAdapter
PADAPTER pAdapter
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
@ -1798,13 +1798,13 @@ PHY_InitTxPowerByRate(
void
phy_store_tx_power_by_rate(
IN PADAPTER pAdapter,
IN u32 Band,
IN u32 RfPath,
IN u32 TxNum,
IN u32 RegAddr,
IN u32 BitMask,
IN u32 Data
PADAPTER pAdapter,
u32 Band,
u32 RfPath,
u32 TxNum,
u32 RegAddr,
u32 BitMask,
u32 Data
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
@ -1819,7 +1819,7 @@ phy_store_tx_power_by_rate(
static void
phy_ConvertTxPowerByRateInDbmToRelativeValues(
IN PADAPTER pAdapter
PADAPTER pAdapter
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
@ -1913,7 +1913,7 @@ phy_ConvertTxPowerByRateInDbmToRelativeValues(
*/
void
PHY_TxPowerByRateConfiguration(
IN PADAPTER pAdapter
PADAPTER pAdapter
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
@ -1925,10 +1925,10 @@ PHY_TxPowerByRateConfiguration(
void
phy_set_tx_power_index_by_rate_section(
IN PADAPTER pAdapter,
IN u8 RFPath,
IN u8 Channel,
IN u8 RateSection
PADAPTER pAdapter,
u8 RFPath,
u8 Channel,
u8 RateSection
)
{
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
@ -1973,12 +1973,12 @@ static BOOLEAN phy_GetChnlIndex(u8 Channel, u8 *ChannelIdx)
u8
PHY_GetTxPowerIndexBase(
IN PADAPTER pAdapter,
IN u8 RFPath,
IN u8 Rate,
IN CHANNEL_WIDTH BandWidth,
IN u8 Channel,
OUT PBOOLEAN bIn24G
PADAPTER pAdapter,
u8 RFPath,
u8 Rate,
CHANNEL_WIDTH BandWidth,
u8 Channel,
PBOOLEAN bIn24G
)
{
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
@ -2161,7 +2161,7 @@ PHY_GetTxPowerTrackingOffset(
/*The same as MRateToHwRate in hal_com.c*/
u8
PHY_GetRateIndexOfTxPowerByRate(
IN u8 Rate
u8 Rate
)
{
u8 index = 0;
@ -2428,11 +2428,11 @@ PHY_GetRateIndexOfTxPowerByRate(
s8
_PHY_GetTxPowerByRate(
IN PADAPTER pAdapter,
IN u8 Band,
IN u8 RFPath,
IN u8 TxNum,
IN u8 Rate
PADAPTER pAdapter,
u8 Band,
u8 RFPath,
u8 TxNum,
u8 Rate
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
@ -2465,11 +2465,11 @@ exit:
s8
PHY_GetTxPowerByRate(
IN PADAPTER pAdapter,
IN u8 Band,
IN u8 RFPath,
IN u8 TxNum,
IN u8 Rate
PADAPTER pAdapter,
u8 Band,
u8 RFPath,
u8 TxNum,
u8 Rate
)
{
if (!phy_is_tx_power_by_rate_needed(pAdapter))
@ -2481,11 +2481,11 @@ PHY_GetTxPowerByRate(
#ifdef CONFIG_PHYDM_POWERTRACK_BY_TSSI
s8
PHY_GetTxPowerByRateOriginal(
IN PADAPTER pAdapter,
IN u8 Band,
IN u8 RFPath,
IN u8 TxNum,
IN u8 Rate
PADAPTER pAdapter,
u8 Band,
u8 RFPath,
u8 TxNum,
u8 Rate
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
@ -2523,12 +2523,12 @@ PHY_GetTxPowerByRateOriginal(
void
PHY_SetTxPowerByRate(
IN PADAPTER pAdapter,
IN u8 Band,
IN u8 RFPath,
IN u8 TxNum,
IN u8 Rate,
IN s8 Value
PADAPTER pAdapter,
u8 Band,
u8 RFPath,
u8 TxNum,
u8 Rate,
s8 Value
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
@ -2556,9 +2556,9 @@ PHY_SetTxPowerByRate(
void
phy_set_tx_power_level_by_path(
IN PADAPTER Adapter,
IN u8 channel,
IN u8 path
PADAPTER Adapter,
u8 channel,
u8 path
)
{
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
@ -2583,12 +2583,12 @@ phy_set_tx_power_level_by_path(
void
PHY_SetTxPowerIndexByRateArray(
IN PADAPTER pAdapter,
IN u8 RFPath,
IN CHANNEL_WIDTH BandWidth,
IN u8 Channel,
IN u8 *Rates,
IN u8 RateArraySize
PADAPTER pAdapter,
u8 RFPath,
CHANNEL_WIDTH BandWidth,
u8 Channel,
u8 *Rates,
u8 RateArraySize
)
{
u32 powerIndex = 0;
@ -2644,13 +2644,13 @@ static s8 phy_GetChannelIndexOfTxPowerLimit(u8 Band, u8 Channel)
}
static s8 _phy_get_txpwr_lmt(
IN PADAPTER Adapter,
IN u32 RegPwrTblSel,
IN BAND_TYPE Band,
IN CHANNEL_WIDTH Bandwidth,
IN u8 RfPath,
IN u8 DataRate,
IN u8 Channel,
PADAPTER Adapter,
u32 RegPwrTblSel,
BAND_TYPE Band,
CHANNEL_WIDTH Bandwidth,
u8 RfPath,
u8 DataRate,
u8 Channel,
BOOLEAN no_sc
)
{
@ -2807,13 +2807,13 @@ exit:
inline s8
PHY_GetTxPowerLimit(
IN PADAPTER Adapter,
IN u32 RegPwrTblSel,
IN BAND_TYPE Band,
IN CHANNEL_WIDTH Bandwidth,
IN u8 RfPath,
IN u8 DataRate,
IN u8 Channel
PADAPTER Adapter,
u32 RegPwrTblSel,
BAND_TYPE Band,
CHANNEL_WIDTH Bandwidth,
u8 RfPath,
u8 DataRate,
u8 Channel
)
{
BOOLEAN no_sc = _FALSE;
@ -2827,13 +2827,13 @@ PHY_GetTxPowerLimit(
inline s8
PHY_GetTxPowerLimit_no_sc(
IN PADAPTER Adapter,
IN u32 RegPwrTblSel,
IN BAND_TYPE Band,
IN CHANNEL_WIDTH Bandwidth,
IN u8 RfPath,
IN u8 DataRate,
IN u8 Channel
PADAPTER Adapter,
u32 RegPwrTblSel,
BAND_TYPE Band,
CHANNEL_WIDTH Bandwidth,
u8 RfPath,
u8 DataRate,
u8 Channel
)
{
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
s8
PHY_GetTxPowerLimitOriginal(
IN PADAPTER Adapter,
IN u32 RegPwrTblSel,
IN BAND_TYPE Band,
IN CHANNEL_WIDTH Bandwidth,
IN u8 RfPath,
IN u8 DataRate,
IN u8 Channel
PADAPTER Adapter,
u32 RegPwrTblSel,
BAND_TYPE Band,
CHANNEL_WIDTH Bandwidth,
u8 RfPath,
u8 DataRate,
u8 Channel
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -3192,7 +3192,7 @@ static void phy_CrossReferenceHTAndVHTTxPowerLimit(PADAPTER pAdapter)
void
PHY_ConvertTxPowerLimitToPowerIndex(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -3236,7 +3236,7 @@ PHY_ConvertTxPowerLimitToPowerIndex(
*/
void
PHY_InitTxPowerLimit(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -3262,14 +3262,14 @@ PHY_InitTxPowerLimit(
*/
void
phy_set_tx_power_limit(
IN struct PHY_DM_STRUCT *pDM_Odm,
IN u8 *Regulation,
IN u8 *Band,
IN u8 *Bandwidth,
IN u8 *RateSection,
IN u8 *RfPath,
IN u8 *Channel,
IN u8 *PowerLimit
struct PHY_DM_STRUCT *pDM_Odm,
u8 *Regulation,
u8 *Band,
u8 *Bandwidth,
u8 *RateSection,
u8 *RfPath,
u8 *Channel,
u8 *PowerLimit
)
{
PADAPTER Adapter = pDM_Odm->adapter;
@ -3393,11 +3393,11 @@ phy_set_tx_power_limit(
u8
phy_get_tx_power_index(
IN PADAPTER pAdapter,
IN u8 RFPath,
IN u8 Rate,
IN CHANNEL_WIDTH BandWidth,
IN u8 Channel
PADAPTER pAdapter,
u8 RFPath,
u8 Rate,
CHANNEL_WIDTH BandWidth,
u8 Channel
)
{
return rtw_hal_get_tx_power_index(pAdapter, RFPath, Rate, BandWidth, Channel, NULL);
@ -3405,10 +3405,10 @@ phy_get_tx_power_index(
void
PHY_SetTxPowerIndex(
IN PADAPTER pAdapter,
IN u32 PowerIndex,
IN u8 RFPath,
IN u8 Rate
PADAPTER pAdapter,
u32 PowerIndex,
u8 RFPath,
u8 Rate
)
{
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
int
phy_ConfigMACWithParaFile(
IN PADAPTER Adapter,
IN char *pFileName
PADAPTER Adapter,
char *pFileName
)
{
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
@ -4007,9 +4007,9 @@ phy_ConfigMACWithParaFile(
int
phy_ConfigBBWithParaFile(
IN PADAPTER Adapter,
IN char *pFileName,
IN u32 ConfigType
PADAPTER Adapter,
char *pFileName,
u32 ConfigType
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -4405,8 +4405,8 @@ static int phy_ParseBBPgParaFile(PADAPTER Adapter, char *buffer)
int
phy_ConfigBBWithPgParaFile(
IN PADAPTER Adapter,
IN const char *pFileName)
PADAPTER Adapter,
const char *pFileName)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
int rlen = 0, rtStatus = _FAIL;
@ -4451,8 +4451,8 @@ phy_ConfigBBWithPgParaFile(
int
phy_ConfigBBWithMpParaFile(
IN PADAPTER Adapter,
IN char *pFileName
PADAPTER Adapter,
char *pFileName
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -4537,9 +4537,9 @@ phy_ConfigBBWithMpParaFile(
int
PHY_ConfigRFWithParaFile(
IN PADAPTER Adapter,
IN char *pFileName,
IN u8 eRFPath
PADAPTER Adapter,
char *pFileName,
u8 eRFPath
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -4747,8 +4747,8 @@ static void initDeltaSwingIndexTables(
int
PHY_ConfigRFWithTxPwrTrackParaFile(
IN PADAPTER Adapter,
IN char *pFileName
PADAPTER Adapter,
char *pFileName
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -5069,8 +5069,8 @@ static int phy_ParsePowerLimitTableFile(
int
PHY_ConfigRFWithPowerLimitTableParaFile(
IN PADAPTER Adapter,
IN const char *pFileName
PADAPTER Adapter,
const char *pFileName
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);

View file

@ -84,9 +84,9 @@ PHY_CalculateBitShift(
*---------------------------------------------------------------------------*/
u32
PHY_RFShadowRead(
IN PADAPTER Adapter,
IN u8 eRFPath,
IN u32 Offset)
PADAPTER Adapter,
u8 eRFPath,
u32 Offset)
{
return RF_Shadow[eRFPath][Offset].Value;
@ -95,10 +95,10 @@ PHY_RFShadowRead(
void
PHY_RFShadowWrite(
IN PADAPTER Adapter,
IN u8 eRFPath,
IN u32 Offset,
IN u32 Data)
PADAPTER Adapter,
u8 eRFPath,
u32 Offset,
u32 Data)
{
RF_Shadow[eRFPath][Offset].Value = (Data & bRFRegOffsetMask);
RF_Shadow[eRFPath][Offset].Driver_Write = _TRUE;
@ -108,9 +108,9 @@ PHY_RFShadowWrite(
BOOLEAN
PHY_RFShadowCompare(
IN PADAPTER Adapter,
IN u8 eRFPath,
IN u32 Offset)
PADAPTER Adapter,
u8 eRFPath,
u32 Offset)
{
u32 reg;
/* Check if we need to check the register */
@ -129,9 +129,9 @@ PHY_RFShadowCompare(
void
PHY_RFShadowRecorver(
IN PADAPTER Adapter,
IN u8 eRFPath,
IN u32 Offset)
PADAPTER Adapter,
u8 eRFPath,
u32 Offset)
{
/* Check if the address is error */
if (RF_Shadow[eRFPath][Offset].ErrorOrNot == _TRUE) {
@ -147,7 +147,7 @@ PHY_RFShadowRecorver(
void
PHY_RFShadowCompareAll(
IN PADAPTER Adapter)
PADAPTER Adapter)
{
u8 eRFPath = 0 ;
u32 Offset = 0, maxReg = GET_RF6052_REAL_MAX_REG(Adapter);
@ -162,7 +162,7 @@ PHY_RFShadowCompareAll(
void
PHY_RFShadowRecorverAll(
IN PADAPTER Adapter)
PADAPTER Adapter)
{
u8 eRFPath = 0;
u32 Offset = 0, maxReg = GET_RF6052_REAL_MAX_REG(Adapter);
@ -177,10 +177,10 @@ PHY_RFShadowRecorverAll(
void
PHY_RFShadowCompareFlagSet(
IN PADAPTER Adapter,
IN u8 eRFPath,
IN u32 Offset,
IN u8 Type)
PADAPTER Adapter,
u8 eRFPath,
u32 Offset,
u8 Type)
{
/* Set True or False!!! */
RF_Shadow[eRFPath][Offset].Compare = Type;
@ -190,10 +190,10 @@ PHY_RFShadowCompareFlagSet(
void
PHY_RFShadowRecorverFlagSet(
IN PADAPTER Adapter,
IN u8 eRFPath,
IN u32 Offset,
IN u8 Type)
PADAPTER Adapter,
u8 eRFPath,
u32 Offset,
u8 Type)
{
/* Set True or False!!! */
RF_Shadow[eRFPath][Offset].Recorver = Type;
@ -203,7 +203,7 @@ PHY_RFShadowRecorverFlagSet(
void
PHY_RFShadowCompareFlagSetAll(
IN PADAPTER Adapter)
PADAPTER Adapter)
{
u8 eRFPath = 0;
u32 Offset = 0, maxReg = GET_RF6052_REAL_MAX_REG(Adapter);
@ -223,7 +223,7 @@ PHY_RFShadowCompareFlagSetAll(
void
PHY_RFShadowRecorverFlagSetAll(
IN PADAPTER Adapter)
PADAPTER Adapter)
{
u8 eRFPath = 0;
u32 Offset = 0, maxReg = GET_RF6052_REAL_MAX_REG(Adapter);
@ -242,7 +242,7 @@ PHY_RFShadowRecorverFlagSetAll(
void
PHY_RFShadowRefresh(
IN PADAPTER Adapter)
PADAPTER Adapter)
{
u8 eRFPath = 0;
u32 Offset = 0, maxReg = GET_RF6052_REAL_MAX_REG(Adapter);

View file

@ -1465,7 +1465,7 @@ SwLedBlink12(
static void
SwLedBlink13(
IN PLED_USB pLed
PLED_USB pLed
)
{
PADAPTER Adapter = pLed->padapter;
@ -1526,7 +1526,7 @@ SwLedBlink13(
static void
SwLedBlink14(
IN PLED_USB pLed
PLED_USB pLed
)
{
PADAPTER Adapter = pLed->padapter;
@ -1577,7 +1577,7 @@ SwLedBlink14(
static void
SwLedBlink15(
IN PLED_USB pLed
PLED_USB pLed
)
{
PADAPTER Adapter = pLed->padapter;
@ -3066,8 +3066,8 @@ SwLedControlMode8(
/* page added for Belkin AC950, 20120813 */
static void
SwLedControlMode9(
IN PADAPTER Adapter,
IN LED_CTL_MODE LedAction
PADAPTER Adapter,
LED_CTL_MODE LedAction
)
{
struct led_priv *ledpriv = &(Adapter->ledpriv);
@ -3733,8 +3733,8 @@ SwLedControlMode12(
static void
SwLedControlMode13(
IN PADAPTER Adapter,
IN LED_CTL_MODE LedAction
PADAPTER Adapter,
LED_CTL_MODE LedAction
)
{
struct led_priv *ledpriv = &(Adapter->ledpriv);
@ -3879,8 +3879,8 @@ SwLedControlMode13(
static void
SwLedControlMode14(
IN PADAPTER Adapter,
IN LED_CTL_MODE LedAction
PADAPTER Adapter,
LED_CTL_MODE LedAction
)
{
struct led_priv *ledpriv = &(Adapter->ledpriv);
@ -3929,8 +3929,8 @@ SwLedControlMode14(
static void
SwLedControlMode15(
IN PADAPTER Adapter,
IN LED_CTL_MODE LedAction
PADAPTER Adapter,
LED_CTL_MODE LedAction
)
{
struct led_priv *ledpriv = &(Adapter->ledpriv);
@ -4220,7 +4220,7 @@ void
InitLed(
_adapter *padapter,
PLED_USB pLed,
LED_PIN LedPin
LED_PIN LedPin
)
{
pLed->padapter = padapter;

View file

@ -530,7 +530,7 @@ static void rtl8188e_set_FwRsvdPage_cmd(PADAPTER padapter, PRSVDPAGE_LOC rsvdpag
* 2010.06.23. Added by tynli. */
void
CheckFwRsvdPageContent(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);

View file

@ -39,14 +39,14 @@
static void
dm_CheckProtection(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
}
static void
dm_CheckStatistics(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
}
@ -91,7 +91,7 @@ static void dm_CheckPbcGPIO(_adapter *padapter)
/* Initialize GPIO setting registers */
static void
dm_InitGPIOSetting(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
@ -191,7 +191,7 @@ static void Update_ODM_ComInfo_88E(PADAPTER Adapter)
void
rtl8188e_InitHalDm(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
@ -209,7 +209,7 @@ rtl8188e_InitHalDm(
void
rtl8188e_HalDmWatchDog(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
BOOLEAN bFwCurrentInPSMode = _FALSE;
@ -272,7 +272,7 @@ skip_dm:
return;
}
void rtl8188e_init_dm_priv(IN PADAPTER Adapter)
void rtl8188e_init_dm_priv(PADAPTER Adapter)
{
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
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);
struct PHY_DM_STRUCT *podmpriv = &pHalData->odmpriv;

View file

@ -489,8 +489,8 @@ void rtw_IOL_cmd_tx_pkt_buf_dump(ADAPTER *Adapter, int data_len)
static void
_FWDownloadEnable_8188E(
IN PADAPTER padapter,
IN BOOLEAN enable
PADAPTER padapter,
BOOLEAN enable
)
{
u8 tmp;
@ -516,9 +516,9 @@ _FWDownloadEnable_8188E(
#define MAX_REG_BOLCK_SIZE 196
static int
_BlockWrite(
IN PADAPTER padapter,
IN void * buffer,
IN u32 buffSize
PADAPTER padapter,
void * buffer,
u32 buffSize
)
{
int ret = _SUCCESS;
@ -584,10 +584,10 @@ exit:
static int
_PageWrite(
IN PADAPTER padapter,
IN u32 page,
IN void * buffer,
IN u32 size
PADAPTER padapter,
u32 page,
void * buffer,
u32 size
)
{
u8 value8;
@ -620,9 +620,9 @@ _FillDummy(
static int
_WriteFW(
IN PADAPTER padapter,
IN void * buffer,
IN u32 size
PADAPTER padapter,
void * buffer,
u32 size
)
{
/* 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
hal_EfusePgPacketWrite2ByteHeader(
IN PADAPTER pAdapter,
IN u8 efuseType,
IN u16 *pAddr,
IN PPGPKT_STRUCT pTargetPkt,
IN BOOLEAN bPseudoTest);
PADAPTER pAdapter,
u8 efuseType,
u16 *pAddr,
PPGPKT_STRUCT pTargetPkt,
BOOLEAN bPseudoTest);
static BOOLEAN
hal_EfusePgPacketWrite1ByteHeader(
IN PADAPTER pAdapter,
IN u8 efuseType,
IN u16 *pAddr,
IN PPGPKT_STRUCT pTargetPkt,
IN BOOLEAN bPseudoTest);
PADAPTER pAdapter,
u8 efuseType,
u16 *pAddr,
PPGPKT_STRUCT pTargetPkt,
BOOLEAN bPseudoTest);
static BOOLEAN
hal_EfusePgPacketWriteData(
IN PADAPTER pAdapter,
IN u8 efuseType,
IN u16 *pAddr,
IN PPGPKT_STRUCT pTargetPkt,
IN BOOLEAN bPseudoTest);
PADAPTER pAdapter,
u8 efuseType,
u16 *pAddr,
PPGPKT_STRUCT pTargetPkt,
BOOLEAN bPseudoTest);
static void
hal_EfusePowerSwitch_RTL8188E(
IN PADAPTER pAdapter,
IN u8 bWrite,
IN u8 PwrState)
PADAPTER pAdapter,
u8 bWrite,
u8 PwrState)
{
u8 tempval;
u16 tmpV16;
@ -1042,9 +1042,9 @@ hal_EfusePowerSwitch_RTL8188E(
static void
rtl8188e_EfusePowerSwitch(
IN PADAPTER pAdapter,
IN u8 bWrite,
IN u8 PwrState)
PADAPTER pAdapter,
u8 bWrite,
u8 PwrState)
{
hal_EfusePowerSwitch_RTL8188E(pAdapter, bWrite, PwrState);
}
@ -1094,7 +1094,7 @@ Hal_EfuseReadEFuse88E(
u16 _offset,
u16 _size_byte,
u8 *pbuf,
IN BOOLEAN bPseudoTest
BOOLEAN bPseudoTest
)
{
/* u8 efuseTbl[EFUSE_MAP_LEN_88E]; */
@ -1277,9 +1277,9 @@ exit:
static BOOLEAN
Hal_EfuseSwitchToBank(
IN PADAPTER pAdapter,
IN u8 bank,
IN BOOLEAN bPseudoTest
PADAPTER pAdapter,
u8 bank,
BOOLEAN bPseudoTest
)
{
BOOLEAN bRet = _FALSE;
@ -1303,7 +1303,7 @@ ReadEFuseByIC(
u16 _offset,
u16 _size_byte,
u8 *pbuf,
IN BOOLEAN bPseudoTest
BOOLEAN bPseudoTest
)
{
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
@ -1359,7 +1359,7 @@ ReadEFuse_Pseudo(
u16 _offset,
u16 _size_byte,
u8 *pbuf,
IN BOOLEAN bPseudoTest
BOOLEAN bPseudoTest
)
{
Hal_EfuseReadEFuse88E(Adapter, _offset, _size_byte, pbuf, bPseudoTest);
@ -1372,7 +1372,7 @@ rtl8188e_ReadEFuse(
u16 _offset,
u16 _size_byte,
u8 *pbuf,
IN BOOLEAN bPseudoTest
BOOLEAN bPseudoTest
)
{
if (bPseudoTest)
@ -1384,10 +1384,10 @@ rtl8188e_ReadEFuse(
/* Do not support BT */
static void
Hal_EFUSEGetEfuseDefinition88E(
IN PADAPTER pAdapter,
IN u1Byte efuseType,
IN u1Byte type,
OUT void * pOut
PADAPTER pAdapter,
u1Byte efuseType,
u1Byte type,
void * pOut
)
{
switch (type) {
@ -1444,10 +1444,10 @@ Hal_EFUSEGetEfuseDefinition88E(
static void
Hal_EFUSEGetEfuseDefinition_Pseudo88E(
IN PADAPTER pAdapter,
IN u8 efuseType,
IN u8 type,
OUT void * pOut
PADAPTER pAdapter,
u8 efuseType,
u8 type,
void * pOut
)
{
switch (type) {
@ -1505,11 +1505,11 @@ Hal_EFUSEGetEfuseDefinition_Pseudo88E(
static void
rtl8188e_EFUSE_GetEfuseDefinition(
IN PADAPTER pAdapter,
IN u8 efuseType,
IN u8 type,
OUT void *pOut,
IN BOOLEAN bPseudoTest
PADAPTER pAdapter,
u8 efuseType,
u8 type,
void *pOut,
BOOLEAN bPseudoTest
)
{
if (bPseudoTest)
@ -1519,11 +1519,11 @@ rtl8188e_EFUSE_GetEfuseDefinition(
}
static u8
Hal_EfuseWordEnableDataWrite(IN PADAPTER pAdapter,
IN u16 efuse_addr,
IN u8 word_en,
IN u8 *data,
IN BOOLEAN bPseudoTest)
Hal_EfuseWordEnableDataWrite(PADAPTER pAdapter,
u16 efuse_addr,
u8 word_en,
u8 *data,
BOOLEAN bPseudoTest)
{
u16 tmpaddr = 0;
u16 start_addr = efuse_addr;
@ -1588,11 +1588,11 @@ Hal_EfuseWordEnableDataWrite(IN PADAPTER pAdapter,
}
static u8
Hal_EfuseWordEnableDataWrite_Pseudo(IN PADAPTER pAdapter,
IN u16 efuse_addr,
IN u8 word_en,
IN u8 *data,
IN BOOLEAN bPseudoTest)
Hal_EfuseWordEnableDataWrite_Pseudo(PADAPTER pAdapter,
u16 efuse_addr,
u8 word_en,
u8 *data,
BOOLEAN bPseudoTest)
{
u8 ret = 0;
@ -1602,11 +1602,11 @@ Hal_EfuseWordEnableDataWrite_Pseudo(IN PADAPTER pAdapter,
}
static u8
rtl8188e_Efuse_WordEnableDataWrite(IN PADAPTER pAdapter,
IN u16 efuse_addr,
IN u8 word_en,
IN u8 *data,
IN BOOLEAN bPseudoTest)
rtl8188e_Efuse_WordEnableDataWrite(PADAPTER pAdapter,
u16 efuse_addr,
u8 word_en,
u8 *data,
BOOLEAN bPseudoTest)
{
u8 ret = 0;
@ -1620,8 +1620,8 @@ rtl8188e_Efuse_WordEnableDataWrite(IN PADAPTER pAdapter,
static u16
hal_EfuseGetCurrentSize_8188e(IN PADAPTER pAdapter,
IN BOOLEAN bPseudoTest)
hal_EfuseGetCurrentSize_8188e(PADAPTER pAdapter,
BOOLEAN bPseudoTest)
{
int bContinual = _TRUE;
@ -1673,8 +1673,8 @@ hal_EfuseGetCurrentSize_8188e(IN PADAPTER pAdapter,
}
static u16
Hal_EfuseGetCurrentSize_Pseudo(IN PADAPTER pAdapter,
IN BOOLEAN bPseudoTest)
Hal_EfuseGetCurrentSize_Pseudo(PADAPTER pAdapter,
BOOLEAN bPseudoTest)
{
u16 ret = 0;
@ -1686,9 +1686,9 @@ Hal_EfuseGetCurrentSize_Pseudo(IN PADAPTER pAdapter,
static u16
rtl8188e_EfuseGetCurrentSize(
IN PADAPTER pAdapter,
IN u8 efuseType,
IN BOOLEAN bPseudoTest)
PADAPTER pAdapter,
u8 efuseType,
BOOLEAN bPseudoTest)
{
u16 ret = 0;
@ -1704,10 +1704,10 @@ rtl8188e_EfuseGetCurrentSize(
static int
hal_EfusePgPacketRead_8188e(
IN PADAPTER pAdapter,
IN u8 offset,
IN u8 *data,
IN BOOLEAN bPseudoTest)
PADAPTER pAdapter,
u8 offset,
u8 *data,
BOOLEAN bPseudoTest)
{
u8 ReadState = PG_STATE_HEADER;
@ -1801,10 +1801,10 @@ hal_EfusePgPacketRead_8188e(
}
static int
Hal_EfusePgPacketRead(IN PADAPTER pAdapter,
IN u8 offset,
IN u8 *data,
IN BOOLEAN bPseudoTest)
Hal_EfusePgPacketRead(PADAPTER pAdapter,
u8 offset,
u8 *data,
BOOLEAN bPseudoTest)
{
int ret = 0;
@ -1815,10 +1815,10 @@ Hal_EfusePgPacketRead(IN PADAPTER pAdapter,
}
static int
Hal_EfusePgPacketRead_Pseudo(IN PADAPTER pAdapter,
IN u8 offset,
IN u8 *data,
IN BOOLEAN bPseudoTest)
Hal_EfusePgPacketRead_Pseudo(PADAPTER pAdapter,
u8 offset,
u8 *data,
BOOLEAN bPseudoTest)
{
int ret = 0;
@ -1828,10 +1828,10 @@ Hal_EfusePgPacketRead_Pseudo(IN PADAPTER pAdapter,
}
static int
rtl8188e_Efuse_PgPacketRead(IN PADAPTER pAdapter,
IN u8 offset,
IN u8 *data,
IN BOOLEAN bPseudoTest)
rtl8188e_Efuse_PgPacketRead(PADAPTER pAdapter,
u8 offset,
u8 *data,
BOOLEAN bPseudoTest)
{
int ret = 0;
@ -1845,11 +1845,11 @@ rtl8188e_Efuse_PgPacketRead(IN PADAPTER pAdapter,
static BOOLEAN
hal_EfuseFixHeaderProcess(
IN PADAPTER pAdapter,
IN u8 efuseType,
IN PPGPKT_STRUCT pFixPkt,
IN u16 *pAddr,
IN BOOLEAN bPseudoTest
PADAPTER pAdapter,
u8 efuseType,
PPGPKT_STRUCT pFixPkt,
u16 *pAddr,
BOOLEAN bPseudoTest
)
{
u8 originaldata[8], badworden = 0;
@ -1879,11 +1879,11 @@ hal_EfuseFixHeaderProcess(
static BOOLEAN
hal_EfusePgPacketWrite2ByteHeader(
IN PADAPTER pAdapter,
IN u8 efuseType,
IN u16 *pAddr,
IN PPGPKT_STRUCT pTargetPkt,
IN BOOLEAN bPseudoTest)
PADAPTER pAdapter,
u8 efuseType,
u16 *pAddr,
PPGPKT_STRUCT pTargetPkt,
BOOLEAN bPseudoTest)
{
BOOLEAN bRet = _FALSE, bContinual = _TRUE;
u16 efuse_addr = *pAddr, efuse_max_available_len = 0;
@ -1962,11 +1962,11 @@ hal_EfusePgPacketWrite2ByteHeader(
static BOOLEAN
hal_EfusePgPacketWrite1ByteHeader(
IN PADAPTER pAdapter,
IN u8 efuseType,
IN u16 *pAddr,
IN PPGPKT_STRUCT pTargetPkt,
IN BOOLEAN bPseudoTest)
PADAPTER pAdapter,
u8 efuseType,
u16 *pAddr,
PPGPKT_STRUCT pTargetPkt,
BOOLEAN bPseudoTest)
{
BOOLEAN bRet = _FALSE;
u8 pg_header = 0, tmp_header = 0;
@ -2008,11 +2008,11 @@ hal_EfusePgPacketWrite1ByteHeader(
static BOOLEAN
hal_EfusePgPacketWriteData(
IN PADAPTER pAdapter,
IN u8 efuseType,
IN u16 *pAddr,
IN PPGPKT_STRUCT pTargetPkt,
IN BOOLEAN bPseudoTest)
PADAPTER pAdapter,
u8 efuseType,
u16 *pAddr,
PPGPKT_STRUCT pTargetPkt,
BOOLEAN bPseudoTest)
{
BOOLEAN bRet = _FALSE;
u16 efuse_addr = *pAddr;
@ -2042,11 +2042,11 @@ hal_EfusePgPacketWriteData(
static BOOLEAN
hal_EfusePgPacketWriteHeader(
IN PADAPTER pAdapter,
IN u8 efuseType,
IN u16 *pAddr,
IN PPGPKT_STRUCT pTargetPkt,
IN BOOLEAN bPseudoTest)
PADAPTER pAdapter,
u8 efuseType,
u16 *pAddr,
PPGPKT_STRUCT pTargetPkt,
BOOLEAN bPseudoTest)
{
BOOLEAN bRet = _FALSE;
@ -2060,9 +2060,9 @@ hal_EfusePgPacketWriteHeader(
static BOOLEAN
wordEnMatched(
IN PPGPKT_STRUCT pTargetPkt,
IN PPGPKT_STRUCT pCurPkt,
IN u8 *pWden
PPGPKT_STRUCT pTargetPkt,
PPGPKT_STRUCT pCurPkt,
u8 *pWden
)
{
u8 match_word_en = 0x0F; /* default all words are disabled */
@ -2096,10 +2096,10 @@ wordEnMatched(
static BOOLEAN
hal_EfuseCheckIfDatafollowed(
IN PADAPTER pAdapter,
IN u8 word_cnts,
IN u16 startAddr,
IN BOOLEAN bPseudoTest
PADAPTER pAdapter,
u8 word_cnts,
u16 startAddr,
BOOLEAN bPseudoTest
)
{
BOOLEAN bRet = _FALSE;
@ -2115,11 +2115,11 @@ hal_EfuseCheckIfDatafollowed(
static BOOLEAN
hal_EfusePartialWriteCheck(
IN PADAPTER pAdapter,
IN u8 efuseType,
IN u16 *pAddr,
IN PPGPKT_STRUCT pTargetPkt,
IN BOOLEAN bPseudoTest
PADAPTER pAdapter,
u8 efuseType,
u16 *pAddr,
PPGPKT_STRUCT pTargetPkt,
BOOLEAN bPseudoTest
)
{
BOOLEAN bRet = _FALSE;
@ -2214,9 +2214,9 @@ hal_EfusePartialWriteCheck(
static BOOLEAN
hal_EfusePgCheckAvailableAddr(
IN PADAPTER pAdapter,
IN u8 efuseType,
IN BOOLEAN bPseudoTest
PADAPTER pAdapter,
u8 efuseType,
BOOLEAN bPseudoTest
)
{
u16 efuse_max_available_len = 0;
@ -2236,10 +2236,10 @@ hal_EfusePgCheckAvailableAddr(
static void
hal_EfuseConstructPGPkt(
IN u8 offset,
IN u8 word_en,
IN u8 *pData,
IN PPGPKT_STRUCT pTargetPkt
u8 offset,
u8 word_en,
u8 *pData,
PPGPKT_STRUCT pTargetPkt
)
{
@ -2254,11 +2254,11 @@ hal_EfuseConstructPGPkt(
static BOOLEAN
hal_EfusePgPacketWrite_BT(
IN PADAPTER pAdapter,
IN u8 offset,
IN u8 word_en,
IN u8 *pData,
IN BOOLEAN bPseudoTest
PADAPTER pAdapter,
u8 offset,
u8 word_en,
u8 *pData,
BOOLEAN bPseudoTest
)
{
PGPKT_STRUCT targetPkt;
@ -2284,11 +2284,11 @@ hal_EfusePgPacketWrite_BT(
static BOOLEAN
hal_EfusePgPacketWrite_8188e(
IN PADAPTER pAdapter,
IN u8 offset,
IN u8 word_en,
IN u8 *pData,
IN BOOLEAN bPseudoTest
PADAPTER pAdapter,
u8 offset,
u8 word_en,
u8 *pData,
BOOLEAN bPseudoTest
)
{
PGPKT_STRUCT targetPkt;
@ -2314,11 +2314,11 @@ hal_EfusePgPacketWrite_8188e(
static int
Hal_EfusePgPacketWrite_Pseudo(IN PADAPTER pAdapter,
IN u8 offset,
IN u8 word_en,
IN u8 *data,
IN BOOLEAN bPseudoTest)
Hal_EfusePgPacketWrite_Pseudo(PADAPTER pAdapter,
u8 offset,
u8 word_en,
u8 *data,
BOOLEAN bPseudoTest)
{
int ret;
@ -2328,11 +2328,11 @@ Hal_EfusePgPacketWrite_Pseudo(IN PADAPTER pAdapter,
}
static int
Hal_EfusePgPacketWrite(IN PADAPTER pAdapter,
IN u8 offset,
IN u8 word_en,
IN u8 *data,
IN BOOLEAN bPseudoTest)
Hal_EfusePgPacketWrite(PADAPTER pAdapter,
u8 offset,
u8 word_en,
u8 *data,
BOOLEAN bPseudoTest)
{
int ret = 0;
ret = hal_EfusePgPacketWrite_8188e(pAdapter, offset, word_en, data, bPseudoTest);
@ -2342,11 +2342,11 @@ Hal_EfusePgPacketWrite(IN PADAPTER pAdapter,
}
static int
rtl8188e_Efuse_PgPacketWrite(IN PADAPTER pAdapter,
IN u8 offset,
IN u8 word_en,
IN u8 *data,
IN BOOLEAN bPseudoTest)
rtl8188e_Efuse_PgPacketWrite(PADAPTER pAdapter,
u8 offset,
u8 word_en,
u8 *data,
BOOLEAN bPseudoTest)
{
int ret;
@ -2683,8 +2683,8 @@ Hal_InitPGData88E(PADAPTER padapter)
void
Hal_EfuseParseIDCode88E(
IN PADAPTER padapter,
IN u8 *hwinfo
PADAPTER padapter,
u8 *hwinfo
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
@ -2704,8 +2704,8 @@ Hal_EfuseParseIDCode88E(
void Hal_ReadPowerSavingMode88E(
PADAPTER padapter,
IN u8 *hwinfo,
IN BOOLEAN AutoLoadFail
u8 *hwinfo,
BOOLEAN AutoLoadFail
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
@ -2739,9 +2739,9 @@ void Hal_ReadPowerSavingMode88E(
void
Hal_ReadTxPowerInfo88E(
IN PADAPTER padapter,
IN u8 *PROMContent,
IN BOOLEAN AutoLoadFail
PADAPTER padapter,
u8 *PROMContent,
BOOLEAN AutoLoadFail
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
@ -2767,9 +2767,9 @@ Hal_ReadTxPowerInfo88E(
void
Hal_EfuseParseXtal_8188E(
IN PADAPTER pAdapter,
IN u8 *hwinfo,
IN BOOLEAN AutoLoadFail
PADAPTER pAdapter,
u8 *hwinfo,
BOOLEAN AutoLoadFail
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
@ -2785,9 +2785,9 @@ Hal_EfuseParseXtal_8188E(
void
Hal_ReadPAType_8188E(
IN PADAPTER Adapter,
IN u8 *PROMContent,
IN BOOLEAN AutoloadFail
PADAPTER Adapter,
u8 *PROMContent,
BOOLEAN AutoloadFail
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -2844,9 +2844,9 @@ Hal_ReadPAType_8188E(
void
Hal_ReadAmplifierType_8188E(
IN PADAPTER Adapter,
IN pu1Byte PROMContent,
IN BOOLEAN AutoloadFail
PADAPTER Adapter,
pu1Byte PROMContent,
BOOLEAN AutoloadFail
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -2882,9 +2882,9 @@ Hal_ReadAmplifierType_8188E(
void
Hal_ReadRFEType_8188E(
IN PADAPTER Adapter,
IN pu1Byte PROMContent,
IN BOOLEAN AutoloadFail
PADAPTER Adapter,
pu1Byte PROMContent,
BOOLEAN AutoloadFail
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -2928,9 +2928,9 @@ Hal_ReadRFEType_8188E(
void
Hal_EfuseParseBoardType88E(
IN PADAPTER pAdapter,
IN u8 *hwinfo,
IN BOOLEAN AutoLoadFail
PADAPTER pAdapter,
u8 *hwinfo,
BOOLEAN AutoLoadFail
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
@ -2946,9 +2946,9 @@ Hal_EfuseParseBoardType88E(
void
Hal_EfuseParseEEPROMVer88E(
IN PADAPTER padapter,
IN u8 *hwinfo,
IN BOOLEAN AutoLoadFail
PADAPTER padapter,
u8 *hwinfo,
BOOLEAN AutoLoadFail
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
@ -2963,9 +2963,9 @@ Hal_EfuseParseEEPROMVer88E(
void
rtl8188e_EfuseParseChnlPlan(
IN PADAPTER padapter,
IN u8 *hwinfo,
IN BOOLEAN AutoLoadFail
PADAPTER padapter,
u8 *hwinfo,
BOOLEAN AutoLoadFail
)
{
padapter->mlmepriv.ChannelPlan = hal_com_config_channel_plan(
@ -2981,9 +2981,9 @@ rtl8188e_EfuseParseChnlPlan(
void
Hal_EfuseParseCustomerID88E(
IN PADAPTER padapter,
IN u8 *hwinfo,
IN BOOLEAN AutoLoadFail
PADAPTER padapter,
u8 *hwinfo,
BOOLEAN AutoLoadFail
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
@ -3002,9 +3002,9 @@ Hal_EfuseParseCustomerID88E(
void
Hal_ReadAntennaDiversity88E(
IN PADAPTER pAdapter,
IN u8 *PROMContent,
IN BOOLEAN AutoLoadFail
PADAPTER pAdapter,
u8 *PROMContent,
BOOLEAN AutoLoadFail
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
@ -3039,9 +3039,9 @@ Hal_ReadAntennaDiversity88E(
void
Hal_ReadThermalMeter_88E(
IN PADAPTER Adapter,
IN u8 *PROMContent,
IN BOOLEAN AutoloadFail
PADAPTER Adapter,
u8 *PROMContent,
BOOLEAN AutoloadFail
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -3068,9 +3068,9 @@ Hal_ReadThermalMeter_88E(
#ifdef CONFIG_RF_POWER_TRIM
void Hal_ReadRFGainOffset(
IN PADAPTER Adapter,
IN u8 *PROMContent,
IN BOOLEAN AutoloadFail)
PADAPTER Adapter,
u8 *PROMContent,
BOOLEAN AutoloadFail)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
u8 thermal_offset = 0;
@ -4541,9 +4541,9 @@ static void hal_ra_info_dump(_adapter *padapter , void *sel)
u8
GetHalDefVar8188E(
IN PADAPTER Adapter,
IN HAL_DEF_VARIABLE eVariable,
IN void * pValue
PADAPTER Adapter,
HAL_DEF_VARIABLE eVariable,
void * pValue
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);

View file

@ -51,7 +51,7 @@
#if (SIC_ENABLE == 1)
static BOOLEAN
sic_IsSICReady(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
BOOLEAN bRet = _FALSE;
@ -200,10 +200,10 @@ sic_Write4Byte(
* ************************************************************ */
static void
SIC_SetBBReg(
IN PADAPTER Adapter,
IN u32 RegAddr,
IN u32 BitMask,
IN u32 Data
PADAPTER Adapter,
u32 RegAddr,
u32 BitMask,
u32 Data
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -222,9 +222,9 @@ SIC_SetBBReg(
static u32
SIC_QueryBBReg(
IN PADAPTER Adapter,
IN u32 RegAddr,
IN u32 BitMask
PADAPTER Adapter,
u32 RegAddr,
u32 BitMask
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -240,7 +240,7 @@ SIC_QueryBBReg(
void
SIC_Init(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
/* Here we need to write 0x1b8~0x1bf = 0 after fw is downloaded */
@ -266,7 +266,7 @@ SIC_Init(
static BOOLEAN
SIC_LedOff(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
/* When SIC is enabled, led pin will be used as debug pin, */
@ -291,9 +291,9 @@ SIC_LedOff(
*/
u32
PHY_QueryBBReg8188E(
IN PADAPTER Adapter,
IN u32 RegAddr,
IN u32 BitMask
PADAPTER Adapter,
u32 RegAddr,
u32 BitMask
)
{
u32 ReturnValue = 0, OriginalValue, BitShift;
@ -339,10 +339,10 @@ PHY_QueryBBReg8188E(
void
PHY_SetBBReg8188E(
IN PADAPTER Adapter,
IN u32 RegAddr,
IN u32 BitMask,
IN u32 Data
PADAPTER Adapter,
u32 RegAddr,
u32 BitMask,
u32 Data
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -396,9 +396,9 @@ PHY_SetBBReg8188E(
*/
static u32
phy_RFSerialRead(
IN PADAPTER Adapter,
IN u8 eRFPath,
IN u32 Offset
PADAPTER Adapter,
u8 eRFPath,
u32 Offset
)
{
u32 retValue = 0;
@ -509,10 +509,10 @@ phy_RFSerialRead(
*/
static void
phy_RFSerialWrite(
IN PADAPTER Adapter,
IN u8 eRFPath,
IN u32 Offset,
IN u32 Data
PADAPTER Adapter,
u8 eRFPath,
u32 Offset,
u32 Data
)
{
u32 DataAndAddr = 0;
@ -550,10 +550,10 @@ phy_RFSerialWrite(
*/
u32
PHY_QueryRFReg8188E(
IN PADAPTER Adapter,
IN u8 eRFPath,
IN u32 RegAddr,
IN u32 BitMask
PADAPTER Adapter,
u8 eRFPath,
u32 RegAddr,
u32 BitMask
)
{
u32 Original_Value, Readback_Value, BitShift;
@ -594,11 +594,11 @@ PHY_QueryRFReg8188E(
*/
void
PHY_SetRFReg8188E(
IN PADAPTER Adapter,
IN u8 eRFPath,
IN u32 RegAddr,
IN u32 BitMask,
IN u32 Data
PADAPTER Adapter,
u8 eRFPath,
u32 RegAddr,
u32 BitMask,
u32 Data
)
{
@ -689,7 +689,7 @@ s32 PHY_MACConfig8188E(PADAPTER Adapter)
-----------------------------------------------------------------------------*/
static void
phy_InitBBRFRegisterDefinition(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -729,7 +729,7 @@ phy_InitBBRFRegisterDefinition(
static void
phy_BB8192C_Config_1T(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
/* for path - B */
@ -755,7 +755,7 @@ phy_BB8192C_Config_1T(
* Now it is just for 8256. */
static int
phy_BB8190_Config_HardCode(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
/* RT_ASSERT(FALSE, ("This function is not implement yet!!\n")); */
@ -764,7 +764,7 @@ phy_BB8190_Config_HardCode(
static int
phy_BB8188E_Config_ParaFile(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -836,7 +836,7 @@ phy_BB8190_Config_ParaFile_Fail:
int
PHY_BBConfig8188E(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
int rtStatus = _SUCCESS;
@ -870,7 +870,7 @@ PHY_BBConfig8188E(
int
PHY_RFConfig8188E(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -899,9 +899,9 @@ PHY_RFConfig8188E(
*---------------------------------------------------------------------------*/
int
rtl8188e_PHY_ConfigRFWithParaFile(
IN PADAPTER Adapter,
IN u8 *pFileName,
IN u8 eRFPath
PADAPTER Adapter,
u8 *pFileName,
u8 eRFPath
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -948,8 +948,8 @@ static u32 Rtl8192S_HighPower_RadioA_Array[HighPowerRadioAArrayLen] = {
*---------------------------------------------------------------------------*/
void
PHY_GetTxPowerLevel8188E(
IN PADAPTER Adapter,
OUT s32 *powerlevel
PADAPTER Adapter,
s32 *powerlevel
)
{
}
@ -973,8 +973,8 @@ PHY_GetTxPowerLevel8188E(
*---------------------------------------------------------------------------*/
void
PHY_SetTxPowerLevel8188E(
IN PADAPTER Adapter,
IN u8 Channel
PADAPTER Adapter,
u8 Channel
)
{
/* RTW_INFO("==>PHY_SetTxPowerLevel8188E()\n"); */
@ -986,10 +986,10 @@ PHY_SetTxPowerLevel8188E(
void
PHY_SetTxPowerIndex_8188E(
IN PADAPTER Adapter,
IN u32 PowerIndex,
IN u8 RFPath,
IN u8 Rate
PADAPTER Adapter,
u32 PowerIndex,
u8 RFPath,
u8 Rate
)
{
if (RFPath == ODM_RF_PATH_A) {
@ -1192,8 +1192,8 @@ PHY_SetTxPowerIndex_8188E(
static u8
phy_GetCurrentTxNum_8188E(
IN PADAPTER pAdapter,
IN u8 Rate
PADAPTER pAdapter,
u8 Rate
)
{
u8 tmpByte = 0;
@ -1209,10 +1209,10 @@ phy_GetCurrentTxNum_8188E(
}
static s8 tx_power_extra_bias(
IN u8 RFPath,
IN u8 Rate,
IN CHANNEL_WIDTH BandWidth,
IN u8 Channel
u8 RFPath,
u8 Rate,
CHANNEL_WIDTH BandWidth,
u8 Channel
)
{
s8 bias = 0;
@ -1225,11 +1225,11 @@ static s8 tx_power_extra_bias(
u8
PHY_GetTxPowerIndex_8188E(
IN PADAPTER pAdapter,
IN u8 RFPath,
IN u8 Rate,
IN u8 BandWidth,
IN u8 Channel,
PADAPTER pAdapter,
u8 RFPath,
u8 Rate,
u8 BandWidth,
u8 Channel,
struct txpwr_idx_comp *tic
)
{
@ -1276,8 +1276,8 @@ PHY_GetTxPowerIndex_8188E(
* */
BOOLEAN
PHY_UpdateTxPowerDbm8188E(
IN PADAPTER Adapter,
IN int powerInDbm
PADAPTER Adapter,
int powerInDbm
)
{
return _TRUE;
@ -1285,15 +1285,15 @@ PHY_UpdateTxPowerDbm8188E(
static void
PHY_ScanOperationBackup8188E(
IN PADAPTER Adapter,
IN u8 Operation
PADAPTER Adapter,
u8 Operation
)
{
}
static void
phy_SpurCalibration_8188E(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -1332,7 +1332,7 @@ phy_SpurCalibration_8188E(
*---------------------------------------------------------------------------*/
static void
_PHY_SetBWMode88E(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
/* PADAPTER Adapter = (PADAPTER)pTimer->Adapter; */
@ -1467,9 +1467,9 @@ _PHY_SetBWMode88E(
void
PHY_SetBWMode8188E(
IN PADAPTER Adapter,
IN CHANNEL_WIDTH Bandwidth, /* 20M or 40M */
IN unsigned char Offset /* Upper, Lower, or Don't care */
PADAPTER Adapter,
CHANNEL_WIDTH Bandwidth, /* 20M or 40M */
unsigned char Offset /* Upper, Lower, or Don't care */
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -1539,8 +1539,8 @@ static void _PHY_SwChnl8188E(PADAPTER Adapter, u8 channel)
}
void
PHY_SwChnl8188E(/* Call after initialization */
IN PADAPTER Adapter,
IN u8 channel
PADAPTER Adapter,
u8 channel
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -1590,11 +1590,11 @@ PHY_SwChnl8188E(/* Call after initialization */
void
PHY_SetSwChnlBWMode8188E(
IN PADAPTER Adapter,
IN u8 channel,
IN CHANNEL_WIDTH Bandwidth,
IN u8 Offset40,
IN u8 Offset80
PADAPTER Adapter,
u8 channel,
CHANNEL_WIDTH Bandwidth,
u8 Offset40,
u8 Offset80
)
{
/* RTW_INFO("%s()===>\n",__func__); */
@ -1606,9 +1606,9 @@ PHY_SetSwChnlBWMode8188E(
}
static void _PHY_SetRFPathSwitch(
IN PADAPTER pAdapter,
IN BOOLEAN bMain,
IN BOOLEAN is2T
PADAPTER pAdapter,
BOOLEAN bMain,
BOOLEAN is2T
)
{
u8 u1bTmp;
@ -1638,8 +1638,8 @@ static void _PHY_SetRFPathSwitch(
/* return value TRUE => Main; FALSE => Aux */
static BOOLEAN _PHY_QueryRFPathSwitch(
IN PADAPTER pAdapter,
IN BOOLEAN is2T
PADAPTER pAdapter,
BOOLEAN is2T
)
{
/* if(is2T)
@ -1665,7 +1665,7 @@ static BOOLEAN _PHY_QueryRFPathSwitch(
static void
_PHY_DumpRFReg(IN PADAPTER pAdapter)
_PHY_DumpRFReg(PADAPTER pAdapter)
{
u32 rfRegValue, rfRegOffset;
@ -1708,7 +1708,7 @@ static void DumpBBDbgPort_92CU(PADAPTER Adapter)
void
PHY_SetRFEReg_8188E(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
u8 u1tmp = 0;

View file

@ -75,8 +75,8 @@
* Firmwaer support the utility later.
*
*---------------------------------------------------------------------------*/
void rtl8188e_RF_ChangeTxPath(IN PADAPTER Adapter,
IN u16 DataRate)
void rtl8188e_RF_ChangeTxPath(PADAPTER Adapter,
u16 DataRate)
{
/* We do not support gain table change inACUT now !!!! Delete later !!! */
} /* RF_ChangeTxPath */
@ -97,8 +97,8 @@ void rtl8188e_RF_ChangeTxPath(IN PADAPTER Adapter,
*---------------------------------------------------------------------------*/
void
rtl8188e_PHY_RF6052SetBandwidth(
IN PADAPTER Adapter,
IN CHANNEL_WIDTH Bandwidth) /* 20M or 40M */
PADAPTER Adapter,
CHANNEL_WIDTH Bandwidth) /* 20M or 40M */
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -121,7 +121,7 @@ rtl8188e_PHY_RF6052SetBandwidth(
static int
phy_RF6052_Config_ParaFile(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
u32 u4RegValue = 0;
@ -237,7 +237,7 @@ phy_RF6052_Config_ParaFile_Fail:
int
PHY_RF6052_Config8188E(
IN PADAPTER Adapter)
PADAPTER Adapter)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
int rtStatus = _SUCCESS;

View file

@ -25,8 +25,8 @@
static void
_ConfigNormalChipOutEP_8188E(
IN PADAPTER pAdapter,
IN u8 NumOutPipe
PADAPTER pAdapter,
u8 NumOutPipe
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
@ -53,9 +53,9 @@ _ConfigNormalChipOutEP_8188E(
}
static BOOLEAN HalUsbSetQueuePipeMapping8188EUsb(
IN PADAPTER pAdapter,
IN u8 NumInPipe,
IN u8 NumOutPipe
PADAPTER pAdapter,
u8 NumInPipe,
u8 NumOutPipe
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
@ -246,7 +246,7 @@ static void _InitBTCoexist(_adapter *padapter)
/* Shall USB interface init this? */
static void
_InitInterrupt(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
u32 imr, imr_ex;
@ -291,7 +291,7 @@ _InitInterrupt(
static void
_InitQueueReservedPage(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -339,8 +339,8 @@ _InitQueueReservedPage(
static void
_InitTxBufferBoundary(
IN PADAPTER Adapter,
IN u8 txpktbuf_bndy
PADAPTER Adapter,
u8 txpktbuf_bndy
)
{
struct registry_priv *pregistrypriv = &Adapter->registrypriv;
@ -358,7 +358,7 @@ _InitTxBufferBoundary(
static void
_InitPageBoundary(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
/* RX Page Boundary */
@ -371,13 +371,13 @@ _InitPageBoundary(
static void
_InitNormalChipRegPriority(
IN PADAPTER Adapter,
IN u16 beQ,
IN u16 bkQ,
IN u16 viQ,
IN u16 voQ,
IN u16 mgtQ,
IN u16 hiQ
PADAPTER Adapter,
u16 beQ,
u16 bkQ,
u16 viQ,
u16 voQ,
u16 mgtQ,
u16 hiQ
)
{
u16 value16 = (rtw_read16(Adapter, REG_TRXDMA_CTRL) & 0x7);
@ -391,7 +391,7 @@ _InitNormalChipRegPriority(
static void
_InitNormalChipOneOutEpPriority(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -425,7 +425,7 @@ _InitNormalChipOneOutEpPriority(
static void
_InitNormalChipTwoOutEpPriority(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -475,7 +475,7 @@ _InitNormalChipTwoOutEpPriority(
static void
_InitNormalChipThreeOutEpPriority(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
struct registry_priv *pregistrypriv = &Adapter->registrypriv;
@ -501,7 +501,7 @@ _InitNormalChipThreeOutEpPriority(
static void
_InitQueuePriority(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -525,7 +525,7 @@ _InitQueuePriority(
static void
_InitHardwareDropIncorrectBulkOut(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
#ifdef ENABLE_USB_DROP_INCORRECT_OUT
@ -537,7 +537,7 @@ _InitHardwareDropIncorrectBulkOut(
static void
_InitNetworkType(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
u32 value32;
@ -552,8 +552,8 @@ _InitNetworkType(
static void
_InitDriverInfoSize(
IN PADAPTER Adapter,
IN u8 drvInfoSize
PADAPTER Adapter,
u8 drvInfoSize
)
{
rtw_write8(Adapter, REG_RX_DRVINFO_SZ, drvInfoSize);
@ -561,7 +561,7 @@ _InitDriverInfoSize(
static void
_InitWMACSetting(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
/* u4Byte value32; */
@ -606,7 +606,7 @@ _InitWMACSetting(
static void
_InitAdaptiveCtrl(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
u16 value16;
@ -633,7 +633,7 @@ _InitAdaptiveCtrl(
static void
_InitRateFallback(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
/* Set Data Auto Rate Fallback Retry Count register. */
@ -646,7 +646,7 @@ _InitRateFallback(
static void
_InitEDCA(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
/* Set Spec SIFS (used in NAV) */
@ -668,8 +668,8 @@ _InitEDCA(
static void
_InitBeaconMaxError(
IN PADAPTER Adapter,
IN BOOLEAN InfraMode
PADAPTER Adapter,
BOOLEAN InfraMode
)
{
@ -692,7 +692,7 @@ static void _InitHWLed(PADAPTER Adapter)
static void
_InitRDGSetting(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
rtw_write8(Adapter, REG_RD_CTRL, 0xFF);
@ -702,7 +702,7 @@ _InitRDGSetting(
static void
_InitRetryFunction(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
u8 value8;
@ -732,7 +732,7 @@ _InitRetryFunction(
*---------------------------------------------------------------------------*/
static void
usb_AggSettingTxUpdate(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
#ifdef CONFIG_USB_TX_AGGREGATION
@ -771,7 +771,7 @@ usb_AggSettingTxUpdate(
*---------------------------------------------------------------------------*/
static void
usb_AggSettingRxUpdate(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
#ifdef CONFIG_USB_RX_AGGREGATION
@ -854,7 +854,7 @@ usb_AggSettingRxUpdate(
static void
InitUsbAggregationSetting(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -871,8 +871,8 @@ InitUsbAggregationSetting(
static void
HalRxAggr8188EUsb(
IN PADAPTER Adapter,
IN BOOLEAN Value
PADAPTER Adapter,
BOOLEAN Value
)
{
}
@ -898,21 +898,21 @@ HalRxAggr8188EUsb(
*---------------------------------------------------------------------------*/
static void
USB_AggModeSwitch(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
} /* USB_AggModeSwitch */
static void
_InitOperationMode(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
}
static void
_InitBeaconParameters(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -944,7 +944,7 @@ _InitBeaconParameters(
static void
_InitRFType(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
struct registry_priv *pregpriv = &Adapter->registrypriv;
@ -965,9 +965,9 @@ _InitRFType(
static void
_BeaconFunctionEnable(
IN PADAPTER Adapter,
IN BOOLEAN Enable,
IN BOOLEAN Linked
PADAPTER Adapter,
BOOLEAN Enable,
BOOLEAN Linked
)
{
rtw_write8(Adapter, REG_BCN_CTRL, (BIT4 | BIT3 | BIT1));
@ -978,7 +978,7 @@ _BeaconFunctionEnable(
/* Set CCK and OFDM Block "ON" */
static void _BBTurnOnBlock(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
#if (DISABLE_BB_RF)
@ -990,7 +990,7 @@ static void _BBTurnOnBlock(
}
static void _RfPowerSave(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
}
@ -1001,7 +1001,7 @@ enum {
};
static void
_InitAntenna_Selection(IN PADAPTER Adapter)
_InitAntenna_Selection(PADAPTER Adapter)
{
#ifdef CONFIG_ANTENNA_DIVERSITY
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -1022,12 +1022,12 @@ _InitAntenna_Selection(IN PADAPTER Adapter)
* */
static void
HalDetectSelectiveSuspendMode(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
} /* HalDetectSelectiveSuspendMode */
rt_rf_power_state RfOnOffDetect(IN PADAPTER pAdapter)
rt_rf_power_state RfOnOffDetect(PADAPTER pAdapter)
{
struct pwrctrl_priv *pwrctl = adapter_to_pwrctl(pAdapter);
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
@ -1492,7 +1492,7 @@ static void _ps_close_RF(_adapter *padapter)
static void
hal_poweroff_8188eu(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
@ -1680,9 +1680,9 @@ static unsigned int rtl8188eu_inirp_deinit(PADAPTER Adapter)
static void
_ReadLEDSetting(
IN PADAPTER Adapter,
IN u8 *PROMContent,
IN BOOLEAN AutoloadFail
PADAPTER Adapter,
u8 *PROMContent,
BOOLEAN AutoloadFail
)
{
struct led_priv *pledpriv = &(Adapter->ledpriv);
@ -1703,25 +1703,25 @@ _ReadLEDSetting(
static void
_ReadRFSetting(
IN PADAPTER Adapter,
IN u8 *PROMContent,
IN BOOLEAN AutoloadFail
PADAPTER Adapter,
u8 *PROMContent,
BOOLEAN AutoloadFail
)
{
}
static void
hal_InitPGData(
IN PADAPTER pAdapter,
IN OUT u8 *PROMContent
PADAPTER pAdapter,
u8 *PROMContent
)
{
}
static void
Hal_EfuseParsePIDVID_8188EU(
IN PADAPTER pAdapter,
IN u8 *hwinfo,
IN BOOLEAN AutoLoadFail
PADAPTER pAdapter,
u8 *hwinfo,
BOOLEAN AutoLoadFail
)
{
@ -1752,14 +1752,14 @@ Hal_EfuseParsePIDVID_8188EU(
static void
Hal_CustomizeByCustomerID_8188EU(
IN PADAPTER padapter
PADAPTER padapter
)
{
}
static void
readAdapterInfo_8188EU(
IN PADAPTER padapter
PADAPTER padapter
)
{
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(padapter);
@ -1790,7 +1790,7 @@ readAdapterInfo_8188EU(
}
static void _ReadPROMContent(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
@ -1812,7 +1812,7 @@ static void _ReadPROMContent(
static void
_ReadRFType(
IN PADAPTER Adapter
PADAPTER Adapter
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -1918,9 +1918,9 @@ static void GetHwReg8188EU(PADAPTER Adapter, u8 variable, u8 *val)
* */
static u8
GetHalDefVar8188EUsb(
IN PADAPTER Adapter,
IN HAL_DEF_VARIABLE eVariable,
IN void * pValue
PADAPTER Adapter,
HAL_DEF_VARIABLE eVariable,
void * pValue
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -1955,9 +1955,9 @@ GetHalDefVar8188EUsb(
* */
static u8
SetHalDefVar8188EUsb(
IN PADAPTER Adapter,
IN HAL_DEF_VARIABLE eVariable,
IN void * pValue
PADAPTER Adapter,
HAL_DEF_VARIABLE eVariable,
void * pValue
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);

View file

@ -60,129 +60,129 @@
/*
* BB and RF register read/write
* */
u32 PHY_QueryBBReg8188E(IN PADAPTER Adapter,
IN u32 RegAddr,
IN u32 BitMask);
void PHY_SetBBReg8188E(IN PADAPTER Adapter,
IN u32 RegAddr,
IN u32 BitMask,
IN u32 Data);
u32 PHY_QueryRFReg8188E(IN PADAPTER Adapter,
IN u8 eRFPath,
IN u32 RegAddr,
IN u32 BitMask);
void PHY_SetRFReg8188E(IN PADAPTER Adapter,
IN u8 eRFPath,
IN u32 RegAddr,
IN u32 BitMask,
IN u32 Data);
u32 PHY_QueryBBReg8188E(PADAPTER Adapter,
u32 RegAddr,
u32 BitMask);
void PHY_SetBBReg8188E(PADAPTER Adapter,
u32 RegAddr,
u32 BitMask,
u32 Data);
u32 PHY_QueryRFReg8188E(PADAPTER Adapter,
u8 eRFPath,
u32 RegAddr,
u32 BitMask);
void PHY_SetRFReg8188E(PADAPTER Adapter,
u8 eRFPath,
u32 RegAddr,
u32 BitMask,
u32 Data);
/*
* Initialization related function
*/
/* MAC/BB/RF HAL config */
int PHY_MACConfig8188E(IN PADAPTER Adapter);
int PHY_BBConfig8188E(IN PADAPTER Adapter);
int PHY_RFConfig8188E(IN PADAPTER Adapter);
int PHY_MACConfig8188E(PADAPTER Adapter);
int PHY_BBConfig8188E(PADAPTER Adapter);
int PHY_RFConfig8188E(PADAPTER Adapter);
/* 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
*/
/* extern BOOLEAN PHY_SetRFPowerState(IN PADAPTER Adapter,
* IN RT_RF_POWER_STATE eRFPowerState); */
/* extern BOOLEAN PHY_SetRFPowerState(PADAPTER Adapter,
* RT_RF_POWER_STATE eRFPowerState); */
/*
* BB TX Power R/W
* */
void PHY_GetTxPowerLevel8188E(IN PADAPTER Adapter,
OUT s32 *powerlevel);
void PHY_SetTxPowerLevel8188E(IN PADAPTER Adapter,
IN u8 channel);
BOOLEAN PHY_UpdateTxPowerDbm8188E(IN PADAPTER Adapter,
IN int powerInDbm);
void PHY_GetTxPowerLevel8188E(PADAPTER Adapter,
s32 *powerlevel);
void PHY_SetTxPowerLevel8188E(PADAPTER Adapter,
u8 channel);
BOOLEAN PHY_UpdateTxPowerDbm8188E(PADAPTER Adapter,
int powerInDbm);
void
PHY_SetTxPowerIndex_8188E(
IN PADAPTER Adapter,
IN u32 PowerIndex,
IN u8 RFPath,
IN u8 Rate
PADAPTER Adapter,
u32 PowerIndex,
u8 RFPath,
u8 Rate
);
u8
PHY_GetTxPowerIndex_8188E(
IN PADAPTER pAdapter,
IN u8 RFPath,
IN u8 Rate,
IN u8 BandWidth,
IN u8 Channel,
PADAPTER pAdapter,
u8 RFPath,
u8 Rate,
u8 BandWidth,
u8 Channel,
struct txpwr_idx_comp *tic
);
/*
* Switch bandwidth for 8192S
*/
/* extern void PHY_SetBWModeCallback8192C( IN PRT_TIMER pTimer ); */
void PHY_SetBWMode8188E(IN PADAPTER pAdapter,
IN CHANNEL_WIDTH ChnlWidth,
IN unsigned char Offset);
/* extern void PHY_SetBWModeCallback8192C( PRT_TIMER pTimer ); */
void PHY_SetBWMode8188E(PADAPTER pAdapter,
CHANNEL_WIDTH ChnlWidth,
unsigned char Offset);
/*
* Set FW CMD IO for 8192S.
*/
/* extern BOOLEAN HalSetIO8192C( IN PADAPTER Adapter,
* IN IO_TYPE IOType); */
/* extern BOOLEAN HalSetIO8192C(PADAPTER Adapter,
* IO_TYPE IOType); */
/*
* Set A2 entry to fw for 8192S
* */
extern void FillA2Entry8192C(IN PADAPTER Adapter,
IN u8 index,
IN u8 *val);
extern void FillA2Entry8192C(PADAPTER Adapter,
u8 index,
u8 *val);
/*
* channel switch related funciton
*/
/* extern void PHY_SwChnlCallback8192C( IN PRT_TIMER pTimer ); */
void PHY_SwChnl8188E(IN PADAPTER pAdapter,
IN u8 channel);
/* extern void PHY_SwChnlCallback8192C( PRT_TIMER pTimer ); */
void PHY_SwChnl8188E(PADAPTER pAdapter,
u8 channel);
void
PHY_SetSwChnlBWMode8188E(
IN PADAPTER Adapter,
IN u8 channel,
IN CHANNEL_WIDTH Bandwidth,
IN u8 Offset40,
IN u8 Offset80
PADAPTER Adapter,
u8 channel,
CHANNEL_WIDTH Bandwidth,
u8 Offset40,
u8 Offset80
);
void
PHY_SetRFEReg_8188E(
IN PADAPTER Adapter
PADAPTER Adapter
);
/*
* 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
PHY_SwitchEphyParameter(
IN PADAPTER Adapter
PADAPTER Adapter
);
extern void
PHY_EnableHostClkReq(
IN PADAPTER Adapter
PADAPTER Adapter
);
BOOLEAN
SetAntennaConfig92C(
IN PADAPTER Adapter,
IN u8 DefaultAnt
PADAPTER Adapter,
u8 DefaultAnt
);
/*--------------------------Exported Function prototype---------------------*/
@ -239,7 +239,7 @@ SetAntennaConfig92C(
#endif
#if (SIC_ENABLE == 1)
void SIC_Init(IN PADAPTER Adapter);
void SIC_Init(PADAPTER Adapter);
#endif

View file

@ -42,8 +42,6 @@
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/utsname.h>
#define IN
#define OUT
#define NDIS_OID uint
#define NDIS_STATUS uint

View file

@ -348,21 +348,21 @@ u8 hal_largest_bw(_adapter *adapter, u8 in_bw);
bool hal_chk_wl_func(_adapter *adapter, u8 func);
u8 hal_com_config_channel_plan(
IN PADAPTER padapter,
IN char *hw_alpha2,
IN u8 hw_chplan,
IN char *sw_alpha2,
IN u8 sw_chplan,
IN u8 def_chplan,
IN BOOLEAN AutoLoadFail
PADAPTER padapter,
char *hw_alpha2,
u8 hw_chplan,
char *sw_alpha2,
u8 sw_chplan,
u8 def_chplan,
BOOLEAN AutoLoadFail
);
int hal_config_macaddr(_adapter *adapter, bool autoload_fail);
BOOLEAN
HAL_IsLegalChannel(
IN PADAPTER Adapter,
IN u32 Channel
PADAPTER Adapter,
u32 Channel
);
u8 MRateToHwRate(u8 rate);
@ -370,14 +370,14 @@ u8 MRateToHwRate(u8 rate);
u8 hw_rate_to_m_rate(u8 rate);
void HalSetBrateCfg(
IN PADAPTER Adapter,
IN u8 *mBratesOS,
OUT u16 *pBrateCfg);
PADAPTER Adapter,
u8 *mBratesOS,
u16 *pBrateCfg);
BOOLEAN
Hal_MappingOutPipe(
IN PADAPTER pAdapter,
IN u8 NumOutPipe
PADAPTER pAdapter,
u8 NumOutPipe
);
void rtw_dump_fw_info(void *sel, _adapter *adapter);
@ -433,42 +433,42 @@ eqNByte(
u32
MapCharToHexDigit(
IN char chTmp
char chTmp
);
BOOLEAN
GetHexValueFromString(
IN char *szStr,
IN OUT u32 *pu4bVal,
IN OUT u32 *pu4bMove
char *szStr,
u32 *pu4bVal,
u32 *pu4bMove
);
BOOLEAN
GetFractionValueFromString(
IN char *szStr,
IN OUT u8 *pInteger,
IN OUT u8 *pFraction,
IN OUT u32 *pu4bMove
char *szStr,
u8 *pInteger,
u8 *pFraction,
u32 *pu4bMove
);
BOOLEAN
IsCommentString(
IN char *szStr
char *szStr
);
BOOLEAN
ParseQualifiedString(
IN char *In,
IN OUT u32 *Start,
OUT char *Out,
IN char LeftQualifier,
IN char RightQualifier
char *In,
u32 *Start,
char *Out,
char LeftQualifier,
char RightQualifier
);
BOOLEAN
GetU1ByteIntegerFromStringInDecimal(
IN char *Str,
IN OUT u8 *pInt
char *Str,
u8 *pInt
);
BOOLEAN

View file

@ -72,8 +72,8 @@
#define LED_WPS_BLINK_ON_INTERVAL_NETGEAR 500
/* Belkin AC950 */
#define LED_BLINK_LINK_INTERVAL_ON_BELKIN 200
#define LED_BLINK_LINK_INTERVAL_OFF_BELKIN 100
#define LED_BLINK_LINK_INTERVAL_ON_BELKIN 200
#define LED_BLINK_LINK_INTERVAL_OFF_BELKIN 100
#define LED_BLINK_ERROR_INTERVAL_BELKIN 100
/* by chiyokolin for Azurewave */
@ -189,7 +189,7 @@ typedef enum _LED_STRATEGY_USB {
typedef struct _LED_USB {
PADAPTER padapter;
LED_PIN LedPin; /* Identify how to implement this SW led. */
LED_PIN LedPin; /* Identify how to implement this SW led. */
LED_STATE CurrLedState; /* Current LED state. */
BOOLEAN bLedOn; /* TRUE if LED is ON, FALSE if LED is OFF. */
@ -218,8 +218,8 @@ typedef enum _LED_STRATEGY_USB LED_STRATEGY, *PLED_STRATEGY;
void
LedControlUSB(
IN PADAPTER Adapter,
IN LED_CTL_MODE LedAction
PADAPTER Adapter,
LED_CTL_MODE LedAction
);
struct led_priv {
@ -270,7 +270,7 @@ void
InitLed(
_adapter *padapter,
PLED_DATA pLed,
LED_PIN LedPin
LED_PIN LedPin
);
void

View file

@ -76,167 +76,167 @@ typedef struct _BB_REGISTER_DEFINITION {
/* ---------------------------------------------------------------------- */
u8
PHY_GetTxPowerByRateBase(
IN PADAPTER Adapter,
IN u8 Band,
IN u8 RfPath,
IN u8 TxNum,
IN RATE_SECTION RateSection
PADAPTER Adapter,
u8 Band,
u8 RfPath,
u8 TxNum,
RATE_SECTION RateSection
);
void
PHY_GetRateValuesOfTxPowerByRate(
IN PADAPTER pAdapter,
IN u32 RegAddr,
IN u32 BitMask,
IN u32 Value,
OUT u8 *Rate,
OUT s8 *PwrByRateVal,
OUT u8 *RateNum
PADAPTER pAdapter,
u32 RegAddr,
u32 BitMask,
u32 Value,
u8 *Rate,
s8 *PwrByRateVal,
u8 *RateNum
);
u8
PHY_GetRateIndexOfTxPowerByRate(
IN u8 Rate
u8 Rate
);
void
phy_set_tx_power_index_by_rate_section(
IN PADAPTER pAdapter,
IN u8 RFPath,
IN u8 Channel,
IN u8 RateSection
PADAPTER pAdapter,
u8 RFPath,
u8 Channel,
u8 RateSection
);
s8
_PHY_GetTxPowerByRate(
IN PADAPTER pAdapter,
IN u8 Band,
IN u8 RFPath,
IN u8 TxNum,
IN u8 RateIndex
PADAPTER pAdapter,
u8 Band,
u8 RFPath,
u8 TxNum,
u8 RateIndex
);
s8
PHY_GetTxPowerByRate(
IN PADAPTER pAdapter,
IN u8 Band,
IN u8 RFPath,
IN u8 TxNum,
IN u8 RateIndex
PADAPTER pAdapter,
u8 Band,
u8 RFPath,
u8 TxNum,
u8 RateIndex
);
#ifdef CONFIG_PHYDM_POWERTRACK_BY_TSSI
s8
PHY_GetTxPowerByRateOriginal(
IN PADAPTER pAdapter,
IN u8 Band,
IN u8 RFPath,
IN u8 TxNum,
IN u8 Rate
PADAPTER pAdapter,
u8 Band,
u8 RFPath,
u8 TxNum,
u8 Rate
);
#endif
void
PHY_SetTxPowerByRate(
IN PADAPTER pAdapter,
IN u8 Band,
IN u8 RFPath,
IN u8 TxNum,
IN u8 Rate,
IN s8 Value
PADAPTER pAdapter,
u8 Band,
u8 RFPath,
u8 TxNum,
u8 Rate,
s8 Value
);
void
phy_set_tx_power_level_by_path(
IN PADAPTER Adapter,
IN u8 channel,
IN u8 path
PADAPTER Adapter,
u8 channel,
u8 path
);
void
PHY_SetTxPowerIndexByRateArray(
IN PADAPTER pAdapter,
IN u8 RFPath,
IN CHANNEL_WIDTH BandWidth,
IN u8 Channel,
IN u8 *Rates,
IN u8 RateArraySize
PADAPTER pAdapter,
u8 RFPath,
CHANNEL_WIDTH BandWidth,
u8 Channel,
u8 *Rates,
u8 RateArraySize
);
void
PHY_InitTxPowerByRate(
IN PADAPTER pAdapter
PADAPTER pAdapter
);
void
phy_store_tx_power_by_rate(
IN PADAPTER pAdapter,
IN u32 Band,
IN u32 RfPath,
IN u32 TxNum,
IN u32 RegAddr,
IN u32 BitMask,
IN u32 Data
PADAPTER pAdapter,
u32 Band,
u32 RfPath,
u32 TxNum,
u32 RegAddr,
u32 BitMask,
u32 Data
);
void
PHY_TxPowerByRateConfiguration(
IN PADAPTER pAdapter
PADAPTER pAdapter
);
u8
PHY_GetTxPowerIndexBase(
IN PADAPTER pAdapter,
IN u8 RFPath,
IN u8 Rate,
IN CHANNEL_WIDTH BandWidth,
IN u8 Channel,
OUT PBOOLEAN bIn24G
PADAPTER pAdapter,
u8 RFPath,
u8 Rate,
CHANNEL_WIDTH BandWidth,
u8 Channel,
PBOOLEAN bIn24G
);
s8
PHY_GetTxPowerLimit(
IN PADAPTER Adapter,
IN u32 RegPwrTblSel,
IN BAND_TYPE Band,
IN CHANNEL_WIDTH Bandwidth,
IN u8 RfPath,
IN u8 DataRate,
IN u8 Channel
PADAPTER Adapter,
u32 RegPwrTblSel,
BAND_TYPE Band,
CHANNEL_WIDTH Bandwidth,
u8 RfPath,
u8 DataRate,
u8 Channel
);
s8
PHY_GetTxPowerLimit_no_sc(
IN PADAPTER Adapter,
IN u32 RegPwrTblSel,
IN BAND_TYPE Band,
IN CHANNEL_WIDTH Bandwidth,
IN u8 RfPath,
IN u8 DataRate,
IN u8 Channel
PADAPTER Adapter,
u32 RegPwrTblSel,
BAND_TYPE Band,
CHANNEL_WIDTH Bandwidth,
u8 RfPath,
u8 DataRate,
u8 Channel
);
#ifdef CONFIG_PHYDM_POWERTRACK_BY_TSSI
s8
PHY_GetTxPowerLimitOriginal(
IN PADAPTER Adapter,
IN u32 RegPwrTblSel,
IN BAND_TYPE Band,
IN CHANNEL_WIDTH Bandwidth,
IN u8 RfPath,
IN u8 DataRate,
IN u8 Channel
PADAPTER Adapter,
u32 RegPwrTblSel,
BAND_TYPE Band,
CHANNEL_WIDTH Bandwidth,
u8 RfPath,
u8 DataRate,
u8 Channel
);
#endif
void
PHY_ConvertTxPowerLimitToPowerIndex(
IN PADAPTER Adapter
PADAPTER Adapter
);
void
PHY_InitTxPowerLimit(
IN PADAPTER Adapter
PADAPTER Adapter
);
s8
@ -256,19 +256,19 @@ struct txpwr_idx_comp {
u8
phy_get_tx_power_index(
IN PADAPTER pAdapter,
IN u8 RFPath,
IN u8 Rate,
IN CHANNEL_WIDTH BandWidth,
IN u8 Channel
PADAPTER pAdapter,
u8 RFPath,
u8 Rate,
CHANNEL_WIDTH BandWidth,
u8 Channel
);
void
PHY_SetTxPowerIndex(
IN PADAPTER pAdapter,
IN u32 PowerIndex,
IN u8 RFPath,
IN u8 Rate
PADAPTER pAdapter,
u32 PowerIndex,
u8 RFPath,
u8 Rate
);
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_LMT_PARA_FILE BIT6
int phy_ConfigMACWithParaFile(IN PADAPTER Adapter, IN char *pFileName);
int phy_ConfigBBWithParaFile(IN PADAPTER Adapter, IN char *pFileName, IN u32 ConfigType);
int phy_ConfigBBWithPgParaFile(IN PADAPTER Adapter, IN const char *pFileName);
int phy_ConfigBBWithMpParaFile(IN PADAPTER Adapter, IN char *pFileName);
int PHY_ConfigRFWithParaFile(IN PADAPTER Adapter, IN char *pFileName, IN u8 eRFPath);
int PHY_ConfigRFWithTxPwrTrackParaFile(IN PADAPTER Adapter, IN char *pFileName);
int PHY_ConfigRFWithPowerLimitTableParaFile(IN PADAPTER Adapter, IN const char *pFileName);
int phy_ConfigMACWithParaFile(PADAPTER Adapter, char *pFileName);
int phy_ConfigBBWithParaFile(PADAPTER Adapter, char *pFileName, u32 ConfigType);
int phy_ConfigBBWithPgParaFile(PADAPTER Adapter, const char *pFileName);
int phy_ConfigBBWithMpParaFile(PADAPTER Adapter, char *pFileName);
int PHY_ConfigRFWithParaFile(PADAPTER Adapter, char *pFileName, u8 eRFPath);
int PHY_ConfigRFWithTxPwrTrackParaFile(PADAPTER Adapter, char *pFileName);
int PHY_ConfigRFWithPowerLimitTableParaFile(PADAPTER Adapter, const char *pFileName);
void phy_free_filebuf_mask(_adapter *padapter, u8 mask);
void phy_free_filebuf(_adapter *padapter);
#endif /* CONFIG_LOAD_PHY_PARA_FROM_FILE */

View file

@ -183,61 +183,61 @@ PHY_CalculateBitShift(
u32
PHY_RFShadowRead(
IN PADAPTER Adapter,
IN u8 eRFPath,
IN u32 Offset);
PADAPTER Adapter,
u8 eRFPath,
u32 Offset);
void
PHY_RFShadowWrite(
IN PADAPTER Adapter,
IN u8 eRFPath,
IN u32 Offset,
IN u32 Data);
PADAPTER Adapter,
u8 eRFPath,
u32 Offset,
u32 Data);
BOOLEAN
PHY_RFShadowCompare(
IN PADAPTER Adapter,
IN u8 eRFPath,
IN u32 Offset);
PADAPTER Adapter,
u8 eRFPath,
u32 Offset);
void
PHY_RFShadowRecorver(
IN PADAPTER Adapter,
IN u8 eRFPath,
IN u32 Offset);
PADAPTER Adapter,
u8 eRFPath,
u32 Offset);
void
PHY_RFShadowCompareAll(
IN PADAPTER Adapter);
PADAPTER Adapter);
void
PHY_RFShadowRecorverAll(
IN PADAPTER Adapter);
PADAPTER Adapter);
void
PHY_RFShadowCompareFlagSet(
IN PADAPTER Adapter,
IN u8 eRFPath,
IN u32 Offset,
IN u8 Type);
PADAPTER Adapter,
u8 eRFPath,
u32 Offset,
u8 Type);
void
PHY_RFShadowRecorverFlagSet(
IN PADAPTER Adapter,
IN u8 eRFPath,
IN u32 Offset,
IN u8 Type);
PADAPTER Adapter,
u8 eRFPath,
u32 Offset,
u8 Type);
void
PHY_RFShadowCompareFlagSetAll(
IN PADAPTER Adapter);
PADAPTER Adapter);
void
PHY_RFShadowRecorverFlagSetAll(
IN PADAPTER Adapter);
PADAPTER Adapter);
void
PHY_RFShadowRefresh(
IN PADAPTER Adapter);
PADAPTER Adapter);
#endif /* __HAL_COMMON_H__ */

View file

@ -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 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);

View file

@ -20,10 +20,10 @@
#ifndef __RTL8188E_DM_H__
#define __RTL8188E_DM_H__
void rtl8188e_init_dm_priv(IN PADAPTER Adapter);
void rtl8188e_deinit_dm_priv(IN PADAPTER Adapter);
void rtl8188e_InitHalDm(IN PADAPTER Adapter);
void rtl8188e_HalDmWatchDog(IN PADAPTER Adapter);
void rtl8188e_init_dm_priv(PADAPTER Adapter);
void rtl8188e_deinit_dm_priv(PADAPTER Adapter);
void rtl8188e_InitHalDm(PADAPTER Adapter);
void rtl8188e_HalDmWatchDog(PADAPTER Adapter);
/* void rtl8192c_dm_CheckTXPowerTracking(IN PADAPTER Adapter); */

View file

@ -283,9 +283,9 @@ void GetHwReg8188E(PADAPTER padapter, u8 variable, u8 *val);
u8
GetHalDefVar8188E(
IN PADAPTER Adapter,
IN HAL_DEF_VARIABLE eVariable,
IN void * pValue
PADAPTER Adapter,
HAL_DEF_VARIABLE eVariable,
void * pValue
);
#ifdef CONFIG_GPIO_API
int rtl8188e_GpioFuncCheck(PADAPTER adapter, u8 gpio_num);

View file

@ -22,11 +22,11 @@
int PHY_RF6052_Config8188E(IN PADAPTER Adapter);
void rtl8188e_RF_ChangeTxPath(IN PADAPTER Adapter,
IN u16 DataRate);
int PHY_RF6052_Config8188E(PADAPTER Adapter);
void rtl8188e_RF_ChangeTxPath(PADAPTER Adapter,
u16 DataRate);
void rtl8188e_PHY_RF6052SetBandwidth(
IN PADAPTER Adapter,
IN CHANNEL_WIDTH Bandwidth);
PADAPTER Adapter,
CHANNEL_WIDTH Bandwidth);
#endif/* __RTL8188E_RF_H__ */

View file

@ -164,21 +164,21 @@ extern struct iw_handler_def rtw_handlers_def;
extern void rtw_request_wps_pbc_event(_adapter *padapter);
extern NDIS_STATUS drv_query_info(
IN _nic_hdl MiniportAdapterContext,
IN NDIS_OID Oid,
IN void *InformationBuffer,
IN u32 InformationBufferLength,
OUT u32 *BytesWritten,
OUT u32 *BytesNeeded
_nic_hdl MiniportAdapterContext,
NDIS_OID Oid,
void *InformationBuffer,
u32 InformationBufferLength,
u32 *BytesWritten,
u32 *BytesNeeded
);
extern NDIS_STATUS drv_set_info(
IN _nic_hdl MiniportAdapterContext,
IN NDIS_OID Oid,
IN void *InformationBuffer,
IN u32 InformationBufferLength,
OUT u32 *BytesRead,
OUT u32 *BytesNeeded
_nic_hdl MiniportAdapterContext,
NDIS_OID Oid,
void *InformationBuffer,
u32 InformationBufferLength,
u32 *BytesRead,
u32 *BytesNeeded
);
#ifdef CONFIG_APPEND_VENDOR_IE_ENABLE

View file

@ -153,7 +153,7 @@ typedef struct _RT_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 {
/* Indicate if we have started Mass Production Test. */
BOOLEAN bMassProdTest;

View file

@ -501,7 +501,7 @@ void rtw_ps_processor(_adapter *padapter);
int autoresume_enter(_adapter *padapter);
#endif
#ifdef SUPPORT_HW_RFOFF_DETECTED
rt_rf_power_state RfOnOffDetect(IN PADAPTER pAdapter);
rt_rf_power_state RfOnOffDetect(PADAPTER pAdapter);
#endif