mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-23 16:44:20 +00:00
rtl8188eu: Convert C90 comments
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
54abf571c4
commit
592c85f4e2
47 changed files with 4098 additions and 4374 deletions
|
@ -348,7 +348,7 @@ ODM_ReadAndConfig_AGC_TAB_1T_8188E(
|
|||
PADAPTER Adapter = pDM_Odm->Adapter;
|
||||
struct xmit_frame *pxmit_frame;
|
||||
u8 bndy_cnt=1;
|
||||
#endif//#ifdef CONFIG_IOL_IOREG_CFG
|
||||
#endif/* ifdef CONFIG_IOL_IOREG_CFG */
|
||||
HAL_STATUS rst =HAL_STATUS_SUCCESS;
|
||||
|
||||
hex += board;
|
||||
|
@ -364,14 +364,14 @@ ODM_ReadAndConfig_AGC_TAB_1T_8188E(
|
|||
return HAL_STATUS_FAILURE;
|
||||
}
|
||||
}
|
||||
#endif//#ifdef CONFIG_IOL_IOREG_CFG
|
||||
#endif/* ifdef CONFIG_IOL_IOREG_CFG */
|
||||
|
||||
for (i = 0; i < ArrayLen; i += 2 )
|
||||
{
|
||||
u32 v1 = Array[i];
|
||||
u32 v2 = Array[i+1];
|
||||
|
||||
// This (offset, data) pair meets the condition.
|
||||
/* This (offset, data) pair meets the condition. */
|
||||
if ( v1 < 0xCDCDCDCD )
|
||||
{
|
||||
#ifdef CONFIG_IOL_IOREG_CFG
|
||||
|
@ -381,16 +381,16 @@ ODM_ReadAndConfig_AGC_TAB_1T_8188E(
|
|||
rtw_IOL_append_WD_cmd(pxmit_frame,(u16)v1, v2,bMaskDWord);
|
||||
}
|
||||
else
|
||||
#endif //#ifdef CONFIG_IOL_IOREG_CFG
|
||||
#endif /* ifdef CONFIG_IOL_IOREG_CFG */
|
||||
{
|
||||
odm_ConfigBB_AGC_8188E(pDM_Odm, v1, bMaskDWord, v2);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{ // This line is the start line of branch.
|
||||
{ /* This line is the start line of branch. */
|
||||
if ( !CheckCondition(Array[i], hex) )
|
||||
{ // Discard the following (offset, data) pairs.
|
||||
{ /* Discard the following (offset, data) pairs. */
|
||||
READ_NEXT_PAIR(v1, v2, i);
|
||||
while ( v2 != 0xDEAD &&
|
||||
v2 != 0xCDEF &&
|
||||
|
@ -398,9 +398,9 @@ ODM_ReadAndConfig_AGC_TAB_1T_8188E(
|
|||
{
|
||||
READ_NEXT_PAIR(v1, v2, i);
|
||||
}
|
||||
i -= 2; // prevent from for-loop += 2
|
||||
i -= 2; /* prevent from for-loop += 2 */
|
||||
}
|
||||
else // Configure matched pairs and skip to end of if-else.
|
||||
else /* Configure matched pairs and skip to end of if-else. */
|
||||
{
|
||||
READ_NEXT_PAIR(v1, v2, i);
|
||||
while ( v2 != 0xDEAD &&
|
||||
|
@ -414,7 +414,7 @@ ODM_ReadAndConfig_AGC_TAB_1T_8188E(
|
|||
rtw_IOL_append_WD_cmd(pxmit_frame,(u16)v1, v2,bMaskDWord);
|
||||
}
|
||||
else
|
||||
#endif //#ifdef CONFIG_IOL_IOREG_CFG
|
||||
#endif /* ifdef CONFIG_IOL_IOREG_CFG */
|
||||
{
|
||||
odm_ConfigBB_AGC_8188E(pDM_Odm, v1, bMaskDWord, v2);
|
||||
}
|
||||
|
@ -431,31 +431,31 @@ ODM_ReadAndConfig_AGC_TAB_1T_8188E(
|
|||
}
|
||||
#ifdef CONFIG_IOL_IOREG_CFG
|
||||
if(biol){
|
||||
//printk("==> %s, pktlen = %d,bndy_cnt = %d\n",__FUNCTION__,pxmit_frame->attrib.pktlen+4+32,bndy_cnt);
|
||||
/* printk("==> %s, pktlen = %d,bndy_cnt = %d\n",__FUNCTION__,pxmit_frame->attrib.pktlen+4+32,bndy_cnt); */
|
||||
if(rtw_IOL_exec_cmds_sync(pDM_Odm->Adapter, pxmit_frame, 1000, bndy_cnt))
|
||||
{
|
||||
#ifdef CONFIG_IOL_IOREG_CFG_DBG
|
||||
printk("~~~ %s Success !!! \n",__FUNCTION__);
|
||||
{
|
||||
//dump data from TX packet buffer
|
||||
/* dump data from TX packet buffer */
|
||||
rtw_IOL_cmd_tx_pkt_buf_dump(pDM_Odm->Adapter,pxmit_frame->attrib.pktlen+32);
|
||||
}
|
||||
#endif //CONFIG_IOL_IOREG_CFG_DBG
|
||||
#endif /* CONFIG_IOL_IOREG_CFG_DBG */
|
||||
|
||||
}
|
||||
else{
|
||||
printk("~~~ %s IOL_exec_cmds Failed !!! \n",__FUNCTION__);
|
||||
#ifdef CONFIG_IOL_IOREG_CFG_DBG
|
||||
{
|
||||
//dump data from TX packet buffer
|
||||
/* dump data from TX packet buffer */
|
||||
rtw_IOL_cmd_tx_pkt_buf_dump(pDM_Odm->Adapter,pxmit_frame->attrib.pktlen+32);
|
||||
}
|
||||
#endif //CONFIG_IOL_IOREG_CFG_DBG
|
||||
#endif /* CONFIG_IOL_IOREG_CFG_DBG */
|
||||
|
||||
rst = HAL_STATUS_FAILURE;
|
||||
}
|
||||
}
|
||||
#endif //#ifdef CONFIG_IOL_IOREG_CFG
|
||||
#endif /* ifdef CONFIG_IOL_IOREG_CFG */
|
||||
return rst;
|
||||
}
|
||||
|
||||
|
@ -626,16 +626,16 @@ ODM_ReadAndConfig_AGC_TAB_1T_ICUT_8188E(
|
|||
u32 v1 = Array[i];
|
||||
u32 v2 = Array[i+1];
|
||||
|
||||
// This (offset, data) pair meets the condition.
|
||||
/* This (offset, data) pair meets the condition. */
|
||||
if ( v1 < 0xCDCDCDCD )
|
||||
{
|
||||
odm_ConfigBB_AGC_8188E(pDM_Odm, v1, bMaskDWord, v2);
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{ // This line is the start line of branch.
|
||||
{ /* This line is the start line of branch. */
|
||||
if ( !CheckCondition(Array[i], hex) )
|
||||
{ // Discard the following (offset, data) pairs.
|
||||
{ /* Discard the following (offset, data) pairs. */
|
||||
READ_NEXT_PAIR(v1, v2, i);
|
||||
while (v2 != 0xDEAD &&
|
||||
v2 != 0xCDEF &&
|
||||
|
@ -643,9 +643,9 @@ ODM_ReadAndConfig_AGC_TAB_1T_ICUT_8188E(
|
|||
{
|
||||
READ_NEXT_PAIR(v1, v2, i);
|
||||
}
|
||||
i -= 2; // prevent from for-loop += 2
|
||||
i -= 2; /* prevent from for-loop += 2 */
|
||||
}
|
||||
else // Configure matched pairs and skip to end of if-else.
|
||||
else /* Configure matched pairs and skip to end of if-else. */
|
||||
{
|
||||
READ_NEXT_PAIR(v1, v2, i);
|
||||
while (v2 != 0xDEAD &&
|
||||
|
@ -914,7 +914,7 @@ ODM_ReadAndConfig_PHY_REG_1T_8188E(
|
|||
struct cmd_cmp cmpdata[ArrayLen];
|
||||
u32 cmpdata_idx=0;
|
||||
#endif
|
||||
#endif//#ifdef CONFIG_IOL_IOREG_CFG
|
||||
#endif/* ifdef CONFIG_IOL_IOREG_CFG */
|
||||
HAL_STATUS rst =HAL_STATUS_SUCCESS;
|
||||
hex += board;
|
||||
hex += interfaceValue << 8;
|
||||
|
@ -930,7 +930,7 @@ ODM_ReadAndConfig_PHY_REG_1T_8188E(
|
|||
return HAL_STATUS_FAILURE;
|
||||
}
|
||||
}
|
||||
#endif//#ifdef CONFIG_IOL_IOREG_CFG
|
||||
#endif/* ifdef CONFIG_IOL_IOREG_CFG */
|
||||
|
||||
for (i = 0; i < ArrayLen; i += 2 )
|
||||
{
|
||||
|
@ -938,7 +938,7 @@ ODM_ReadAndConfig_PHY_REG_1T_8188E(
|
|||
u32 v2 = Array[i+1];
|
||||
|
||||
|
||||
// This (offset, data) pair meets the condition.
|
||||
/* This (offset, data) pair meets the condition. */
|
||||
if ( v1 < 0xCDCDCDCD )
|
||||
{
|
||||
#ifdef CONFIG_IOL_IOREG_CFG
|
||||
|
@ -978,16 +978,16 @@ ODM_ReadAndConfig_PHY_REG_1T_8188E(
|
|||
}
|
||||
}
|
||||
else
|
||||
#endif //#ifdef CONFIG_IOL_IOREG_CFG
|
||||
#endif /* ifdef CONFIG_IOL_IOREG_CFG */
|
||||
{
|
||||
odm_ConfigBB_PHY_8188E(pDM_Odm, v1, bMaskDWord, v2);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{ // This line is the start line of branch.
|
||||
{ /* This line is the start line of branch. */
|
||||
if ( !CheckCondition(Array[i], hex) )
|
||||
{ // Discard the following (offset, data) pairs.
|
||||
{ /* Discard the following (offset, data) pairs. */
|
||||
READ_NEXT_PAIR(v1, v2, i);
|
||||
while (v2 != 0xDEAD &&
|
||||
v2 != 0xCDEF &&
|
||||
|
@ -995,9 +995,9 @@ ODM_ReadAndConfig_PHY_REG_1T_8188E(
|
|||
{
|
||||
READ_NEXT_PAIR(v1, v2, i);
|
||||
}
|
||||
i -= 2; // prevent from for-loop += 2
|
||||
i -= 2; /* prevent from for-loop += 2 */
|
||||
}
|
||||
else // Configure matched pairs and skip to end of if-else.
|
||||
else /* Configure matched pairs and skip to end of if-else. */
|
||||
{
|
||||
READ_NEXT_PAIR(v1, v2, i);
|
||||
while (v2 != 0xDEAD &&
|
||||
|
@ -1039,7 +1039,7 @@ ODM_ReadAndConfig_PHY_REG_1T_8188E(
|
|||
}
|
||||
}
|
||||
else
|
||||
#endif //#ifdef CONFIG_IOL_IOREG_CFG
|
||||
#endif /* ifdef CONFIG_IOL_IOREG_CFG */
|
||||
{
|
||||
odm_ConfigBB_PHY_8188E(pDM_Odm, v1, bMaskDWord, v2);
|
||||
}
|
||||
|
@ -1056,7 +1056,7 @@ ODM_ReadAndConfig_PHY_REG_1T_8188E(
|
|||
}
|
||||
#ifdef CONFIG_IOL_IOREG_CFG
|
||||
if(biol){
|
||||
//printk("==> %s, pktlen = %d,bndy_cnt = %d\n",__FUNCTION__,pxmit_frame->attrib.pktlen+4+32,bndy_cnt);
|
||||
/* printk("==> %s, pktlen = %d,bndy_cnt = %d\n",__FUNCTION__,pxmit_frame->attrib.pktlen+4+32,bndy_cnt); */
|
||||
if(rtw_IOL_exec_cmds_sync(pDM_Odm->Adapter, pxmit_frame, 1000, bndy_cnt))
|
||||
{
|
||||
#ifdef CONFIG_IOL_IOREG_CFG_DBG
|
||||
|
@ -1076,13 +1076,13 @@ ODM_ReadAndConfig_PHY_REG_1T_8188E(
|
|||
}
|
||||
}
|
||||
printk("### %s data compared !!###\n",__FUNCTION__);
|
||||
//if(rst == HAL_STATUS_FAILURE)
|
||||
{//dump data from TX packet buffer
|
||||
/* if(rst == HAL_STATUS_FAILURE) */
|
||||
{/* dump data from TX packet buffer */
|
||||
rtw_IOL_cmd_tx_pkt_buf_dump(pDM_Odm->Adapter,pxmit_frame->attrib.pktlen+32);
|
||||
}
|
||||
|
||||
}
|
||||
#endif //CONFIG_IOL_IOREG_CFG_DBG
|
||||
#endif /* CONFIG_IOL_IOREG_CFG_DBG */
|
||||
|
||||
}
|
||||
else{
|
||||
|
@ -1090,13 +1090,13 @@ ODM_ReadAndConfig_PHY_REG_1T_8188E(
|
|||
printk("~~~ IOL Config %s Failed !!! \n",__FUNCTION__);
|
||||
#ifdef CONFIG_IOL_IOREG_CFG_DBG
|
||||
{
|
||||
//dump data from TX packet buffer
|
||||
/* dump data from TX packet buffer */
|
||||
rtw_IOL_cmd_tx_pkt_buf_dump(pDM_Odm->Adapter,pxmit_frame->attrib.pktlen+32);
|
||||
}
|
||||
#endif //CONFIG_IOL_IOREG_CFG_DBG
|
||||
#endif /* CONFIG_IOL_IOREG_CFG_DBG */
|
||||
}
|
||||
}
|
||||
#endif //#ifdef CONFIG_IOL_IOREG_CFG
|
||||
#endif /* ifdef CONFIG_IOL_IOREG_CFG */
|
||||
return rst;
|
||||
}
|
||||
/******************************************************************************
|
||||
|
@ -1327,16 +1327,16 @@ ODM_ReadAndConfig_PHY_REG_1T_ICUT_8188E(
|
|||
u32 v1 = Array[i];
|
||||
u32 v2 = Array[i+1];
|
||||
|
||||
// This (offset, data) pair meets the condition.
|
||||
/* This (offset, data) pair meets the condition. */
|
||||
if ( v1 < 0xCDCDCDCD )
|
||||
{
|
||||
odm_ConfigBB_PHY_8188E(pDM_Odm, v1, bMaskDWord, v2);
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{ // This line is the start line of branch.
|
||||
{ /* This line is the start line of branch. */
|
||||
if ( !CheckCondition(Array[i], hex) )
|
||||
{ // Discard the following (offset, data) pairs.
|
||||
{ /* Discard the following (offset, data) pairs. */
|
||||
READ_NEXT_PAIR(v1, v2, i);
|
||||
while (v2 != 0xDEAD &&
|
||||
v2 != 0xCDEF &&
|
||||
|
@ -1344,9 +1344,9 @@ ODM_ReadAndConfig_PHY_REG_1T_ICUT_8188E(
|
|||
{
|
||||
READ_NEXT_PAIR(v1, v2, i);
|
||||
}
|
||||
i -= 2; // prevent from for-loop += 2
|
||||
i -= 2; /* prevent from for-loop += 2 */
|
||||
}
|
||||
else // Configure matched pairs and skip to end of if-else.
|
||||
else /* Configure matched pairs and skip to end of if-else. */
|
||||
{
|
||||
READ_NEXT_PAIR(v1, v2, i);
|
||||
while (v2 != 0xDEAD &&
|
||||
|
@ -1412,7 +1412,7 @@ ODM_ReadAndConfig_PHY_REG_PG_8188E(
|
|||
u32 v5 = Array[i+4];
|
||||
u32 v6 = Array[i+5];
|
||||
|
||||
// this line is a line of pure_body
|
||||
/* this line is a line of pure_body */
|
||||
if ( v1 < 0xCDCDCDCD )
|
||||
{
|
||||
|
||||
|
@ -1421,10 +1421,10 @@ ODM_ReadAndConfig_PHY_REG_PG_8188E(
|
|||
continue;
|
||||
}
|
||||
else
|
||||
{ // this line is the start of branch
|
||||
{ /* this line is the start of branch */
|
||||
if ( !CheckCondition(Array[i], hex) )
|
||||
{ // don't need the hw_body
|
||||
i += 2; // skip the pair of expression
|
||||
{ /* don't need the hw_body */
|
||||
i += 2; /* skip the pair of expression */
|
||||
v1 = Array[i];
|
||||
v2 = Array[i+1];
|
||||
v3 = Array[i+2];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue