X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fdu_app%2Fdu_mgr.h;h=99ceeeb62b7449a79a792c349d53f176fa892dec;hb=0fccb83e55b237d60cf451bab71a0c7242cc6e66;hp=d2d8c7bcdc1381f25d665d83e9a20c94bb4aae90;hpb=6d3c64bdc3314b00244e259c4f5d5bd336d789db;p=o-du%2Fl2.git diff --git a/src/du_app/du_mgr.h b/src/du_app/du_mgr.h index d2d8c7bcd..99ceeeb62 100644 --- a/src/du_app/du_mgr.h +++ b/src/du_app/du_mgr.h @@ -139,6 +139,21 @@ SPutSBuf(DU_APP_MEM_REGION, DU_POOL, \ (Data *)_datPtr, _size); +/* Allocate shared memory to be used for LWLC + * during inter-layer communication */ +#define DU_ALLOC_SHRABL_BUF(_buf, _size) \ +{ \ + if(SGetStaticBuffer(DU_APP_MEM_REGION, DU_POOL, \ + (Data **)&_buf, (Size) _size, 0) == ROK) \ + { \ + cmMemset((U8 *)(_buf), 0, _size); \ + } \ + else \ + { \ + (_buf) = NULLP; \ + } \ +} + /* Free shared memory, received through LWLC */ #define DU_FREE_SHRABL_BUF(_region, _pool,_buf, _size) \ { \ @@ -259,6 +274,7 @@ S16 duSendEgtpTestData(); S16 duSendEgtpDatInd(Buffer *mBuf); S16 duHdlSchCfgComplete(Pst *pst, RgMngmt *cfm); uint16_t duBuildAndSendMacCellStartReq(); +uint16_t duBuildAndSendMacCellStopReq(); #endif