X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Flwr_mac_utils.h;h=50f9a453870c542278a76132e20cc799e92bacd6;hb=e54c2aae19e97065def9e5ab2d1488477b1ea209;hp=0aab79b6fecfab4038457ca4c01dd7b974298d8c;hpb=6b44407d464a5a4e060999255233a7cfe78bb0fa;p=o-du%2Fl2.git diff --git a/src/5gnrmac/lwr_mac_utils.h b/src/5gnrmac/lwr_mac_utils.h index 0aab79b6f..50f9a4538 100644 --- a/src/5gnrmac/lwr_mac_utils.h +++ b/src/5gnrmac/lwr_mac_utils.h @@ -16,16 +16,42 @@ ################################################################################ *******************************************************************************/ -/* Fill Pst structure for sending msg from MAC to SCH */ +/* Fill coupling type for sending msg from Lower MAC to MAC. + * Using TC for phy stub data and LWLC with Intel L1 */ +#ifdef INTEL_WLS_MEM +#define FILL_LWR_MAC_TO_MAC_SEL(_pst) _pst.selector = ODU_SELECTOR_LWLC +#else +#define FILL_LWR_MAC_TO_MAC_SEL(_pst) _pst.selector = ODU_SELECTOR_TC +#endif + +/* Fill Pst structure for sending msg from Lower MAC to MAC */ #define FILL_PST_LWR_MAC_TO_MAC(_pst, _event) \ { \ - _pst.selector = ODU_SELECTOR_TC; \ - _pst.srcEnt = ENTTF; \ - _pst.dstEnt = ENTRG; \ + FILL_LWR_MAC_TO_MAC_SEL(_pst); \ + _pst.srcEnt = ENTLWRMAC; \ + _pst.dstEnt = ENTMAC; \ + _pst.dstInst = 0; \ + _pst.srcInst = 0; \ + _pst.dstProcId = ODU_GET_PROCID(); \ + _pst.srcProcId = ODU_GET_PROCID(); \ + _pst.region = MAC_MEM_REGION; \ + _pst.pool = MAC_POOL; \ + _pst.event = _event; \ + _pst.route = 0; \ + _pst.prior = 0; \ + _pst.intfVer = 0; \ +} + +/* Fill Pst structure for sending msg from Lower MAC to itself */ +#define FILL_PST_LWR_MAC_TO_LWR_MAC(_pst, _event) \ +{ \ + _pst.selector = ODU_SELECTOR_LWLC; \ + _pst.srcEnt = ENTLWRMAC; \ + _pst.dstEnt = ENTLWRMAC; \ _pst.dstInst = 0; \ _pst.srcInst = 0; \ - _pst.dstProcId = SFndProcId(); \ - _pst.srcProcId = SFndProcId(); \ + _pst.dstProcId = ODU_GET_PROCID(); \ + _pst.srcProcId = ODU_GET_PROCID(); \ _pst.region = MAC_MEM_REGION; \ _pst.pool = MAC_POOL; \ _pst.event = _event; \ @@ -34,6 +60,7 @@ _pst.intfVer = 0; \ } +void convertFreqDomRsrcMapToIAPIFormat(uint8_t *sourceBitMap, uint8_t *destBitMap); /********************************************************************** End of file **********************************************************************/