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 /********************************************************************20**
25 Desc: This file contains the constants required for NR RLC.
26 The defines in this file need to be changed by the customer
27 to reflect the software architecture needed to run under the
28 target system hardware architecture.
32 *********************************************************************21*/
34 @brief RLC Hash definitions
40 #define MAX_RLC_INSTANCES 2
41 #define RLC_MAX_LI KWU_MAX_STA_IND_SDU
43 #define RLC_MAX_DL_LI 28
44 #define RLC_MAX_NEW_DL_PDU 16
45 /* kw003.201 Adding new environment variables */
46 /* This parameter is utilized when KW_BG_DL_PROC enbled. This parameter */
47 /* defines how many PDUs may be released in one go without affecting */
48 /* TTI response time */
49 /* kw004.201 modifed the value from 20 to 15 */
50 #define RLC_AM_MAX_PDUS_RLS 1
51 /* This parameter governs maximum number of PDUs to processed at a */
52 /* given point when KW_BG_UL_PROC is enabled. */
53 /* kw004.201 modifed the value from 20 to 5 */
54 #define RLC_AM_MAX_UL_PDUS 1
56 #define RLC_AM_UM_MAX_UL_SDUS 1
57 #define RLC_AM_UM_MAX_DL_SDUS 300
59 #ifdef SPLIT_RLC_DL_TASK
60 #define RLC_MAX_TO_BE_FREED 60
62 #define RLC_MAX_TO_BE_FREED 10
65 /* Number of packets queued in SDU Q after which overload
66 * START is signalled to PDCP for an UM bearer */
67 #define RLC_UM_RB_OVERLOAD_HIGH_THRES 512
68 /* Number of packets queued in SDU Q after which overload
69 * STOP is signalled to PDCP for an UM bearer */
70 #define RLC_UM_RB_OVERLOAD_LOW_THRES 300
72 /* Value of this macro can be in the range of 1 to RGU_MAX_PDU */
73 #define RLC_MAX_PDU 16
76 /* This value is decided on the assumption that there will be maximum 3 active DRB at a time */
77 #define RLC_MAX_ACTV_DRB 2
78 /* Assumption is that all UEs wont have all RBs with max SDU: if greater, will be ignored */
79 #define RLC_L2MEAS_SDUIDX ((RLC_MAX_DL_LI/4)*RLC_MAX_ACTV_DRB)
80 /* Number of out standing SDUS in one RbCb : This would be sufficient but anything more will be discarded for counters */
81 #define RLC_L2MEAS_MAX_OUTSTNGSDU 31
85 #endif /* __RLC_ENV_H__ */
87 /********************************************************************30**
90 **********************************************************************/