X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrsch%2Fsch_utils.h;h=78a0400c46f1548dfdfbffc50aeac4ecd229505e;hb=8e6123e23f6d831b1fe972f8229e9594a2e92237;hp=98c3e7e5b38f7b7998c457b3f256dc646f279f5c;hpb=0f742beeb500d9348e2657262d12ddea2ccac183;p=o-du%2Fl2.git diff --git a/src/5gnrsch/sch_utils.h b/src/5gnrsch/sch_utils.h index 98c3e7e5b..78a0400c4 100644 --- a/src/5gnrsch/sch_utils.h +++ b/src/5gnrsch/sch_utils.h @@ -33,6 +33,7 @@ #define TOTAL_TBSIZE_VALUES 93 #define DEFAULT_UL_ACK_LIST_COUNT 8 /* Max number of pusch time domain uplink allocation */ #define MASK_BIT64_ON 0xFFFFFFFFFFFFFFFF +#define MIN_PRB 1 #define SET_BITS_MSB(_startBit, _numBits, _byte) \ { \ @@ -128,6 +129,14 @@ void removeAllocatedPrbFromFreePrbList(CmLListCp *freePrbBlockList, CmLList *nod uint8_t findDmrsStartSymbol(uint16_t dlDmrsSymbBitMap); void covertFreqDomRsrcMapToIAPIFormat(uint8_t *sourceBitMap, uint8_t *destBitMap); +uint8_t updateLcListReqPRB(CmLListCp *lcLL, uint8_t lcId, uint32_t payloadSize); +uint32_t calculateEstimateTBSize(uint32_t reqBO, uint16_t mcsIdx,uint8_t numSymbols,\ + uint16_t maxPRB, uint16_t *estPrb); +void deleteLcLL(CmLListCp *lcLL); +#if 0 +/*Will be enabled for debugging*/ +void printLcLL(CmLListCp *lcLL); +#endif /********************************************************************** End of file **********************************************************************/