X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Frg_ptli.c;h=0068e5c514c1593822f3bded4bd15f18e3b0ce6c;hb=2aa3cc7f94edf59f4fdb04ad81c7a14322bde00e;hp=a1b4dab7f8841e8da1af7b5d1c35017e4c086a96;hpb=65443172dd60a6ea312bd3a15959dbf54ad7f045;p=o-du%2Fl2.git diff --git a/src/5gnrmac/rg_ptli.c b/src/5gnrmac/rg_ptli.c index a1b4dab7f..0068e5c51 100755 --- a/src/5gnrmac/rg_ptli.c +++ b/src/5gnrmac/rg_ptli.c @@ -144,208 +144,6 @@ S16 PtLiTfuDelDatReq ARGS((Pst * pst, SpId spId, TfuDelDatReqInfo * datReq)); #endif /*L2_OPTMZ*/ #endif /*--#ifdef PTRGLITFU--*/ -/** @brief This API is used to send a Bind Request from MAC to PHY. - * @param pst Pointer to the post structure. - * @param suId SAP ID of the service user. - * @param spId SAP ID of the service provider. - * @return ROK/RFAILED - */ -static const TfuBndReq RgLiTfuBndReqMt[RG_MAX_TFU_PROV] = -{ -#ifdef LCRGLITFU - cmPkTfuBndReq, -#else - PtLiTfuBndReq, -#endif -#ifdef TF - TfUiTfuBndReq, -#else - PtLiTfuBndReq, -#endif -#ifdef LWLCRGLITFU - cmPkTfuBndReq -#else - PtLiTfuBndReq -#endif -}; - -/** @brief This API is used to send a Bind Request from Scheduler to PHY. - * @param pst Pointer to the post structure. - * @param suId SAP ID of the service user. - * @param spId SAP ID of the service provider. - * @return ROK/RFAILED - */ -static const TfuSchBndReq RgLiTfuSchBndReqMt[RG_MAX_TFU_PROV] = -{ -#ifdef LCRGLITFU - cmPkTfuSchBndReq, -#else - PtLiTfuSchBndReq, -#endif -#ifdef TF - TfUiTfuSchBndReq, -#else - PtLiTfuSchBndReq, -#endif -#ifdef LWLCRGLITFU - cmPkTfuSchBndReq -#else - PtLiTfuSchBndReq -#endif -}; - -/** @brief This API is used to send an Unbind Request from MAC to PHY. - * @param pst Pointer to the post structure. - * @param suId SAP ID of the service provider. - * @param reason Reason for Unbind request. - * @return ROK/RFAILED - */ -static const TfuUbndReq RgLiTfuUbndReqMt[RG_MAX_TFU_PROV] = -{ -#ifdef LCRGLITFU - cmPkTfuUbndReq, -#else - PtLiTfuUbndReq, -#endif -#ifdef TF - TfUiTfuUbndReq, -#else - PtLiTfuUbndReq, -#endif -#ifdef LWLCRGLITFU - cmPkTfuUbndReq -#else - PtLiTfuUbndReq -#endif -}; - -/** @brief This API is used to send an Unbind Request from Scheduler to PHY. - * @param pst Pointer to the post structure. - * @param suId SAP ID of the service provider. - * @param reason Reason for Unbind request. - * @return ROK/RFAILED - */ -static const TfuSchUbndReq RgLiTfuSchUbndReqMt[RG_MAX_TFU_PROV] = -{ -#ifdef LCRGLITFU - cmPkTfuSchUbndReq, -#else - PtLiTfuSchUbndReq, -#endif -#ifdef TF - TfUiTfuSchUbndReq, -#else - PtLiTfuSchUbndReq, -#endif -#ifdef LWLCRGLITFU - cmPkTfuSchUbndReq -#else - PtLiTfuSchUbndReq -#endif -}; - -/** @brief This primitive is sent from Scheduler to PHY. - * @details This primitive provides PHY with all the information required by - * PHY to decode transmissions from the UE on either PUCCH or PUSCH. - * -# On PUCCH UE can transmit the following - * -# SR - * -# HARQ feedback - * -# CQI report - * -# HARQ + CQI - * -# HARQ + SR - * -# On PUSCH UE can transmit the following - * -# Data - * -# Data + CQI - * -# Data + HARQ Feedback - * This primitive carries all the information for the expected subframe for all - * the UEs that have been scheduled to transmit. - * @param pst Pointer to the post structure. - * @param spId SAP ID of the service provider. - * @param recpReq Pointer to the TfuRecpReqInfo structure. - * @return ROK/RFAILED - */ -static const TfuRecpReq RgLiTfuRecpReqMt[RG_MAX_TFU_PROV] = -{ -#ifdef LCRGLITFU - cmPkTfuRecpReq, -#else - PtLiTfuRecpReq, -#endif -#ifdef TF - TfUiTfuRecpReq, -#else - PtLiTfuRecpReq, -#endif -#ifdef LWLCRGLITFU - cmPkTfuRecpReq -#else - PtLiTfuRecpReq -#endif -}; - -/** @brief This Primitive is sent from Scheduler to PHY. It provides PHY with - * all the control information - * @details This primitive carries the information sent on the following - * channels - - * -# PDCCH - * -# PHICH - * -# PCFICH - * - * @param pst - * @param spId - * @param cntrlReq pointer to TfuCntrlReqInfo - * @return ROK/RFAILED - */ -static const TfuCntrlReq RgLiTfuCntrlReqMt[RG_MAX_TFU_PROV] = -{ -#ifdef LCRGLITFU - cmPkTfuCntrlReq, -#else - PtLiTfuCntrlReq, -#endif -#ifdef TF - TfUiTfuCntrlReq, -#else - PtLiTfuCntrlReq, -#endif -#ifdef LWLCRGLITFU - cmPkTfuCntrlReq -#else - PtLiTfuCntrlReq -#endif -}; - -/** @brief This Primitive carries the Data PDUs from MAC to PHY for - * transmission. - * @details The data being sent in this primitive is meant to be transmitted on - * the downlink channel PDSCH and PBCH (if present). To facilitate physical - * layer processing, requisite control information is also sent along with the - * data. - * @sa TfUiTfuCntrlReq - * @param pst - * @param spId - * @param tfuDatReq pointer to TfuDatReqInfo - * @return - */ -static const TfuDatReq RgLiTfuDatReqMt[RG_MAX_TFU_PROV] = -{ -#ifdef LCRGLITFU - cmPkTfuDatReq, -#else - PtLiTfuDatReq, -#endif -#ifdef TF - TfUiTfuDatReq, -#else - PtLiTfuDatReq, -#endif -#ifdef LWLCRGLITFU - cmPkTfuDatReq -#else - PtLiTfuDatReq -#endif -}; - #ifdef L2_OPTMZ /** @brief This Primitive carries cellId and UeId for which datReq need to be deleted. * @details This primitive is used to send delDatReq to CL to delete the PDUs of @@ -381,312 +179,6 @@ static const TfuDelDatReq RgLiTfuDelDatReqMt[RG_MAX_TFU_PROV] = #ifdef RG - -/*********************************************************** -* -* Func : RgLiTfuBndReq -* -* -* Desc : This API is used to send a Bind Request from MAC to PHY. - * @param pst Pointer to the post structure. - * @param suId SAP ID of the service user. - * @param spId SAP ID of the service provider. - * @return ROK/RFAILED -* -* -* Ret : S16 -* -* Notes: -* -* File : -* -**********************************************************/ -#ifdef ANSI -S16 RgLiTfuBndReq -( -Pst * pst, -SuId suId, -SpId spId -) -#else -S16 RgLiTfuBndReq(pst, suId, spId) -Pst * pst; -SuId suId; -SpId spId; -#endif -{ - - return ((*RgLiTfuBndReqMt[pst->selector])(pst, suId, spId)); - -} - - - -/*********************************************************** -* -* Func : RgLiTfuSchBndReq -* -* -* Desc : This API is used to send a Bind Request from Scheduler to PHY. - * @param pst Pointer to the post structure. - * @param suId SAP ID of the service user. - * @param spId SAP ID of the service provider. - * @return ROK/RFAILED -* -* -* Ret : S16 -* -* Notes: -* -* File : -* -**********************************************************/ -#ifdef ANSI -S16 RgLiTfuSchBndReq -( -Pst * pst, -SuId suId, -SpId spId -) -#else -S16 RgLiTfuSchBndReq(pst, suId, spId) -Pst * pst; -SuId suId; -SpId spId; -#endif -{ - - return ((*RgLiTfuSchBndReqMt[pst->selector])(pst, suId, spId)); - -} - - - -/*********************************************************** -* -* Func : RgLiTfuUbndReq -* -* -* Desc : This API is used to send an Unbind Request from MAC to PHY. - * @param pst Pointer to the post structure. - * @param suId SAP ID of the service provider. - * @param reason Reason for Unbind request. - * @return ROK/RFAILED -* -* -* Ret : S16 -* -* Notes: -* -* File : -* -**********************************************************/ -#ifdef ANSI -S16 RgLiTfuUbndReq -( -Pst * pst, -SpId spId, -Reason reason -) -#else -S16 RgLiTfuUbndReq(pst, spId, reason) -Pst * pst; -SpId spId; -Reason reason; -#endif -{ - - return ((*RgLiTfuUbndReqMt[pst->selector])(pst, spId, reason)); - -} - - - -/*********************************************************** -* -* Func : RgLiTfuSchUbndReq -* -* -* Desc : This API is used to send an Unbind Request from Scheduler to PHY. - * @param pst Pointer to the post structure. - * @param suId SAP ID of the service provider. - * @param reason Reason for Unbind request. - * @return ROK/RFAILED -* -* -* Ret : S16 -* -* Notes: -* -* File : -* -**********************************************************/ -#ifdef ANSI -S16 RgLiTfuSchUbndReq -( -Pst * pst, -SpId spId, -Reason reason -) -#else -S16 RgLiTfuSchUbndReq(pst, spId, reason) -Pst * pst; -SpId spId; -Reason reason; -#endif -{ - - return ((*RgLiTfuSchUbndReqMt[pst->selector])(pst, spId, reason)); - -} - - - -/*********************************************************** -* -* Func : RgLiTfuRecpReq -* -* -* Desc : This primitive is sent from Scheduler to PHY. - * @details This primitive provides PHY with all the information required by - * PHY to decode transmissions from the UE on either PUCCH or PUSCH. - * -# On PUCCH UE can transmit the following - * -# SR - * -# HARQ feedback - * -# CQI report - * -# HARQ + CQI - * -# HARQ + SR - * -# On PUSCH UE can transmit the following - * -# Data - * -# Data + CQI - * -# Data + HARQ Feedback - * This primitive carries all the information for the expected subframe for all - * the UEs that have been scheduled to transmit. - * @param pst Pointer to the post structure. - * @param spId SAP ID of the service provider. - * @param recpReq Pointer to the TfuRecpReqInfo structure. - * @return ROK/RFAILED -* -* -* Ret : S16 -* -* Notes: -* -* File : -* -**********************************************************/ -#ifdef ANSI -S16 RgLiTfuRecpReq -( -Pst * pst, -SpId spId, -TfuRecpReqInfo * recpReq -) -#else -S16 RgLiTfuRecpReq(pst, spId, recpReq) -Pst * pst; -SpId spId; -TfuRecpReqInfo * recpReq; -#endif -{ - - return ((*RgLiTfuRecpReqMt[pst->selector])(pst, spId, recpReq)); - -} - - - -/*********************************************************** -* -* Func : RgLiTfuCntrlReq -* -* -* Desc : This Primitive is sent from Scheduler to PHY. It provides PHY with - * all the control information - * @details This primitive carries the information sent on the following - * channels - - * -# PDCCH - * -# PHICH - * -# PCFICH - * - * @param pst - * @param spId - * @param cntrlReq pointer to TfuCntrlReqInfo - * @return ROK/RFAILED -* -* -* Ret : S16 -* -* Notes: -* -* File : -* -**********************************************************/ -#ifdef ANSI -S16 RgLiTfuCntrlReq -( -Pst * pst, -SpId spId, -TfuCntrlReqInfo * cntrlReq -) -#else -S16 RgLiTfuCntrlReq(pst, spId, cntrlReq) -Pst * pst; -SpId spId; -TfuCntrlReqInfo * cntrlReq; -#endif -{ - - return ((*RgLiTfuCntrlReqMt[pst->selector])(pst, spId, cntrlReq)); - -} - - - -/*********************************************************** -* -* Func : RgLiTfuDatReq -* -* -* Desc : This Primitive carries the Data PDUs from MAC to PHY for - * transmission. - * @details The data being sent in this primitive is meant to be transmitted on - * the downlink channel PDSCH and PBCH (if present). To facilitate physical - * layer processing, requisite control information is also sent along with the - * data. - * @sa TfUiTfuCntrlReq - * @param pst - * @param spId - * @param tfuDatReq pointer to TfuDatReqInfo - * @return -* -* -* Ret : S16 -* -* Notes: -* -* File : -* -**********************************************************/ -#ifdef ANSI -S16 RgLiTfuDatReq -( -Pst * pst, -SpId spId, -TfuDatReqInfo * datReq -) -#else -S16 RgLiTfuDatReq(pst, spId, datReq) -Pst * pst; -SpId spId; -TfuDatReqInfo * datReq; -#endif -{ - - return ((*RgLiTfuDatReqMt[pst->selector])(pst, spId, datReq)); - -} - #ifdef L2_OPTMZ /*********************************************************** @@ -712,19 +204,12 @@ TfuDatReqInfo * datReq; * File : * **********************************************************/ -#ifdef ANSI S16 RgLiTfuDelDatReq ( Pst * pst, SpId spId, TfuDelDatReqInfo * delDatReq ) -#else -S16 RgLiTfuDelDatReq(pst, spId, delDatReq) -Pst * pst; -SpId spId; -TfuDelDatReqInfo * delDatReq; -#endif { return ((*RgLiTfuDelDatReqMt[pst->selector])(pst, spId, delDatReq)); @@ -757,22 +242,14 @@ TfuDelDatReqInfo * delDatReq; * File : * **********************************************************/ -#ifdef ANSI S16 PtLiTfuBndReq ( Pst * pst, SuId suId, SpId spId ) -#else -S16 PtLiTfuBndReq(pst, suId, spId) -Pst * pst; -SuId suId; -SpId spId; -#endif { - UNUSED(pst); UNUSED(suId); UNUSED(spId); @@ -802,19 +279,12 @@ SpId spId; * File : * **********************************************************/ -#ifdef ANSI S16 PtLiTfuSchBndReq ( Pst * pst, SuId suId, SpId spId ) -#else -S16 PtLiTfuSchBndReq(pst, suId, spId) -Pst * pst; -SuId suId; -SpId spId; -#endif { UNUSED(pst); @@ -846,19 +316,12 @@ SpId spId; * File : * **********************************************************/ -#ifdef ANSI S16 PtLiTfuUbndReq ( Pst * pst, SpId spId, Reason reason ) -#else -S16 PtLiTfuUbndReq(pst, spId, reason) -Pst * pst; -SpId spId; -Reason reason; -#endif { UNUSED(pst); @@ -890,19 +353,12 @@ Reason reason; * File : * **********************************************************/ -#ifdef ANSI S16 PtLiTfuSchUbndReq ( Pst * pst, SpId spId, Reason reason ) -#else -S16 PtLiTfuSchUbndReq(pst, spId, reason) -Pst * pst; -SpId spId; -Reason reason; -#endif { UNUSED(pst); @@ -948,19 +404,12 @@ Reason reason; * File : * **********************************************************/ -#ifdef ANSI S16 PtLiTfuRecpReq ( Pst * pst, SpId spId, TfuRecpReqInfo * recpReq ) -#else -S16 PtLiTfuRecpReq(pst, spId, recpReq) -Pst * pst; -SpId spId; -TfuRecpReqInfo * recpReq; -#endif { UNUSED(pst); @@ -999,19 +448,12 @@ TfuRecpReqInfo * recpReq; * File : * **********************************************************/ -#ifdef ANSI S16 PtLiTfuCntrlReq ( Pst * pst, SpId spId, TfuCntrlReqInfo * cntrlReq ) -#else -S16 PtLiTfuCntrlReq(pst, spId, cntrlReq) -Pst * pst; -SpId spId; -TfuCntrlReqInfo * cntrlReq; -#endif { UNUSED(pst); @@ -1049,19 +491,12 @@ TfuCntrlReqInfo * cntrlReq; * File : * **********************************************************/ -#ifdef ANSI S16 PtLiTfuDatReq ( Pst * pst, SpId spId, TfuDatReqInfo * datReq ) -#else -S16 PtLiTfuDatReq(pst, spId, datReq) -Pst * pst; -SpId spId; -TfuDatReqInfo * datReq; -#endif { UNUSED(pst); @@ -1098,19 +533,12 @@ TfuDatReqInfo * datReq; * File : * **********************************************************/ -#ifdef ANSI S16 PtLiTfuDelDatReq ( Pst * pst, SpId spId, TfuDelDatReqInfo * delDatReq ) -#else -S16 PtLiTfuDelDatReq(pst, spId, delDatReq) -Pst * pst; -SpId spId; -TfuDelDatReqInfo * DelDatReq; -#endif { UNUSED(pst);