X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fmac_sch_interface.c;h=9d1cd0e3f4002db85e5f6b063820bc000c917f8d;hb=de6a435729e3cad9d4a66329080b8206a64f452c;hp=397697ce1c3c5d95b32fe4606d7ea5e311f56f5b;hpb=c946e9243610d6fb122e34674eeab874f7d2f7a4;p=o-du%2Fl2.git diff --git a/src/cm/mac_sch_interface.c b/src/cm/mac_sch_interface.c index 397697ce1..9d1cd0e3f 100644 --- a/src/cm/mac_sch_interface.c +++ b/src/cm/mac_sch_interface.c @@ -326,6 +326,36 @@ uint8_t packMacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd) return ROK; } +/******************************************************************* + * + * @brief Pack and Send HARQ UCI Ind from MAC to SCH + * + * @details + * + * Function : packMacHarqSchUciInd + * + * Functionality: + * Pack and Send HARQ UCI Ind from MAC to SCH + * + * @params[in] + * @return ROK - success + * RFAILED - failure + * + * ****************************************************************/ +uint8_t packMacSchHarqUciInd(Pst *pst, HarqUciIndInfo *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 @@ -415,6 +445,36 @@ uint8_t packSchRachRsrcRsp(Pst *pst, SchRachRsrcRsp *schRachRsrcRsp) return ROK; } +/******************************************************************* + * + * @brief Pack and Send RACH resource Release from MAC to SCH + * + * @details + * + * Function : packMacSchRachRsrcRel + * + * Functionality: + * Pack and Send RACH resouece Release from MAC to SCH + * + * @params[in] Post structure + * RACH resource release + * @return ROK - success + * RFAILED - failure + * + * ****************************************************************/ +uint8_t packMacSchRachRsrcRel(Pst *pst, SchRachRsrcRel *schRachRsrcRel) +{ + 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 @@ -608,6 +668,73 @@ uint8_t packSchSliceReCfgRsp(Pst *pst, SchSliceCfgRsp *cfgRsp) return ROK; } +/******************************************************************* + * + * @brief Pack and Send paging indication from MAC to SCH + * + * @details + * + * Function : packMacSchPagingInd + * + * Functionality: + * Pack and Send paging indication from MAC to SCH + * + * @params[in] Pst *pst, SchPageInd *pageInd + * @return ROK - success + * RFAILED - failure + * + * ****************************************************************/ +uint8_t packMacSchPagingInd(Pst *pst, SchPageInd *pageInd) +{ + if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LC)) + { + /* TODO */ + } + else + { + return RFAILED; + } + return ROK; +} + +/** + * @brief function to pack DL Paging allocation message + * from MAC to SCH + * + * @details + * + * Function : packSchMacDlPageAlloc + * + * + * @param[in] Pst *pst, the post structure + * @param[in] DlPageAlloc *dlPageAlloc + * @return S16 + * -# ROK + **/ +uint8_t packSchMacDlPageAlloc(Pst *pst, DlPageAlloc *dlPageAlloc) +{ + return ROK; +} + +/** + * @brief function to pack Harq process release message + * from SCH to MAC + * + * @details + * + * Function : packSchMacDlReleaseHarq + * + * + * @param[in] Pst *pst, the post structure + * @param[in] SchRlsHqInfo *rlsHqInfo + * @return S16 + * -# ROK + **/ +uint8_t packSchMacDlReleaseHarq(Pst *pst, SchRlsHqInfo *rlsHqInfo) +{ + return ROK; +} + /********************************************************************** End of file **********************************************************************/