X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Frg_ptmi.c;h=397f2fb8ab3d4e33de79698857c74dd69162e971;hb=dfe84998d9dba8389ee232aa184bc3b5ae383db3;hp=c928a9241c50216affbb713bc816097d08995faf;hpb=87c35884595a3166121854c3ae6e6e856f004ff4;p=o-du%2Fl2.git diff --git a/src/5gnrmac/rg_ptmi.c b/src/5gnrmac/rg_ptmi.c index c928a9241..397f2fb8a 100755 --- a/src/5gnrmac/rg_ptmi.c +++ b/src/5gnrmac/rg_ptmi.c @@ -57,11 +57,9 @@ extern "C" { S16 PtMiLrgCfgCfm ARGS((Pst *pst, RgMngmt *cfm)); S16 PtMiLrgSchCfgCfm ARGS((Pst *pst, RgMngmt *cfm)); S16 PtMiLrgStsCfm ARGS((Pst *pst, RgMngmt *cfm)); -S16 PtMiLrgStaCfm ARGS((Pst *pst, RgMngmt *cfm)); S16 PtMiLrgStaInd ARGS((Pst *pst, RgMngmt *usta)); S16 PtMiLrgSchStaInd ARGS((Pst *pst, RgMngmt *usta)); S16 PtMiLrgCntrlCfm ARGS((Pst *pst, RgMngmt *cfm)); -S16 PtMiLrgSchCntrlCfm ARGS((Pst *pst, RgMngmt *cfm)); S16 PtMiLrgTrcInd ARGS((Pst *pst, RgMngmt *trc,Buffer *mBuf)); #ifdef LTE_L2_MEAS S16 PtMiLrgSchL2MeasCfm ARGS((Pst *pst, LrgSchMeasCfmInfo *cfm)); @@ -133,22 +131,6 @@ static const LrgStsCfm RgMiLrgStsCfmMt[RG_MAX_LRG_USR] = #endif }; -/** @brief Status Confirm primitive Matrix */ -static const LrgStaCfm RgMiLrgStaCfmMt[RG_MAX_LRG_USR] = -{ -#ifdef LCRGMILRG - cmPkLrgStaCfm, /* 0 - loosely coupled */ -#else - PtMiLrgStaCfm, /* 0 - loosely coupled */ -#endif -#ifdef SM - SmMiLrgStaCfm, /* 1 - Tightly coupled SM */ -#else - PtMiLrgStaCfm, /* 1 - Tightly coupled SM */ -#endif -}; - - /** @brief Status Indication primitive Matrix */ static const LrgStaInd RgMiLrgStaIndMt[RG_MAX_LRG_USR] = { @@ -179,51 +161,6 @@ static const LrgSchStaInd RgMiLrgSchStaIndMt[RG_MAX_LRG_USR] = #endif }; - -/** @brief Control Confirm primitive Matrix */ -static const LrgCntrlCfm RgMiLrgCntrlCfmMt[RG_MAX_LRG_USR] = -{ -#ifdef LCRGMILRG - cmPkLrgCntrlCfm, /* 0 - loosely coupled */ -#else - PtMiLrgCntrlCfm, /* 0 - loosely coupled */ -#endif -#ifdef SM - SmMiLrgCntrlCfm, /* 1 - Tightly coupled SM */ -#else - PtMiLrgCntrlCfm, /* 1 - Tightly coupled SM */ -#endif -}; - -/** @brief Scheduler Control Confirm primitive Matrix */ -static const LrgSchCntrlCfm RgMiLrgSchCntrlCfmMt[RG_MAX_LRG_USR] = -{ -#ifdef LCRGMILRG - cmPkLrgSchCntrlCfm, /* 0 - loosely coupled */ -#else - PtMiLrgSchCntrlCfm, /* 0 - loosely coupled */ -#endif -#ifdef SM - SmMiLrgSchCntrlCfm, /* 1 - Tightly coupled SM */ -#else - PtMiLrgSchCntrlCfm, /* 1 - Tightly coupled SM */ -#endif -}; - -/** @brief Trace Indication primitive Matrix */ -static const LrgTrcInd RgMiLrgTrcIndMt[RG_MAX_LRG_USR] = -{ -#ifdef LCRGMILRG - cmPkLrgTrcInd, /* 0 - loosely coupled */ -#else - PtMiLrgTrcInd, /* 0 - loosely coupled */ -#endif -#ifdef SM - SmMiLrgTrcInd, /* 1 - Tightly coupled SM */ -#else - PtMiLrgTrcInd, /* 1 - Tightly coupled SM */ -#endif -}; #ifdef LTE_L2_MEAS /** @brief L2 Meas Cfm primitive Matrix */ static const LrgSchL2MeasCfm RgMiLrgSchL2mMeasCfmMt[RG_MAX_LRG_USR] = @@ -355,98 +292,6 @@ RgMngmt *cfm /* statistics confirm structure */ }/*-- RgMiLrgStsCfm --*/ -/** - * @brief Layer Manager Status confirm handler. - * - * @details - * - * Function : RgMiLrgStaCfm - * - * This function handles the status - * confirm invoked by MAC to Layer Manager. - * -# Based on the pst->selector value it invokes one of the - * functions cmPkLrgStaCfm() or SmMiLrgStaCfm(). - * - * @param[in] Pst *pst, the post structure - * @param[in] RgMngmt *cfm, the status confirm structure - * @return S16 - * -# ROK - **/ -S16 RgMiLrgStaCfm -( -Pst *pst, /* post structure */ -RgMngmt *cfm /* status confirm structure */ -) -{ - - (*RgMiLrgStaCfmMt[pst->selector])(pst,cfm); - - return ROK; - -}/*-- RgMiLrgStaCfm --*/ - - -/** - * @brief Layer Manager Control confirm handler. - * - * @details - * - * Function : RgMiLrgCntrlCfm - * - * This function handles the control - * confirm invoked by MAC to Layer Manager. - * -# Based on the pst->selector value it invokes one of the - * functions cmPkLrgCntrlCfm() or SmMiLrgCntrlCfm(). - * - * @param[in] Pst *pst, the post structure - * @param[in] RgMngmt *cfm, the control confirm structure - * @return S16 - * -# ROK - **/ -S16 RgMiLrgCntrlCfm -( -Pst *pst, /* post structure */ -RgMngmt *cfm /* control confirm structure */ -) -{ - - (*RgMiLrgCntrlCfmMt[pst->selector])(pst,cfm); - - return ROK; - -}/*-- RgMiLrgCntrlCfm --*/ - -/** - * @brief Layer Manager scheduler Control confirm handler. - * - * @details - * - * Function : RgMiLrgSchCntrlCfm - * - * This function handles the control - * confirm invoked by scheduler to Layer Manager. - * -# Based on the pst->selector value it invokes one of the - * functions cmPkLrgSchCntrlCfm() or SmMiLrgSchCntrlCfm(). - * - * @param[in] Pst *pst, the post structure - * @param[in] RgMngmt *cfm, the control confirm structure - * @return S16 - * -# ROK - **/ -S16 RgMiLrgSchCntrlCfm -( -Pst *pst, /* post structure */ -RgMngmt *cfm /* control confirm structure */ -) -{ - - (*RgMiLrgSchCntrlCfmMt[pst->selector])(pst,cfm); - - return ROK; - -}/*-- RgMiLrgSchCntrlCfm --*/ - - /** * @brief Layer Manager Unsolicited Status Indication handler. * @@ -507,39 +352,6 @@ RgMngmt *usta /* status indication structure */ }/*-- RgMiLrgSchStaInd --*/ - -/** - * @brief Layer Manager Trace Indication handler. - * - * @details - * - * Function : RgMiLrgTrcInd - * - * This function handles the trace - * Indication invoked by MAC to Layer Manager. - * -# Based on the pst->selector value it invokes one of the - * functions cmPkLrgTrcInd() or SmMiLrgTrcInd(). - * - * @param[in] Pst *pst, the post structure - * @param[in] RgMngmt *trc, the trace event - * @param[in] Buffer *mBuf, the trace message - * @return S16 - * -# ROK - **/ -S16 RgMiLrgTrcInd -( -Pst *pst, /* post structure */ -RgMngmt *trc, /* Trace event */ -Buffer *mBuf /* Trace message */ -) -{ - - (*RgMiLrgTrcIndMt[pst->selector])(pst,trc,mBuf); - - return ROK; - -}/*-- RgMiLrgTrcInd --*/ - #ifdef LTE_L2_MEAS /* TODO: Function header */ @@ -681,36 +493,6 @@ RgMngmt *cfm /* Statistics Confirm */ -/** - * @brief Portable Function definition for Layer Manager Status - * confirm handler. - * - * @details - * - * Function : PtMiLrgStaCfm - * - * This function handles the status - * confirm invoked by MAC to Layer Manager. - * Users of MAC who intend to provide a glue logic - * for portability of status Confirm are expected - * to fill in the code in this function definition. - * - * @param[in] Pst *pst, the post structure - * @param[in] RgMngmt *cfm, the status confirm structure - * @return S16 - * -# ROK - **/ -S16 PtMiLrgStaCfm -( -Pst *pst, /* post structure */ -RgMngmt *cfm /* Status Confirm */ -) -{ - return ROK; -}/* end of PtMiLrgStaCfm */ - - - /** * @brief Portable Function definition for Layer Manager Status * Indication handler. @@ -796,63 +578,6 @@ RgMngmt *cfm /* Control Confirm */ return ROK; }/* end of PtMiLrgCntrlCfm */ -/** - * @brief Portable Function definition for Layer Manager Control - * confirm handler. - * - * @details - * - * Function : PtMiLrgSchCntrlCfm - * - * This function handles the control - * confirm invoked by scheduler to Layer Manager. - * Users of MAC who intend to provide a glue logic - * for portability of control Confirm are expected - * to fill in the code in this function definition. - * - * @param[in] Pst *pst, the post structure - * @param[in] RgMngmt *cfm, the control confirm structure - * @return S16 - * -# ROK - **/ -S16 PtMiLrgSchCntrlCfm -( -Pst *pst, /* post structure */ -RgMngmt *cfm /* Control Confirm */ -) -{ - return ROK; -}/* end of PtMiLrgSchCntrlCfm */ - - -/** - * @brief Portable Function definition for Layer Manager Trace - * Indication handler. - * - * @details - * - * Function : PtMiLrgTrcInd - * - * This function handles the trace - * indication invoked by MAC to Layer Manager. - * Users of MAC who intend to provide a glue logic - * for portability of trace indication are expected - * to fill in the code in this function definition. - * - * @param[in] Pst *pst, the post structure - * @param[in] RgMngmt *cfm, the trace indication structure - * @return S16 - * -# ROK - **/ -S16 PtMiLrgTrcInd -( -Pst *pst, /* post structure */ -RgMngmt *trc, /* Trace Event */ -Buffer *mBuf /* Trace message */ -) -{ - return ROK; -}/* end of PtMiLrgTrcInd */ #ifdef LTE_L2_MEAS /** * @brief Portable Function definition for L2 Measurement Configuration