/* local typedefs */
/* local externs */
+#ifdef UNUSE_FUN
PRIVATE S16 rgLIMValidateSap ARGS((Inst inst,SuId suId));
+#endif
PRIVATE Void rgLIMUtlFreeDatIndEvnt ARGS((TfuDatIndInfo *datInd,
Bool error));
* -# ROK
* -# RFAILED
*/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE S16 rgLIMValidateSap
(
}
RETVALUE(ROK);
} /* end of rgLIMValidateSap */
-
+#endif
/** @brief This function frees up the TfuDatIndInfo structure
*
* @details
if(((cell = rgCb[inst].cell) != NULLP)
&& (cell->cellId == staRsp->cellId))
{
- RgInfDedBoRpt boRpt;
+ //RgInfDedBoRpt boRpt;
Pst schPst;
- boRpt.cellSapId = cell->schInstMap.cellSapId;
+ /*boRpt.cellSapId = cell->schInstMap.cellSapId;
boRpt.cellId = staRsp->cellId;
boRpt.rnti = staRsp->rnti;
boRpt.lcId = staRsp->lcId;
boRpt.bo = staRsp->boReport.bo;
boRpt.oldestSduArrTime = staRsp->boReport.oldestSduArrTime;
boRpt.staPduBo = staRsp->boReport.staPduBo;
- boRpt.oldestSduArrTime = staRsp->boReport.oldestSduArrTime;
+ boRpt.oldestSduArrTime = staRsp->boReport.oldestSduArrTime;*/
rgGetPstToInst(&schPst,inst, cell->schInstMap.schInst);
schPst.event = 0;
//TODO: commented for compilation without SCH RgMacSchDedBoUpdt(&schPst, &boRpt);
S32 bo
)
{
- RgInfDedBoRpt boRpt;
+ //RgInfDedBoRpt boRpt;
RgCellCb *cell;
//if ((cell = rgDBMGetCellCb(cellId)) != NULLP)
if (((cell = rgCb[inst].cell) != NULLP) &&
(cell->cellId == cellId))
{
Pst schPst;
- boRpt.cellSapId = cell->schInstMap.cellSapId;
+ /* boRpt.cellSapId = cell->schInstMap.cellSapId;
boRpt.cellId = cellId;
boRpt.rnti = rnti;
boRpt.lcId = lcId;
- boRpt.bo = bo;
+ boRpt.bo = bo;*/
rgGetPstToInst(&schPst,inst, cell->schInstMap.schInst);
schPst.event = 0;
//TODO: commented for compilation without SCH RgMacSchDedBoUpdtReq (&schPst,&boRpt);
{
Pst schPst;
Inst macInst = cell->macInst - RG_INST_START;
- RgInfCmnBoRpt boRpt;
+ //RgInfCmnBoRpt boRpt;
TRC2(rgROMHndlCcchStaRsp);
-
+/*
boRpt.cellSapId = cell->schInstMap.cellSapId;
boRpt.cellId = staRsp->cellId;
boRpt.u.rnti = staRsp->u.rnti;
boRpt.lcId = staRsp->lcId;
boRpt.lcType = staRsp->lcType;
boRpt.bo = staRsp->bo;
+ */
rgGetPstToInst(&schPst,macInst, cell->schInstMap.schInst);
//TODO: commented for compilation without SCH RgMacSchCmnBoUpdt(&schPst, &boRpt);
#endif
{
Pst schPst;
- RgInfCmnBoRpt boRpt;
+ //RgInfCmnBoRpt boRpt;
Inst macInst = cell->macInst - RG_INST_START;
TRC2(rgROMHndlBcchPcchStaRsp);
RETVALUE(ROK);
}
}
-
+/*
boRpt.cellSapId = cell->schInstMap.cellSapId;
boRpt.cellId = staRsp->cellId;
boRpt.u.timeToTx = staRsp->u.timeToTx;
boRpt.lcId = staRsp->lcId;
boRpt.lcType = staRsp->lcType;
- boRpt.bo = staRsp->bo;
+ boRpt.bo = staRsp->bo;*/
#ifdef EMTC_ENABLE
if(cell->emtcEnable)
{
#endif /*RGR_SI_SCH*/
/* LTE_ADV_FLAG_REMOVED_START */
#ifndef LTE_TDD
+#ifdef UNUSE_FUN
PRIVATE S16 rgSCHCmnNonDlfsUpdDSFRTyp2Alloc
(
RgSchCellCb *cell,
U16 bw
);
#endif
+#endif
PUBLIC Void rgSCHCmnDlSpsSch
(
));
#endif
+#ifdef UNUSE_FUN
PRIVATE Void rgSCHCmnNonDlfsType0Alloc
(
RgSchCellCb *cell,
RgSchDlRbAlloc *allocInfo,
RgSchUeCb *ue
);
+#endif
PRIVATE Void rgSCHCmnInitRbAlloc ARGS
((
RgSchCellCb *cell
RgSchCmnDlRbAllocInfo *cellWdAllocInfo));
typedef U8 (*RgSchCmnDlGetPrecInfFunc) ARGS((RgSchCellCb *cell, RgSchUeCb *ue,
U8 numLyrs, Bool bothCwEnbld));
-
+#ifdef UNUSE_FUN
PRIVATE Void rgSCHCmnFillHqPPdcchDciFrmt1 ARGS((
RgSchCellCb *cell,
RgSchDlRbAlloc *rbAllocInfo,
RgSchPdcch *pdcch,
U8 tpc
));
+#endif
PRIVATE Void rgSCHCmnDlAllocTxRbTM1 ARGS((
RgSchCellCb *cell,
RgSchDlSf *subFrm,
));
#ifdef TFU_UPGRADE
+#ifdef UNUSE_FUN
PRIVATE S16 rgSCHCmnUlMdfyGrntForCqi ARGS((
RgSchCellCb *cell,
RgSchUeCb *ue,
U32 effTgt
));
#endif
+#endif
#ifdef RG_5GTF
//TODO_SID: Currenly table is only for 100 Prbs. Need to modify wrt VRBG table 8.1.5.2.1-1 V5G_213
867737, 1067031, 1312097, 1613447, 1984009, 2439678, 3000000, 3100000
};
-
+#ifdef UNUSE_FUN
PRIVATE U8 rgSchCmnUlRvIdxToIMcsTbl[4] = {32, 30, 31, 29};
-
+#endif
PUBLIC U8 rgSchCmnUlCqiToTbsTbl[RG_SCH_CMN_MAX_CP][RG_SCH_CMN_UL_NUM_CQI];
PUBLIC RgSchTbSzTbl rgTbSzTbl = {
RgSchUlAlloc **ulAllocRef,
U8 *hqProcIdRef
));
+#ifdef UNUSE_FUN
PRIVATE Void rgSCHCmnUlNonadapRetx ARGS((
RgSchCmnUlCell *cellUl,
RgSchUlAlloc *alloc,
U8 idx
));
-
+#endif
PRIVATE Void rgSCHCmnDlCcchRarAlloc ARGS((
RgSchCellCb *cell
));
RgSchUlSf *sf
));
/* Fix: syed Adaptive Msg3 Retx crash. */
+#ifdef UNUSE_FUN
PRIVATE Void rgSCHCmnUlSfRlsRetxProcs ARGS((
RgSchCellCb *cell,
RgSchUlSf *sf
));
-
+#endif
#ifdef TFU_UPGRADE
PRIVATE Void rgSCHCmnDlHdlTxModeRecfg ARGS
((
RgSchDlRbAlloc *allocInfo
));
#ifdef DEBUGP
+#ifdef UNUSE_FUN
PRIVATE Void rgSCHCmnFindCodeRate ARGS((
RgSchCellCb *cell,
RgSchDlSf *dlSf,
));
#endif
#endif
+#endif
PRIVATE Void rgSCHCmnNonDlfsMsg4Alloc ARGS((
RgSchCellCb *cell,
RgSchCmnMsg4RbAlloc *msg4AllocInfo,
+ RG_SCH_CMN_HARQ_INTERVAL (7) subframes ahead */
RGSCH_INCR_SUB_FRAME(frm, RG_SCH_CMN_DL_DELTA + RG_SCH_CMN_HARQ_INTERVAL);
#else
- RGSCH_SUBFRAME_INDEX(frm);
+ // RGSCH_SUBFRAME_INDEX(frm);
//RGSCH_INCR_SUB_FRAME(frm, RG_SCH_CMN_DL_DELTA);
#endif
}
RETVOID;
}
-
+#ifdef UNUSE_FUN
/**
* @brief This function fills the PDCCH DCI format 1 information from dlProc.
*
* @return Void
*
**/
+
#ifdef ANSI
PRIVATE Void rgSCHCmnFillHqPPdcchDciFrmt1
(
#endif
RETVOID;
-}
+}
/**
* @brief This function fills the PDCCH DCI format 1B information from dlProc.
*
RETVOID;
}
-
+#endif
/**
* @brief init of Sch vars.
*
* File :
*
**********************************************************/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE S16 rgSCHCmnUlMdfyGrntForCqi
(
RETVALUE(ROK);
}
#endif
+#endif
/***********************************************************
*
* Func : rgSCHCmnUlRbAllocForUe
* @return Void
*
**/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE Void rgSCHCmnUlNonadapRetx
(
alloc->pdcch = NULLP;
RETVOID;
}
-
+#endif
/**
* @brief Check if 2 allocs overlap
*
* @param[in] RgSchUlAlloc *alloc2
* @return Bool
**/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE Bool rgSCHCmnUlAllocsOvrLap
(
}
RETVALUE(FALSE);
}
-
+#endif
/**
* @brief Copy allocation Info from src to dst.
*
* @param[in] RgSchUlAlloc *dstAlloc
* @return Void
**/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE Void rgSCHCmnUlCpyAllocInfo
(
RETVOID;
}
-
+#endif
/**
* @brief Update TX and RETX subframe's allocation
* @param[in] RgSchUlAlloc *srcAlloc
* @return Void
**/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE Void rgSCHCmnUlInsAllocFrmNewSf2OldSf
(
dstAlloc->mrgdNewTxAlloc = TRUE;
RETVOID;
}
-
+#endif
/**
* @brief Merge all allocations of newSf to oldSf.
*
* @param[in] RgSchUlSf *newSf
* @return Void
**/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE Void rgSCHCmnUlMergeSfAllocs
(
}
RETVOID;
}
-
+#endif
/**
* @brief Swap Hole/Alloc DB context of newSf and oldSf.
*
* @param[in] RgSchUlSf *newSf
* @return Void
**/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE Void rgSCHCmnUlSwapSfAllocs
(
oldSf->allocCountRef = &oldSf->allocDb->count;
RETVOID;
}
-
+#endif
/**
* @brief Perform non-adaptive RETX for non-colliding allocs.
*
* @param[in] U8 idx
* @return Void
**/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE Void rgSCHCmnUlPrcNonAdptRetx
(
}
RETVOID;
}
-
+#endif
/**
* @brief Update TX and RETX subframe's allocation
* markings.
* @param[in] U8 idx
* @return Void
**/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE Void rgSCHCmnUlPrfmSfMerge
(
RETVOID;
}
-
+#endif
/**
* @brief Update TX and RETX subframe's allocation
* markings.
* @param[in] RgSchUlSf *sf
* @return U8
**/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE Void rgSCHCmnUlSfRlsRetxProcs
(
}
RETVOID;
}
-
+#endif
/**
* @brief Attempts allocation for UEs for which retransmissions
* @param[in,out] RgSchDlRbAlloc *allocInfo
* @return void
**/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE Void rgSCHCmnFindCodeRate
(
RETVOID;
} /* end of rgSCHCmnNonDlfsPbchRbAllocAdj */
#endif
-
+#endif
/**
* @brief Performs RB allocation for frequency non-selective cell.
*
* -# TRUE
* -# FALSE
**/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE Bool rgSCHCmnNonDlfsSFRBwAvlbl
(
}
RETVALUE(FALSE);
}
+#endif
#endif /* end of ifndef LTE_TDD*/
/* LTE_ADV_FLAG_REMOVED_END */
* -# TRUE
* -# FALSE
**/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE Bool rgSCHCmnNonDlfsBwAvlbl
(
RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"FAILED for CRNTI:%d",allocInfo->rnti);
RETVALUE(FALSE);
}
+#endif
/* LTE_ADV_FLAG_REMOVED_START */
#ifndef LTE_TDD
/**
*
* @return Void
**/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE S16 rgSCHCmnNonDlfsUpdDSFRTyp2Alloc
(
dlSf->type2Start += numRb;
#endif
RETVALUE(ROK);
+
}
+#endif
#endif /* end of ifndef LTE_TDD*/
/* LTE_ADV_FLAG_REMOVED_END */
/**
*
* @return Void
**/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE Void rgSCHCmnNonDlfsType0Alloc
(
dlSf->lstRbgDfct = 0;
RETVOID;
}
+#endif
#ifndef LTE_TDD
/**
*
* @return Void
**/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE S16 rgSCHCmnBuildRntpInfo
(
RETVALUE(ROK);
}
-
+#endif
/**
* @brief To update non-DLFS alloc'n parameters after TYPE2 Allocation.
*
* @return Void
**/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE S16 rgSCHCmnNonDlfsUpdSFRPoolTyp2Alloc
(
RETVALUE(ROK);
}
-
+#endif
/**
* @brief To do DL allocation using TYPE0 RA.
*
*
* @return Void
**/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE Void rgSCHCmnNonDlfsSFRPoolType0Alloc
(
dlSf->lstRbgDfct = 0;
RETVOID;
}
-
+#endif
/**
* @brief Computes RNTP Info for a subframe.
*
* -# ROK
* -# RFAILED
**/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE S16 rgSCHCmnSFRNonDlfsUeRbAlloc
(
RETVALUE(ROK);
}
+#endif
/* LTE_ADV_FLAG_REMOVED_END */
#endif /* LTE_TDD */
#endif
/* forward references */
-
+#ifdef UNUSE_FUN
PRIVATE U16 rgSCHLmmSapCfg ARGS((
Inst inst,
RgCfg *cfg,
U8 sapIdx,
Elmnt sapType
));
-
+#endif
PRIVATE Void rgSCHLmmShutdown ARGS((
Inst inst
));
* -# LCM_REASON_INVALID_SAP
* -# LCM_REASON_NOT_APPL
**/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE U16 rgSCHLmmSapCfg
(
}
RETVALUE(ret);
}
+#endif
\f
/***********************************************************
*
#ifdef RG_5GTF
EXTERN U32 gUl5gtfPdcchSend;
+#ifdef UNUSE_FUN
PRIVATE S16 rgSCHTomUtlFillCqiRiRecpReq ARGS(
(
TfuRecpReqInfo *recpReqInfo,
RgSchErrInfo *err
));
#endif
+#endif
/* local typedefs */
RgSchUlAlloc *alloc,
TfuUeRecpReqInfo *datRecpInfo
));
-
+#ifdef UNUSE_FUN
PRIVATE S16 rgSCHTomUtlFillCqiSrsWithSr ARGS
((
RgSchCellCb *cell,
TfuUeRecpReqInfo *pucchRecpInfo,
U16 validIdx
));
-
+#endif
PRIVATE S16 rgSCHTomUtlFillCqiSrSrsWithHq ARGS
((
RgSchCellCb *cell,
RgSchCellCb *cell,
RgSchUeCb *ue
));
-
+#ifdef UNUSE_FUN
PRIVATE Bool rgSCHTomUtlFillDatHarqRecpReq ARGS
((
RgSchCellCb *cell,
TfuUeRecpReqInfo *datRecpInfo,
TfuRecpReqInfo *recpReqInfo
));
-
PRIVATE S16 rgSCHTomUtlFillSrRecpReq ARGS((
TfuRecpReqInfo *recpReq,
RgSchCellCb *cell,
U16 validIdx,
RgSchErrInfo *err));
-
+#endif
PRIVATE S16 rgSCHTomUtlWillUeRprtCqiRi ARGS((
RgSchUeCb *ue,
Bool *willueRprtCqiRii));
-
+#ifdef UNUSE_FUN
PRIVATE S16 rgSCHTomUtlFillRiRecpReq ARGS((
TfuRecpReqInfo *recpReq,
RgSchCellCb *cell,
U16 validIdx,
RgSchErrInfo *err));
-
PRIVATE S16 rgSCHTomUtlFillPcqiRecpReq ARGS((
TfuRecpReqInfo *recpReq,
RgSchCellCb *cell,
U16 validIdx,
RgSchErrInfo *err));
-
PRIVATE S16 rgSCHTomUtlFillSrsRecpReq ARGS((
TfuRecpReqInfo *recpReq,
RgSchCellCb *cell,
U16 validIdx,
- RgSchErrInfo *err));
-
+ RgSchErrInfo *err));
PRIVATE S16 rgSCHTomUtlGenIndices ARGS((
U32 label,
U8 posM,
U8 valN,
U8 valK,
TfuSubbandInfo* sbInfo));
-
+#endif
#endif
#ifdef TFU_UPGRADE
PRIVATE S16 rgSCHTomUtlFillDatRecpReq ARGS((
#ifdef LTEMAC_SPS
EXTERN PUBLIC Void rgSCHCmnDlSpsSch (RgSchCellCb *cell);
#ifndef LTE_TDD
+#ifdef UNUSE_FUN
#ifdef TFU_UPGRADE
PRIVATE S16 rgSCHTomCnsdrRelPdcch ARGS
((
#endif
#endif
#endif
+#endif
PRIVATE Void rgSchTomTtiMiscFunctions ARGS
((
RgSchCellCb *cell
));
#endif
-
+#ifdef UNUSE_FUN
PRIVATE Void rgSchTomFillCellTtiInfo ARGS
((
TfuTtiIndInfo *ttiInd,
U8 *nCell,
RgSchCellCb *cells[]
));
+#endif
#ifdef LTE_TDD
PRIVATE Void rgSchTomUtlTddRlsSfAndHarq ARGS
((
TfuHqInfo *hqInfo;
Pst pst;
#ifdef TFU_UPGRADE
- U8 tbCnt;
+ // U8 tbCnt;
#endif
RgInfRlsHqInfo *rlsHqBufs = &(cell->rlsHqArr[cell->crntHqIdx]);
* File: rg_sch_utl.c
*
*/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE S16 rgSCHTomUtlGenIndices
(
}
RETVALUE(ROK);
} /* end of rgSCHTomUtlGenIndices*/
+#endif
#endif
/**
* @brief Handler for processing decode failure indication recieved from
* -# ROK
* -# RFAILED
*/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE S16 rgSCHTomUtlFillSrRecpReq
(
}
RETVALUE(ROK);
}/* end of rgSCHTomUtlFillSrRecpReq */
-
-
+#endif
+#endif
/** @brief This function tells will the UE has a periodic CQI/PMI/RI
* reporting
*
* -# ROK
* -# RFAILED
*/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE S16 rgSCHTomUtlFillRiRecpReq
(
}
RETVALUE(ROK);
}/* end of rgSCHTomUtlFillRiRecpReq */
-
+#endif
#ifdef RG_5GTF
/** @brief This function handles filling of 5GTF CQI-RI reception request to
* PHY.
* -# ROK
* -# RFAILED
*/
+
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE S16 rgSCHTomUtlFillCqiRiRecpReq
(
RETVALUE(ROK);
}/* end of rgSCHTomUtlFillCqiRiRecpReq */
#endif
-
+#endif
/** @brief This function handles filling of PCQI reception request to
* PHY.
*
* -# ROK
* -# RFAILED
*/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE S16 rgSCHTomUtlFillPcqiRecpReq
(
}
RETVALUE(ROK);
}/* end of rgSCHTomUtlFillPcqiRecpReq */
-
/** @brief This function handles filling of SRS reception request to
* PHY.
*
* -# ROK
* -# RFAILED
**/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE S16 rgSCHTomUtlFillCqiSrsWithSr
(
} /* rgSCHTomUtlFillCqiSrsWithSr */
#endif
-
+#endif
#ifdef LTE_TDD
/** @brief This function handles filling of HARQ feedback repetition
* @param[in] Inst schInst
* @RETVALUE None
*/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE Void rgSCHDynTDDMrkCrntSfIdx
(
RETVOID;
}
-
+#endif
#endif
/** @brief This function fills the TTI timinig info for each cell
*
* Returns: Void
*
*/
+#ifdef UNUSE_FUN
#ifdef ANSI
PRIVATE Void rgSchTomFillCellTtiInfo
(
#endif
}
}
-
+#endif
void schFillCrntTime(
SlotIndInfo slotInd,
Inst schInst)
RgSchCellCb *cell,
RgInfCmnBoRpt *boUpdt
));
+#ifdef UNUSE_FUN
#ifdef TFU_UPGRADE
PRIVATE U8 rgSCHUtlFetchPcqiBitSz ARGS((
RgSchCellCb *cell,
U8 numTxAnt
));
#endif
+#endif
/* sorted in ascending order of tbSz */
CONSTANT struct rgSchUtlBcchPcchTbSz
{
RETVOID;
} /* rgSchUtlCalcTotalPrbReq */
+#ifdef UNUSE_FUN
#ifdef TFU_UPGRADE
/***********************************************************
*
RETVALUE(pcqiSz);
}
#endif
+#endif
/**
* @brief Utility function to returns the number of subbands based on the
* requested bytes.