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 *******************************************************************************/
20 #define RLC_MEM_REGION_UL 1
21 #define RLC_MEM_REGION_DL 4
30 /* Fill Pst structure for sending msg from RLC to DUAPP */
31 #define FILL_PST_RLC_TO_DUAPP(_pst, _srcInst, _event) \
33 _pst.selector = ODU_SELECTOR_LWLC; \
34 _pst.srcEnt = ENTRLC; \
35 _pst.dstEnt = ENTDUAPP; \
37 _pst.srcInst = _srcInst; \
38 _pst.dstProcId = ODU_GET_PROCID(); \
39 _pst.srcProcId = ODU_GET_PROCID(); \
40 if(_srcInst == RLC_UL_INST) \
42 _pst.region = RLC_MEM_REGION_UL; \
44 else if(_srcInst == RLC_DL_INST) \
46 _pst.region = RLC_MEM_REGION_DL; \
48 _pst.pool = RLC_POOL; \
49 _pst.event = _event; \
55 #define FILL_PST_RLC_TO_MAC(_pst, _srcInst, _event) \
57 pst.selector = ODU_SELECTOR_LWLC; \
58 pst.srcEnt = ENTRLC; \
59 pst.dstEnt = ENTMAC; \
61 pst.srcInst = _srcInst; \
62 pst.dstProcId = ODU_GET_PROCID(); \
63 pst.srcProcId = ODU_GET_PROCID(); \
64 if(_srcInst == RLC_UL_INST) \
66 pst.region = RLC_MEM_REGION_UL; \
68 else if(_srcInst == RLC_DL_INST) \
70 pst.region = RLC_MEM_REGION_DL; \
72 pst.pool = RLC_POOL; \
79 uint16_t getTransId();
81 /**********************************************************************
83 **********************************************************************/