-/***********************************
-***********************************/
-/**
- * @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 */
-