#define RG_MAC_HDR_SIZE 250
#define RG_MAC_CE_SIZE 250
-U32 MacPtrAddress;
-U32 macHeader[2];
+uint32_t MacPtrAddress;
+uint32_t macHeader[2];
#define RG_ADD_DBuf(_dBuf,_size,_mBuf)\
{ \
ssGetDBufOfSize(mInfo->region,_size, &_dBuf); \
SUpdMsg(_mBuf, _dBuf,0);\
_dBuf->b_wptr = _dBuf->b_rptr = (_dBuf->b_datap->db_base + 5);\
- MacPtrAddress = (U32)_dBuf->b_wptr;\
+ MacPtrAddress = (uint32_t)_dBuf->b_wptr;\
}
#endif
if (_padBuf == NULLP) \
{ \
RLOG0(L_ERROR, "RGERR_MUX_BLD_CEHDR_FAIL");\
- RETVALUE(RFAILED);\
+ return RFAILED;\
} \
if (mInfo->endptr == NULLP) { \
sduEnd = _sduBuf; \
#ifdef L2_OPTMZ
#define RG_FREE_TB(_tb)\
{\
- U32 lchIdx, pduIdx;\
+ uint32_t lchIdx, pduIdx;\
SResetMBuf(_tb->macHdr);\
SResetMBuf(_tb->macCes);\
_tb->tbPres = FALSE;\
#define RG_FREE_SAVED_TB(_tb)\
{\
- U32 lchIdx, pduIdx;\
+ uint32_t lchIdx, pduIdx;\
RG_FREE_MSG(_tb->macHdr);\
RG_FREE_MSG(_tb->macCes);\
_tb->tbPres = FALSE;\
**********************************************************/
#define RG_DROP_RGUDDATREQ_MBUF(_datReq)\
{\
- U32 idx5,idx6,idx7;\
+ uint32_t idx5,idx6,idx7;\
for (idx5=0; idx5 < _datReq.nmbOfTbs; idx5++)\
{\
for (idx6=0; idx6 < _datReq.datReqTb[idx5].nmbLch; idx6++)\
{\
if(_inst >= RG_MAX_INST)\
{\
- RETVALUE(RFAILED);\
+ return RFAILED;\
}\
}
{ \
if(rgCb[_inst].rgInit.logMask & SS_DIAG_LVL0) \
{ \
- ssDiagFix(_tknId, _splArgEnum, ENTRG, rgCb[_inst].rgInit.inst, SS_DIAG_LVL0, SS_DIAG_MSG_TYPE_FIXED, _splArg, _arg1, _arg2, _arg3, _arg4, _string);\
+ ssDiagFix(_tknId, _splArgEnum, ENTMAC, rgCb[_inst].rgInit.inst, SS_DIAG_LVL0, SS_DIAG_MSG_TYPE_FIXED, _splArg, _arg1, _arg2, _arg3, _arg4, _string);\
} \
}
{ \
if(rgCb[_inst].rgInit.logMask & SS_DIAG_LVL1) \
{ \
- ssDiagFix(_tknId, _splArgEnum, ENTRG, rgCb[_inst].rgInit.inst, SS_DIAG_LVL1, SS_DIAG_MSG_TYPE_FIXED, _splArg, _arg1, _arg2, _arg3, _arg4, _string);\
+ ssDiagFix(_tknId, _splArgEnum, ENTMAC, rgCb[_inst].rgInit.inst, SS_DIAG_LVL1, SS_DIAG_MSG_TYPE_FIXED, _splArg, _arg1, _arg2, _arg3, _arg4, _string);\
} \
}
{ \
if(rgCb[_inst].rgInit.logMask & SS_DIAG_LVL2) \
{ \
- ssDiagFix(_tknId, _splArgEnum, ENTRG, rgCb[_inst].rgInit.inst, SS_DIAG_LVL2, SS_DIAG_MSG_TYPE_FIXED, _splArg, _arg1, _arg2, _arg3, _arg4, _string);\
+ ssDiagFix(_tknId, _splArgEnum, ENTMAC, rgCb[_inst].rgInit.inst, SS_DIAG_LVL2, SS_DIAG_MSG_TYPE_FIXED, _splArg, _arg1, _arg2, _arg3, _arg4, _string);\
} \
}
{ \
if(rgCb[_inst].rgInit.logMask & SS_DIAG_LVL3) \
{ \
- ssDiagFix(_tknId, _splArgEnum, ENTRG, rgCb[_inst].rgInit.inst, SS_DIAG_LVL3, SS_DIAG_MSG_TYPE_FIXED, _splArg, _arg1, _arg2, _arg3, _arg4, _string);\
+ ssDiagFix(_tknId, _splArgEnum, ENTMAC, rgCb[_inst].rgInit.inst, SS_DIAG_LVL3, SS_DIAG_MSG_TYPE_FIXED, _splArg, _arg1, _arg2, _arg3, _arg4, _string);\
} \
}
{ \
if(rgCb[_inst].rgInit.logMask & SS_DIAG_LVL4) \
{ \
- ssDiagFix(_tknId, _splArgEnum, ENTRG, rgCb[_inst].rgInit.inst, SS_DIAG_LVL4, SS_DIAG_MSG_TYPE_FIXED, _splArg, _arg1, _arg2, _arg3, _arg4, _string);\
+ ssDiagFix(_tknId, _splArgEnum, ENTMAC, rgCb[_inst].rgInit.inst, SS_DIAG_LVL4, SS_DIAG_MSG_TYPE_FIXED, _splArg, _arg1, _arg2, _arg3, _arg4, _string);\
} \
}