*/
/* header include files (.h) */
-#include "envopt.h" /* environment options */
-#include "envdep.h" /* environment dependent */
-#include "envind.h" /* environment independent */
-#include "gen.h" /* general */
-#include "ssi.h" /* system services */
-#include "cm_tkns.h" /* Common Token Defines */
-#include "cm_llist.h" /* Common Link List Defines */
-#include "cm_hash.h" /* Common Hash List Defines */
-#include "cm_lte.h" /* Common LTE Defines */
+#include "common_def.h"
#include "rgu.h" /* RGU Interface defines */
/* header/extern include files (.x) */
-#include "gen.x" /* general */
-#include "ssi.x" /* system services */
-#include "cm_tkns.x" /* Common Token Definitions */
-#include "cm_llist.x" /* Common Link List Definitions */
-#include "cm_lib.x" /* Common Library Definitions */
-#include "cm_hash.x" /* Common Hash List Definitions */
-#include "cm_lte.x" /* Common LTE Defines */
#include "rgu.x" /* RGU Interface includes */
#ifdef SS_RBUF
*
* @details
*
-* Function : packSendDlData
+* Function : packDlData
*
* @param[in] Pst* pst
* @param[in] SpId spId
* @return S16
* -# ROK
**/
-#ifdef ANSI
-PUBLIC S16 packSendDlData
+PUBLIC uint16_t packDlData
(
Pst* pst,
SpId spId,
RlcMacData *dlData
)
-#else
-PUBLIC S16 packSendDlData(pst, spId, dlData)
-Pst* pst;
-SpId spId;
-RlcMacData dlData;
-#endif
{
Buffer *mBuf = NULLP;
- TRC3(packSendDlData)
+ TRC3(packDlData)
if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) {
#if (ERRCLASS & ERRCLS_ADD_RES)
RETVALUE(RFAILED);
}
- if (pst->selector == RGU_SEL_LWLC)
+ if (pst->selector == ODU_SELECTOR_LWLC)
{
CMCHKPK(cmPkPtr,(PTR) dlData, mBuf);
}
__FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
(ErrVal)ERGU024, (ErrVal)0, "Packing failed");
#endif
- if (dlData != NULLP);
+ if (dlData != NULLP)
{
SPutSBuf(pst->region, pst->pool,
(Data *)dlData, sizeof(RlcMacData));
*
* @details
*
-* Function : unpackSendDlData
+* Function : unpackDlData
*
* @param[in] Pst* pst
* @param[in] SpId spId
* @return S16
* -# ROK
**/
-#ifdef ANSI
-PUBLIC S16 unpackSendDlData
+PUBLIC S16 unpackDlData
(
-RguDDatReq func,
+RlcMacDlData func,
Pst *pst,
Buffer *mBuf
)
-#else
-PUBLIC S16 unpackSendDlData(func, pst, mBuf)
-RguDDatReq func;
-Pst *pst;
-Buffer *mBuf;
-#endif
{
SpId spId;
-// RguDDatReqInfo *datReq;
RlcMacData *dlData;
- TRC3(unpackSendDlData)
+ TRC3(unpackDlData)
if (SUnpkS16(&spId, mBuf) != ROK) {
SPutMsg(mBuf);
RETVALUE(RFAILED);
}
- if (pst->selector == RGU_SEL_LWLC)
+ if (pst->selector == ODU_SELECTOR_LWLC)
{
CMCHKUNPK(cmUnpkPtr,(PTR *) &dlData, mBuf);
}
RETVALUE(RFAILED);
}
- if (pst->selector == RGU_SEL_LWLC)
+ if (pst->selector == ODU_SELECTOR_LWLC)
{
CMCHKPK(cmPkPtr,(PTR)ulData, mBuf);
}
* @return S16
* -# ROK
**/
-#ifdef ANSI
PUBLIC S16 unpackRcvdUlData
(
-RguDDatInd func,
+RlcMacUlData func,
Pst *pst,
Buffer *mBuf
)
-#else
-PUBLIC S16 unpackRcvdUlData(func, pst, mBuf)
-RguDDatInd func;
-Pst *pst;
-Buffer *mBuf;
-#endif
{
SuId suId;
RlcMacData *ulData;
RETVALUE(RFAILED);
}
- if (pst->selector == RGU_SEL_LWLC)
+ if (pst->selector == ODU_SELECTOR_LWLC)
{
CMCHKUNPK(cmUnpkPtr,(PTR *) &ulData, mBuf);
}
SPutSBuf(pst->region, pst->pool, (Data *)measReq, sizeof(RguL2MUlThrpMeasReqInfo));
RETVALUE(RFAILED);
}
- if (pst->selector == RGU_SEL_LWLC)
+ if (pst->selector == ODU_SELECTOR_LWLC)
{
CMCHKPK(cmPkPtr,(PTR) measReq, mBuf);
}
SPutMsg(mBuf);
RETVALUE(RFAILED);
}
- if (pst->selector == RGU_SEL_LWLC)
+ if (pst->selector == ODU_SELECTOR_LWLC)
{
CMCHKUNPK(cmUnpkPtr,(PTR *) &measReq, mBuf);
}
*
* @details
*
-* Function : packSendBOStatus,
+* Function : packBOStatus,
*
* @param[in] Pst* pst
* @param[in] SpId spId
* @return S16
* -# ROK
**/
-#ifdef ANSI
-PUBLIC S16 packSendBOStatus
+PUBLIC uint16_t packBOStatus
(
Pst* pst,
SpId spId,
RlcMacBOStatus *boStatus
)
-#else
-PUBLIC S16 packSendBOStatus(pst, spId, staRsp)
-Pst* pst;
-SpId spId;
-RlcMacBOStatus *boStatus;
-#endif
{
RlcMacBOStatus *boStaInfo = NULL;
Buffer *mBuf = NULLP;
RETVALUE(RFAILED);
}
- if (pst->selector == RGU_SEL_LWLC)
+ if (pst->selector == ODU_SELECTOR_LWLC)
{
CMCHKPK(cmPkPtr,(PTR) boStaInfo, mBuf);
}
*
* @details
*
-* Function : unpackSendBOStatus
+* Function : unpackBOStatus
*
* @param[in] Pst* pst
* @param[in] SpId spId
* @return S16
* -# ROK
**/
-#ifdef ANSI
-PUBLIC S16 unpackSendBOStatus
+PUBLIC uint16_t unpackBOStatus
(
-RguDStaRsp func,
+RlcMacBoStatus func,
Pst *pst,
Buffer *mBuf
)
-#else
-PUBLIC S16 unpackSendBOStatus(func, pst, mBuf)
-RguDStaRsp func;
-Pst *pst;
-Buffer *mBuf;
-#endif
{
SpId spId;
RlcMacBOStatus *boSta;
- TRC3(unpackSendBOStatus)
+ TRC3(unpackBOStatus)
if (SUnpkS16(&spId, mBuf) != ROK) {
#if (ERRCLASS & ERRCLS_ADD_RES)
RETVALUE(RFAILED);
}
- if (pst->selector == RGU_SEL_LWLC)
+ if (pst->selector == ODU_SELECTOR_LWLC)
{
CMCHKUNPK(cmUnpkPtr,(PTR *) &boSta, mBuf);
}
RETVALUE(RFAILED);
}
- if (pst->selector == RGU_SEL_LWLC)
+ if (pst->selector == ODU_SELECTOR_LWLC)
{
CMCHKPK(cmPkPtr,(PTR) harqStaInd, mBuf);
}
if (SPutSBuf(pst->region, pst->pool, (Data *)harqStaInd,
sizeof(RguHarqStatusInd)) != ROK) {
#else
- if (pst->selector != RGU_SEL_LWLC)
+ if (pst->selector != ODU_SELECTOR_LWLC)
{
if(SPutStaticBuffer(pst->region, pst->pool, (Data *)harqStaInd,
sizeof(RguHarqStatusInd), 0) != ROK)
if ((SGetSBuf(pst->region, pst->pool, (Data **)&hqStaInd,
sizeof(RguHarqStatusInd))) != ROK) {
#else
- if (pst->selector == RGU_SEL_LWLC)
+ if (pst->selector == ODU_SELECTOR_LWLC)
{
CMCHKUNPK(cmUnpkPtr,(PTR *) &hqStaInd, mBuf);
}
* @return S16
* -# ROK
**/
-#ifdef ANSI
PUBLIC S16 packSchedRep
(
Pst* pst,
SuId suId,
-RlcMacSchedRep * schRep
+RlcMacSchedRepInfo * schRep
)
-#else
-PUBLIC S16 packSchedRep(pst, suId, staInd)
-Pst* pst;
-SuId suId;
-RlcMacSchedRep * schRep;
-#endif
{
Buffer *mBuf = NULLP;
TRC3(packSchedRep)
__FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
(ErrVal)ERGU076, (ErrVal)0, "Packing failed");
#endif
- SPutSBuf(pst->region, pst->pool, (Data *)schRep, sizeof(RlcMacSchedRep));
+ SPutSBuf(pst->region, pst->pool, (Data *)schRep, sizeof(RlcMacSchedRepInfo));
RETVALUE(RFAILED);
}
- if (pst->selector == RGU_SEL_LWLC)
+ if (pst->selector == ODU_SELECTOR_LWLC)
{
CMCHKPK(cmPkPtr,(PTR) schRep, mBuf);
}
(ErrVal)ERGU077, (ErrVal)0, "Packing failed");
#endif
SPutSBuf(pst->region, pst->pool, (Data *)schRep,
- sizeof(RlcMacSchedRep));
+ sizeof(RlcMacSchedRepInfo));
SPutMsg(mBuf);
RETVALUE(RFAILED);
}
if (SPutSBuf(pst->region, pst->pool, (Data *)schRep,
- sizeof(RlcMacSchedRep)) != ROK) {
+ sizeof(RlcMacSchedRepInfo)) != ROK) {
#if (ERRCLASS & ERRCLS_ADD_RES)
SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
__FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
#endif
if (schRep != NULLP)
{
- SPutSBuf(pst->region, pst->pool, (Data *)schRep, sizeof(RlcMacSchedRep));
+ SPutSBuf(pst->region, pst->pool, (Data *)schRep, sizeof(RlcMacSchedRepInfo));
}
SPutMsg(mBuf);
RETVALUE(RFAILED);
* @return S16
* -# ROK
**/
-#ifdef ANSI
PUBLIC S16 unpackSchedRep
(
-RguDStaInd func,
+RlcMacSchedRep func,
Pst *pst,
Buffer *mBuf
)
-#else
-PUBLIC S16 unpackSchedRep(func, pst, mBuf)
-RguDStaInd func;
-Pst *pst;
-Buffer *mBuf;
-#endif
{
SuId suId;
-// RguDStaIndInfo *staInd;
- RlcMacSchedRep *schRep;
+ RlcMacSchedRepInfo *schRep;
TRC3(unpackSchedRep)
SPutMsg(mBuf);
RETVALUE(RFAILED);
}
- if (pst->selector == RGU_SEL_LWLC)
+ if (pst->selector == ODU_SELECTOR_LWLC)
{
CMCHKUNPK(cmUnpkPtr,(PTR *) &schRep, mBuf);
}
else
{
- if ((SGetSBuf(pst->region, pst->pool, (Data **)&schRep, sizeof(RlcMacSchedRep))) != ROK) {
+ if ((SGetSBuf(pst->region, pst->pool, (Data **)&schRep, sizeof(RlcMacSchedRepInfo))) != ROK) {
#if (ERRCLASS & ERRCLS_ADD_RES)
SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
__FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
(ErrVal)ERGU082, (ErrVal)0, "UnPacking failed");
#endif
SPutMsg(mBuf);
- SPutSBuf(pst->region, pst->pool, (Data *)schRep, sizeof(RlcMacSchedRep));
+ SPutSBuf(pst->region, pst->pool, (Data *)schRep, sizeof(RlcMacSchedRepInfo));
RETVALUE(RFAILED);
}
}
#endif
RETVALUE(RFAILED);
}
- if (pst->selector == RGU_SEL_LWLC)
+ if (pst->selector == ODU_SELECTOR_LWLC)
{
CMCHKPK(cmPkPtr,(PTR) flowCntrlInd, mBuf);
}
SPutMsg(mBuf);
RETVALUE(RFAILED);
}
- if (pst->selector == RGU_SEL_LWLC)
+ if (pst->selector == ODU_SELECTOR_LWLC)
{
CMCHKUNPK(cmUnpkPtr,(PTR *) &flowCntrlInd, mBuf);
}
for (i=param->nmbPdu-1; i >= 0; i--)
{
- MsgLen msgLen = 0;
+ msgLen = 0;
if (SFndLenMsg(param->pduInfo[i].pduBuf, &msgLen) != ROK)
RETVALUE(RFAILED);
if (SCatMsg(mBuf, param->pduInfo[i].pduBuf, M1M2) != ROK)
CMCHKUNPK(cmUnpkBool, ¶m->pduInfo[i].commCh, mBuf);
CMCHKUNPK(cmUnpkLteLcId, ¶m->pduInfo[i].lcId, mBuf);
- CMCHKUNPK(cmPkMsgLen, ¶m->pduInfo[i].pduLen, mBuf);
+ CMCHKUNPK(cmUnpkMsgLen, ¶m->pduInfo[i].pduLen, mBuf);
if (SFndLenMsg(mBuf, &totalMsgLen) != ROK)
RETVALUE(RFAILED);
if (SSegMsg(mBuf, totalMsgLen-param->pduInfo[i].pduLen, ¶m->pduInfo[i].pduBuf) != ROK)
* File :
*
**********************************************************/
-#ifdef ANSI
PUBLIC S16 packSchedRepInfo
(
-RlcMacSchedRep *param,
+RlcMacSchedRepInfo *param,
Buffer *mBuf
)
-#else
-PUBLIC S16 packSchedRepInfo(param, mBuf)
-RlcMacSchedRep *param;
-Buffer *mBuf;
-#endif
{
- S32 i;
S32 idx;
TRC3(packSchedRepInfo);
* File :
*
**********************************************************/
-#ifdef ANSI
PUBLIC S16 unpackSchedRepInfo
(
-RlcMacSchedRep *param,
+RlcMacSchedRepInfo *param,
Buffer *mBuf
)
-#else
-PUBLIC S16 unpackSchedRepInfo(param, mBuf)
-RlcMacSchedRep *param;
-Buffer *mBuf;
-#endif
{
- S32 i;
S32 idx;
TRC3(unpackSchedRepInfo);