registered with SSI during the LTE MAC Task initialization.
*/
/* header include files -- defines (.h) */
-#include "envopt.h" /* environment options */
-#include "envdep.h" /* environment dependent */
-#include "envind.h" /* environment independent */
-#include "gen.h" /* general layer */
-#include "ssi.h" /* system services */
-#include "cm5.h" /* common timers defines */
-#include "cm_hash.h" /* common hash list defines */
-#include "cm_llist.h" /* common linked list defines */
-#include "cm_mblk.h" /* memory management */
-#include "cm_tkns.h" /* common tokens */
-#include "cm_lte.h" /* common tokens */
+#include "common_def.h"
#include "rgu.h" /* RGU defines */
#include "tfu.h" /* RGU defines */
#include "lrg.h" /* layer management defines for LTE-MAC */
/* header/extern include files (.x) */
-#include "gen.x" /* general layer typedefs */
-#include "ssi.x" /* system services typedefs */
-#include "cm5.x" /* common timers */
-#include "cm_hash.x" /* common hash list */
-#include "cm_lib.x" /* common library */
-#include "cm_llist.x" /* common linked list */
-#include "cm_mblk.x" /* memory management */
-#include "cm_tkns.x" /* common tokens */
-#include "cm_lte.x" /* common tokens */
#include "rgu.x" /* RGU types */
#include "tfu.x" /* RGU types */
#include "lrg.x" /* layer management typedefs for MAC */
#include "crg.x" /* CRG interface typedes */
#include "rg_sch_inf.x" /* SCH interface typedefs */
#include "rg_prg.x" /*PRG interface includes*/
-#include "mac_interface.h"
+#include "du_app_mac_inf.h"
#include "rg.x" /* typedefs for MAC */
-
+#include "rlc_mac_inf.h"
+#include "lwr_mac_upr_inf.h"
/**
* @brief Task Activation callback function Entity SM.
* @return void
**/
#ifdef ANSI
-PRIVATE INLINE void rgHdlSMEvents
+static inline void rgHdlSMEvents
(
Pst *pst, /* post structure */
Buffer *mBuf /* message buffer */
)
#else
-PRIVATE INLINE void rgHdlSMEvents(pst, mBuf)
+static inline void rgHdlSMEvents(pst, mBuf)
Pst *pst; /* post structure */
Buffer *mBuf; /* message buffer */
#endif
{
- TRC2(rgHdlSMEvents)
-
switch(pst->event)
{
#ifdef LCRGMILRG
/* Process a config. request */
cmUnpkLrgSchCfgReq(MacSchGenCfgReq, pst, mBuf);
break;
- case EVTMACSCHCFGREQ:
- cmUnpkRgrCfgReq(MacSchCfgReq, pst, mBuf);
- break;
case EVTLRGCNTRLREQ:
/* Process a control request */
cmUnpkLrgCntrlReq(RgMiLrgCntrlReq, pst, mBuf);
#endif /* LCRGMILRG */
case EVENT_MAC_CELL_CONFIG_REQ:
/* Process MAC cell config */
- unpackDuMacCellCfg(handleMacCellCfgReq, pst, mBuf);
- break;
+ unpackDuMacCellCfg(MacProcCellCfgReq, pst, mBuf);
+ break;
+ case EVENT_MAC_CELL_START_REQ:
+ /* Process MAC cell start request */
+ unpackMacCellStartReq(MacProcCellStartReq, pst, mBuf);
+ break;
+ case EVENT_MAC_CELL_STOP_REQ:
+ /* Process MAC cell stop request */
+ unpackMacCellStopReq(MacProcCellStopReq, pst, mBuf);
+ break;
+ case EVENT_MAC_DL_CCCH_IND:
+ /* Process DL CCCH Ind */
+ unpackMacDlCcchInd(MacProcDlCcchInd, pst, mBuf);
+ break;
+ case EVENT_MAC_UE_CREATE_REQ:
+ /* Process Ue Create Request */
+ unpackMacUeCreateReq(MacProcUeCreateReq, pst, mBuf);
+ break;
+ case EVENT_MAC_UE_RECONFIG_REQ:
+ /* Process Ue Reconfig Request */
+ unpackMacUeReconfigReq(MacProcUeReconfigReq, pst, mBuf);
+ break;
default:
RG_FREE_MSG(mBuf);
break;
* @return void
**/
#ifdef ANSI
-PRIVATE INLINE void rgHdlNHEvents
+static inline void rgHdlNHEvents
(
Pst *pst, /* post structure */
Buffer *mBuf /* message buffer */
)
#else
-PRIVATE INLINE void rgHdlNHEvents(pst, mBuf)
+static inline void rgHdlNHEvents(pst, mBuf)
Pst *pst; /* post structure */
Buffer *mBuf; /* message buffer */
#endif
{
- TRC2(rgHdlNHEvents)
-
switch(pst->event)
{
#ifdef LCRGUICRG
* @return void
**/
#ifdef ANSI
-PRIVATE INLINE void rgHdlKWEvents
+static inline void rgHdlKWEvents
(
Pst *pst, /* post structure */
Buffer *mBuf /* message buffer */
)
#else
-PRIVATE INLINE void rgHdlKWEvents(pst, mBuf)
+static inline void rgHdlKWEvents(pst, mBuf)
Pst *pst; /* post structure */
Buffer *mBuf; /* message buffer */
#endif
{
- TRC2(rgHdlKWEvents)
-
switch(pst->event)
{
#ifdef LCRGUIRGU
case EVTRGUUBNDREQ:
cmUnpkRguUbndReq(RgUiRguUbndReq, pst, mBuf);
break;
- case EVTRLCDLDAT:
- unpackDlData(RgUiRguDDatReq, pst, mBuf);
+ case EVENT_DL_DATA_TO_MAC:
+ unpackRlcDlData(MacProcRlcDlData, pst, mBuf);
break;
- case EVTRLCBOSTA:
- unpackBOStatus(RgUiRguDStaRsp, pst, mBuf);
+ case EVENT_BO_STATUS_TO_MAC:
+ unpackRlcBoStatus(MacProcRlcBoStatus, pst, mBuf);
break;
#ifdef LTE_L2_MEAS
* @return void
**/
#ifdef ANSI
-PRIVATE INLINE void rgHdlTFEvents
+static inline void rgHdlTFEvents
(
Pst *pst, /* post structure */
Buffer *mBuf /* message buffer */
)
#else
-PRIVATE INLINE void rgHdlTFEvents(pst, mBuf)
+static inline void rgHdlTFEvents(pst, mBuf)
Pst *pst; /* post structure */
Buffer *mBuf; /* message buffer */
#endif
{
- TRC2(rgHdlTFEvents)
-
switch(pst->event)
{
-#if (defined(LCRGLITFU) || defined(LWLCRGLITFU))
- case EVTTFUBNDCFM:
- cmUnpkTfuBndCfm(RgLiTfuBndCfm, pst, mBuf);
- break;
- case EVTTFUDATIND:
- cmUnpkTfuDatInd(RgLiTfuDatInd, pst, mBuf);
- break;
- case EVTTFUTTIIND:
- cmUnpkTfuTtiInd(RgLiTfuTtiInd, pst, mBuf);
- break;
-#if defined(TENB_T2K3K_SPECIFIC_CHANGES) && defined(LTE_TDD)
- case EVTTFUNONRTIND:
- cmUnpkTfuNonRtInd(RgLiTfuNonRtInd, pst, mBuf);
- break;
-#endif
-#endif
+ case EVENT_SLOT_IND_TO_MAC:
+ unpackSlotInd(fapiMacSlotInd, pst, mBuf);
+ break;
+ case EVENT_STOP_IND_TO_MAC:
+ unpackStopInd(fapiMacStopInd, pst, mBuf);
+ break;
+ case EVENT_RACH_IND_TO_MAC:
+ unpackRachInd(fapiMacRachInd, pst, mBuf);
+ break;
+ case EVENT_CRC_IND_TO_MAC:
+ unpackCrcInd(fapiMacCrcInd, pst, mBuf);
+ break;
+ case EVENT_RX_DATA_IND_TO_MAC:
+ unpackRxDataInd(fapiMacRxDataInd, pst, mBuf);
+ break;
+ case EVENT_UCI_IND_TO_MAC:
+ unpackUciInd(FapiMacUciInd, pst, mBuf);
+ break;
default:
RG_FREE_MSG(mBuf);
break;
* @return void
**/
#ifdef ANSI
-PRIVATE INLINE void rgHdlRGEvents
+static inline void rgHdlRGEvents
(
Pst *pst, /* post structure */
Buffer *mBuf /* message buffer */
)
#else
-PRIVATE INLINE void rgHdlRGEvents(pst, mBuf)
+static inline void rgHdlRGEvents(pst, mBuf)
Pst *pst; /* post structure */
Buffer *mBuf; /* message buffer */
#endif
{
- TRC2(rgHdlRGEvents)
-
switch(pst->event)
{
#ifdef LCRG
* -# ROK
**/
#ifdef ANSI
-PUBLIC S16 rgActvTsk
+S16 rgActvTsk
(
Pst *pst, /* post structure */
Buffer *mBuf /* message buffer */
)
#else
-PUBLIC S16 rgActvTsk(pst, mBuf)
+S16 rgActvTsk(pst, mBuf)
Pst *pst; /* post structure */
Buffer *mBuf; /* message buffer */
#endif
{
- TRC2(rgActvTsk)
-
switch(pst->srcEnt)
{
/* The originator of this message is the stack manager,
case ENTNH:
rgHdlNHEvents(pst, mBuf);
break;
- case ENTKW:
+ case ENTRLC:
rgHdlKWEvents(pst, mBuf);
break;
- case ENTTF:
+ case ENTLWRMAC:
rgHdlTFEvents(pst, mBuf);
break;
- case ENTRG: /* When scheduler instance sends msg to MAC */
+ case ENTMAC: /* When scheduler instance sends msg to MAC */
rgHdlRGEvents(pst, mBuf);
break;
default:
RG_FREE_MSG(mBuf);
break;
}
- SExitTsk();
- RETVALUE(ROK);
+ ODU_EXIT_TASK();
+ return ROK;
}/* end of rgActvTsk */
\f