X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Flwr_mac_phy.c;h=a9bf88d3cff995d268b4300b3b9e7fc92ceac234;hb=e54c2aae19e97065def9e5ab2d1488477b1ea209;hp=46d68d5dc3abb2f9a992b06cf0df8e989c993a07;hpb=2324a199636bc2e127af6bb3beefef668b4f45d7;p=o-du%2Fl2.git diff --git a/src/5gnrmac/lwr_mac_phy.c b/src/5gnrmac/lwr_mac_phy.c index 46d68d5dc..a9bf88d3c 100644 --- a/src/5gnrmac/lwr_mac_phy.c +++ b/src/5gnrmac/lwr_mac_phy.c @@ -31,13 +31,17 @@ #include "lwr_mac_utils.h" #include "lwr_mac.h" #ifdef INTEL_FAPI -#include "fapi.h" +#include "nr5g_fapi_internal.h" #include "fapi_vendor_extension.h" #endif #ifdef INTEL_WLS_MEM #include "wls_lib.h" #endif +#ifdef INTEL_WLS_MEM +CmLListCp wlsBlockToFreeList[WLS_MEM_FREE_PRD]; +#endif + uint8_t rgClHndlCfgReq ARGS((void *msg)); void l1ProcessFapiRequest ARGS((uint8_t msgType, uint32_t msgLen, void *msg)); @@ -227,7 +231,6 @@ void LwrMacRecvPhyMsg() continue; } - DU_LOG("\nDEBUG --> LWR_MAC : numMsgToGet %d", numMsgToGet); while(numMsgToGet--) { currElem = NULLP; @@ -272,9 +275,51 @@ uint8_t LwrMacSendToL1(void *msg) { uint8_t ret = ROK; #ifdef INTEL_FAPI - uint16_t msgLen =0; + uint32_t msgLen =0; p_fapi_api_queue_elem_t currMsg = NULLP; +#ifdef CALL_FLOW_DEBUG_LOG + char message[100]; + + currMsg = (p_fapi_api_queue_elem_t)msg; + while(currMsg) + { + switch(currMsg->msg_type) + { + case FAPI_PARAM_REQUEST: + strcpy(message, "FAPI_PARAM_REQUEST"); + break; + case FAPI_CONFIG_REQUEST: + strcpy(message, "FAPI_CONFIG_REQUEST"); + break; + case FAPI_START_REQUEST: + strcpy(message, "FAPI_START_REQUEST"); + break; + case FAPI_DL_TTI_REQUEST: + strcpy(message, "FAPI_DL_TTI_REQUEST"); + break; + case FAPI_TX_DATA_REQUEST: + strcpy(message, "FAPI_TX_DATA_REQUEST"); + break; + case FAPI_UL_TTI_REQUEST: + strcpy(message, "FAPI_UL_TTI_REQUEST"); + break; + case FAPI_STOP_REQUEST: + strcpy(message, "FAPI_STOP_REQUEST"); + break; + case FAPI_UL_DCI_REQUEST: + strcpy(message, "FAPI_UL_DCI_REQUEST"); + break; + default: + strcpy(message, "INVALID_MSG"); + break; + } + DU_LOG("\nCall Flow: ENTLWRMAC -> PHY : %s\n",message); + currMsg = currMsg->p_next; + } +#endif + + #ifdef INTEL_WLS_MEM void * wlsHdlr = NULLP;