X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Fmac_utils.h;h=620faabb5586b9460ed66fe82703bf83e19d5236;hb=0a26c487f1b6bbb5217e47b15fa8273b2e749283;hp=899324e890da14f4ae16cba96bd8188eb62f6993;hpb=45d134510deb6902b870b4a0fb574b6075fba601;p=o-du%2Fl2.git diff --git a/src/5gnrmac/mac_utils.h b/src/5gnrmac/mac_utils.h index 899324e89..620faabb5 100644 --- a/src/5gnrmac/mac_utils.h +++ b/src/5gnrmac/mac_utils.h @@ -18,6 +18,7 @@ /* Contains common utility definitions to be used at MAC */ +#define MAX_SHORT_BSR_TABLE_ENTRIES 32 #define MAC_MEM_REGION 4 #define MAC_POOL 1 @@ -77,7 +78,7 @@ #define FILL_PST_MAC_TO_DUAPP(_pst, _event) \ { \ _pst.selector = ODU_SELECTOR_LWLC; \ - _pst.srcEnt = ENTRG; \ + _pst.srcEnt = ENTMAC; \ _pst.dstEnt = ENTDUAPP; \ _pst.dstInst = 0; \ _pst.srcInst = macCb.macInst; \ @@ -95,8 +96,8 @@ #define FILL_PST_MAC_TO_SCH(_pst, _event) \ { \ _pst.selector = ODU_SELECTOR_TC; \ - _pst.srcEnt = ENTRG; \ - _pst.dstEnt = ENTRG; \ + _pst.srcEnt = ENTMAC; \ + _pst.dstEnt = ENTMAC; \ _pst.dstInst = 1; \ _pst.srcInst = macCb.macInst; \ _pst.dstProcId = macCb.procId; \ @@ -109,6 +110,24 @@ _pst.intfVer = 0; \ } +/* Fills Pst to send msg to RLC */ +#define FILL_PST_MAC_TO_RLC(_pst, _dstInst, _event) \ +{ \ + pst.selector = ODU_SELECTOR_LWLC; \ + pst.srcEnt = ENTMAC; \ + pst.dstEnt = ENTRLC; \ + pst.dstInst = _dstInst; \ + pst.srcInst = macCb.macInst; \ + pst.dstProcId = macCb.procId; \ + pst.srcProcId = macCb.procId; \ + pst.region = MAC_MEM_REGION; \ + pst.pool = MAC_POOL; \ + pst.event = _event; \ + pst.route = 0; \ + pst.prior = 0; \ + pst.intfVer = 0; \ +} + /********************************************************************** End of file **********************************************************************/