U8, U16, U32 data type changes
[o-du/l2.git] / src / 5gnrsch / sch_utils.h
index a6ffdae..3811b94 100644 (file)
 /* 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)                                              \
    {                                                            \
-      memset((U8*)_datPtr, 0, _size);                         \
+      memset(_datPtr, 0, _size);                         \
    }                                                            \
    else                                                         \
    {                                                            \
 /* Fill post structure for msg from SCH to MAC */
 #define FILL_PST_SCH_TO_MAC(_pst, _inst)                     \
 {                                                            \
-   _pst.srcProcId = SFndProcId();                            \
-   _pst.dstProcId = SFndProcId();                            \
-   _pst.srcEnt    = ENTMAC;                                   \
-   _pst.dstEnt    = ENTMAC;                                   \
+   _pst.srcProcId = ODU_GET_PROCID();                       \
+   _pst.dstProcId = ODU_GET_PROCID();                       \
+   _pst.srcEnt    = ENTMAC;                                  \
+   _pst.dstEnt    = ENTMAC;                                  \
    _pst.srcInst   = 1;                                       \
    _pst.dstInst   = 0;                                       \
    _pst.selector  = ODU_SELECTOR_TC;                         \
@@ -86,7 +86,7 @@ extern int8_t coresetIdxTable[MAX_CORESET_INDEX][4];
 extern 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);