Intel FAPI files added
[o-du/l2.git] / src / 5gnrmac / rg_ptli.c
index 13e6304..4fa8c40 100755 (executable)
 */
 
 /* header include files (.h) */
-#include "envopt.h"        /* environment options */
-#include "envdep.h"        /* environment dependent */
-#include "envind.h"        /* environment independent */
-#include "gen.h"           /* general */
-#include "ssi.h"           /* system services */
-#include "cm_tkns.h"       /* Common Token Defines */
-#include "cm_llist.h"      /* Common Link List Defines */
-#include "cm_hash.h"       /* Common Hash List Defines */
-#include "cm_mblk.h"
-#include "cm_lte.h"        /* Common LTE Defines */
+#include "common_def.h"
 #include "tfu.h"           /* RGU Interface defines */
 
 /* header/extern include files (.x) */
-#include "gen.x"           /* general */
-#include "ssi.x"           /* system services */
-#include "cm_tkns.x"       /* Common Token Definitions */
-#include "cm_llist.x"      /* Common Link List Definitions */
-#include "cm_lib.x"        /* Common Library Definitions */
-#include "cm_hash.x"       /* Common Hash List Definitions */
-#include "cm_mblk.x"
-#include "cm_lte.x"        /* Common LTE Defines */
 #include "tfu.x"           /* RGU Interface includes */
 
 
@@ -419,14 +402,14 @@ PRIVATE CONSTANT TfuDelDatReq RgLiTfuDelDatReqMt[RG_MAX_TFU_PROV] =
 *
 **********************************************************/
 #ifdef ANSI
-PUBLIC S16 RgLiTfuBndReq
+S16 RgLiTfuBndReq
 (
 Pst * pst,
 SuId suId,
 SpId spId
 )
 #else
-PUBLIC S16 RgLiTfuBndReq(pst, suId, spId)
+S16 RgLiTfuBndReq(pst, suId, spId)
 Pst * pst;
 SuId suId;
 SpId spId;
@@ -435,7 +418,7 @@ SpId spId;
 
    TRC3(RgLiTfuBndReq)
 
-   RETVALUE((*RgLiTfuBndReqMt[pst->selector])(pst, suId, spId));
+   return ((*RgLiTfuBndReqMt[pst->selector])(pst, suId, spId));
 
 }
 
@@ -461,14 +444,14 @@ SpId spId;
 *
 **********************************************************/
 #ifdef ANSI
-PUBLIC S16 RgLiTfuSchBndReq
+S16 RgLiTfuSchBndReq
 (
 Pst * pst,
 SuId suId,
 SpId spId
 )
 #else
-PUBLIC S16 RgLiTfuSchBndReq(pst, suId, spId)
+S16 RgLiTfuSchBndReq(pst, suId, spId)
 Pst * pst;
 SuId suId;
 SpId spId;
@@ -477,7 +460,7 @@ SpId spId;
 
    TRC3(RgLiTfuSchBndReq)
 
-   RETVALUE((*RgLiTfuSchBndReqMt[pst->selector])(pst, suId, spId));
+   return ((*RgLiTfuSchBndReqMt[pst->selector])(pst, suId, spId));
 
 }
 
@@ -503,14 +486,14 @@ SpId spId;
 *
 **********************************************************/
 #ifdef ANSI
-PUBLIC S16 RgLiTfuUbndReq
+S16 RgLiTfuUbndReq
 (
 Pst * pst,
 SpId spId,
 Reason reason
 )
 #else
-PUBLIC S16 RgLiTfuUbndReq(pst, spId, reason)
+S16 RgLiTfuUbndReq(pst, spId, reason)
 Pst * pst;
 SpId spId;
 Reason reason;
@@ -519,7 +502,7 @@ Reason reason;
 
    TRC3(RgLiTfuUbndReq)
 
-   RETVALUE((*RgLiTfuUbndReqMt[pst->selector])(pst, spId, reason));
+   return ((*RgLiTfuUbndReqMt[pst->selector])(pst, spId, reason));
 
 }
 
@@ -545,14 +528,14 @@ Reason reason;
 *
 **********************************************************/
 #ifdef ANSI
-PUBLIC S16 RgLiTfuSchUbndReq
+S16 RgLiTfuSchUbndReq
 (
 Pst * pst,
 SpId spId,
 Reason reason
 )
 #else
-PUBLIC S16 RgLiTfuSchUbndReq(pst, spId, reason)
+S16 RgLiTfuSchUbndReq(pst, spId, reason)
 Pst * pst;
 SpId spId;
 Reason reason;
@@ -561,7 +544,7 @@ Reason reason;
 
    TRC3(RgLiTfuSchUbndReq)
 
-   RETVALUE((*RgLiTfuSchUbndReqMt[pst->selector])(pst, spId, reason));
+   return ((*RgLiTfuSchUbndReqMt[pst->selector])(pst, spId, reason));
 
 }
 
@@ -601,14 +584,14 @@ Reason reason;
 *
 **********************************************************/
 #ifdef ANSI
-PUBLIC S16 RgLiTfuRecpReq
+S16 RgLiTfuRecpReq
 (
 Pst * pst,
 SpId spId,
 TfuRecpReqInfo * recpReq
 )
 #else
-PUBLIC S16 RgLiTfuRecpReq(pst, spId, recpReq)
+S16 RgLiTfuRecpReq(pst, spId, recpReq)
 Pst * pst;
 SpId spId;
 TfuRecpReqInfo * recpReq;
@@ -617,7 +600,7 @@ TfuRecpReqInfo * recpReq;
 
    TRC3(RgLiTfuRecpReq)
 
-   RETVALUE((*RgLiTfuRecpReqMt[pst->selector])(pst, spId, recpReq));
+   return ((*RgLiTfuRecpReqMt[pst->selector])(pst, spId, recpReq));
 
 }
 
@@ -650,14 +633,14 @@ TfuRecpReqInfo * recpReq;
 *
 **********************************************************/
 #ifdef ANSI
-PUBLIC S16 RgLiTfuCntrlReq
+S16 RgLiTfuCntrlReq
 (
 Pst * pst,
 SpId spId,
 TfuCntrlReqInfo * cntrlReq
 )
 #else
-PUBLIC S16 RgLiTfuCntrlReq(pst, spId, cntrlReq)
+S16 RgLiTfuCntrlReq(pst, spId, cntrlReq)
 Pst * pst;
 SpId spId;
 TfuCntrlReqInfo * cntrlReq;
@@ -666,7 +649,7 @@ TfuCntrlReqInfo * cntrlReq;
 
    TRC3(RgLiTfuCntrlReq)
 
-   RETVALUE((*RgLiTfuCntrlReqMt[pst->selector])(pst, spId, cntrlReq));
+   return ((*RgLiTfuCntrlReqMt[pst->selector])(pst, spId, cntrlReq));
 
 }
 
@@ -698,14 +681,14 @@ TfuCntrlReqInfo * cntrlReq;
 *
 **********************************************************/
 #ifdef ANSI
-PUBLIC S16 RgLiTfuDatReq
+S16 RgLiTfuDatReq
 (
 Pst * pst,
 SpId spId,
 TfuDatReqInfo * datReq
 )
 #else
-PUBLIC S16 RgLiTfuDatReq(pst, spId, datReq)
+S16 RgLiTfuDatReq(pst, spId, datReq)
 Pst * pst;
 SpId spId;
 TfuDatReqInfo * datReq;
@@ -714,7 +697,7 @@ TfuDatReqInfo * datReq;
 
    TRC3(RgLiTfuDatReq)
 
-   RETVALUE((*RgLiTfuDatReqMt[pst->selector])(pst, spId, datReq));
+   return ((*RgLiTfuDatReqMt[pst->selector])(pst, spId, datReq));
 
 }
 
@@ -744,14 +727,14 @@ TfuDatReqInfo * datReq;
 *
 **********************************************************/
 #ifdef ANSI
-PUBLIC S16 RgLiTfuDelDatReq
+S16 RgLiTfuDelDatReq
 (
 Pst * pst,
 SpId spId,
 TfuDelDatReqInfo * delDatReq
 )
 #else
-PUBLIC S16 RgLiTfuDelDatReq(pst, spId, delDatReq)
+S16 RgLiTfuDelDatReq(pst, spId, delDatReq)
 Pst * pst;
 SpId spId;
 TfuDelDatReqInfo * delDatReq;
@@ -760,7 +743,7 @@ TfuDelDatReqInfo * delDatReq;
 
    TRC3(RgLiTfuDelDatReq)
 
-   RETVALUE((*RgLiTfuDelDatReqMt[pst->selector])(pst, spId, delDatReq));
+   return ((*RgLiTfuDelDatReqMt[pst->selector])(pst, spId, delDatReq));
 
 }
 #endif /* L2_OPTMZ*/
@@ -791,14 +774,14 @@ TfuDelDatReqInfo * delDatReq;
 *
 **********************************************************/
 #ifdef ANSI
-PUBLIC S16 PtLiTfuBndReq
+S16 PtLiTfuBndReq
 (
 Pst * pst,
 SuId suId,
 SpId spId
 )
 #else
-PUBLIC S16 PtLiTfuBndReq(pst, suId, spId)
+S16 PtLiTfuBndReq(pst, suId, spId)
 Pst * pst;
 SuId suId;
 SpId spId;
@@ -811,7 +794,7 @@ SpId spId;
    UNUSED(suId);
    UNUSED(spId);
 
-   RETVALUE(ROK);
+   return ROK;
 
 }
 
@@ -837,14 +820,14 @@ SpId spId;
 *
 **********************************************************/
 #ifdef ANSI
-PUBLIC S16 PtLiTfuSchBndReq
+S16 PtLiTfuSchBndReq
 (
 Pst * pst,
 SuId suId,
 SpId spId
 )
 #else
-PUBLIC S16 PtLiTfuSchBndReq(pst, suId, spId)
+S16 PtLiTfuSchBndReq(pst, suId, spId)
 Pst * pst;
 SuId suId;
 SpId spId;
@@ -857,7 +840,7 @@ SpId spId;
    UNUSED(suId);
    UNUSED(spId);
 
-   RETVALUE(ROK);
+   return ROK;
 
 }
 
@@ -883,14 +866,14 @@ SpId spId;
 *
 **********************************************************/
 #ifdef ANSI
-PUBLIC S16 PtLiTfuUbndReq
+S16 PtLiTfuUbndReq
 (
 Pst * pst,
 SpId spId,
 Reason reason
 )
 #else
-PUBLIC S16 PtLiTfuUbndReq(pst, spId, reason)
+S16 PtLiTfuUbndReq(pst, spId, reason)
 Pst * pst;
 SpId spId;
 Reason reason;
@@ -903,7 +886,7 @@ Reason reason;
    UNUSED(spId);
    UNUSED(reason);
 
-   RETVALUE(ROK);
+   return ROK;
 
 }
 
@@ -929,14 +912,14 @@ Reason reason;
 *
 **********************************************************/
 #ifdef ANSI
-PUBLIC S16 PtLiTfuSchUbndReq
+S16 PtLiTfuSchUbndReq
 (
 Pst * pst,
 SpId spId,
 Reason reason
 )
 #else
-PUBLIC S16 PtLiTfuSchUbndReq(pst, spId, reason)
+S16 PtLiTfuSchUbndReq(pst, spId, reason)
 Pst * pst;
 SpId spId;
 Reason reason;
@@ -949,7 +932,7 @@ Reason reason;
    UNUSED(spId);
    UNUSED(reason);
 
-   RETVALUE(ROK);
+   return ROK;
 
 }
 
@@ -989,14 +972,14 @@ Reason reason;
 *
 **********************************************************/
 #ifdef ANSI
-PUBLIC S16 PtLiTfuRecpReq
+S16 PtLiTfuRecpReq
 (
 Pst * pst,
 SpId spId,
 TfuRecpReqInfo * recpReq
 )
 #else
-PUBLIC S16 PtLiTfuRecpReq(pst, spId, recpReq)
+S16 PtLiTfuRecpReq(pst, spId, recpReq)
 Pst * pst;
 SpId spId;
 TfuRecpReqInfo * recpReq;
@@ -1009,7 +992,7 @@ TfuRecpReqInfo * recpReq;
    UNUSED(spId);
    UNUSED(recpReq);
 
-   RETVALUE(ROK);
+   return ROK;
 
 }
 
@@ -1042,14 +1025,14 @@ TfuRecpReqInfo * recpReq;
 *
 **********************************************************/
 #ifdef ANSI
-PUBLIC S16 PtLiTfuCntrlReq
+S16 PtLiTfuCntrlReq
 (
 Pst * pst,
 SpId spId,
 TfuCntrlReqInfo * cntrlReq
 )
 #else
-PUBLIC S16 PtLiTfuCntrlReq(pst, spId, cntrlReq)
+S16 PtLiTfuCntrlReq(pst, spId, cntrlReq)
 Pst * pst;
 SpId spId;
 TfuCntrlReqInfo * cntrlReq;
@@ -1062,7 +1045,7 @@ TfuCntrlReqInfo * cntrlReq;
    UNUSED(spId);
    UNUSED(cntrlReq);
 
-   RETVALUE(ROK);
+   return ROK;
 
 }
 
@@ -1094,14 +1077,14 @@ TfuCntrlReqInfo * cntrlReq;
 *
 **********************************************************/
 #ifdef ANSI
-PUBLIC S16 PtLiTfuDatReq
+S16 PtLiTfuDatReq
 (
 Pst * pst,
 SpId spId,
 TfuDatReqInfo * datReq
 )
 #else
-PUBLIC S16 PtLiTfuDatReq(pst, spId, datReq)
+S16 PtLiTfuDatReq(pst, spId, datReq)
 Pst * pst;
 SpId spId;
 TfuDatReqInfo * datReq;
@@ -1114,7 +1097,7 @@ TfuDatReqInfo * datReq;
    UNUSED(spId);
    UNUSED(datReq);
 
-   RETVALUE(ROK);
+   return ROK;
 
 }
 
@@ -1145,14 +1128,14 @@ TfuDatReqInfo * datReq;
 *
 **********************************************************/
 #ifdef ANSI
-PUBLIC S16 PtLiTfuDelDatReq
+S16 PtLiTfuDelDatReq
 (
 Pst * pst,
 SpId spId,
 TfuDelDatReqInfo * delDatReq
 )
 #else
-PUBLIC S16 PtLiTfuDelDatReq(pst, spId, delDatReq)
+S16 PtLiTfuDelDatReq(pst, spId, delDatReq)
 Pst * pst;
 SpId spId;
 TfuDelDatReqInfo * DelDatReq;
@@ -1165,7 +1148,7 @@ TfuDelDatReqInfo * DelDatReq;
    UNUSED(spId);
    UNUSED(delDatReq);
 
-   RETVALUE(ROK);
+   return ROK;
 
 }
 #endif /*L2_OPTMZ*/