Initial commit
[o-du/l2.git] / src / 5gnrrlc / kw_env.h
1 /*******************************************************************************
2 ################################################################################
3 #   Copyright (c) [2017-2019] [Radisys]                                        #
4 #                                                                              #
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                                    #
8 #                                                                              #
9 #       http://www.apache.org/licenses/LICENSE-2.0                             #
10 #                                                                              #
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 *******************************************************************************/
18
19 /********************************************************************20**
20   
21         Name:     LTE RLC file 
22     
23         Type:     C include file
24   
25         Desc:     This file contains the constants required for LTE-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.
29
30         File:     kw_env.h
31   
32 *********************************************************************21*/
33 /** @file kw_env.h
34 @brief RLC Hash definitions
35 */
36
37 #ifndef __KWENVH__
38 #define __KWENVH__
39
40 #define KW_MAX_RLC_INSTANCES            2
41 #define KW_MAX_LI                       KWU_MAX_STA_IND_SDU
42
43 #define KW_MAX_DL_LI                   28 
44 #define KW_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 KW_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 KW_AM_MAX_UL_PDUS               1 
55
56 #define KW_AM_UM_MAX_UL_SDUS            1
57 #define KW_AM_UM_MAX_DL_SDUS            300
58
59 #ifdef SPLIT_RLC_DL_TASK
60 #define KW_MAX_TO_BE_FREED              60
61 #else
62 #define KW_MAX_TO_BE_FREED              10
63 #endif
64
65 /* Number of packets queued in SDU Q after which overload 
66  * START is signalled to PDCP for an UM bearer */
67 #define KW_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 KW_UM_RB_OVERLOAD_LOW_THRES  300 
71
72 /* Value of this macro can be in the range of 1 to RGU_MAX_PDU */
73 #define KW_MAX_PDU                      16
74
75 #ifdef LTE_L2_MEAS
76 /* This value is decided on the assumption that there will be maximum 3 active DRB at a time */
77 #define KW_MAX_ACTV_DRB                2
78 /* Assumption is that all UEs wont have all RBs with max SDU: if greater, will be ignored */
79 #define KW_L2MEAS_SDUIDX               ((KW_MAX_DL_LI/4)*KW_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 KW_L2MEAS_MAX_OUTSTNGSDU       31
82 #endif
83
84
85 #endif /* __KWENVH__ */
86 \f  
87 /********************************************************************30**
88   
89          End of file
90 **********************************************************************/