[Epic-ID: ODUHIGH-461][Task-ID: ODUHIGH-468]Unused files and functions removed/disabled
[o-du/l2.git] / src / cm / lrg.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  
21     Name:   LTE MAC Layer 
22  
23     Type:   C include file
24  
25     Desc:   Defines required by LTE-MAC
26  
27     File:   lrg.h
28  
29 **********************************************************************/
30  
31 #ifndef __LRGH__
32 #define __LRGH__
33
34 #define EVTLRGCFGREQ    0      /* Config Request */
35 #define EVTLRGCFGCFM    1      /* Config Confirm */
36 #define EVTLRGSTSREQ    44      /* Statistics Request */
37 #define EVTLRGSTSCFM    5      /* Statistics Confirm */
38 #define EVTLRGUSTAIND   8      /* Unsolicite Status Indication */
39 #define EVTMACSCHGENCFGREQ 10     /* Scheduler Configuration */
40 #define EVTMACSCHGENCFGCFM 11     /* Scheduler Config Confirm */
41 #define EVTLRGSCHSTAIND 12     /* Scheduler Configuration */
42 #define EVTLRGSCHUSTAIND  15   /* Unsolicite Status Indication */
43 /* lrg_h_001.main_3 - ADD - Event definitions for LTE_L2_MEAS */
44 #ifdef LTE_L2_MEAS
45 #define EVTLRGSCHL2MEASREQ 16    /* For L2 measurement request */
46 #define EVTLRGSCHL2MEASCFM 17    /* For L2 measurement confirm */
47 #define EVTLRGSCHL2MEASSENDREQ 18 /*For L2 measurement send request*/
48 #define EVTLRGSCHL2MEASSTOPREQ 19 /*For L2 measurement stop request*/ 
49 #define EVTLRGSCHL2MEASSTOPCFM 20 /*For L2 meaurement stop cfm*/ 
50 #endif /*  LTE_L2_MEAS */
51
52 #define MAXRGLRG        2      /* Maxiumum selector values */
53 /*MCELL changes*/
54 #define LRG_MAX_RGU_SAPS 4     /* RGU SAPS TO KW UL AND KW DL */
55
56 #define LRG_MAX_PT_NUM_SIZE 8 
57 #define LRG_NOT_CFG     0      /* SAP not configured */
58 #define LRG_UNBND       1      /* Unbound SAP State */
59 #define LRG_BND         2      /* Bound SAP State */
60 #define LRG_WAIT_BNDCFM 3      /* Await Bind Confirm State */
61
62 /* Unsolicited status indication events */
63 /* RGU interface SAP bound with RLC */
64 #define LRG_EVENT_RGUSAP_ENB      (LCM_EVENT_LYR_SPECIFIC + 0)    
65 /* CRG interface SAP bound with RRC */
66 #define LRG_EVENT_CRGSAP_ENB      (LCM_EVENT_LYR_SPECIFIC + 1)  
67 /* RGR interface SAP bound with RRM */
68 #define LRG_EVENT_RGRSAP_ENB      (LCM_EVENT_LYR_SPECIFIC + 2)    
69
70 /* RGR interface SAP bound with RRM */
71 #define LRG_EVENT_RGMSAP_ENB      (LCM_EVENT_LYR_SPECIFIC + 3)    
72 /* Layer specific causes */
73 #define LRG_CAUSE_HQ_PROC_BUSY      (LCM_CAUSE_LYR_SPECIFIC + 0)    
74 #define LRG_CAUSE_DELAYED_DATREQ    (LCM_CAUSE_LYR_SPECIFIC + 1)    
75 /**********************************************************************
76  Debug Mask values
77 **********************************************************************/
78
79 #ifdef DEBUGP
80
81 #define DBGMASK_INFO             (DBGMASK_LYR << 0)
82 #define DBGMASK_ERR              (DBGMASK_LYR << 1)
83 #define DBGMASK_PRM              (DBGMASK_LYR << 2)
84
85 #endif /* #ifdef DEBUGP */
86
87 #define STCRGSAP     STGEN + 1
88 #define STRGRSAP     STGEN + 2
89 #define STTFUSAP     STGEN + 4
90 #define STSCHINST    STGEN + 5 /* Scheduler Instance */
91
92 #define LRG_USTA_DGNVAL_MEM      1
93 #define LRG_USTA_DGNVAL_HARQ     2
94
95 /* TRACE Macros */
96 #define LRG_NO_TRACE            0
97 #define LRG_FULL_TRACE          -1
98 #ifdef TENB_ACC
99 #define LRG_MAX_SAPS_PER_INST    5 
100 #else
101 /*Mcell changes*/
102 #define LRG_MAX_SAPS_PER_INST    4
103 #endif
104 /* pack unpack error code */
105 #define ELRGXXX                 0
106 #define ERRLRG                  0
107 /* lrg_h_001.main_3 - ADD - Event definitions for LTE_L2_MEAS */
108 #ifdef LTE_L2_MEAS
109 /* Max Requests per Measurement type per One call to RgMiLrgSchL2MeasReq */
110 #define LRG_MAX_QCI_PER_REQ     10   /*!< Max number of QCI's per request */
111 #define LRG_MAX_QCI             10  /*!< Max QCI indexe's used */
112 #define LRG_MAX_SAMP_PRD        100 /*!<Max Valid samp period */
113
114 /* Different Measurement Types supported at SCH and MAC */
115 #define LRG_L2MEAS_AVG_PRB_DL                 1  /* Supported at SCH */
116 #define LRG_L2MEAS_AVG_PRB_UL                 2  /* Supported at SCH */
117 #define LRG_L2MEAS_AVG_PRB_PER_QCI_DL         4  /* Supported at SCH */
118 #define LRG_L2MEAS_AVG_PRB_PER_QCI_UL         8  /* Supported at SCH */
119 #define LRG_L2MEAS_RA_PREAMBLE                16  /* Supported at SCH */
120 #define LRG_L2MEAS_NMB_ACTV_UE_PER_QCI_DL     32 /* Supported at SCH */
121 #define LRG_L2MEAS_NMB_ACTV_UE_PER_QCI_UL     64 /* Supported at SCH */
122 #define LRG_L2MEAS_TB_TRANS_DL_COUNT          128 /* Supported at SCH */
123 #define LRG_L2MEAS_TB_TRANS_DL_FAULTY_COUNT   256 /* Supported at SCH */
124 #define LRG_L2MEAS_TB_TRANS_UL_COUNT          512 /* Supported at SCH */
125 #define LRG_L2MEAS_TB_TRANS_UL_FAULTY_COUNT   1024 /* Supported at SCH */
126 #endif /* LTE_L2_MEAS */
127
128 #define   ELRG001      (ERRLRG +    1)    /*        lrg.c: 152 */
129 #define   ELRG002      (ERRLRG +    2)    /*        lrg.c: 161 */
130 #define   ELRG003      (ERRLRG +    3)    /*        lrg.c: 209 */
131 #define   ELRG004      (ERRLRG +    4)    /*        lrg.c: 250 */
132 #define   ELRG005      (ERRLRG +    5)    /*        lrg.c: 259 */
133 #define   ELRG006      (ERRLRG +    6)    /*        lrg.c: 308 */
134 #define   ELRG007      (ERRLRG +    7)    /*        lrg.c: 349 */
135 #define   ELRG008      (ERRLRG +    8)    /*        lrg.c: 358 */
136 #define   ELRG009      (ERRLRG +    9)    /*        lrg.c: 406 */
137 #define   ELRG010      (ERRLRG +   10)    /*        lrg.c: 447 */
138 #define   ELRG011      (ERRLRG +   11)    /*        lrg.c: 456 */
139 #define   ELRG012      (ERRLRG +   12)    /*        lrg.c: 504 */
140 #define   ELRG013      (ERRLRG +   13)    /*        lrg.c: 545 */
141 #define   ELRG014      (ERRLRG +   14)    /*        lrg.c: 554 */
142 #define   ELRG015      (ERRLRG +   15)    /*        lrg.c: 602 */
143 #define   ELRG016      (ERRLRG +   16)    /*        lrg.c: 643 */
144 #define   ELRG017      (ERRLRG +   17)    /*        lrg.c: 652 */
145 #define   ELRG018      (ERRLRG +   18)    /*        lrg.c: 700 */
146 #define   ELRG019      (ERRLRG +   19)    /*        lrg.c: 741 */
147 #define   ELRG020      (ERRLRG +   20)    /*        lrg.c: 749 */
148 #define   ELRG021      (ERRLRG +   21)    /*        lrg.c: 796 */
149 #define   ELRG022      (ERRLRG +   22)    /*        lrg.c: 838 */
150 #define   ELRG023      (ERRLRG +   23)    /*        lrg.c: 846 */
151 #define   ELRG024      (ERRLRG +   24)    /*        lrg.c: 893 */
152 #define   ELRG025      (ERRLRG +   25)    /*        lrg.c: 935 */
153 #define   ELRG026      (ERRLRG +   26)    /*        lrg.c: 944 */
154 #define   ELRG027      (ERRLRG +   27)    /*        lrg.c: 992 */
155 #define   ELRG028      (ERRLRG +   28)    /*        lrg.c:1033 */
156 #define   ELRG029      (ERRLRG +   29)    /*        lrg.c:1042 */
157 #define   ELRG030      (ERRLRG +   30)    /*        lrg.c:1090 */
158 #define   ELRG031      (ERRLRG +   31)    /*        lrg.c:1131 */
159 #define   ELRG032      (ERRLRG +   32)    /*        lrg.c:1140 */
160 #define   ELRG033      (ERRLRG +   33)    /*        lrg.c:1188 */
161 #define   ELRG034      (ERRLRG +   34)    /*        lrg.c:1229 */
162 #define   ELRG035      (ERRLRG +   35)    /*        lrg.c:1238 */
163 #define   ELRG036      (ERRLRG +   36)    /*        lrg.c:1286 */
164 #define   ELRG037      (ERRLRG +   37)    /*        lrg.c:1327 */
165 #define   ELRG038      (ERRLRG +   38)    /*        lrg.c:1336 */
166 #define   ELRG039      (ERRLRG +   39)    /*        lrg.c:1384 */
167 #define   ELRG040      (ERRLRG +   40)    /*        lrg.c:1425 */
168 #define   ELRG041      (ERRLRG +   41)    /*        lrg.c:1434 */
169 #define   ELRG042      (ERRLRG +   42)    /*        lrg.c:1482 */
170 #define   ELRG043      (ERRLRG +   43)    /*        lrg.c:1526 */
171 #define   ELRG044      (ERRLRG +   44)    /*        lrg.c:1537 */
172 #define   ELRG045      (ERRLRG +   45)    /*        lrg.c:1546 */
173 #define   ELRG046      (ERRLRG +   46)    /*        lrg.c:1558 */
174 #define   ELRG047      (ERRLRG +   47)    /*        lrg.c:1608 */
175 #define   ELRG048      (ERRLRG +   48)    /*        lrg.c:2541 */
176 #define   ELRG049      (ERRLRG +   49)    /*        lrg.c:3354 */
177 #define   ELRG050      (ERRLRG +   50)    /*        lrg.c:3681 */
178
179 #endif /* __LRGH__ */
180 \f
181 /**********************************************************************
182          End of file
183 **********************************************************************/