-\f
-#ifdef PTKWKWU
-/*************************************************************************
- * KWU Porting Functions
- ************************************************************************/
-/**
- *
- * @brief
- *
- * PtUiKwuBndCfm - Portable SAP bind confirm
- *
- * @param[in] pst - Post structure
- * @param[in] suId - Service user SAP ID
- * @param[in] status - Status
- *
- * @return S16
- * -# ROK
- */
-#ifdef ANSI
-PRIVATE S16 PtUiKwuBndCfm
-(
-Pst *pst, /* post structure */
-SuId suId, /* Service User Id */
-U8 status /* status */
-)
-#else
-PRIVATE S16 PtUiKwuBndCfm(pst, suId, status)
-Pst *pst; /* post structure */
-SuId suId; /* Service User Id */
-U8 status; /* status */
-#endif
-{
-#if (ERRCLASS & ERRCLS_DEBUG)
- KwCb *tKwCb;
-#endif
- TRC3(PtUiKwuBndCfm);
-
- UNUSED(suId);
- UNUSED(status);
-#if (ERRCLASS & ERRCLS_DEBUG)
- if (pst->srcInst >= KW_MAX_RLC_INSTANCES)
- {
- RETVALUE(RFAILED);
- }
-
- tKwCb = KW_GET_KWCB(pst->srcInst);
- RLOG0(L_ERROR, "Improper selector value");
-#endif /* (ERRCLASS & ERRCLS_DEBUG) */
-
- RETVALUE(ROK);
-} /* end of PtUiKwuBndCfm */
-#endif /* PTKWKWU */
-
-\f
-/**
- *
- * @brief
- *
- * PtUiKwuDatCfm - Portable common channel data request
- *
- * @param[in] pst - Post structure
- * @param[in] suId - Service user SAP ID
- * @param[in] datCfm - Data Request
- *
- * @return S16
- * -# ROK
- */
-#ifdef ANSI
-PUBLIC S16 PtUiKwuDatCfm
-(
-Pst *pst,
-SuId suId,
-KwuDatCfmInfo *datCfm
-)
-#else
-PUBLIC S16 PtUiKwuDatCfm(pst, suId, datCfm)
-Pst *pst;
-SuId suId;
-KwuDatCfmInfo *datCfm;
-#endif
-{
-#if (ERRCLASS & ERRCLS_DEBUG)
- KwCb *tKwCb;
-#endif
- TRC3(PtUiKwuDatCfm)
-
- UNUSED(pst);
- UNUSED(suId);
- UNUSED(datCfm);
-#if (ERRCLASS & ERRCLS_DEBUG)
- if (pst->srcInst >= KW_MAX_RLC_INSTANCES)
- {
- RETVALUE(RFAILED);
- }
- tKwCb = KW_GET_KWCB(pst->srcInst);
-
- RLOG0(L_ERROR, "Improper selector value");
-#endif /* (ERRCLASS & ERRCLS_DEBUG) */
-
- RETVALUE(ROK);
-
-} /* end of PtUiKwuDatCfm */
-
-\f
-/**
- *
- * @brief
- *
- * PtUiKwuStaInd - Portable common channel data request
- *
- * @param[in] pst - Post structure
- * @param[in] suId - Service user SAP ID
- * @param[in] staInd - Data Request
- *
- * @return S16
- * -# ROK
- */
-#ifdef ANSI
-PUBLIC S16 PtUiKwuStaInd
-(
-Pst *pst,
-SuId suId,
-KwuStaIndInfo *staInd
-)
-#else
-PUBLIC S16 PtUiKwuStaInd(pst, suId, staInd)
-Pst *pst;
-SuId suId;
-KwuStaIndInfo *staInd;
-#endif
-{
-#if (ERRCLASS & ERRCLS_DEBUG)
- KwCb *tKwCb;
-#endif
- TRC3(PtUiKwuStaInd)
-
- UNUSED(pst);
- UNUSED(suId);
- UNUSED(staInd);
-
-#if (ERRCLASS & ERRCLS_DEBUG)
- if (pst->srcInst >= KW_MAX_RLC_INSTANCES)
- {
- RETVALUE(RFAILED);
- }
- tKwCb = KW_GET_KWCB(pst->srcInst);
- RLOG0(L_ERROR, "Improper selector value");
-#endif /* (ERRCLASS & ERRCLS_DEBUG) */
-
- RETVALUE(ROK);
-
-} /* end of PtUiKwuStaInd */
-
-\f
-/**
- *
- * @brief
- *
- * PtUiKwuReEstCmpInd - Portable common channel data request
- *
- * @param[in] pst - Post structure
- * @param[in] suId - Service user SAP ID
- * @param[in] staInd - Data Request
- *
- * @return S16
- * -# ROK
- */
-#ifdef ANSI
-PUBLIC S16 PtUiKwuReEstCmpInd
-(
-Pst *pst,
-SuId suId,
-CmLteRlcId rlcId
-)
-#else
-PUBLIC S16 PtUiKwuReEstCmpInd(pst, suId, rlcId)
-Pst *pst;
-SuId suId;
-CmLteRlcId rlcId;
-#endif
-{
-#if (ERRCLASS & ERRCLS_DEBUG)
- KwCb *tKwCb;
-#endif
- TRC3(PtUiKwuReEstCmpInd)
-
- UNUSED(pst);
- UNUSED(suId);
- UNUSED(rlcId);
-
-#if (ERRCLASS & ERRCLS_DEBUG)
- if (pst->srcInst >= KW_MAX_RLC_INSTANCES)
- {
- RETVALUE(RFAILED);
- }
- tKwCb = KW_GET_KWCB(pst->srcInst);
- RLOG0(L_ERROR, "Improper selector value");
-#endif /* (ERRCLASS & ERRCLS_DEBUG) */
-
- RETVALUE(ROK);
-
-} /* end of PtUiKwuReEstCmpInd */
-
-/* kw005.201 added support for L2 Measurement */
-/*
- * @brief
- *
- * PtUiKwuDiscSduCfm - Portable common channel data request
- *
- * @param[in] pst - Post structure
- * @param[in] suId - Service user SAP ID
- * @param[in] staInd - Data Request
- *
- * @return S16
- * -# ROK
- */
-#ifdef ANSI
-PUBLIC S16 PtUiKwuDiscSduCfm
-(
-Pst *pst,
-SuId suId,
-KwuDiscSduInfo *discCfm
-)
-#else
-PUBLIC S16 PtUiKwuDiscSduCfm(pst, suId, discCfm)
-Pst *pst;
-SuId suId;
-KwuDiscSduInfo *discCfm;
-#endif
-{
-#if (ERRCLASS & ERRCLS_DEBUG)
- KwCb *tKwCb;
-#endif
- TRC3(PtUiKwuDiscSduCfm)
-
- UNUSED(pst);
- UNUSED(suId);
- UNUSED(discCfm);
-
-#if (ERRCLASS & ERRCLS_DEBUG)
- if (pst->srcInst >= KW_MAX_RLC_INSTANCES)
- {
- RETVALUE(RFAILED);
- }
- tKwCb = KW_GET_KWCB(pst->srcInst);
- RLOG0(L_ERROR, "Improper selector value");
-#endif /* (ERRCLASS & ERRCLS_DEBUG) */
-
- RETVALUE(ROK);
-
-} /* end of PtUiKwuDiscSduCfm */
-
-/*
- * @brief
- *
- * PtUiKwuFlowCntrlInd - Portable Flow control idication
- *
- * @param[in] pst - Post structure
- * @param[in] suId - Service user SAP ID
- * @param[in] flowCntrlInd - Flow control information
- *
- * @return S16
- * -# ROK
- */
-#ifdef ANSI
-PUBLIC S16 PtUiKwuFlowCntrlInd
-(
-Pst *pst,
-SuId suId,
-KwuFlowCntrlIndInfo *flowCntrlIndInfo
-)
-#else
-PUBLIC S16 PtUiKwuFlowCntrlInd(pst, suId, flowCntrlIndInfo)
-Pst *pst;
-SuId suId;
-KwuFlowCntrlIndInfo *flowCntrlIndInfo;
-#endif
-{
-#if (ERRCLASS & ERRCLS_DEBUG)
- KwCb *tKwCb;
-#endif
- TRC3(PtUiKwuFlowCntrlInd)
-
- UNUSED(pst);
- UNUSED(suId);
- UNUSED(flowCntrlIndInfo);
-
-#if (ERRCLASS & ERRCLS_DEBUG)
- if (pst->srcInst >= KW_MAX_RLC_INSTANCES)
- {
- RETVALUE(RFAILED);
- }
- tKwCb = KW_GET_KWCB(pst->srcInst);
- RLOG0(L_ERROR, "Improper selector value");
-#endif /* (ERRCLASS & ERRCLS_DEBUG) */
-
- RETVALUE(ROK);
-
-} /* end of PtUiKwuFlowCntrlInd */
-#ifdef LTE_L2_MEAS
-\f
-/**
- *
- * @brief
- *
- * Handler for sending the Data ack indication to the upper layer.
- *
- * @b Description:
- *
- * This function confirms the succesfull transmission of SDU
- *
- * @param[in] pst Post structure
- * @param[in] suId Service User SAP ID
- * @param[in] datAckInd DatAckInd
- *
- * @return S16
- * -# ROK
- * -# RFAILED
- */
-#ifdef ANSI
-PUBLIC S16 PtUiKwuDatAckInd
-(
-Pst *pst,
-SuId suId,
-KwuDatAckInfo *datAckInd
-)
-#else
-PUBLIC S16 PtUiKwuDatAckInd(pst, suId, datAckInd)
-Pst *pst;
-SuId suId;
-KwuDatAckInfo *datAckInd;
-#endif
-{
-#if (ERRCLASS & ERRCLS_DEBUG)
- KwCb *tKwCb;
-#endif
- TRC3(PtUiKwuDatAckInd)
-
- UNUSED(pst);
- UNUSED(suId);
- UNUSED(datAckInd);
-#if (ERRCLASS & ERRCLS_DEBUG)
- if (pst->srcInst >= KW_MAX_RLC_INSTANCES)
- {
- RETVALUE(RFAILED);
- }
- tKwCb = KW_GET_KWCB(pst->srcInst);
-
- RLOG0(L_ERROR, "Improper selector value");
-#endif /* (ERRCLASS & ERRCLS_DEBUG) */
- RETVALUE(ROK);
-}/* end of PtUiKwuDatAckInd */
-#endif /* LTE_L2_MEAS */
-#if (defined(PTKWKWU) || defined(KW_PDCP))
-\f
-/**
- *
- * @brief
- *
- * PtUiKwuDatInd - Portable common channel data request
- *
- * @param[in] pst - Post structure
- * @param[in] suId - Service user SAP ID
- * @param[in] datInd - Data Request
- *
- * @return S16
- * -# ROK
- */
-#ifdef ANSI
-PUBLIC S16 PtUiKwuDatInd
-(
-Pst *pst,
-SuId suId,
-KwuDatIndInfo *datInd,
-Buffer *mBuf
-)
-#else
-PUBLIC S16 PtUiKwuDatInd(pst, suId, datInd, mBuf)
-Pst *pst;
-SuId suId;
-KwuDatIndInfo *datInd;
-Buffer *mBuf;
-#endif
-{
-#if (ERRCLASS & ERRCLS_DEBUG)
- KwCb *tKwCb;
-#endif
- TRC3(PtUiKwuDatInd)
-
- UNUSED(pst);
- UNUSED(suId);
- UNUSED(datInd);
- UNUSED(mBuf);
-
-#if (ERRCLASS & ERRCLS_DEBUG)
- if (pst->srcInst >= KW_MAX_RLC_INSTANCES)
- {
- RETVALUE(RFAILED);
- }
- tKwCb = KW_GET_KWCB(pst->srcInst);
- RLOG0(L_ERROR, "Improper selector value");
-#endif /* (ERRCLASS & ERRCLS_DEBUG) */
-
- RETVALUE(ROK);
-
-} /* end of PtUiKwuDatInd */
-#endif /* PTKWKWU || KW_PDCP */
-