RLC BO, BO response and DL Data handling. [Issue-ID: ODUHIGH-181]
[o-du/l2.git] / src / 5gnrmac / rg_ptmi.c
index 7dc1a10..87419c3 100755 (executable)
@@ -99,7 +99,7 @@ PRIVATE CONSTANT LrgCfgCfm RgMiLrgCfgCfmMt[RG_MAX_LRG_USR] =
 #ifdef SM 
    SmMiLrgCfgCfm,                  /* 1 - Tightly coupled SM */
 #else
-   PtMiLrgCfgCfm,                  /* 1 - Tightly coupled SM  */
+   //PtMiLrgCfgCfm,                  /* 1 - Tightly coupled SM  */
 #endif
 };
 
@@ -114,7 +114,7 @@ PRIVATE CONSTANT LrgSchCfgCfm RgMiLrgSchCfgCfmMt[RG_MAX_LRG_USR] =
 #ifdef SM 
    SmMiLrgSchCfgCfm,                  /* 1 - Tightly coupled SM */
 #else
-   PtMiLrgSchCfgCfm,                  /* 1 - Tightly coupled SM  */
+   //PtMiLrgSchCfgCfm,                  /* 1 - Tightly coupled SM  */
 #endif
 };
 
@@ -280,13 +280,13 @@ PRIVATE CONSTANT LrgSchL2MeasStopCfm RgMiLrgSchL2mMeasStopCfmMt[RG_MAX_LRG_USR]
  *      -# ROK
  **/
 #ifdef ANSI
-PUBLIC S16 RgMiLrgCfgCfm
+S16 RgMiLrgCfgCfm
 (
 Pst      *pst,    /* post structure  */
 RgMngmt  *cfm     /* config confirm structure  */
 )
 #else
-PUBLIC S16 RgMiLrgCfgCfm(pst, cfm)
+S16 RgMiLrgCfgCfm(pst, cfm)
 Pst      *pst;    /* post structure  */
 RgMngmt  *cfm;    /* config confirm structure  */
 #endif    
@@ -296,7 +296,7 @@ RgMngmt  *cfm;    /* config confirm structure  */
 
    (*RgMiLrgCfgCfmMt[pst->selector])(pst, cfm);
 
-   RETVALUE(ROK);
+   return ROK;
    
 }/*-- RgMiLrgCfgCfm --*/
 
@@ -318,13 +318,13 @@ RgMngmt  *cfm;    /* config confirm structure  */
  *      -# ROK
  **/
 #ifdef ANSI
-PUBLIC S16 RgMiLrgSchCfgCfm
+S16 RgMiLrgSchCfgCfm
 (
 Pst      *pst,    /* post structure  */
 RgMngmt  *cfm     /* config confirm structure  */
 )
 #else
-PUBLIC S16 RgMiLrgSchCfgCfm(pst, cfm)
+S16 RgMiLrgSchCfgCfm(pst, cfm)
 Pst      *pst;    /* post structure  */
 RgMngmt  *cfm;    /* config confirm structure  */
 #endif    
@@ -334,7 +334,7 @@ RgMngmt  *cfm;    /* config confirm structure  */
 
    (*RgMiLrgSchCfgCfmMt[pst->selector])(pst, cfm);
 
-   RETVALUE(ROK);
+   return ROK;
    
 }/*-- RgMiLrgSchCfgCfm --*/
 
@@ -358,13 +358,13 @@ RgMngmt  *cfm;    /* config confirm structure  */
  *      -# ROK
  **/
 #ifdef ANSI
-PUBLIC S16 RgMiLrgStsCfm
+S16 RgMiLrgStsCfm
 (
 Pst      *pst,    /* post structure  */
 RgMngmt  *cfm     /* statistics confirm structure  */
 )
 #else
-PUBLIC S16 RgMiLrgStsCfm(pst, cfm)
+S16 RgMiLrgStsCfm(pst, cfm)
 Pst      *pst;    /* post structure  */
 RgMngmt  *cfm;    /* statistics confirm structure  */
 #endif    
@@ -374,7 +374,7 @@ RgMngmt  *cfm;    /* statistics confirm structure  */
 
    (*RgMiLrgStsCfmMt[pst->selector])(pst, cfm);
 
-   RETVALUE(ROK);
+   return ROK;
    
 }/*-- RgMiLrgStsCfm --*/
 
@@ -397,13 +397,13 @@ RgMngmt  *cfm;    /* statistics confirm structure  */
  *      -# ROK
  **/
 #ifdef ANSI
-PUBLIC S16 RgMiLrgStaCfm
+S16 RgMiLrgStaCfm
 (
 Pst      *pst,    /* post structure  */
 RgMngmt  *cfm     /* status confirm structure  */
 )
 #else
-PUBLIC S16 RgMiLrgStaCfm(pst, cfm)
+S16 RgMiLrgStaCfm(pst, cfm)
 Pst      *pst;    /* post structure  */
 RgMngmt  *cfm;    /* status confirm structure  */
 #endif    
@@ -413,7 +413,7 @@ RgMngmt  *cfm;    /* status confirm structure  */
     
    (*RgMiLrgStaCfmMt[pst->selector])(pst,cfm);
 
-   RETVALUE(ROK);
+   return ROK;
    
 }/*-- RgMiLrgStaCfm --*/
 
@@ -436,13 +436,13 @@ RgMngmt  *cfm;    /* status confirm structure  */
  *      -# ROK
  **/
 #ifdef ANSI
-PUBLIC S16 RgMiLrgCntrlCfm
+S16 RgMiLrgCntrlCfm
 (
 Pst      *pst,    /* post structure  */
 RgMngmt  *cfm     /* control confirm structure  */
 )
 #else
-PUBLIC S16 RgMiLrgCntrlCfm(pst, cfm)
+S16 RgMiLrgCntrlCfm(pst, cfm)
 Pst      *pst;    /* post structure  */
 RgMngmt  *cfm;    /* control confirm structure  */
 #endif    
@@ -452,7 +452,7 @@ RgMngmt  *cfm;    /* control confirm structure  */
 
    (*RgMiLrgCntrlCfmMt[pst->selector])(pst,cfm);
 
-   RETVALUE(ROK);
+   return ROK;
    
 }/*-- RgMiLrgCntrlCfm --*/
 
@@ -474,13 +474,13 @@ RgMngmt  *cfm;    /* control confirm structure  */
  *      -# ROK
  **/
 #ifdef ANSI
-PUBLIC S16 RgMiLrgSchCntrlCfm
+S16 RgMiLrgSchCntrlCfm
 (
 Pst      *pst,    /* post structure  */
 RgMngmt  *cfm     /* control confirm structure  */
 )
 #else
-PUBLIC S16 RgMiLrgSchCntrlCfm(pst, cfm)
+S16 RgMiLrgSchCntrlCfm(pst, cfm)
 Pst      *pst;    /* post structure  */
 RgMngmt  *cfm;    /* control confirm structure  */
 #endif    
@@ -490,7 +490,7 @@ RgMngmt  *cfm;    /* control confirm structure  */
 
    (*RgMiLrgSchCntrlCfmMt[pst->selector])(pst,cfm);
 
-   RETVALUE(ROK);
+   return ROK;
    
 }/*-- RgMiLrgSchCntrlCfm --*/
 
@@ -513,13 +513,13 @@ RgMngmt  *cfm;    /* control confirm structure  */
  *      -# ROK
  **/
 #ifdef ANSI
-PUBLIC S16 RgMiLrgStaInd
+S16 RgMiLrgStaInd
 (
 Pst      *pst,    /* post structure  */
 RgMngmt  *usta    /* status indication structure  */
 )
 #else
-PUBLIC S16 RgMiLrgStaInd(pst, usta)
+S16 RgMiLrgStaInd(pst, usta)
 Pst      *pst;    /* post structure  */
 RgMngmt  *usta;    /* status indication structure  */
 #endif    
@@ -529,7 +529,7 @@ RgMngmt  *usta;    /* status indication structure  */
 
    (*RgMiLrgStaIndMt[pst->selector])(pst,usta);
 
-   RETVALUE(ROK);
+   return ROK;
    
 }/*-- RgMiLrgStaInd --*/
 
@@ -551,13 +551,13 @@ RgMngmt  *usta;    /* status indication structure  */
  *      -# ROK
  **/
 #ifdef ANSI
-PUBLIC S16 RgMiLrgSchStaInd
+S16 RgMiLrgSchStaInd
 (
 Pst      *pst,    /* post structure  */
 RgMngmt  *usta    /* status indication structure  */
 )
 #else
-PUBLIC S16 RgMiLrgSchStaInd(pst, usta)
+S16 RgMiLrgSchStaInd(pst, usta)
 Pst      *pst;    /* post structure  */
 RgMngmt  *usta;    /* status indication structure  */
 #endif    
@@ -567,7 +567,7 @@ RgMngmt  *usta;    /* status indication structure  */
 
    (*RgMiLrgSchStaIndMt[pst->selector])(pst,usta);
 
-   RETVALUE(ROK);
+   return ROK;
    
 }/*-- RgMiLrgSchStaInd --*/
 
@@ -591,14 +591,14 @@ RgMngmt  *usta;    /* status indication structure  */
  *      -# ROK
  **/
 #ifdef ANSI
-PUBLIC S16 RgMiLrgTrcInd
+S16 RgMiLrgTrcInd
 (
 Pst      *pst,    /* post structure  */
 RgMngmt  *trc,    /* Trace event  */
 Buffer   *mBuf    /* Trace message  */
 )
 #else
-PUBLIC S16 RgMiLrgTrcInd(pst, trc, mBuf)
+S16 RgMiLrgTrcInd(pst, trc, mBuf)
 Pst      *pst;    /* post structure  */
 RgMngmt  *trc;    /* Trace event  */
 Buffer   *mBuf;   /* Trace message  */
@@ -609,7 +609,7 @@ Buffer   *mBuf;   /* Trace message  */
 
    (*RgMiLrgTrcIndMt[pst->selector])(pst,trc,mBuf);
 
-   RETVALUE(ROK);
+   return ROK;
    
 }/*-- RgMiLrgTrcInd --*/
 
@@ -617,13 +617,13 @@ Buffer   *mBuf;   /* Trace message  */
 
 /* TODO: Function header */
 #ifdef ANSI
-PUBLIC S16 RgMiLrgSchL2MeasCfm
+S16 RgMiLrgSchL2MeasCfm
 (
 Pst               *pst,          /* post structure  */
 LrgSchMeasCfmInfo *cfm       /* Meas Cfm Info */
 )
 #else
-PUBLIC S16 RgMiLrgSchL2MeasCfm(pst, cfm)
+S16 RgMiLrgSchL2MeasCfm(pst, cfm)
 Pst               *pst;          /* post structure  */
 LrgSchMeasCfmInfo *cfm;       /* Meas Cfm Info */
 #endif    
@@ -632,7 +632,7 @@ LrgSchMeasCfmInfo *cfm;       /* Meas Cfm Info */
    
    (*RgMiLrgSchL2mMeasCfmMt[pst->selector])(pst,cfm);
    
-   RETVALUE(ROK);
+   return ROK;
 
 } /* RgMiLrgSchL2MeasCfm */
 
@@ -654,13 +654,13 @@ LrgSchMeasCfmInfo *cfm;       /* Meas Cfm Info */
  **/
 
 #ifdef ANSI 
-PUBLIC S16 RgMiLrgSchL2MeasStopCfm
+S16 RgMiLrgSchL2MeasStopCfm
 (        
 Pst               *pst,          /* post structure  */
 LrgSchMeasCfmInfo *cfm       /* Meas Cfm Info */
 )        
 #else    
-PUBLIC S16 RgMiLrgSchL2MeasStopCfm(pst, cfm)
+S16 RgMiLrgSchL2MeasStopCfm(pst, cfm)
 Pst               *pst;          /* post structure  */
 LrgSchMeasCfmInfo *cfm;       /* Meas Cfm Info */
 #endif    
@@ -669,7 +669,7 @@ LrgSchMeasCfmInfo *cfm;       /* Meas Cfm Info */
         
    (*RgMiLrgSchL2mMeasStopCfmMt[pst->selector])(pst,cfm);
           
-   RETVALUE(ROK);
+   return ROK;
         
 } /* RgMiLrgSchL2MeasStopCfm */
 
@@ -699,20 +699,20 @@ LrgSchMeasCfmInfo *cfm;       /* Meas Cfm Info */
  *      -# ROK
  **/
 #ifdef ANSI
-PUBLIC S16 PtMiLrgCfgCfm
+S16 PtMiLrgCfgCfm
 (
 Pst *pst,               /* post structure */
 RgMngmt *cfm            /* Config Confirm */
 )
 #else
-PUBLIC S16 PtMiLrgCfgCfm  (pst, cfm)
+S16 PtMiLrgCfgCfm  (pst, cfm)
 Pst *pst;               /* post structure */
 RgMngmt *cfm;           /* Config Confirm */
 #endif
 {
    TRC3(PtMiLrgCfgCfm)
 
-   RETVALUE(ROK);
+   return ROK;
 }/* end of PtMiLrgCfgCfm */
 
 /**
@@ -735,20 +735,20 @@ RgMngmt *cfm;           /* Config Confirm */
  *      -# ROK
  **/
 #ifdef ANSI
-PUBLIC S16 PtMiLrgSchCfgCfm
+S16 PtMiLrgSchCfgCfm
 (
 Pst *pst,               /* post structure */
 RgMngmt *cfm            /* Config Confirm */
 )
 #else
-PUBLIC S16 PtMiLrgSchCfgCfm  (pst, cfm)
+S16 PtMiLrgSchCfgCfm  (pst, cfm)
 Pst *pst;               /* post structure */
 RgMngmt *cfm;           /* Config Confirm */
 #endif
 {
    TRC3(PtMiLrgSchCfgCfm)
 
-   RETVALUE(ROK);
+   return ROK;
 }/* end of PtMiLrgSchCfgCfm */
 
 
@@ -773,20 +773,20 @@ RgMngmt *cfm;           /* Config Confirm */
  *      -# ROK
  **/
 #ifdef ANSI
-PUBLIC S16 PtMiLrgStsCfm
+S16 PtMiLrgStsCfm
 (
 Pst *pst,               /* post structure */
 RgMngmt *cfm            /* Statistics Confirm */
 )
 #else
-PUBLIC S16 PtMiLrgStsCfm  (pst, cfm)
+S16 PtMiLrgStsCfm  (pst, cfm)
 Pst *pst;               /* post structure */
 RgMngmt *cfm;           /* Statistics Confirm */
 #endif
 {
    TRC3(PtMiLrgStsCfm)
 
-   RETVALUE(ROK);
+   return ROK;
 }/* end of PtMiLrgStsCfm */
 
 
@@ -811,19 +811,19 @@ RgMngmt *cfm;           /* Statistics Confirm */
  *      -# ROK
  **/
 #ifdef ANSI
-PUBLIC S16 PtMiLrgStaCfm
+S16 PtMiLrgStaCfm
 (
 Pst *pst,               /* post structure */
 RgMngmt *cfm            /* Status Confirm */
 )
 #else
-PUBLIC S16 PtMiLrgStaCfm  (pst, cfm)
+S16 PtMiLrgStaCfm  (pst, cfm)
 Pst *pst;               /* post structure */
 RgMngmt *cfm;           /* Status Confirm */
 #endif
 {
    TRC3(PtMiLrgStaCfm)
-   RETVALUE(ROK);
+   return ROK;
 }/* end of PtMiLrgStaCfm */
 
 
@@ -848,19 +848,19 @@ RgMngmt *cfm;           /* Status Confirm */
  *      -# ROK
  **/
 #ifdef ANSI
-PUBLIC S16 PtMiLrgStaInd
+S16 PtMiLrgStaInd
 (
 Pst *pst,               /* post structure */
 RgMngmt *usta           /* Status Indication */
 )
 #else
-PUBLIC S16 PtMiLrgStaInd  (pst, usta)
+S16 PtMiLrgStaInd  (pst, usta)
 Pst *pst;               /* post structure */
 RgMngmt *usta;          /* Status indication */
 #endif
 {
    TRC3(PtMiLrgStaInd)
-   RETVALUE(ROK);
+   return ROK;
 }/* end of PtMiLrgStaInd */
 
 /**
@@ -883,19 +883,19 @@ RgMngmt *usta;          /* Status indication */
  *      -# ROK
  **/
 #ifdef ANSI
-PUBLIC S16 PtMiLrgSchStaInd
+S16 PtMiLrgSchStaInd
 (
 Pst *pst,               /* post structure */
 RgMngmt *usta           /* Status Indication */
 )
 #else
-PUBLIC S16 PtMiLrgSchStaInd  (pst, usta)
+S16 PtMiLrgSchStaInd  (pst, usta)
 Pst *pst;               /* post structure */
 RgMngmt *usta;          /* Status indication */
 #endif
 {
    TRC3(PtMiLrgSchStaInd)
-   RETVALUE(ROK);
+   return ROK;
 }/* end of PtMiLrgSchStaInd */
 
 \f
@@ -919,19 +919,19 @@ RgMngmt *usta;          /* Status indication */
  *      -# ROK
  **/
 #ifdef ANSI
-PUBLIC S16 PtMiLrgCntrlCfm
+S16 PtMiLrgCntrlCfm
 (
 Pst *pst,               /* post structure */
 RgMngmt *cfm            /* Control Confirm */
 )
 #else
-PUBLIC S16 PtMiLrgCntrlCfm (pst, cfm)
+S16 PtMiLrgCntrlCfm (pst, cfm)
 Pst *pst;               /* post structure */
 RgMngmt *cfm;           /* Control Confirm */
 #endif
 {
    TRC3(PtMiLrgCntrlCfm)
-   RETVALUE(ROK);
+   return ROK;
 }/* end of PtMiLrgCntrlCfm */
 
 /**
@@ -954,19 +954,19 @@ RgMngmt *cfm;           /* Control Confirm */
  *      -# ROK
  **/
 #ifdef ANSI
-PUBLIC S16 PtMiLrgSchCntrlCfm
+S16 PtMiLrgSchCntrlCfm
 (
 Pst *pst,               /* post structure */
 RgMngmt *cfm            /* Control Confirm */
 )
 #else
-PUBLIC S16 PtMiLrgSchCntrlCfm (pst, cfm)
+S16 PtMiLrgSchCntrlCfm (pst, cfm)
 Pst *pst;               /* post structure */
 RgMngmt *cfm;           /* Control Confirm */
 #endif
 {
    TRC3(PtMiLrgSchCntrlCfm)
-   RETVALUE(ROK);
+   return ROK;
 }/* end of PtMiLrgSchCntrlCfm */
 
 \f
@@ -990,21 +990,21 @@ RgMngmt *cfm;           /* Control Confirm */
  *      -# ROK
  **/
 #ifdef ANSI
-PUBLIC S16 PtMiLrgTrcInd
+S16 PtMiLrgTrcInd
 (
 Pst *pst,               /* post structure */
 RgMngmt *trc,           /* Trace Event */
 Buffer *mBuf            /* Trace message */
 )
 #else
-PUBLIC S16 PtMiLrgTrcInd (pst, trc,mBuf)
+S16 PtMiLrgTrcInd (pst, trc,mBuf)
 Pst *pst;               /* post structure */
 RgMngmt *trc;           /* Trace Event */
 Buffer *mBuf;           /* Trace message */
 #endif
 {
    TRC3(PtMiLrgTrcInd)
-   RETVALUE(ROK);
+   return ROK;
 }/* end of PtMiLrgTrcInd */
 #ifdef LTE_L2_MEAS
 /**
@@ -1022,20 +1022,20 @@ Buffer *mBuf;           /* Trace message */
  *      -# ROK
  **/
 #ifdef ANSI
-PUBLIC S16 PtMiLrgSchL2MeasCfm
+S16 PtMiLrgSchL2MeasCfm
 (
 Pst *pst,               /* post structure */
 LrgSchMeasCfmInfo *cfm  /* Measurement Confirm */
 )
 #else
-PUBLIC S16 PtMiLrgSchL2MeasCfm(pst, cfm)
+S16 PtMiLrgSchL2MeasCfm(pst, cfm)
 Pst *pst;               /* post structure */
 LrgSchMeasCfmInfo *cfm; /* Measurement Confirm */
 #endif
 {
    TRC3(PtMiLrgSchL2MeasCfm)
 
-   RETVALUE(ROK);
+   return ROK;
 }/* end of PtMiLrgSchL2MeasCfm */
 
 /**
@@ -1053,20 +1053,20 @@ LrgSchMeasCfmInfo *cfm; /* Measurement Confirm */
  *      -# ROK
  **/
 #ifdef ANSI
-PUBLIC S16 PtMiLrgSchL2MeasStopCfm
+S16 PtMiLrgSchL2MeasStopCfm
 (
 Pst *pst,               /* post structure */
 LrgSchMeasCfmInfo *cfm  /* Measurement Confirm */
 )
 #else
-PUBLIC S16 PtMiLrgSchL2MeasStopCfm(pst, cfm)
+S16 PtMiLrgSchL2MeasStopCfm(pst, cfm)
 Pst *pst;               /* post structure */
 LrgSchMeasCfmInfo *cfm; /* Measurement Confirm */
 #endif
 {
    TRC3(PtMiLrgSchL2MeasStopCfm)
 
-   RETVALUE(ROK);
+   return ROK;
 }/* end of PtMiLrgSchL2MeasStopCfm */
 #endif
 #endif /*--PTRGMILRG--*/