X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrsch%2Fsch_utils.h;h=60c92ea42c077147d7010dbceffdd72bbf4b2718;hb=refs%2Fchanges%2F21%2F5721%2F1;hp=d0fc85f64b4d6925094fb67a8238fd8e4d0860e5;hpb=7c6820e987fadb1102e5891408ad33a8ce36ba95;p=o-du%2Fl2.git diff --git a/src/5gnrsch/sch_utils.h b/src/5gnrsch/sch_utils.h index d0fc85f64..60c92ea42 100644 --- a/src/5gnrsch/sch_utils.h +++ b/src/5gnrsch/sch_utils.h @@ -47,7 +47,7 @@ /* allocate and zero out a static buffer */ #define SCH_ALLOC(_datPtr, _size) \ { \ - int _ret; \ + uint8_t _ret; \ _ret = SGetSBuf(SCH_MEM_REGION, SCH_POOL, \ (Data **)&_datPtr, _size); \ if(_ret == ROK) \ @@ -67,6 +67,7 @@ { \ SPutSBuf(SCH_MEM_REGION, SCH_POOL, \ (Data *)_datPtr, _size); \ + _datPtr = NULLP; \ } \ } @@ -82,8 +83,8 @@ _pst.selector = ODU_SELECTOR_TC; \ } -extern int8_t coresetIdxTable[MAX_CORESET_INDEX][4]; -extern int8_t searchSpaceIdxTable[MAX_SEARCH_SPACE_INDEX][4]; +int8_t coresetIdxTable[MAX_CORESET_INDEX][4]; +int8_t searchSpaceIdxTable[MAX_SEARCH_SPACE_INDEX][4]; /* functions declarations */ void freqDomRscAllocType0(uint16_t startPrb, uint16_t prbSize, uint8_t *freqDomain); @@ -93,7 +94,9 @@ uint16_t schCalcTbSizeFromNPrb(uint16_t numPrb, uint16_t mcs, uint8_t numSymbols SchUeCb* schGetUeCb(SchCellCb *cellCb, uint16_t crnti); void schInitUlSlot(SchUlSlotInfo *schUlSlotInfo); void schInitDlSlot(SchDlSlotInfo *schDlSlotInfo); - +#ifdef NR_TDD +SlotConfig schGetSlotFrmt(uint16_t slot, uint32_t slotBitMap); +#endif /********************************************************************** End of file