Jira id - ODUHIGH-227
[o-du/l2.git] / src / 5gnrrlc / kw_ptmi.c
index 86e380c..cf38892 100755 (executable)
 #ifdef PTKWLKW
 /* portable functions */
 
-PRIVATE S16 PtMiRlcConfigCfm    ARGS((Pst *pst, KwMngmt *cfm));
-PRIVATE S16 PtMiLkwCntrlCfm  ARGS((Pst *pst, KwMngmt *cfm));
-PRIVATE S16 PtMiLkwStaInd    ARGS((Pst *pst, KwMngmt *usta));
+PRIVATE S16 PtMiRlcConfigCfm    ARGS((Pst *pst, RlcMngmt *cfm));
+PRIVATE S16 PtMiLkwCntrlCfm  ARGS((Pst *pst, RlcMngmt *cfm));
+PRIVATE S16 PtMiLkwStaInd    ARGS((Pst *pst, RlcMngmt *usta));
 
-PRIVATE S16 PtMiLkwStaCfm    ARGS((Pst *pst, KwMngmt *cfm));
+PRIVATE S16 PtMiLkwStaCfm    ARGS((Pst *pst, RlcMngmt *cfm));
 PRIVATE S16 PtMiLkwStsCfm    ARGS((Pst *pst, Action action,
-                                KwMngmt *cfm));
-PRIVATE S16 PtMiLkwTrcInd    ARGS((Pst *pst, KwMngmt *trc,
+                                RlcMngmt *cfm));
+PRIVATE S16 PtMiLkwTrcInd    ARGS((Pst *pst, RlcMngmt *trc,
                                 Buffer *mBuf));
 /* kw005.201 added support for L2 Measurement */
 #ifdef LTE_L2_MEAS
-PRIVATE S16 PtMiLkwL2MeasCfm   ARGS((Pst *pst, KwL2MeasCfmEvt *measEvt));
+PRIVATE S16 PtMiLkwL2MeasCfm   ARGS((Pst *pst, RlcL2MeasCfmEvt *measEvt));
 PRIVATE S16 PtMiLkwL2MeasStopCfm   ARGS((Pst *pst, U8 measType,U8 status));
 #endif /*  LTE_L2_MEAS */
 #endif /* PTKWLKW */
@@ -93,7 +93,7 @@ PRIVATE S16 PtMiLkwL2MeasStopCfm   ARGS((Pst *pst, U8 measType,U8 status));
  ********************************************************************/
 /* Configuration confirmation primitive */
 
-PRIVATE RlcConfigCfm kwMiRlcConfigCfmMt[MAXKWMI] =
+PRIVATE RlcConfigCfm rlcMiRlcConfigCfmMt[MAXKWMI] =
 {
 #ifdef LCKWMILKW
    packRlcConfigCfm,            /* 0 - loosely coupled - fc */
@@ -189,7 +189,7 @@ PRIVATE LkwTrcInd kwMiLkwTrcIndMt[MAXKWMI] =
 
 /* kw005.201 added support for L2 Measurement */
 #ifdef LTE_L2_MEAS
-PRIVATE CONSTANT LkwL2MeasCfm KwMiLkwL2MeasCfmMt[] =
+PRIVATE CONSTANT LkwL2MeasCfm rlcMiLkwL2MeasCfmMt[] =
 {
 #ifdef LCKWMILKW
    cmPkLkwL2MeasCfm,
@@ -202,7 +202,7 @@ PRIVATE CONSTANT LkwL2MeasCfm KwMiLkwL2MeasCfmMt[] =
    PtMiLkwL2MeasCfm,
 #endif
 };
-PRIVATE CONSTANT LkwL2MeasStopCfm KwMiLkwL2MeasStopCfmMt[] =
+PRIVATE CONSTANT LkwL2MeasStopCfm RlcMiLkwL2MeasStopCfmMt[] =
 {
 #ifdef LCKWMILKW
    cmPkLkwL2MeasStopCfm,
@@ -222,8 +222,8 @@ PRIVATE CONSTANT LkwL2MeasStopCfm KwMiLkwL2MeasStopCfmMt[] =
  ***************************************************************************/
 /**
    @brief
-   This function is called by the KwMiRlcConfigReq function for responding
-   to configuration requests.The cfm field in the KwMngmt  structure contains
+   This function is called by the RlcMiRlcConfigReq function for responding
+   to configuration requests.The cfm field in the RlcMngmt  structure contains
  the response value.
 
    - This function calls the mapping matrix for sending the configuration
@@ -237,29 +237,29 @@ PRIVATE CONSTANT LkwL2MeasStopCfm KwMiLkwL2MeasStopCfmMt[] =
 
 */
 #ifdef ANSI
-PUBLIC S16 KwMiRlcConfigCfm
+S16 RlcMiRlcConfigCfm
 (
 Pst        *pst,                /* post structure */
-KwMngmt    *cfm                 /* Layer Management structure */
+RlcMngmt    *cfm                 /* Layer Management structure */
 )
 #else
-PUBLIC S16 KwMiRlcConfigCfm(pst, cfm)
+S16 RlcMiRlcConfigCfm(pst, cfm)
 Pst        *pst;                /* post structure */
-KwMngmt    *cfm;                /* Layer Management structure */
+RlcMngmt    *cfm;                /* Layer Management structure */
 #endif
 {
-   TRC3(KwMiRlcConfigCfm);
+   TRC3(RlcMiRlcConfigCfm);
 
    /* jump to specific primitive depending on configured selector */
-   (*kwMiRlcConfigCfmMt[pst->selector])(pst, cfm);
+   (*rlcMiRlcConfigCfmMt[pst->selector])(pst, cfm);
    
-   RETVALUE(ROK);
+   return ROK;
 }
 
 
 /**
    @brief
-   This function is called by the KwMiLkwCntrlReq function to send a control confirm to the layer management module.
+   This function is called by the RlcMiLkwCntrlReq function to send a control confirm to the layer management module.
 
    - This function calls the mapping matrix for sending the control confirmation.
    - Actual function called depends on the coupling of the LKW interface.
@@ -271,25 +271,25 @@ KwMngmt    *cfm;                /* Layer Management structure */
 
 */
 #ifdef ANSI
-PUBLIC S16 KwMiLkwCntrlCfm
+S16 RlcMiLkwCntrlCfm
 (
 Pst *pst,                    /* post structure */
-KwMngmt *cfm                 /* configure */
+RlcMngmt *cfm                 /* configure */
 )
 #else
-PUBLIC S16 KwMiLkwCntrlCfm(pst, cfm)
+S16 RlcMiLkwCntrlCfm(pst, cfm)
 Pst *pst;                    /* post structure */
-KwMngmt *cfm;                /* confirm */
+RlcMngmt *cfm;                /* confirm */
 #endif
 {
-   TRC3(KwMiLkwCntrlCfm)
+   TRC3(RlcMiLkwCntrlCfm)
 
    /* jump to specific primitive depending on configured selector */
    (*kwMiLkwCntrlCfmMt[pst->selector])(pst, cfm);
 
-   RETVALUE(ROK);
+   return ROK;
 
-} /* end of KwMiLkwCntrlCfm */
+} /* end of RlcMiLkwCntrlCfm */
 
 /**
    @brief
@@ -310,29 +310,29 @@ KwMngmt *cfm;                /* confirm */
      the layer manager API provided.
 */
 #ifdef ANSI
-PUBLIC S16 KwMiLkwStaInd
+S16 RlcMiLkwStaInd
 (
 Pst     *pst,                /* post structure */
-KwMngmt *usta                /* unsolicited status */
+RlcMngmt *usta                /* unsolicited status */
 )
 #else
-PUBLIC S16 KwMiLkwStaInd(pst, usta)
+S16 RlcMiLkwStaInd(pst, usta)
 Pst     *pst;                /* post structure */
-KwMngmt *usta;               /* unsolicited status */
+RlcMngmt *usta;               /* unsolicited status */
 #endif
 {
-   TRC3(KwMiLkwStaInd);
+   TRC3(RlcMiLkwStaInd);
 
    /* jump to specific primitive depending on configured selector */
    (*kwMiLkwStaIndMt[pst->selector])(pst, usta);
 
-   RETVALUE(ROK);
-} /* end of KwMiLkwStaInd */
+   return (ROK);
+} /* end of RlcMiLkwStaInd */
 
 
 /**
    @brief
-   - This function is called by the KwMiLkwStaReq function to send
+   - This function is called by the RlcMiLkwStaReq function to send
       the requested status information to the layer manager.
 
    - This function calls the mapping matrix for sending the status
@@ -348,30 +348,30 @@ KwMngmt *usta;               /* unsolicited status */
 
 */
 #ifdef ANSI
-PUBLIC S16 KwMiLkwStaCfm
+S16 RlcMiLkwStaCfm
 (
 Pst *pst,                    /* post structure */
-KwMngmt *cfm                 /* solicited status confirmation */
+RlcMngmt *cfm                 /* solicited status confirmation */
 )
 #else
-PUBLIC S16 KwMiLkwStaCfm(pst, cfm)
+S16 RlcMiLkwStaCfm(pst, cfm)
 Pst *pst;                    /* post structure */
-KwMngmt *cfm;                /* solicited status confirmation */
+RlcMngmt *cfm;                /* solicited status confirmation */
 #endif
 {
-   TRC3(KwMiLkwStaCfm);
+   TRC3(RlcMiLkwStaCfm);
 
    /* jump to specific primitive depending on configured selector */
    (*kwMiLkwStaCfmMt[pst->selector])(pst, cfm);
 
-   RETVALUE(ROK);
+   return ROK;
 
-} /* end of KwMiLkwStaCfm */
+} /* end of RlcMiLkwStaCfm */
 
 
 /**
    @brief
-   - This function is called by the KwMiLkwStsReq function for responding
+   - This function is called by the RlcMiLkwStsReq function for responding
       to statistics requests.
 
    - This function calls the mapping matrix for sending the statistics
@@ -387,27 +387,27 @@ KwMngmt *cfm;                /* solicited status confirmation */
 
 */
 #ifdef ANSI
-PUBLIC S16 KwMiLkwStsCfm
+S16 RlcMiLkwStsCfm
 (
 Pst *pst,                    /* post structure */
 Action action,               /* action */
-KwMngmt *cfm                 /* statistics confirmation */
+RlcMngmt *cfm                 /* statistics confirmation */
 )
 #else
-PUBLIC S16 KwMiLkwStsCfm(pst, action, cfm)
+S16 RlcMiLkwStsCfm(pst, action, cfm)
 Pst *pst;                    /* post structure */
 Action action;               /* action */
-KwMngmt *cfm;                /* statistics confirmation */
+RlcMngmt *cfm;                /* statistics confirmation */
 #endif
 {
-   TRC3(KwMiLkwStsCfm);
+   TRC3(RlcMiLkwStsCfm);
 
    /* jump to specific primitive depending on configured selector */
    (*kwMiLkwStsCfmMt[pst->selector])(pst, action, cfm);
 
-   RETVALUE(ROK);
+   return ROK;
 
-} /* end of KwMiLkwStsCfm */
+} /* end of RlcMiLkwStsCfm */
 
 /**
    @brief
@@ -427,71 +427,71 @@ KwMngmt *cfm;                /* statistics confirmation */
 
 */
 #ifdef ANSI
-PUBLIC S16 KwMiLkwTrcInd
+S16 RlcMiLkwTrcInd
 (
 Pst *pst,                    /* post structure */
-KwMngmt *trc,                /* trace indication */
+RlcMngmt *trc,                /* trace indication */
 Buffer *mBuf                 /* message buffer */
 )
 #else
-PUBLIC S16 KwMiLkwTrcInd(pst, trc, mBuf)
+S16 RlcMiLkwTrcInd(pst, trc, mBuf)
 Pst *pst;                    /* post structure */
-KwMngmt *trc;                /* trace indication */
+RlcMngmt *trc;                /* trace indication */
 Buffer *mBuf;                /* message buffer */
 #endif
 {
-   TRC3(KwMiLkwTrcInd);
+   TRC3(RlcMiLkwTrcInd);
 
    /* jump to specific primitive depending on configured selector */
    (*kwMiLkwTrcIndMt[pst->selector])(pst, trc, mBuf);
 
-   RETVALUE(ROK);
+   return ROK;
 
-} /* end of KwMiLkwTrcInd */
+} /* end of RlcMiLkwTrcInd */
 
 
 /* kw005.201 added support for L2 Measurement */
 #ifdef LTE_L2_MEAS
 #ifdef ANSI
-PUBLIC S16 KwMiLkwL2MeasCfm
+S16 RlcMiLkwL2MeasCfm
 (
 Pst * pst,
-KwL2MeasCfmEvt *measEvt
+RlcL2MeasCfmEvt *measEvt
 )
 #else
-PUBLIC S16 KwMiLkwL2MeasCfm(pst, measEvt)
+S16 RlcMiLkwL2MeasCfm(pst, measEvt)
 Pst * pst;
-KwL2MeasCfmEvt *measEvt;
+RlcL2MeasCfmEvt *measEvt;
 #endif
 {
 
-   TRC3(KwMiLkwL2MeasCfm)
+   TRC3(RlcMiLkwL2MeasCfm)
 
-   (*KwMiLkwL2MeasCfmMt[pst->selector])(pst, measEvt);
+   (*rlcMiLkwL2MeasCfmMt[pst->selector])(pst, measEvt);
 
-   RETVALUE(ROK);
+   return ROK;
 
 }
 #ifdef ANSI
-PUBLIC S16 KwMiLkwL2MeasStopCfm
+S16 RlcMiLkwL2MeasStopCfm
 (  
 Pst *pst,
 U8  measType,
 U8  status
 )
 #else
-PUBLIC S16 KwMiLkwL2MeasStopCfm(pst, measType,status)
+S16 RlcMiLkwL2MeasStopCfm(pst, measType,status)
 Pst *pst;
 U8  measType;
 U8  status;
 #endif
 {
 
-   TRC3(KwMiLkwL2MeasStopCfm)
+   TRC3(RlcMiLkwL2MeasStopCfm)
 
-   (*KwMiLkwL2MeasStopCfmMt[pst->selector])(pst, measType,status);
+   (*RlcMiLkwL2MeasStopCfmMt[pst->selector])(pst, measType,status);
 
-   RETVALUE(ROK);
+   return ROK;
 
 }
 #endif /*  LTE_L2_MEAS */
@@ -517,15 +517,15 @@ U8  status;
  */
 
 #ifdef ANSI
-PUBLIC S16 PtMiRlcConfigCfm
+S16 PtMiRlcConfigCfm
 (
 Pst *pst,                    /* post structure */
-KwMngmt *cfm                 /* Layer Management structure */
+RlcMngmt *cfm                 /* Layer Management structure */
 )
 #else
-PUBLIC S16 PtMiRlcConfigCfm(pst, cfm)
+S16 PtMiRlcConfigCfm(pst, cfm)
 Pst *pst;                    /* post structure */
-KwMngmt *cfm;                /* Layer Management structure */
+RlcMngmt *cfm;                /* Layer Management structure */
 #endif
 {
    TRC3(PtMiRlcConfigCfm)
@@ -535,7 +535,7 @@ KwMngmt *cfm;                /* Layer Management structure */
 
    TRC2(PtMiRlcConfigCfm() : function is not implemented)
 
-   RETVALUE(ROK);
+   return ROK;
 } /* end of PtMiRlcConfigCfm */
 
 /*
@@ -558,12 +558,12 @@ KwMngmt *cfm;                /* Layer Management structure */
 PRIVATE S16 PtMiLkwCntrlCfm
 (
 Pst *pst,                 /* Post structure */
-KwMngmt *cfm              /* Layer Management structure */
+RlcMngmt *cfm              /* Layer Management structure */
 )
 #else
 PRIVATE S16 PtMiLkwCntrlCfm(pst, cfm)
 Pst *pst;                 /* Post structure */
-KwMngmt *cfm;             /* Layer Management structure */
+RlcMngmt *cfm;             /* Layer Management structure */
 #endif
 {
    TRC3(PtMiLkwCntrlCfm);
@@ -573,7 +573,7 @@ KwMngmt *cfm;             /* Layer Management structure */
 
    TRC2(PtMiLkwCntrlCfm() :  function is not implemented)
 
-   RETVALUE(ROK);
+   return ROK;
 } /* end of PtMiLkwCntrlCfm */
 
 
@@ -595,12 +595,12 @@ KwMngmt *cfm;             /* Layer Management structure */
 PRIVATE S16 PtMiLkwStaInd
 (
 Pst *pst,                    /* post structure */
-KwMngmt *usta                /* unsolicited status */
+RlcMngmt *usta                /* unsolicited status */
 )
 #else
 PRIVATE S16 PtMiLkwStaInd(pst, usta)
 Pst *pst;                    /* post structure */
-KwMngmt *usta;               /* unsolicited status */
+RlcMngmt *usta;               /* unsolicited status */
 #endif
 {
    TRC3(PtMiLkwStaInd)
@@ -610,7 +610,7 @@ KwMngmt *usta;               /* unsolicited status */
 
    TRC2(PtMiLkwStaInd() : function is not implemented)
 
-   RETVALUE(ROK);
+   return ROK;
 } /* end of PtMiLkwStaInd */
 
 
@@ -632,12 +632,12 @@ KwMngmt *usta;               /* unsolicited status */
 PRIVATE S16 PtMiLkwStaCfm
 (
 Pst *pst,                    /* post structure */
-KwMngmt *cfm                 /* solicited status confirmation */
+RlcMngmt *cfm                 /* solicited status confirmation */
 )
 #else
 PRIVATE S16 PtMiLkwStaCfm(pst, cfm)
 Pst *pst;                    /* post structure */
-KwMngmt *cfm;                /* solicited status confirmation */
+RlcMngmt *cfm;                /* solicited status confirmation */
 #endif
 {
    TRC3(PtMiLkwStaCfm)
@@ -645,7 +645,7 @@ KwMngmt *cfm;                /* solicited status confirmation */
    UNUSED(pst);
    UNUSED(cfm);
 
-   RETVALUE(ROK);
+   return ROK;
 } /* end of PtMiLkwStaCfm */
 
 
@@ -668,13 +668,13 @@ PRIVATE S16 PtMiLkwStsCfm
 (
 Pst *pst,                    /* post structure */
 Action action,               /* action */
-KwMngmt *cfm                 /* statistics confirmation */
+RlcMngmt *cfm                 /* statistics confirmation */
 )
 #else
 PRIVATE S16 PtMiLkwStsCfm(pst, action, cfm)
 Pst *pst;                    /* post structure */
 Action action;               /* action */
-KwMngmt *cfm;                /* statistics confirmation */
+RlcMngmt *cfm;                /* statistics confirmation */
 #endif
 {
    TRC3(PtMiLkwStsCfm)
@@ -683,7 +683,7 @@ KwMngmt *cfm;                /* statistics confirmation */
    UNUSED(action);
    UNUSED(cfm);
 
-   RETVALUE(ROK);
+   return ROK;
 } /* end of PtMiLkwStsCfm */
 
 
@@ -705,13 +705,13 @@ KwMngmt *cfm;                /* statistics confirmation */
 PRIVATE S16 PtMiLkwTrcInd
 (
 Pst *pst,                    /* post structure */
-KwMngmt *trc,                /* trace indication */
+RlcMngmt *trc,                /* trace indication */
 Buffer *mBuf                 /* message buffer */
 )
 #else
 PRIVATE S16 PtMiLkwTrcInd(pst, trc, mBuf)
 Pst *pst;                    /* post structure */
-KwMngmt *trc;                /* trace indication */
+RlcMngmt *trc;                /* trace indication */
 Buffer *mBuf;                /* message buffer */
 #endif
 {
@@ -721,7 +721,7 @@ Buffer *mBuf;                /* message buffer */
    UNUSED(trc);
    UNUSED(mBuf);
 
-   RETVALUE(ROK);
+   return ROK;
 } /* end of PtMiLkwTrcInd */
 
 /* kw005.201 added support for L2 Measurement */
@@ -730,12 +730,12 @@ Buffer *mBuf;                /* message buffer */
 PRIVATE S16 PtMiLkwL2MeasCfm
 (
 Pst * pst,
-KwL2MeasCfmEvt * measEvt
+RlcL2MeasCfmEvt * measEvt
 )
 #else
 PRIVATE S16 PtMiLkwL2MeasCfm(pst, measEvt)
 Pst * pst;
-KwL2MeasCfmEvt * measEvt;
+RlcL2MeasCfmEvt * measEvt;
 #endif
 {
 
@@ -744,7 +744,7 @@ KwL2MeasCfmEvt * measEvt;
    UNUSED(pst);
    UNUSED(measEvt);
 
-   RETVALUE(ROK);
+   return ROK;
 
 }
 #ifdef ANSI
@@ -768,7 +768,7 @@ U8  status;
    UNUSED(measType);
    UNUSED(status);
 
-   RETVALUE(ROK);
+   return ROK;
 
 }
 #endif /*  LTE_L2_MEAS */