X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Frg.x;h=d87761c9830d07993478f92dda8843ab1a45647e;hb=def50dc175cebc67238db5f1acd5ff322a2279bd;hp=0e2d065126b9347b0ed27310e524dc4c85430915;hpb=5ea4c59cb4dd37164953218b0bd355284e11d22c;p=o-du%2Fl2.git diff --git a/src/5gnrmac/rg.x b/src/5gnrmac/rg.x index 0e2d06512..d87761c98 100755 --- a/src/5gnrmac/rg.x +++ b/src/5gnrmac/rg.x @@ -87,7 +87,7 @@ typedef RgPrgDlLcInfo RgDlLcCb; typedef struct rgUeUlAlloc { CmLteRnti rnti; /*!< Ue Id */ - U8 numPrb; /*!< Number of total PRB's allocated for this UE */ + uint8_t numPrb; /*!< Number of total PRB's allocated for this UE */ } RgUeUlAlloc; /** * @brief Structure hold uplink allocation information for sub frames. @@ -95,8 +95,7 @@ typedef struct rgUeUlAlloc typedef struct rgUlSf { CmLteTimingInfo schdTime; /*!< scheduled frame and subframe number */ - U8 numUe; /*!< Number of UE's allocated in this uplink - subframe */ + uint8_t numUe; /*!< Number of UE's allocated in this uplink subframe */ RgUeUlAlloc *ueUlAllocInfo; /*!< Uplink alloc infor for this subframe */ } RgUlSf; @@ -108,16 +107,16 @@ struct rgL2MeasCb CmLList measLnk; /*!< MeasCb node */ RgInfL2MeasReq measReq; /*!< Request received for measurement */ CmLteTimingInfo startTime; /*!< Time at which measurement started */ - U32 sfnCycle; /*!< Count of Num of SFN wraps */ + uint32_t sfnCycle; /*!< Count of Num of SFN wraps */ }; /** @brief * Control block to store Logical Channels with Qci. * */ struct rgQciCb { - U8 qci; /*< QCI for measurement */ - U32 prbCount; /*!< Cummulative PRB count */ - U8 mask; /*!< Measurement Active or Not*/ + uint8_t qci; /*< QCI for measurement */ + uint32_t prbCount; /*!< Cummulative PRB count */ + uint8_t mask; /*!< Measurement Active or Not*/ CmLteTimingInfo startTime;/*!< Time at which measurement started */ }; #endif /* LTE_L2_MEAS */ @@ -134,21 +133,21 @@ typedef struct rgBcchTb { RgPdcch pdcch; Buffer *tb; - U16 txPwrOffset; /*!< PDSCH Tx Pwr offset */ + uint16_t txPwrOffset; /*!< PDSCH Tx Pwr offset */ } RgBcchTb; typedef struct rgPcchTb { RgPdcch pdcch; Buffer *tb; - U16 txPwrOffset; /*!< PDSCH Tx Pwr offset */ + uint16_t txPwrOffset; /*!< PDSCH Tx Pwr offset */ } RgPcchTb; typedef struct rgRaRspAlloc { RgPdcch pdcch; /*!< NULLP if no Rsp allocation done for raRnti*/ Buffer *rar; - U16 txPwrOffset; /*!< PDSCH Tx Pwr offset */ + uint16_t txPwrOffset; /*!< PDSCH Tx Pwr offset */ }RgRaRspAlloc; typedef struct rgBchTb @@ -160,25 +159,25 @@ typedef struct rgBchTb typedef struct rgDlSf { CmLteTimingInfo schdTime; /*!< scheduled frame and subframe number */ - Bool txDone; /*!< Flag to indicate transmission done */ + Bool txDone; /*!< Flag to indicate transmission done */ /* ADD Changes for Downlink UE Timing Optimization */ #ifdef LTEMAC_DLUE_TMGOPTMZ - U8 remDatReqCnt; /*!< Counter to maintain count of Ded data received.*/ + uint8_t remDatReqCnt; /*!< Counter to maintain count of Ded data received.*/ /* Fix [ccpu00126310]: Tracks Data Requests from RLC for both loosely and tight coupled RLC-MAC */ - Bool statIndDone; /*!< Marks sending of all status indication done */ + Bool statIndDone; /*!< Marks sending of all status indication done */ #endif - RgBchTb bch; /*!< BCH data for this frame */ - RgBcchTb bcch; /*!< BCCH allocation for this frame */ + RgBchTb bch; /*!< BCH data for this frame */ + RgBcchTb bcch; /*!< BCCH allocation for this frame */ #ifdef EMTC_ENABLE - RgEmtcBcchTb emtcBcch; /*!< EMTC BCCH allocation for this frame */ + RgEmtcBcchTb emtcBcch; /*!< EMTC BCCH allocation for this frame */ #endif - RgPcchTb pcch; /*!< PCCH allocation for this frame */ - CmLListCp tbs; /*!< TBs or DL HARQ processes */ - U8 numRaRsp; /*!< No.of RaRsp */ - RgRaRspAlloc raRsp[RG_MAX_RA_RNTI]; /* Array of list of Ra Rsp + RgPcchTb pcch; /*!< PCCH allocation for this frame */ + CmLListCp tbs; /*!< TBs or DL HARQ processes */ + uint8_t numRaRsp; /*!< No.of RaRsp */ + RgRaRspAlloc raRsp[RG_MAX_RA_RNTI]; /* Array of list of Ra Rsp Allocations for each rarnti */ - U8 numTbReqsSent; /*!< Number of TB requests sent towards SMAC. + uint8_t numTbReqsSent; /*!< Number of TB requests sent towards SMAC. Total numTbReqsSent will be equal to maximum secondary cells */ } RgDlSf; @@ -260,7 +259,7 @@ typedef struct rgLowSapCb RgLowSapCfgInfo sapCfg; /*!< SAP configuration information */ RgSapSts sapSts; /*!< Statistics related to SAP */ RgSapSta sapSta; /*!< SAP Status */ - U8 numBndRetries; /*!< Number of Bind Retries */ + uint8_t numBndRetries; /*!< Number of Bind Retries */ }RgLowSapCb; /** @@ -272,8 +271,8 @@ typedef struct rgLowSapCb */ typedef struct RgMUXSubHdr { - U8 shLen; - U8 shData[RG_MAX_SDU_SUB_HDR_LEN]; /* RRLCID/RFLCID + F-L (O) + L (O) */ + uint8_t shLen; + uint8_t shData[RG_MAX_SDU_SUB_HDR_LEN]; /* RRLCID/RFLCID + F-L (O) + L (O) */ } RgMUXSubHdr; @@ -283,26 +282,26 @@ typedef struct RgMUXSubHdr */ struct rgCellCb { - CmHashListEnt cellLstEnt; /*!< Hash list Entity for cell list */ - RgSchInstMap schInstMap; /*!< Sch Inst Info */ - CmLteCellId cellId; /*!< Cell ID */ + CmHashListEnt cellLstEnt; /*!< Hash list Entity for cell list */ + RgSchInstMap schInstMap; /*!< Sch Inst Info */ + CmLteCellId cellId; /*!< Cell ID */ CmLteTimingInfo crntTime; - U8 maxDlHqProcPerUe; /*!< Store based on FDD/TDD(UL/DL Index) */ + uint8_t maxDlHqProcPerUe; /*!< Store based on FDD/TDD(UL/DL Index) */ CrgBwCfg bwCfg; /*!< Bandwidth Configuration */ CrgRachCfg rachCfg; /*!< RACH Configuration */ - RgUpSapCb *rguDlSap; /*!< RGU SAP Control Block for RLC DL */ - RgUpSapCb *rguUlSap; /*!< RGU SAP Control Block for RLC UL*/ - Inst macInst; /*!< MAC Instance id for this cell */ - U8 cellActvState; /*!< Bitmask indicating if cell is active: + RgUpSapCb *rguDlSap; /*!< RGU SAP Control Block for RLC DL */ + RgUpSapCb *rguUlSap; /*!< RGU SAP Control Block for RLC UL*/ + Inst macInst; /*!< MAC Instance id for this cell */ + uint8_t cellActvState; /*!< Bitmask indicating if cell is active: Cell is active only after BCCH, PCCH, DL CCCH, UL CCCH and scheduler config */ CmLteLcId ulCcchId; /*!< LcId for uplink CCCH */ CmLteLcId dlCcchId; /*!< LcId for downlink CCCH */ - RgBcchBchLcCb bcchBchInfo; /*!< BCCH mapped on BCH + RgBcchBchLcCb bcchBchInfo; /*!< BCCH mapped on BCH logical channel control block */ RgPcchLcCb pcchInfo; /*!< PCCH logical channel control block */ - U8 numBcchDlschInfo; + uint8_t numBcchDlschInfo; RgBcchDlschLcCb bcchDlschInfo[RG_MAX_BCCH_DLSCH]; /*!< BCCH mapped on DLSCH logical channel control block */ CmHashListCp ueLst; /*!< Hash list of UE control @@ -316,20 +315,20 @@ struct rgCellCb cell */ RgDlSf subFrms[RG_NUM_SUB_FRAMES]; #ifdef LTE_L2_MEAS - CmLListCp l2mList; /*!< List of all L2M requests + CmLListCp l2mList; /*!< List of all L2M requests rgSchL2MeasCb */ - RgQciCb qciArray[LRG_MAX_QCI]; /*!< List of all qci's configured + RgQciCb qciArray[LRG_MAX_QCI]; /*!< List of all qci's configured rgQciCb */ - RgUlSf ulSf[RG_NUM_UL_SUB_FRAMES]; /*!< UL Sub frame */ - Bool sndL2Meas; /*!< Send L2 Meas when No L2 Measuremnt timer is running*/ + RgUlSf ulSf[RG_NUM_UL_SUB_FRAMES]; /*!< UL Sub frame */ + Bool sndL2Meas; /*!< Send L2 Meas when No L2 Measuremnt timer is running*/ - U32 ttiCycle; /*!< Count of Number of 10240 Cycles + uint32_t ttiCycle; /*!< Count of Number of 10240 Cycles completed */ #endif /* LTE_L2_MEAS */ RguFlowCntrlInd *flowCntrlInd; /*!