1 /*******************************************************************************
\r
2 ################################################################################
\r
3 # Copyright (c) [2017-2019] [Radisys] #
\r
5 # Licensed under the Apache License, Version 2.0 (the "License"); #
\r
6 # you may not use this file except in compliance with the License. #
\r
7 # You may obtain a copy of the License at #
\r
9 # http://www.apache.org/licenses/LICENSE-2.0 #
\r
11 # Unless required by applicable law or agreed to in writing, software #
\r
12 # distributed under the License is distributed on an "AS IS" BASIS, #
\r
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
\r
14 # See the License for the specific language governing permissions and #
\r
15 # limitations under the License. #
\r
16 ################################################################################
\r
17 *******************************************************************************/
\r
19 /* This file is the entry point for Lower MAC */
\r
21 #include "common_def.h"
\r
22 #include "lwr_mac_phy.h"
\r
24 /**************************************************************************
\r
25 * @brief Task Initiation callback function.
\r
29 * Function : lwrMacActvInit
\r
32 * This function is supplied as one of parameters during Lower MAC's
\r
33 * task registration. SSI will invoke this function once, after
\r
34 * it creates and attaches this TAPA Task to a system task.
\r
36 * @param[in] Ent entity, the entity ID of this task.
\r
37 * @param[in] Inst inst, the instance ID of this task.
\r
38 * @param[in] Region region, the region ID registered for memory
\r
39 * usage of this task.
\r
40 * @param[in] Reason reason.
\r
41 * @return ROK - success
\r
43 ***************************************************************************/
\r
44 uint8_t lwrMacActvInit(Ent entity, Inst inst, Region region, Reason reason)
\r
49 /**************************************************************************
\r
50 * @brief Task Activation callback function.
\r
54 * Function : lwrMacActvTsk
\r
57 * Primitives invoked by Lower MAC's users/providers through
\r
58 * a loosely coupled interface arrive here by means of
\r
59 * SSI's message handling. This API is registered with
\r
60 * SSI during the Task Registration of DU APP.
\r
62 * @param[in] Pst *pst, Post structure of the primitive.
\r
63 * @param[in] Buffer *mBuf, Packed primitive parameters in the
\r
65 * @return ROK - success
\r
68 ***************************************************************************/
\r
69 uint8_t lwrMacActvTsk(Pst *pst, Buffer *mBuf)
\r
79 #ifdef INTEL_WLS_MEM
\r
80 case EVT_START_WLS_RCVR:
\r
83 DU_LOG("\nINFO --> LWR MAC: Starting WLS receiver thread");
\r
91 DU_LOG("\nERROR --> LWR MAC: Invalid event %d received", pst->event);
\r
100 DU_LOG("\nERROR --> LWR MAC: Message from invalid source entity %d", pst->srcEnt);
\r
107 /**********************************************************************
\r
109 **********************************************************************/
\r