X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrsch%2Fsch_utils.h;h=07174609cbc75d7ec70b40124fa112e46e86a65d;hb=65443172dd60a6ea312bd3a15959dbf54ad7f045;hp=310aeb37280a6f5206b609fab919ae81d0e83f50;hpb=3f340f5742e5c7c92b8541479ee7f2d670200cfb;p=o-du%2Fl2.git diff --git a/src/5gnrsch/sch_utils.h b/src/5gnrsch/sch_utils.h index 310aeb372..07174609c 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) \ @@ -82,11 +82,11 @@ _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 schAllocFreqDomRscType0(uint16_t startPrb, uint16_t prbSize, uint8_t *freqDomain); +void freqDomRscAllocType0(uint16_t startPrb, uint16_t prbSize, uint8_t *freqDomain); uint16_t schCalcTbSize(uint16_t payLoadSize); uint16_t schCalcNumPrb(uint16_t tbSize, uint16_t mcs, uint8_t numSymbols); uint16_t schCalcTbSizeFromNPrb(uint16_t numPrb, uint16_t mcs, uint8_t numSymbols);