/* 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 "tfu.h" /* RGU Interface defines */
+#include "common_def.h"
#include "lrg.h"
-//#include "fapi.h"
/* 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 "lrg.x"
-
-#include "du_app_mac_inf.h"
#include "mac_sch_interface.h"
/**
* @return S16
* -# ROK
**/
-int packMacSchSlotInd(Pst *pst, SlotIndInfo *slotInd)
+uint8_t packMacSchSlotInd(Pst *pst, SlotTimingInfo *slotInd)
{
Buffer *mBuf = NULLP;
- if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK)
+ if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
- RETVALUE(RFAILED);
+ return RFAILED;
}
/* pack SFN and slot value */
- CMCHKPK(SPkU16,slotInd->sfn, mBuf);
- CMCHKPK(SPkU16,slotInd->slot, mBuf);
+ CMCHKPK(oduUnpackUInt16,slotInd->sfn, mBuf);
+ CMCHKPK(oduUnpackUInt16,slotInd->slot, mBuf);
- RETVALUE(SPstTsk(pst,mBuf));
+ return ODU_POST_TASK(pst,mBuf);
+}
+
+/**
+ * @brief function to unpack Slot ind message from MAC
+ * to scheduler with loose coupling
+ *
+ * @details
+ *
+ * Function : unpackMacSchSlotInd
+ *
+ *
+ * @param[in] Pst *pst, the post structure
+ * @param[in] Buffer *mBuf, the message buffer
+ * @return S16
+ * -# ROK
+ **/
+uint8_t unpackMacSchSlotInd(MacSchSlotIndFunc func, Pst *pst, Buffer *mBuf)
+{
+ /* TODO */
+ return ROK;
+}
+
+
+/*******************************************************************
+ *
+ * @brief Pack and Send Rach Ind from MAC to SCH
+ *
+ * @details
+ *
+ * Function : packMacSchRachInd
+ *
+ * Functionality:
+ * Pack and Send Rach Ind from MAC to SCH
+ *
+ * @params[in]
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t packMacSchRachInd(Pst *pst, RachIndInfo *rachInd)
+{
+ if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LWLC))
+ {
+ /* TODO */
+ }
+ else
+ {
+ return RFAILED;
+ }
+ return ROK;
+}
+
+/*******************************************************************
+ *
+ * @brief Pack and Send Crc Ind from MAC to SCH
+ *
+ * @details
+ *
+ * Function : packMacSchCrcInd
+ *
+ * Functionality:
+ * Pack and Send Crc Ind from MAC to SCH
+ *
+ * @params[in]
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t packMacSchCrcInd(Pst *pst, CrcIndInfo *crcInd)
+{
+ if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LWLC))
+ {
+ /* TODO */
+ }
+ else
+ {
+ return RFAILED;
+ }
+ return ROK;
+}
+
+/*******************************************************************
+ *
+ * @brief Pack and Send DL RLC BO Info from MAC to SCH
+ *
+ * @details
+ *
+ * Function : packMacSchDlRlcBoInfo
+ *
+ * Functionality:
+ * Pack and Send L RLC BO Info from MAC to SCH
+ *
+ * @params[in]
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t packMacSchDlRlcBoInfo(Pst *pst, DlRlcBoInfo *dlBoInfo)
+{
+ if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LWLC))
+ {
+ /* TODO */
+ }
+ else
+ {
+ return RFAILED;
+ }
+ return ROK;
}
/**
*
* @details
*
- * Function : packSchMaccDlBrdcstAlloc
+ * Function : packSchMaccDlAlloc
*
*
* @param[in] Pst *pst, the post structure
- * @param[in] *dlBrdcstAlloc, dlBroadcastAlloc
+ * @param[in] DlSchedInfo *dlSchedInfo
* @return S16
* -# ROK
**/
-int packSchMacDlBrdcstAlloc(Pst *pst, DlBrdcstAlloc *dlBrdcstAlloc)
+uint8_t packSchMacDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo)
{
- return ROK;
+ return ROK;
}
/**
*
*
* @param[in] Pst *pst, the post structure
- * @param[in] *ulSchInfo, UlSchInfo
+ * @param[in] UlSchedInfo *ulSchedInfo
* @return S16
* -# ROK
**/
-int packSchMacUlSchInfo(Pst *pst, UlSchInfo *ulSchInfo)
+uint8_t packSchMacUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo)
{
- return ROK;
+ return ROK;
}
/**
* @return S16
* -# ROK
**/
-int packSchCellCfg(Pst *pst, SchCellCfg *schCellCfg)
+uint8_t packSchCellCfg(Pst *pst, SchCellCfg *schCellCfg)
{
- return ROK;
+ return ROK;
}
/**
* @return S16
* -# ROK
**/
-int packSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm)
+uint8_t packSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm)
+{
+ return ROK;
+}
+
+/*******************************************************************
+ *
+ * @brief Pack and Send UE Config Request from MAC to SCH
+ *
+ * @details
+ *
+ * Function : packMacSchAddUeConfigReq
+ *
+ * Functionality:
+ * Pack and Send UE Create Request from MAC to SCH
+ *
+ * @params[in]
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t packMacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfg)
+{
+ if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LC))
+ {
+ /* TODO */
+ }
+ else
+ {
+ return RFAILED;
+ }
+ return ROK;
+}
+
+
+/*******************************************************************
+ *
+ * @brief Packs and send UE create response
+ *
+ * @details
+ *
+ * Function : packSchUeCfgRsp
+ *
+ * Functionality:
+ * Packs and send UE create response
+ *
+ * @params[in] Post structure
+ * UE config response
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t packSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp)
{
- return ROK;
+ return ROK;
+}
+/*******************************************************************
+ *
+ * @brief Pack and Send BSR from MAC to SCH
+ *
+ * @details
+ *
+ * Function : packMacSchBsr
+ *
+ * Functionality:
+ * Pack and Send BSR from MAC to SCH
+ *
+ * @params[in]
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t packMacSchBsr(Pst *pst, UlBufferStatusRptInd *bsrInd)
+{
+ if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LWLC))
+ {
+ /* TODO */
+ }
+ else
+ {
+ return RFAILED;
+ }
+ return ROK;
}
+/*******************************************************************
+ *
+ * @brief Pack and Send SR UCI Ind from MAC to SCH
+ *
+ * @details
+ *
+ * Function : packMacSrSchUciInd
+ *
+ * Functionality:
+ * Pack and Send SR UCI Ind from MAC to SCH
+ *
+ * @params[in]
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t packMacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd)
+{
+ if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LWLC))
+ {
+ /* TODO */
+ }
+ else
+ {
+ return RFAILED;
+ }
+ return ROK;
+}
+
+/*******************************************************************
+ *
+ * @brief Pack and Send Modify UE Config Request from MAC to SCH
+ *
+ * @details
+ *
+ * Function : packMacSchModUeConfigReq
+ *
+ * Functionality:
+ * Pack and Send Modify UE Config Request from MAC to SCH
+ *
+ * @params[in]
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t packMacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfg)
+{
+ if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LC))
+ {
+ /* TODO */
+ }
+ else
+ {
+ return RFAILED;
+ }
+ return ROK;
+}
+
+/*******************************************************************
+*
+* @brief Pack and Send UE Delete Request from MAC to SCH
+*
+* @details
+*
+* Function : packMacSchUeDeleteReq
+*
+* Functionality:
+* Pack and Send UE Delete Request from MAC to SCH
+*
+* @params[in]
+* @return ROK - success
+* RFAILED - failure
+*
+* ****************************************************************/
+uint8_t packMacSchUeDeleteReq(Pst *pst, SchUeDelete *schUeDel)
+{
+ if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LC))
+ {
+ /* TODO */
+ }
+ else
+ {
+ return RFAILED;
+ }
+ return ROK;
+}
+
+/*******************************************************************
+*
+* @brief Packs and send UE delete response
+*
+* @details
+*
+* Function : packSchUeDeleteRsp
+*
+* Functionality:
+* Packs and send UE delete response
+*
+* @params[in] Post structure
+* UE delete response
+* @return ROK - success
+* RFAILED - failure
+*
+* ****************************************************************/
+
+uint8_t packSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *delRsp)
+{
+ return ROK;
+}
+
+/*******************************************************************
+ *
+ * @brief Pack and Send Cell Delete Request from MAC to SCH
+ *
+ * @details
+ *
+ * Function : packMacSchCellDeleteReq
+ *
+ * Functionality:
+ * Pack and Send Cell Delete Request from MAC to SCH
+ *
+ * @params[in] Pst *pst, SchCellDelete *schCellDelete
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t packMacSchCellDeleteReq(Pst *pst, SchCellDelete *schCellDelete)
+{
+ if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LC))
+ {
+ /* TODO */
+ }
+ else
+ {
+ return RFAILED;
+ }
+ return ROK;
+}
+
+/*******************************************************************
+ *
+ * @brief Packs and send CELL delete response
+ *
+ * @details
+ *
+ * Function : packSchCellDeleteRsp
+ *
+ * Functionality:
+ * * @params[in] Post structure, SchCellDeleteRsp schCellDeleteRsp
+ *
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ *
+ * ****************************************************************/
+
+uint8_t packSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDeleteRsp)
+{
+ return ROK;
+}
+
+/*******************************************************************
+ *
+ * @brief Pack and Send Slice Cfg request from MAC to SCH
+ *
+ * @details
+ *
+ * Function : packMacSchSliceCfgReq
+ *
+ * Functionality:
+ * Pack and Send Slice Cfg request from MAC to SCH
+ *
+ * @params[in] Pst *pst, SchSliceCfgReq *cfgReq
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t packMacSchSliceCfgReq(Pst *pst, SchSliceCfgReq *cfgReq)
+{
+ if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LWLC))
+ {
+ /* TODO */
+ }
+ else
+ {
+ return RFAILED;
+ }
+ return ROK;
+}
+
+/**
+ * @brief function to pack slice cfg rsp from SCH to MAC
+ *
+ * @details
+ *
+ * Function : packSchSliceCfgRsp
+ *
+ *
+ * @param[in] Pst *pst, SchSliceCfgRsp *cfgRsp
+ * @return S16 - ROK
+ **/
+uint8_t packSchSliceCfgRsp(Pst *pst, SchSliceCfgRsp *cfgRsp)
+{
+ return ROK;
+}
+
+/*******************************************************************
+ *
+ * @brief Pack and Send Slice ReCfg request from MAC to SCH
+ *
+ * @details
+ *
+ * Function : packMacSchSliceReCfgReq
+ *
+ * Functionality:
+ * Pack and Send Slice ReCfg request from MAC to SCH
+ *
+ * @params[in] Pst *pst, SchSliceCfgReq *cfgReq
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t packMacSchSliceReCfgReq(Pst *pst, SchSliceCfgReq *cfgReq)
+{
+ if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LWLC))
+ {
+ /* TODO */
+ }
+ else
+ {
+ return RFAILED;
+ }
+ return ROK;
+}
+
+/**
+ * @brief function to pack slice cfg rsp from SCH to MAC
+ *
+ * @details
+ *
+ * Function : packSchSliceReCfgRsp
+ *
+ *
+ * @param[in] Pst *pst, SchSliceCfgRsp *cfgRsp
+ * @return S16 - ROK
+ **/
+uint8_t packSchSliceReCfgRsp(Pst *pst, SchSliceCfgRsp *cfgRsp)
+{
+ return ROK;
+}
/**********************************************************************
End of file