X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Flwr_mac_ex_ms.c;h=fe25953bce8fa29e866af189dfe1ab30e5517a36;hb=bb267bb17ec2897af706e7307790d3b1e5b3ea8d;hp=91fb52ca7a7fb60bbb29751dc38493201577758b;hpb=284fc2e85cb5008061a7f8c6d07947a1c6209432;p=o-du%2Fl2.git diff --git a/src/5gnrmac/lwr_mac_ex_ms.c b/src/5gnrmac/lwr_mac_ex_ms.c index 91fb52ca7..fe25953bc 100644 --- a/src/5gnrmac/lwr_mac_ex_ms.c +++ b/src/5gnrmac/lwr_mac_ex_ms.c @@ -23,7 +23,7 @@ #include "lwr_mac_fsm.h" #include "lwr_mac_phy.h" #ifdef INTEL_FAPI -#include "fapi.h" +#include "nr5g_fapi_internal.h" #include "fapi_vendor_extension.h" #endif #ifndef INTEL_WLS_MEM @@ -55,6 +55,87 @@ uint8_t lwrMacActvInit(Ent entity, Inst inst, Region region, Reason reason) return ROK; } +#ifdef CALL_FLOW_DEBUG_LOG +/************************************************************************** +* @brief function prints src, dest, msg info about all the msgs received +* +* @details +* +* Function : callFlowlwrMacActvTsk +* +* Functionality: +* function prints src, dest, msg info about all the msgs received +* +* @param[in] Pst *pst +* +* @return void +***************************************************************************/ + +void callFlowlwrMacActvTsk(Pst *pst) +{ + char sourceTask[50]; + char destTask[50]="ENTLWRMAC"; + char message[100]; + + switch(pst->srcEnt) + { + case ENTLWRMAC: + { + strcpy(sourceTask,"ENTLWRMAC"); + switch(pst->event) + { +#ifdef INTEL_WLS_MEM + case EVT_START_WLS_RCVR: + { + strcpy(message,"EVT_START_WLS_RCVR"); + break; + } +#endif + default: + { + strcpy(message,"Invalid Event"); + break; + } + } + break; + } + +#ifndef INTEL_WLS_MEM + case ENTPHYSTUB: + { + strcpy(sourceTask,"PHY"); + switch(pst->event) + { + case EVT_PHY_STUB_SLOT_IND: + { + strcpy(message,"EVT_PHY_STUB_SLOT_IND"); + break; + } + + case EVT_PHY_STUB_STOP_IND: + { + strcpy(message,"EVT_PHY_STUB_STOP_IND"); + break; + } + default: + { + strcpy(message,"Invalid Event"); + break; + } + } + break; + } +#endif + + default: + { + strcpy(sourceTask,"Invalid Source Entity Id"); + } + } + DU_LOG("\nCall Flow: %s -> %s : %s\n", sourceTask, destTask, message); +} +#endif + /************************************************************************** * @brief Task Activation callback function. * @@ -79,6 +160,10 @@ uint8_t lwrMacActvTsk(Pst *pst, Buffer *mBuf) { uint8_t ret = ROK; +#ifdef CALL_FLOW_DEBUG_LOG + callFlowlwrMacActvTsk(pst); +#endif + switch(pst->srcEnt) { case ENTLWRMAC: