[Task-ID: ODUHIGH-455] Changes to support new L1 20.11
[o-du/l2.git] / src / phy_stub / phy_stub_ex_ms.c
index 4bbdbe1..e8fdd67 100644 (file)
@@ -19,7 +19,7 @@
 #include "common_def.h"
 #include "phy_stub_utils.h"
 #ifdef INTEL_FAPI
-#include "fapi.h"
+#include "nr5g_fapi_internal.h"
 #include "fapi_vendor_extension.h"
 #endif
 #include "phy_stub.h"
@@ -49,7 +49,50 @@ uint8_t phyStubActvInit(Ent ent, Inst inst, Region reg, Reason reason)
    return ROK;
 }
 
+/**************************************************************************
+* @brief Function prints the src dest and msg reached to egtp.
+*
+* @details
+*
+*      Function : callFlowPhyStubActvTsk 
+*
+*      Functionality:
+*           Function prints the src dest and msg reached to egtp.
+*
+* @param[in]  Pst     *pst, Post structure of the primitive.
+*
+* @return void
+*
+***************************************************************************/
+
+void  callFlowPhyStubActvTsk(Pst *pst)
+{
+   char sourceTask[50];
+   char destTask[50]="PHY";
+   char message[100];
 
+   switch(pst->srcEnt)
+   {
+      case ENTPHYSTUB:
+      {
+         strcpy(sourceTask,"PHY");
+         switch(pst->event)
+         {
+            case EVT_PHY_START_SLOT_IND:
+               {
+                  strcpy(message,"EVT_PHY_START_SLOT_IND");
+                  break;
+               }
+            default:
+               {
+                  strcpy(message,"Invalid Event");
+                  break;
+               }
+         }
+      }
+   }
+   DU_LOG("\nCall Flow: %s -> %s : %s\n", sourceTask, destTask, message);
+}
 /*******************************************************************
 *
 * @brief Receives messages for Phy stub slot indication generator task
@@ -69,6 +112,11 @@ uint8_t phyStubActvInit(Ent ent, Inst inst, Region reg, Reason reason)
 uint8_t phyStubActvTsk(Pst *pst, Buffer *mBuf)
 {
    DU_LOG("\nPHY_STUB: Received Event [%d]", pst->event);
+   
+#ifdef CALL_FLOW_DEBUG_LOG   
+   callFlowPhyStubActvTsk(pst);
+#endif
+
    switch(pst->srcEnt)
    {
       case ENTPHYSTUB: