X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Frg_lim.c;fp=src%2F5gnrmac%2Frg_lim.c;h=be24dac76632826d67c5943cd3896b964d075b41;hb=ee769160fe5360f0d3ea043deaede2902ae13073;hp=a1a7ff122b5c680e5c668a5738faca4c5e912965;hpb=aa526133f1f94ca507ebb3f2eeab26afd3ad8821;p=o-du%2Fl2.git diff --git a/src/5gnrmac/rg_lim.c b/src/5gnrmac/rg_lim.c index a1a7ff122..be24dac76 100755 --- a/src/5gnrmac/rg_lim.c +++ b/src/5gnrmac/rg_lim.c @@ -84,17 +84,6 @@ PRIVATE S16 rgLIMValidateSap ARGS((Inst inst,SuId suId)); #endif PRIVATE Void rgLIMUtlFreeDatIndEvnt ARGS((TfuDatIndInfo *datInd, Bool error)); - -/* function pointers for packing slot ind from mac to sch */ -//S16 packMacSchSlotInd(Pst *pst, SlotIndInfo *slotInd); - -MacSchSlotIndFunc macSchSlotIndOpts[] = -{ - packMacSchSlotInd, - macSchSlotInd, - packMacSchSlotInd -}; - #ifdef RG_UNUSED PRIVATE Void rgLIMUtlFreeDatReqEvnt ARGS((TfuDatReqInfo *datReq, Bool error)); @@ -655,91 +644,6 @@ void fapiMacConfigRsp() MacSendCellCfgCfm(RSP_OK); } -/** - * @brief Transmission time interval indication from PHY. - * - * @details - * - * Function : sendSlotIndMacToSch - * - * This API is invoked by MAC to send slot ind to scheduler. - * - * @param[in] SlotIndInfo *slotInd - * @return S16 - * -# ROK - * -# RFAILED - **/ -int sendSlotIndMacToSch(SlotIndInfo *slotInd) -{ - /* fill Pst structure to send to lwr_mac to MAC */ - Pst pst; - - fillMacToSchPst(&pst); - pst.event = EVENT_SLOT_IND_TO_SCH; - - return(*macSchSlotIndOpts[pst.selector])(&pst,slotInd); -} - - -/******************************************************************* - * - * @brief Send slot indication to DU APP - * - * @details - * - * Function : sendSlotIndMacToDuApp - * - * Functionality: - * Send slot indication to DU APP - * - * @params[in] Slot indication info - * @return ROK - success - * RFAILED - failure - * - * ****************************************************************/ -int sendSlotIndMacToDuApp(SlotIndInfo *slotInd) -{ - Pst pst; - uint16_t ret; - SlotInfo *slotInfo; - - /* Allocate sharable memory */ - MAC_ALLOC_SHRABL_BUF(slotInfo, sizeof(SlotInfo)); - if(!slotInfo) - { - DU_LOG("\nMAC : Slot Indication memory allocation failed"); - return RFAILED; - } - - slotInfo->cellId = macCb.macCell->cellId; - slotInfo->sfn = slotInd->sfn; - slotInfo->slot = slotInd->slot; - - /* Fill Pst */ - pst.selector = DU_MAC_LWLC; - pst.srcEnt = ENTRG; - pst.dstEnt = ENTDUAPP; - pst.dstInst = 0; - pst.srcInst = macCb.macInst; - pst.dstProcId = rgCb[pst.srcInst].rgInit.procId; - pst.srcProcId = rgCb[pst.srcInst].rgInit.procId; - pst.region = MAC_MEM_REGION; - pst.pool = MAC_POOL; - pst.event = EVENT_MAC_SLOT_IND; - pst.route = 0; - pst.prior = 0; - pst.intfVer = 0; - - ret = MacDuAppSlotInd(&pst, slotInfo); - if(ret != ROK) - { - DU_LOG("\nMAC: Failed to send slot indication to DU APP"); - MAC_FREE_SHRABL_BUF(MAC_MEM_REGION, MAC_POOL, slotInfo, sizeof(SlotInfo)); - } - - return ret; -} - /******************************************************************* * * @brief Send stop indication to DU APP