*/
/* 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
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));
RETVALUE(RFAILED);
}
- if (pst->selector == RGU_SEL_LWLC)
+ if (pst->selector == ODU_SELECTOR_LWLC)
{
CMCHKUNPK(cmUnpkPtr,(PTR *) &dlData, mBuf);
}
* @return S16
* -# ROK
**/
-#ifdef ANSI
-PUBLIC S16 packRcvdUlData
-(
-Pst* pst,
-SuId suId,
-RlcMacData *ulData
-)
-#else
-PUBLIC S16 packRcvdUlData(pst, suId, ulData)
-Pst* pst;
-SuId suId;
-RlcMacData *ulData;
-#endif
+uint8_t packRlcUlData(Pst* pst, RlcMacData *ulData)
{
Buffer *mBuf = NULLP;
- TRC3(packRcvdUlData)
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)ulData, mBuf);
}
}
ulData = NULLP;
}
- if (SPkS16(suId, mBuf) != ROK) {
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ERGU037, (ErrVal)0, "Packing failed");
-#endif
- SPutStaticBuffer(pst->region, pst->pool, (Data *)ulData, sizeof(RlcMacData),0);
- SPutMsg(mBuf);
- RETVALUE(RFAILED);
- }
-
pst->event = (Event) EVTRLCULDAT;
RETVALUE(SPstTsk(pst,mBuf));
}
* @return S16
* -# ROK
**/
-PUBLIC S16 unpackRcvdUlData
-(
-RlcMacUlData func,
-Pst *pst,
-Buffer *mBuf
-)
+uint8_t unpackRcvdUlData(RlcMacUlDataFunc func, Pst *pst, Buffer *mBuf)
{
- SuId suId;
RlcMacData *ulData;
TRC3(unpackRcvdUlData)
- if (SUnpkS16(&suId, mBuf) != ROK) {
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ERGU039, (ErrVal)0, "UnPacking failed");
-#endif
- SPutMsg(mBuf);
- RETVALUE(RFAILED);
- }
-
- if (pst->selector == RGU_SEL_LWLC)
+ if (pst->selector == ODU_SELECTOR_LWLC)
{
CMCHKUNPK(cmUnpkPtr,(PTR *) &ulData, mBuf);
}
}
}
SPutMsg(mBuf);
- RETVALUE((*func)(pst, suId, ulData));
+ RETVALUE((*func)(pst, ulData));
}
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);
}
RETVALUE(RFAILED);
}
- if (pst->selector == RGU_SEL_LWLC)
+ if (pst->selector == ODU_SELECTOR_LWLC)
{
CMCHKPK(cmPkPtr,(PTR) boStaInfo, mBuf);
}
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);
}
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);
}
SPutMsg(mBuf);
RETVALUE(RFAILED);
}
- if (pst->selector == RGU_SEL_LWLC)
+ if (pst->selector == ODU_SELECTOR_LWLC)
{
CMCHKUNPK(cmUnpkPtr,(PTR *) &schRep, mBuf);
}
#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);
}
TRC3(packRlcMacDataInfo);
- for (i=param->nmbPdu-1; i >= 0; i--)
+ for (i=param->numPdu-1; i >= 0; i--)
{
msgLen = 0;
- if (SFndLenMsg(param->pduInfo[i].pduBuf, &msgLen) != ROK)
- RETVALUE(RFAILED);
- if (SCatMsg(mBuf, param->pduInfo[i].pduBuf, M1M2) != ROK)
- RETVALUE(RFAILED);
+ //if (SFndLenMsg(param->pduInfo[i].pduBuf, &msgLen) != ROK)
+ // RETVALUE(RFAILED);
+ //if (SCatMsg(mBuf, param->pduInfo[i].pduBuf, M1M2) != ROK)
+ // RETVALUE(RFAILED);
CMCHKPK(cmPkMsgLen, msgLen, mBuf);
CMCHKPK(cmPkLteLcId, param->pduInfo[i].lcId, mBuf);
CMCHKPK(cmPkBool, param->pduInfo[i].commCh, mBuf);
}
- CMCHKPK(SPkU8, param->nmbPdu, mBuf);
+ CMCHKPK(SPkU8, param->numPdu, mBuf);
CMCHKPK(cmPkLteRnti, param->rnti, mBuf);
CMCHKPK(cmPkLteCellId, param->cellId, mBuf);
- CMCHKPK(cmPkLteTimingInfo, ¶m->timeToTx, mBuf);
+ //CMCHKPK(cmPkLteTimingInfo, ¶m->timeToTx, mBuf);
RETVALUE(ROK);
}
TRC3(unpackRlcMacDataInfo);
- CMCHKUNPK(cmUnpkLteTimingInfo, ¶m->timeToTx, mBuf);
+ //CMCHKUNPK(cmUnpkLteTimingInfo, ¶m->timeToTx, mBuf);
CMCHKUNPK(cmUnpkLteCellId, ¶m->cellId, mBuf);
CMCHKUNPK(cmUnpkLteRnti, ¶m->rnti, mBuf);
- CMCHKUNPK(SUnpkU8, ¶m->nmbPdu, mBuf);
- for (i=0; i<param->nmbPdu; i++)
+ CMCHKUNPK(SUnpkU8, ¶m->numPdu, mBuf);
+ for (i=0; i<param->numPdu; i++)
{
MsgLen totalMsgLen;
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)
- RETVALUE(RFAILED);
+ //if (SSegMsg(mBuf, totalMsgLen-param->pduInfo[i].pduLen, ¶m->pduInfo[i].pduBuf) != ROK)
+ // RETVALUE(RFAILED);
}
RETVALUE(ROK);
}