*/
/* 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 "cm_mblk.h" /* Common LTE Defines */
+#include "common_def.h"
#include "tfu.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 "cm_mblk.x" /* Common LTE Defines */
#include "tfu.x" /* RGU Interface includes */
+#include "du_app_mac_inf.h"
+//#include "mac_sch_interface.h"
+
#if (defined(LCTFU))
\f
TFU_FREE_MEM(raReqInd);
RETVALUE(RFAILED);
}
- if (pst->selector == TFU_SEL_LC) {
+ if (pst->selector == ODU_SELECTOR_LC) {
if (cmPkTfuRaReqIndInfo(raReqInd, mBuf) != ROK) {
#if (ERRCLASS & ERRCLS_ADD_RES)
SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmPkPtr((PTR)raReqInd, mBuf) != ROK)
{
TFU_FREE_MSG(mBuf);
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
TFU_FREE_MEM(raReqInd);
}
#endif
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
Mem sMem;
sMem.region = pst->region;
sMem.pool = pst->pool;
}
- if (pst->selector == TFU_SEL_LC)
+ if (pst->selector == ODU_SELECTOR_LC)
{
if (cmUnpkTfuRaReqIndInfo(raReqInd, mBuf) != ROK) {
TFU_FREE_MEM(raReqInd);
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmUnpkPtr((PTR *)&raReqInd, mBuf) != ROK)
{
TFU_FREE_MEM(recpReq);
RETVALUE(RFAILED);
}
- if (pst->selector == TFU_SEL_LC) {
+ if (pst->selector == ODU_SELECTOR_LC) {
if (cmPkTfuRecpReqInfo(recpReq, mBuf) != ROK) {
#if (ERRCLASS & ERRCLS_ADD_RES)
SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmPkPtr((PTR)recpReq, mBuf) != ROK)
{
TFU_FREE_MSG(mBuf);
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
TFU_FREE_MEM(recpReq);
}
#endif
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
Mem sMem;
sMem.region = pst->region;
sMem.pool = pst->pool;
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmUnpkPtr((PTR *)&recpReq, mBuf) != ROK)
{
}
}
- if (pst->selector == TFU_SEL_LC)
+ if (pst->selector == ODU_SELECTOR_LC)
{
if (cmUnpkTfuRecpReqInfo(recpReq, (Ptr)&recpReq->memCp, mBuf) != ROK) {
TFU_FREE_MEM(recpReq);
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmUnpkPtr((PTR*)&recpReq, mBuf) != ROK)
{
TFU_FREE_MEM(ulCqiInd);
RETVALUE(RFAILED);
}
- if (pst->selector == TFU_SEL_LC) {
+ if (pst->selector == ODU_SELECTOR_LC) {
if (cmPkTfuUlCqiIndInfo(ulCqiInd, mBuf) != ROK) {
#if (ERRCLASS & ERRCLS_ADD_RES)
SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmPkPtr((PTR)ulCqiInd, mBuf) != ROK)
{
TFU_FREE_MSG(mBuf);
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
TFU_FREE_MEM(ulCqiInd);
}
#endif
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
Mem sMem;
sMem.region = pst->region;
sMem.pool = pst->pool;
}
- if (pst->selector == TFU_SEL_LC)
+ if (pst->selector == ODU_SELECTOR_LC)
{
if (cmUnpkTfuUlCqiIndInfo(ulCqiInd, (Ptr)&ulCqiInd->memCp, mBuf) != ROK) {
TFU_FREE_MEM(ulCqiInd);
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmUnpkPtr((PTR *)&ulCqiInd, mBuf) != ROK)
{
TFU_FREE_MEM(hqInd);
RETVALUE(RFAILED);
}
- if (pst->selector == TFU_SEL_LC) {
+ if (pst->selector == ODU_SELECTOR_LC) {
if (cmPkTfuHqIndInfo(hqInd, mBuf) != ROK) {
#if (ERRCLASS & ERRCLS_ADD_RES)
SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmPkPtr((PTR)hqInd, mBuf) != ROK)
{
TFU_FREE_MSG(mBuf);
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
TFU_FREE_MEM(hqInd);
}
#endif
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
Mem sMem;
sMem.region = pst->region;
sMem.pool = pst->pool;
}
- if (pst->selector == TFU_SEL_LC)
+ if (pst->selector == ODU_SELECTOR_LC)
{
if (cmUnpkTfuHqIndInfo(hqInd, (Ptr)&hqInd->memCp, mBuf) != ROK) {
TFU_FREE_MEM(hqInd);
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmUnpkPtr((PTR *)&hqInd, mBuf) != ROK)
{
TFU_FREE_MEM(srInd);
RETVALUE(RFAILED);
}
- if (pst->selector == TFU_SEL_LC) {
+ if (pst->selector == ODU_SELECTOR_LC) {
if (cmPkTfuSrIndInfo(srInd, mBuf) != ROK) {
#if (ERRCLASS & ERRCLS_ADD_RES)
SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmPkPtr((PTR)srInd, mBuf) != ROK)
{
TFU_FREE_MSG(mBuf);
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
TFU_FREE_MEM(srInd);
}
#endif
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
Mem sMem;
sMem.region = pst->region;
sMem.pool = pst->pool;
}
- if (pst->selector == TFU_SEL_LC)
+ if (pst->selector == ODU_SELECTOR_LC)
{
if (cmUnpkTfuSrIndInfo(srInd, (Ptr)&srInd->memCp, mBuf) != ROK) {
TFU_FREE_MEM(srInd);
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmUnpkPtr((PTR *)&srInd, mBuf) != ROK)
{
TFU_FREE_MEM(dlCqiInd);
RETVALUE(RFAILED);
}
- if (pst->selector == TFU_SEL_LC) {
+ if (pst->selector == ODU_SELECTOR_LC) {
if (cmPkTfuDlCqiIndInfo(dlCqiInd, mBuf) != ROK) {
#if (ERRCLASS & ERRCLS_ADD_RES)
SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmPkPtr((PTR)dlCqiInd, mBuf) != ROK)
{
TFU_FREE_MSG(mBuf);
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
TFU_FREE_MEM(dlCqiInd);
}
pst->event = (Event) EVTTFUDLCQIIND;
#endif
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
Mem sMem;
sMem.region = pst->region;
sMem.pool = pst->pool;
}
- if (pst->selector == TFU_SEL_LC)
+ if (pst->selector == ODU_SELECTOR_LC)
{
if (cmUnpkTfuDlCqiIndInfo(dlCqiInd, (Ptr)&dlCqiInd->memCp, mBuf) != ROK) {
TFU_FREE_MEM(dlCqiInd);
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmUnpkPtr((PTR *)&dlCqiInd, mBuf) != ROK)
{
TFU_FREE_MEM(datInd);
RETVALUE(RFAILED);
}
- if (pst->selector == TFU_SEL_LC) {
+ if (pst->selector == ODU_SELECTOR_LC) {
if (cmPkTfuDatIndInfo(datInd, mBuf) != ROK) {
#if (ERRCLASS & ERRCLS_ADD_RES)
SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if(cmPkPtr((PTR)datInd, mBuf) != ROK)
{
TFU_FREE_MSG(mBuf);
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
TFU_FREE_MEM(datInd);
}
#endif
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
Mem sMem;
sMem.region = pst->region;
sMem.pool = pst->pool;
}
- if (pst->selector == TFU_SEL_LC)
+ if (pst->selector == ODU_SELECTOR_LC)
{
if (cmUnpkTfuDatIndInfo(datInd, (Ptr)&datInd->memCp, mBuf) != ROK) {
TFU_FREE_MEM(datInd);
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if(cmUnpkPtr((PTR *)&datInd, mBuf) != ROK)
{
TFU_FREE_MEM(crcIndInfo);
RETVALUE(RFAILED);
}
- if (pst->selector == TFU_SEL_LC) {
+ if (pst->selector == ODU_SELECTOR_LC) {
if (cmPkTfuCrcIndInfo(crcIndInfo, mBuf) != ROK) {
#if (ERRCLASS & ERRCLS_ADD_RES)
SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmPkPtr((PTR)crcIndInfo, mBuf) != ROK)
{
TFU_FREE_MSG(mBuf);
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
TFU_FREE_MEM(crcIndInfo);
}
#endif
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
Mem sMem;
sMem.region = pst->region;
sMem.pool = pst->pool;
}
- if (pst->selector == TFU_SEL_LC)
+ if (pst->selector == ODU_SELECTOR_LC)
{
if (cmUnpkTfuCrcIndInfo(crcIndInfo, (Ptr)&crcIndInfo->memCp, mBuf) != ROK) {
TFU_FREE_MEM(crcIndInfo);
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmUnpkPtr((PTR *)&crcIndInfo, mBuf) != ROK)
{
TFU_FREE_MEM(timingAdvInd);
RETVALUE(RFAILED);
}
- if (pst->selector == TFU_SEL_LC) {
+ if (pst->selector == ODU_SELECTOR_LC) {
if (cmPkTfuTimingAdvIndInfo(timingAdvInd, mBuf) != ROK) {
#if (ERRCLASS & ERRCLS_ADD_RES)
SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmPkPtr((PTR)timingAdvInd, mBuf) != ROK)
{
TFU_FREE_MSG(mBuf);
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
TFU_FREE_MEM(timingAdvInd);
}
#endif
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
Mem sMem;
sMem.region = pst->region;
sMem.pool = pst->pool;
}
- if (pst->selector == TFU_SEL_LC)
+ if (pst->selector == ODU_SELECTOR_LC)
{
if (cmUnpkTfuTimingAdvIndInfo(timingAdvInd, (Ptr)&timingAdvInd->memCp, mBuf) != ROK) {
TFU_FREE_MEM(timingAdvInd);
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmUnpkPtr((PTR *)&timingAdvInd, mBuf) != ROK)
{
TFU_FREE_MEM(datReq);
RETVALUE(RFAILED);
}
- if (pst->selector == TFU_SEL_LC) {
+ if (pst->selector == ODU_SELECTOR_LC) {
if (cmPkTfuDatReqInfo(datReq, mBuf) != ROK) {
#if (ERRCLASS & ERRCLS_ADD_RES)
SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if(cmPkPtr((PTR)datReq, mBuf) != ROK)
{
TFU_FREE_MSG(mBuf);
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
TFU_FREE_MEM(datReq);
}
#endif
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
Mem sMem;
sMem.region = pst->region;
sMem.pool = pst->pool;
}
- if (pst->selector == TFU_SEL_LC)
+ if (pst->selector == ODU_SELECTOR_LC)
{
if (cmUnpkTfuDatReqInfo(datReq, (Ptr)&datReq->memCp, mBuf) != ROK) {
TFU_FREE_MEM(datReq);
RETVALUE(RFAILED);
}
}
- else if (pst->selector == TFU_SEL_LWLC)
+ else if (pst->selector == ODU_SELECTOR_LWLC)
{
if(cmUnpkPtr((PTR *)&datReq, mBuf) != ROK)
{
TFU_FREE_MEM(cntrlReq);
RETVALUE(RFAILED);
}
- if (pst->selector == TFU_SEL_LC) {
+ if (pst->selector == ODU_SELECTOR_LC) {
if (cmPkTfuCntrlReqInfo(cntrlReq, mBuf) != ROK) {
#if (ERRCLASS & ERRCLS_ADD_RES)
SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmPkPtr((PTR)cntrlReq, mBuf) != ROK)
{
TFU_FREE_MSG(mBuf);
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
TFU_FREE_MEM(cntrlReq);
}
#endif
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
Mem sMem;
sMem.region = pst->region;
sMem.pool = pst->pool;
}
- if (pst->selector == TFU_SEL_LC)
+ if (pst->selector == ODU_SELECTOR_LC)
{
if (cmUnpkTfuCntrlReqInfo(cntrlReq, (Ptr)&cntrlReq->memCp, mBuf) != ROK) {
TFU_FREE_MEM(cntrlReq);
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmUnpkPtr((PTR *)&cntrlReq, mBuf) != ROK)
{
SPutSBuf(pst->region, pst->pool, (Data *)ttiInd, sizeof(TfuTtiIndInfo));
RETVALUE(RFAILED);
}
- if (pst->selector == TFU_SEL_LC) {
+ if (pst->selector == ODU_SELECTOR_LC) {
if (cmPkTfuTtiIndInfo(ttiInd, mBuf) != ROK) {
#if (ERRCLASS & ERRCLS_ADD_RES)
SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmPkPtr((PTR)ttiInd, mBuf) != ROK)
{
TFU_FREE_MSG(mBuf);
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
if (SPutSBuf(pst->region, pst->pool, (Data *)ttiInd, sizeof(TfuTtiIndInfo)) != ROK) {
#if (ERRCLASS & ERRCLS_ADD_RES)
SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
}
}
- pst->event = (Event) EVTTFUTTIIND;
+ //pst->event = (Event) EVENT_SLOT_IND_TO_MAC;
RETVALUE(SPstTsk(pst,mBuf));
}
-\f
-/***********************************************************
-*
-* Func : cmUnpkTfuTtiInd
-*
-*
-* Desc : This API is the TTI indication from PHY to MAC .
- * @details This primitive provides the timing information (SFN and subframe)
- * which is currently running on the physical layer.
- * @param pst Pointer to the post structure.
- * @param suId SAP ID of the service user.
- * @param ttiInd Pointer to the TfuTtiIndInfo.
- * @return ROK/RFAILED
-*
-*
-* Ret : S16
-*
-* Notes:
-*
-* File :
-*
-**********************************************************/
-#ifdef ANSI
-PUBLIC S16 cmUnpkTfuTtiInd
-(
-TfuTtiInd func,
-Pst *pst,
-Buffer *mBuf
-)
-#else
-PUBLIC S16 cmUnpkTfuTtiInd(func, pst, mBuf)
-TfuTtiInd func;
-Pst *pst;
-Buffer *mBuf;
-#endif
-{
- SuId suId;
- TfuTtiIndInfo *ttiInd;
-
- TRC3(cmUnpkTfuTtiInd)
-
- if (SUnpkS16(&suId, mBuf) != ROK) {
- TFU_FREE_MSG(mBuf);
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ETFU109, (ErrVal)0, "Packing failed");
-#endif
- RETVALUE(RFAILED);
- }
- if (pst->selector != TFU_SEL_LWLC) {
- if ((SGetSBuf(pst->region, pst->pool, (Data **)&ttiInd, sizeof(TfuTtiIndInfo))) != ROK) {
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ETFU110, (ErrVal)0, "Packing failed");
-#endif
- TFU_FREE_MSG(mBuf);
- RETVALUE(RFAILED);
- }
- }
-
- if (pst->selector == TFU_SEL_LC)
- {
- if (cmUnpkTfuTtiIndInfo(ttiInd, mBuf) != ROK) {
- SPutSBuf(pst->region, pst->pool, (Data *)ttiInd, sizeof(TfuTtiIndInfo));
- TFU_FREE_MSG(mBuf);
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ETFU111, (ErrVal)0, "Packing failed");
-#endif
- RETVALUE(RFAILED);
- }
- }
- else if(pst->selector == TFU_SEL_LWLC)
- {
- if (cmUnpkPtr((PTR *)&ttiInd, mBuf) != ROK)
- {
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ETFUXXX, (ErrVal)0, "LWLC un-Packing failed");
-#endif
- SPutSBuf(pst->region, pst->pool, (Data *)ttiInd, sizeof(TfuTtiIndInfo));
- TFU_FREE_MSG(mBuf);
- RETVALUE(RFAILED);
- }
- }
- TFU_FREE_MSG(mBuf);
- /* [ccpu00141698]-MOD- MAC/SCH does not free the TTI ind anymore */
- (*func)(pst, suId, ttiInd);
- SPutSBuf(pst->region, pst->pool, (Data *)ttiInd, sizeof(TfuTtiIndInfo));
-
- RETVALUE((*func)(pst, suId, ttiInd));
-}
-
#if defined(TENB_T2K3K_SPECIFIC_CHANGES) && defined(LTE_TDD)
/***********************************************************
*
#endif
-/***********************************************************
-*
-* Func : cmPkTfuSchTtiInd
-*
-*
-* Desc : This API is the TTI indication from PHY to scheduler.
- * @details This primitive provides the timing information (SFN and subframe)
- * which is currently running on the physical layer.
- * @param pst Pointer to the post structure.
- * @param suId SAP ID of the service user.
- * @param ttiInd Pointer to the TfuTtiIndInfo.
- * @return ROK/RFAILED
-*
-*
-* Ret : S16
-*
-* Notes:
-*
-* File :
-*
-**********************************************************/
-#ifdef ANSI
-PUBLIC S16 cmPkTfuSchTtiInd
-(
-Pst * pst,
-SuId suId,
-TfuTtiIndInfo * ttiInd
-)
-#else
-PUBLIC S16 cmPkTfuSchTtiInd(pst, suId, ttiInd)
-Pst * pst;
-SuId suId;
-TfuTtiIndInfo * ttiInd;
-#endif
-{
- Buffer *mBuf = NULLP;
- TRC3(cmPkTfuSchTtiInd)
-
- if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) {
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ETFU112, (ErrVal)0, "Packing failed");
-#endif
- SPutSBuf(pst->region, pst->pool, (Data *)ttiInd, sizeof(TfuTtiIndInfo));
- RETVALUE(RFAILED);
- }
- if (pst->selector == TFU_SEL_LC) {
- if (cmPkTfuTtiIndInfo(ttiInd, mBuf) != ROK) {
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ETFU113, (ErrVal)0, "Packing failed");
-#endif
- SPutSBuf(pst->region, pst->pool, (Data *)ttiInd, sizeof(TfuTtiIndInfo));
- TFU_FREE_MSG(mBuf);
- RETVALUE(RFAILED);
- }
- }
- else if(pst->selector == TFU_SEL_LWLC)
- {
- if (cmPkPtr((PTR)ttiInd, mBuf) != ROK)
- {
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ETFUXXX, (ErrVal)0, "LWLC Packing failed");
-#endif
- SPutSBuf(pst->region, pst->pool, (Data *)ttiInd, sizeof(TfuTtiIndInfo));
- TFU_FREE_MSG(mBuf);
- RETVALUE(RFAILED);
- }
- }
-
- if (SPkS16(suId, mBuf) != ROK) {
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ETFU114, (ErrVal)0, "Packing failed");
-#endif
- SPutSBuf(pst->region, pst->pool, (Data *)ttiInd, sizeof(TfuTtiIndInfo));
- TFU_FREE_MSG(mBuf);
- RETVALUE(RFAILED);
- }
- if (pst->selector != TFU_SEL_LWLC) {
- if (SPutSBuf(pst->region, pst->pool, (Data *)ttiInd, sizeof(TfuTtiIndInfo)) != ROK) {
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ETFU115, (ErrVal)0, "Packing failed");
-#endif
- TFU_FREE_MSG(mBuf);
- RETVALUE(RFAILED);
- }
- }
- pst->event = (Event) EVTTFUSCHTTIIND;
- RETVALUE(SPstTsk(pst,mBuf));
-}
-
-\f
-/***********************************************************
-*
-* Func : cmUnpkTfuSchTtiInd
-*
-*
-* Desc : This API is the TTI indication from PHY to scheduler.
- * @details This primitive provides the timing information (SFN and subframe)
- * which is currently running on the physical layer.
- * @param pst Pointer to the post structure.
- * @param suId SAP ID of the service user.
- * @param ttiInd Pointer to the TfuTtiIndInfo.
- * @return ROK/RFAILED
-*
-*
-* Ret : S16
-*
-* Notes:
-*
-* File :
-*
-**********************************************************/
-#ifdef ANSI
-PUBLIC S16 cmUnpkTfuSchTtiInd
-(
-TfuSchTtiInd func,
-Pst *pst,
-Buffer *mBuf
-)
-#else
-PUBLIC S16 cmUnpkTfuSchTtiInd(func, pst, mBuf)
-TfuSchTtiInd func;
-Pst *pst;
-Buffer *mBuf;
-#endif
-{
- SuId suId;
- TfuTtiIndInfo *ttiInd;
-
- TRC3(cmUnpkTfuSchTtiInd)
-
- if (SUnpkS16(&suId, mBuf) != ROK) {
- TFU_FREE_MSG(mBuf);
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ETFU116, (ErrVal)0, "Packing failed");
-#endif
- RETVALUE(RFAILED);
- }
- if (pst->selector != TFU_SEL_LWLC) {
- if ((SGetSBuf(pst->region, pst->pool, (Data **)&ttiInd, sizeof(TfuTtiIndInfo))) != ROK) {
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ETFU117, (ErrVal)0, "Packing failed");
-#endif
- TFU_FREE_MSG(mBuf);
- RETVALUE(RFAILED);
- }
- }
-
- if (pst->selector == TFU_SEL_LC)
- {
- if (cmUnpkTfuTtiIndInfo(ttiInd, mBuf) != ROK) {
- SPutSBuf(pst->region, pst->pool, (Data *)ttiInd, sizeof(TfuTtiIndInfo));
- TFU_FREE_MSG(mBuf);
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ETFU118, (ErrVal)0, "Packing failed");
-#endif
- RETVALUE(RFAILED);
- }
- }
- else if(pst->selector == TFU_SEL_LWLC)
- {
- if (cmUnpkPtr((PTR *)&ttiInd, mBuf) != ROK)
- {
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ETFUXXX, (ErrVal)0, "LWLC un-Packing failed");
-#endif
- SPutSBuf(pst->region, pst->pool, (Data *)ttiInd, sizeof(TfuTtiIndInfo));
- TFU_FREE_MSG(mBuf);
- RETVALUE(RFAILED);
- }
- }
- TFU_FREE_MSG(mBuf);
- /* [ccpu00141698]-MOD- MAC/SCH does not free the TTI ind anymore */
- (*func)(pst, suId, ttiInd);
- SPutSBuf(pst->region, pst->pool, (Data *)ttiInd, sizeof(TfuTtiIndInfo));
-
- RETVALUE(ROK);
-}
-
\f
/***********************************************************
*
SPutSBuf(pst->region, pst->pool, (Data *)pucchDeltaPwr, sizeof(TfuPucchDeltaPwrIndInfo));
RETVALUE(RFAILED);
}
- if (pst->selector == TFU_SEL_LC) {
+ if (pst->selector == ODU_SELECTOR_LC) {
if (cmPkTfuPucchDeltaPwrIndInfo(pucchDeltaPwr, mBuf) != ROK) {
#if (ERRCLASS & ERRCLS_ADD_RES)
SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmPkPtr((PTR)pucchDeltaPwr, mBuf) != ROK)
{
TFU_FREE_MSG(mBuf);
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
TFU_FREE_MEM(pucchDeltaPwr);
}
pst->event = (Event) EVTTFUPUCCHDELPWR;
#endif
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
Mem sMem;
sMem.region = pst->region;
sMem.pool = pst->pool;
}
}
- if (pst->selector == TFU_SEL_LC)
+ if (pst->selector == ODU_SELECTOR_LC)
{
if (cmUnpkTfuPucchDeltaPwrIndInfo(pucchDeltaPwr, (Ptr)&pucchDeltaPwr->memCp, mBuf) != ROK) {
TFU_FREE_MEM(pucchDeltaPwr);
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmUnpkPtr((PTR *)&pucchDeltaPwr, mBuf) != ROK)
{
/* CA dev End */
\f
-/***********************************************************
-*
-* Func : cmUnpkTfuTtiIndInfo
-*
-*
-* Desc : This structure contains information that is passed as a part of the TTI
- * indication sent from PHY to MAC.
-*
-*
-* Ret : S16
-*
-* Notes:
-*
-* File :
-*
-**********************************************************/
-#ifdef ANSI
-PUBLIC S16 cmUnpkTfuTtiIndInfo
-(
-TfuTtiIndInfo *param,
-Buffer *mBuf
-)
-#else
-PUBLIC S16 cmUnpkTfuTtiIndInfo(param, mBuf)
-TfuTtiIndInfo *param;
-Buffer *mBuf;
-#endif
-{
-
- S32 i;
- TRC3(cmUnpkTfuTtiIndInfo)
-
- /* CA dev Start */
- CMCHKUNPK(SUnpkU8, ¶m->numCells, mBuf);
- for (i=0; i<(param->numCells); i++) {
- CMCHKUNPK(cmUnpkTfuTtiCellInfo, ¶m->cells[i], mBuf);
- }
- /* CA dev End */
- RETVALUE(ROK);
-}
-
-
-\f
/***********************************************************
*
* Func : cmPkTfuRaReqInfo
SPutSBuf(pst->region, pst->pool, (Data *)errInd, sizeof(TfuErrIndInfo));
RETVALUE(RFAILED);
}
- if (pst->selector == TFU_SEL_LC) {
+ if (pst->selector == ODU_SELECTOR_LC) {
if (cmPkTfuErrIndInfo(errInd, mBuf) != ROK) {
#if (ERRCLASS & ERRCLS_ADD_RES)
SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmPkPtr((PTR)errInd, mBuf) != ROK)
{
TFU_FREE_MSG(mBuf);
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
if (SPutSBuf(pst->region, pst->pool, (Data *)errInd, sizeof(TfuErrIndInfo)) != ROK) {
#if (ERRCLASS & ERRCLS_ADD_RES)
SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
#endif
RETVALUE(RFAILED);
}
- if (pst->selector != TFU_SEL_LWLC) {
+ if (pst->selector != ODU_SELECTOR_LWLC) {
if ((SGetSBuf(pst->region, pst->pool, (Data **)&errInd, sizeof(TfuErrIndInfo))) != ROK) {
#if (ERRCLASS & ERRCLS_ADD_RES)
SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
}
}
- if (pst->selector == TFU_SEL_LC)
+ if (pst->selector == ODU_SELECTOR_LC)
{
if (cmUnpkTfuErrIndInfo(errInd, mBuf) != ROK) {
SPutSBuf(pst->region, pst->pool, (Data *)errInd, sizeof(TfuErrIndInfo));
RETVALUE(RFAILED);
}
}
- else if(pst->selector == TFU_SEL_LWLC)
+ else if(pst->selector == ODU_SELECTOR_LWLC)
{
if (cmUnpkPtr((PTR *)&errInd, mBuf) != ROK)
{