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
29 #define RLC_REASSEMBLY_TMR_BASE 5 /* Used to calculate timer value from enum values */
31 /* Fill Pst structure for sending msg from RLC to DUAPP */
32 #define FILL_PST_RLC_TO_DUAPP(_pst, _srcInst, _event) \
34 _pst.selector = ODU_SELECTOR_LWLC; \
35 _pst.srcEnt = ENTRLC; \
36 _pst.dstEnt = ENTDUAPP; \
38 _pst.srcInst = _srcInst; \
39 _pst.dstProcId = ODU_GET_PROCID(); \
40 _pst.srcProcId = ODU_GET_PROCID(); \
41 if(_srcInst == RLC_UL_INST) \
43 _pst.region = RLC_MEM_REGION_UL; \
45 else if(_srcInst == RLC_DL_INST) \
47 _pst.region = RLC_MEM_REGION_DL; \
49 _pst.pool = RLC_POOL; \
50 _pst.event = _event; \
56 #define FILL_PST_RLC_TO_MAC(_pst, _srcInst, _event) \
58 pst.selector = ODU_SELECTOR_LWLC; \
59 pst.srcEnt = ENTRLC; \
60 pst.dstEnt = ENTMAC; \
62 pst.srcInst = _srcInst; \
63 pst.dstProcId = ODU_GET_PROCID(); \
64 pst.srcProcId = ODU_GET_PROCID(); \
65 if(_srcInst == RLC_UL_INST) \
67 pst.region = RLC_MEM_REGION_UL; \
69 else if(_srcInst == RLC_DL_INST) \
71 pst.region = RLC_MEM_REGION_DL; \
73 pst.pool = RLC_POOL; \
80 uint16_t getTransId();
82 /**********************************************************************
84 **********************************************************************/