Added FAPI header to P7 messages[Issue-ID: ODUHIGH-254]
[o-du/l2.git] / src / 5gnrsch / rg_sch_utl.c
index 22092d8..30a9142 100755 (executable)
@@ -4655,98 +4655,6 @@ uint8_t               idx;
    return (cell->sc.apis->rgSCHNextHqFdbkAlloc(cell, alloc, idx));
 }
 
-/***********************************
-***********************************/
-/**
- * @brief This API is invoked to send TFU SAP bind request to PHY.
- *
- * @details
- *
- *     Function : rgSCHUtlTfuBndReq
- *
- *      This API is invoked to send TFU SAP bind request to PHY from scheduler
- *      isntance. It fills in the Pst structure, spId and suId values and
- *      invokes bind request primitive at TFU.
- *
- *  @param[in]  Inst            instId
- *  @param[in]  SuId            suId
- *  @param[in]  SpId            spId
- *  @return  S16
- *      -# ROK
- *      -# RFAILED
- **/
-#ifdef ANSI
-S16 rgSCHUtlTfuBndReq
-(
-Inst    instId,
-SuId    suId,
-SpId    spId
-)
-#else
-S16 rgSCHUtlTfuBndReq(instId, suId, spId)
-Inst    instId;
-SuId    suId;
-SpId    spId;
-#endif
-{
-   S16            ret;
-   RgSchLowSapCb  *tfuSap;
-   Pst            pst;
-
-   /* Get the lower SAP control block from the layer control block. */
-   tfuSap = &(rgSchCb[instId].tfuSap[suId]);
-   memcpy (&pst, &(tfuSap->sapCfg.sapPst), sizeof(Pst));
-   if((ret = RgLiTfuSchBndReq (&pst, suId, spId)) != ROK)
-   {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,instId,"rgSCHUtlTfuBndReq() Call to RgLiTfuBndReq()"
-                    " failed");
-   }
-   return (ret);
-}  /* rgSCHUtlTfuBndReq */
-
-/**
- * @brief This API is invoked to send TFU SAP unbind request to PHY.
- *
- * @details
- *
- *     Function : rgSCHUtlTfuUBndReq
- *      This API is invoked to send TFU SAP unbind request to PHY from Scheduler
- *      isntance. It fills in the Pst structure and spId value and invokes
- *      unbind request primitive at TFU.
- *
- *  @param[in]  SpId            spId
- *  @return  S16
- *      -# ROK
- *      -# RFAILED
- **/
-#ifdef ANSI
-S16 rgSCHUtlTfuUBndReq
-(
-Inst    inst,
-RgSchLowSapCfgInfo sapCfg,
-Reason  reason
-)
-#else
-S16 rgSCHUtlTfuUBndReq(inst, sapCfg, reason)
-Inst    inst;
-RgSchLowSapCfgInfo sapCfg;
-Reason  reason;
-#endif
-{
-   S16            ret;
-   Pst            pst;
-
-   /* Get the lower SAP control block from the layer control block. */
-   memcpy (&pst, &(sapCfg.sapPst), sizeof(Pst));
-   if((ret = RgLiTfuSchUbndReq (&pst, sapCfg.spId, reason)) != ROK)
-   {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"rgSCHUtlTfuUBndReq() Call to"
-                                    " RgLiTfuUbndReq() failed");
-   }
-   return (ret);
-
-}  /* rgSCHUtlTfuUBndReq */
-
 /***********************************************************
  *
  *     Func : rgSCHUtlResetSfAlloc
@@ -7253,62 +7161,6 @@ TfuGrpPwrCntrlReqInfo *grpPwrCntrlReq;
 }  /* rgSCHUtlTfuGrpPwrCntrlReq */
 #endif
 
-/**
- * @brief This API is invoked to send Control Info to PHY.
- *
- * @details
- *
- *     Function : rgSCHUtlTfuCntrlReq
- *
- *      This API is invoked to send Control Info to PHY. It
- *      fills in the Pst structure, spId value and invokes Cntrl
- *      request primitive at TFU.
- *
- *  @param[in]  TfuCntrlReqInfo *cntrlReq
- *  @return  S16
- *      -# ROK
- *      -# RFAILED
- **/
-#ifdef ANSI
-S16 rgSCHUtlTfuCntrlReq
-(
-Inst            inst,
-S16             sapId,
-TfuCntrlReqInfo *cntrlReq
-)
-#else
-S16 rgSCHUtlTfuCntrlReq(inst, sapId, cntrlReq)
-Inst            inst;
-S16             sapId;
-TfuCntrlReqInfo *cntrlReq;
-#endif
-{
-   S16            ret;
-   RgSchLowSapCb  *tfuSap;
-
-   /* Get the lower SAP control block from the layer control block. */
-   tfuSap = &(rgSchCb[inst].tfuSap[sapId]);
-
-#ifndef NO_ERRCLS
-   if (tfuSap->sapSta.sapState != LRG_BND)
-   {
-      RLOG_ARG1(L_ERROR,DBG_INSTID,inst,"rgSCHUtlTfuCntrlReq() Lower SAP not bound (%d) ",
-            tfuSap->sapSta.sapState);
-      RGSCH_FREE_MEM(cntrlReq);
-      return RFAILED;
-   }
-#endif
-
-  /* Using local variable for pst is unnecessary - for optimization */
-   if((ret = RgLiTfuCntrlReq(&tfuSap->sapCfg.sapPst, tfuSap->sapCfg.spId,
-                             cntrlReq)) != ROK)
-   {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"rgSCHUtlTfuCntrlReq() Call to RgLiTfuCntrlReq() failed");
-   }
-   return (ret);
-}  /* rgSCHUtlTfuCntrlReq*/
-
-
 /* FOR ACK NACK REP */
 
 /**
@@ -7377,62 +7229,6 @@ RgSchUeCb   *ue;
    return ROK;
 }
 
-/**
- * @brief This API is invoked to send Reception Request Info to PHY.
- *
- * @details
- *
- *     Function : rgSCHUtlTfuRecpReq
- *
- *      This API is invoked to send Reception Request Info to PHY. It
- *      fills in the Pst structure, spId value and invokes Reception
- *      request primitive at TFU.
- *
- *  @param[in]  TfuRecpReqInfo *recpReq
- *  @return  S16
- *      -# ROK
- *      -# RFAILED
- **/
-#ifdef ANSI
-S16 rgSCHUtlTfuRecpReq
-(
-Inst            inst,
-S16             sapId,
-TfuRecpReqInfo *recpReq
-)
-#else
-S16 rgSCHUtlTfuRecpReq(inst, sapId, recpReq)
-Inst            inst;
-S16             sapId;
-TfuRecpReqInfo *recpReq;
-#endif
-{
-   S16            ret;
-   RgSchLowSapCb  *tfuSap;
-
-
-   /* Get the lower SAP control block from the layer control block. */
-   tfuSap = &(rgSchCb[inst].tfuSap[sapId]);
-
-#ifndef NO_ERRCLS
-   if (tfuSap->sapSta.sapState != LRG_BND)
-   {
-      RLOG_ARG1(L_ERROR,DBG_INSTID,inst,"rgSCHUtlTfuRecpReq() Lower SAP not bound (%d) ",
-            tfuSap->sapSta.sapState);
-      RGSCH_FREE_MEM(recpReq);
-      return RFAILED;
-   }
-#endif
-
-  /* Using local variable for pst is unnecessary - for optimization */
-   if((ret = RgLiTfuRecpReq(&tfuSap->sapCfg.sapPst, tfuSap->sapCfg.spId,
-                            recpReq)) != ROK)
-   {
-      RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"rgSCHUtlTfuRecpReq() Call to RgLiTfuRecpReq() failed");
-   }
-   return (ret);
-}  /* rgSCHUtlTfuRecpReq */
-
  /** @brief This function Validates the SAP information received along with the
   * primitive from the lower layer.
   *