X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fmac_sch_interface.c;h=9d1cd0e3f4002db85e5f6b063820bc000c917f8d;hb=ba99af5e5ea60b0d8eede9f3323fc9a9991fcfe3;hp=b6dc192df440f247180340a5134c736ec69c7582;hpb=2b1e3e044e619637fafa8829789d6798d8f9bdb0;p=o-du%2Fl2.git diff --git a/src/cm/mac_sch_interface.c b/src/cm/mac_sch_interface.c index b6dc192df..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 @@ -637,6 +697,44 @@ uint8_t packMacSchPagingInd(Pst *pst, SchPageInd *pageInd) 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 **********************************************************************/