/********************************************************************20**
- Name: LTE-RLC Layer - Upper Interface
+ Name: NR RLC Layer - Upper Interface
Type: C file
- Desc: C source code for the upper interface of LTE-RLC
+ Desc: C source code for the upper interface of NR RLC
File: kw_ptui.c
*********************************************************************21*/
-static const char* RLOG_MODULE_NAME="UIM";
-static int RLOG_MODULE_ID=2048;
-static int RLOG_FILE_ID=199;
/** @file kw_ptui.c
@brief RLC Upper Interface
#endif
#ifdef __cplusplus
-EXTERN "C" {
+extern "C" {
#endif /* __cplusplus */
\f
#if defined(PDCP_RLC_DL_RBUF) || defined(SS_RBUF)
S16 rlcDlBatchProc ARGS ((Void));
S16 rlcUtlDlFreeRlcRBuf ARGS((Void));
-EXTERN void rlcUtlDlBatchProcHqStaInd ARGS ((Void));
-EXTERN Void rlcUtlFreeDlMem ARGS((Void));
-EXTERN SsRngBufCnt rngCb;
-EXTERN S16 rlcUtlDlBatchProcPkts ARGS((Void));
+void rlcUtlDlBatchProcHqStaInd ARGS ((Void));
+Void rlcUtlFreeDlMem ARGS((Void));
+SsRngBufCnt rngCb;
+S16 rlcUtlDlBatchProcPkts ARGS((Void));
#endif
#if (defined(L2_L3_SPLIT) && defined(ICC_RECV_TSK_RBUF))
* -# ROK
*
*/
-#ifdef ANSI
S16 RlcUiKwuBndCfm
(
-Pst *pst, /* post structure */
-SuId suId, /* Service User Id */
-uint8_t status /* Status */
+Pst *pst, /* post structure */
+SuId suId, /* Service User Id */
+uint8_t status /* Status */
)
-#else
-S16 RlcUiKwuBndCfm(pst, suId, status)
-Pst *pst; /* post structure */
-SuId suId; /* Service User Id */
-uint8_t status; /* Status */
-#endif
{
/* jump to specific primitive depending on configured selector */
* -# ROK
* -# RFAILED
*/
-#ifdef ANSI
S16 rlcSendUlDataToDu
(
Pst *pst,
KwuDatIndInfo *datInd,
Buffer *mBuf
)
-#else
-S16 rlcSendUlDataToDu(pst, datInd, mBuf)
-Pst *pst;
-KwuDatIndInfo *datInd;
-Buffer *mBuf;
-#endif
{
/* jump to specific primitive depending on configured selector */
* -# ROK
* -# RFAILED
*/
-#ifdef ANSI
S16 RlcUiKwuDatCfm
(
-Pst *pst,
-SuId suId,
-KwuDatCfmInfo *datCfm
+Pst *pst,
+SuId suId,
+KwuDatCfmInfo *datCfm
)
-#else
-S16 RlcUiKwuDatCfm(pst, suId, datCfm)
-Pst *pst;
-SuId suId;
-KwuDatCfmInfo *datCfm;
-#endif
{
rlcDatCfmsSent++;
* -# ROK
* -# RFAILED
*/
-#ifdef ANSI
S16 RlcUiKwuStaInd
(
Pst *pst,
SuId suId,
KwuStaIndInfo *staInd
)
-#else
-S16 RlcUiKwuStaInd(pst, suId, staInd)
-Pst *pst;
-SuId suId;
-KwuStaIndInfo *staInd;
-#endif
{
/* jump to specific primitive depending on configured selector */
* -# ROK
* -# RFAILED
*/
-#ifdef ANSI
S16 RlcUiKwuReEstCmpInd
(
Pst *pst,
SuId suId,
CmLteRlcId rlcId
)
-#else
-S16 RlcUiKwuReEstCmpInd(pst, suId, rlcId)
-Pst *pst;
-SuId suId;
-CmLteRlcId rlcId;
-#endif
{
- RLOG0(L_DEBUG, "In RlcUiKwuReEstCmpInd");
+ DU_LOG("\nINFO --> RLC : In RlcUiKwuReEstCmpInd");
/* jump to specific primitive depending on configured selector */
(*kwUiKwuReEstCmpIndMt[pst->selector])(pst, suId, rlcId);
* -# ROK
* -# RFAILED
*/
-#ifdef ANSI
S16 RlcUiKwuDiscSduCfm
(
Pst *pst,
SuId suId,
KwuDiscSduInfo *discCfm
)
-#else
-S16 RlcUiKwuDiscSduCfm(pst, suId, discCfm)
-Pst *pst;
-SuId suId;
-KwuDiscSduInfo *discCfm;
-#endif
{
/* jump to specific primitive depending on configured selector */
* -# ROK
* -# RFAILED
*/
-#ifdef ANSI
-S16 RlcUiKwuFlowCntrlInd
-(
-Pst *pst,
-SuId suId,
-KwuFlowCntrlIndInfo *flowCntrlIndInfo
-)
-#else
-S16 RlcUiKwuFlowCntrlInd(pst, suId, flowCntrlIndInfo)
-Pst *pst;
-SuId suId;
-KwuFlowCntrlIndInfo *flowCntrlIndInfo;
-#endif
+S16 RlcUiKwuFlowCntrlInd(Pst *pst,SuId suId,KwuFlowCntrlIndInfo *flowCntrlIndInfo)
{
/* jump to specific primitive depending on configured selector */
* -# ROK
* -# RFAILED
*/
-#ifdef ANSI
-S16 RlcUiKwuDatAckInd
-(
-Pst *pst,
-SuId suId,
-KwuDatAckInfo *datAckInd
-)
-#else
-S16 RlcUiKwuDatAckInd(pst, suId, datAckInd)
-Pst *pst;
-SuId suId;
-KwuDatAckInfo *datAckInd;
-#endif
+S16 RlcUiKwuDatAckInd(Pst *pst,SuId suId,KwuDatAckInfo *datAckInd)
{
/* jump to specific primitive depending on configured selector */
* @return S16
* -# ROK
*/
-#ifdef ANSI
S16 RlcUiCkwBndCfm
(
-Pst *pst, /* post structure */
-SuId suId, /* Service User Id */
-uint8_t status /* Status */
+Pst *pst, /* post structure */
+SuId suId, /* Service User Id */
+uint8_t status /* Status */
)
-#else
-S16 RlcUiCkwBndCfm(pst, suId, status)
-Pst *pst; /* post structure */
-SuId suId; /* Service User Id */
-uint8_t status; /* Status */
-#endif
{
/* jump to specific primitive depending on configured selector */
* -# ROK
*
*/
-#ifdef ANSI
S16 RlcUiRlcCfgCfm
(
Pst *pst, /* post structure */
SuId suId, /* Service User Id */
RlcCfgCfmInfo *cfmInfo /* Configuration Confirm */
)
-#else
-S16 RlcUiRlcCfgCfm(pst, suId, cfmInfo)
-Pst *pst; /* post structure */
-SuId suId; /* Service User Id */
-RlcCfgCfmInfo *cfmInfo; /* Configuration Confirm */
-#endif
{
/* jump to specific primitive depending on configured selector */
* -# ROK
*
*/
-#ifdef ANSI
S16 RlcUiCkwUeIdChgCfm
(
Pst *pst, /* post structure */
CkwUeInfo *ueInfo,
CmStatus status
)
-#else
-S16 RlcUiCkwUeIdChgCfm(pst, suId, transId,ueInfo,status)
-Pst *pst; /* post structure */
-SuId suId; /* Service User Id */
-uint32_t transId;
-CkwUeInfo *ueInfo;
-CmStatus status;
-#endif
{
/* jump to specific primitive depending on configured selector */
* @return S16
* -# ROK
*/
-#ifdef ANSI
-S16 rlcDlBatchProcSplit
-(
-Void
-)
-#else
-S16 rlcDlBatchProcSplit()
-Void;
-#endif
+S16 rlcDlBatchProcSplit(Void)
{
/* Read from Ring Buffer and process PDCP packets */
}
else
{
- RLOG0(L_ERROR, "mBuf is NULL");
+ DU_LOG("\nERROR --> RLC : mBuf is NULL");
if(datReq->mBuf)
cmUnpkKwuDatReq(rlcProcDlData, &datReq->pst, datReq->mBuf);
#endif
#if defined(PDCP_RLC_DL_RBUF) || defined(SS_RBUF)
-#ifdef ANSI
-S16 rlcDlBatchProc
-(
-Void
-)
-#else
-S16 rlcDlBatchProc()
-Void;
-#endif
+S16 rlcDlBatchProc(Void)
{
/* Read from Ring Buffer and process PDCP packets */
/* Memory regions different for BRCM and Intel */
/*dstProcId,srcProcId,dstEnt,dstInst,srcEnt,srcInst,prior,route,event,region,pool,selector*/
#ifdef SS_RBUF
- PRIVATE Pst rlcDlRbfuPst ={1,1,ENTRLC,1,ENTPJ,1,PRIOR0,RTESPEC,KWU_EVT_DAT_REQ,1,1,0,0};
+ static Pst rlcDlRbfuPst ={1,1,ENTRLC,1,ENTPJ,1,PRIOR0,RTESPEC,KWU_EVT_DAT_REQ,1,1,0,0};
#else
- PRIVATE Pst rlcDlRbfuPst ={1,1,ENTRLC,1,ENTPJ,1,PRIOR0,RTESPEC,KWU_EVT_DAT_REQ,2,1,0,0};
+ static Pst rlcDlRbfuPst ={1,1,ENTRLC,1,ENTPJ,1,PRIOR0,RTESPEC,KWU_EVT_DAT_REQ,2,1,0,0};
#endif
Void *elmIndx = NULLP;
KwuDatReqDetl *kwuDatReqDetl = NULLP;
- KwuDatReqInfo datReq;
+ RlcDatReqInfo datReq;
rngBufDeqMaxCnt = SS_RNG_MAX_DLPDCP_TO_DLRLC_DQ_CNT;
#ifdef TENB_T2K3K_SPECIFIC_CHANGES
}
-#ifdef ANSI
-S16 rlcUtlDlBatchProcPkts
-(
-Void
-)
-#else
-S16 rlcUtlDlBatchProcPkts
-Void;
-#endif
+S16 rlcUtlDlBatchProcPkts(Void)
{
rlcDlBatchProc();
#ifdef SS_RBUF
}
-#ifdef ANSI
-S16 rlcUtlDlFreeRlcRBuf
-(
-Void
-)
-#else
-S16 rlcUtlDlFreeRlcRBuf
-Void;
-#endif
+S16 rlcUtlDlFreeRlcRBuf(Void)
{
/* Read from Ring Buffer and process PDCP packets */
Void *elmIndx = NULLP;