X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Fmac_utils.h;h=6a7c53a1335c0cc7b91359358208446536115511;hb=51e17cba646f833c1af8b1945248de43e0fdd50f;hp=899324e890da14f4ae16cba96bd8188eb62f6993;hpb=a5530e70a9d414952dadd1688aa9b4280c0dbb5a;p=o-du%2Fl2.git diff --git a/src/5gnrmac/mac_utils.h b/src/5gnrmac/mac_utils.h index 899324e89..6a7c53a13 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 @@ -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 = ENTRG; \ + pst.dstEnt = ENTKW; \ + 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 **********************************************************************/