1 /*******************************************************************************
2 ################################################################################
3 # Copyright (c) [2017-2019] [Radisys] #
5 # Licensed under the Apache License, Version 2.0 (the "License"); #
6 # you may not use this file except in compliance with the License. #
7 # You may obtain a copy of the License at #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
11 # Unless required by applicable law or agreed to in writing, software #
12 # distributed under the License is distributed on an "AS IS" BASIS, #
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
14 # See the License for the specific language governing permissions and #
15 # limitations under the License. #
16 ################################################################################
17 *******************************************************************************/
19 /* This file contains message handling functionality for DU cell management */
23 /**************************************************************************
24 * @brief Task Initiation callback function.
28 * Function : duActvInit
31 * This function is supplied as one of parameters during DU APP's
32 * task registration. SSI will invoke this function once, after
33 * it creates and attaches this TAPA Task to a system task.
35 * @param[in] Ent entity, the entity ID of this task.
36 * @param[in] Inst inst, the instance ID of this task.
37 * @param[in] Region region, the region ID registered for memory
39 * @param[in] Reason reason.
40 * @return ROK - success
42 ***************************************************************************/
43 S16 duActvInit(Ent entity, Inst inst, Region region, Reason reason)
51 /**************************************************************************
52 * @brief Task Activation callback function.
56 * Function : duActvTsk
59 * Primitives invoked by DU APP's users/providers through
60 * a loosely coupled interface arrive here by means of
61 * SSI's message handling. This API is registered with
62 * SSI during the Task Registration of DU APP.
64 * @param[in] Pst *pst, Post structure of the primitive.
65 * @param[in] Buffer *mBuf, Packed primitive parameters in the
67 * @return ROK - success
70 ***************************************************************************/
71 S16 duActvTsk(Pst *pst, Buffer *mBuf)
89 printf("\nInvalid event received at duActvTsk from ENTDUAPP");
102 case ENTRG: //TODO: Layer cfg for RLC UL, DL and MAC must be done
109 //TODO: Implement duEstablishSctpToCu();
115 printf("\nInvalid event received at duActvTsk from ENTRG");
135 printf("\nInvalid event received at duActvTsk from ENTRG");
144 printf("\n DU APP can not process message from Entity %d", pst->srcEnt);
155 /**************************************************************************
156 * @brief Function to invoke DU Layer Configs
160 * Function : duProcCfgComplete
163 * Initiates Configs towards layers of DU
166 * @return ROK - success
169 ***************************************************************************/
170 S16 duProcCfgComplete()
172 //TBD: invoke SCTP/layer config
174 // duHdlRlcUlCfgEvent();
179 /**********************************************************************
181 **********************************************************************/