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 /**********************************************************************
21 Name: LTEMAC - Error File
25 Desc: Error defines required by LTEMAC layer
29 *********************************************************************21*/
31 * The defines declared in this file correspond to those
32 * used by LTEMAC Layer
42 /* Macro definitions */
43 #define RGSCHLOGERROR(_inst, errCls, errCode, errVal, errDesc) \
44 SLogError(rgSchCb[_inst].rgSchInit.ent, rgSchCb[_inst].rgSchInit.inst,\
45 rgSchCb[_inst].rgSchInit.procId, \
49 (ErrCode) (errCode), \
54 #define RGSCHFILLERR(_err, _errType, _errCause) \
55 _err.errType = _errType; \
56 _err.errCause = _errCause;
61 #define ERGXXX (ERGBASE + 0) /* reserved */
62 #define ERRRG (ERGBASE + 0) /* reserved */
64 #define RGSCHERR_NONE ERGBASE
66 #define ERG001 (ERRRG + 1) /* gk_sch.c: 535 */
67 #define ERG002 (ERRRG + 2) /* gk_sch.c: 548 */
68 #define ERG003 (ERRRG + 3) /* gk_sch.c: 606 */
69 #define ERG004 (ERRRG + 4) /* gk_sch.c: 616 */
70 #define ERG005 (ERRRG + 5) /* gk_sch.c: 691 */
71 #define ERG006 (ERRRG + 6) /* gk_sch.c: 704 */
72 #define ERG007 (ERRRG + 7) /* gk_sch.c: 792 */
73 #define ERG008 (ERRRG + 8) /* gk_sch.c: 805 */
74 #define ERG009 (ERRRG + 9) /* gk_sch.c: 879 */
75 #define ERG010 (ERRRG + 10) /* gk_sch.c: 956 */
77 #define ERG011 (ERRRG + 11) /* gk_sch_cmn.c:24144 */
79 #define ERG012 (ERRRG + 12) /* gk_sch_sps.c:9181 */
81 #define ERG013 (ERRRG + 13) /* gk_sch_tom.c: 608 */
82 #define ERG014 (ERRRG + 14) /* gk_sch_tom.c: 684 */
84 #define ERG015 (ERRRG + 15) /* gk_sch_utl.c:4209 */
85 #define ERG016 (ERRRG + 16) /* gk_sch_utl.c:4285 */
86 #define ERG017 (ERRRG + 17) /* gk_sch_utl.c:5027 */
87 #define ERG018 (ERRRG + 18) /* gk_sch_utl.c:5084 */
88 #define ERG019 (ERRRG + 19) /* gk_sch_utl.c:5112 */
89 #define ERG020 (ERRRG + 20) /* gk_sch_utl.c:5257 */
90 #define ERG021 (ERRRG + 21) /* gk_sch_utl.c:5266 */
91 #define ERG022 (ERRRG + 22) /* gk_sch_utl.c:5897 */
92 #define ERG023 (ERRRG + 23) /* gk_sch.c:902 */
93 #define ERG024 (ERRRG + 24) /* gk_sch.c:915 */
94 #define ERG025 (ERRRG + 25) /* gk_sch.c:988 */
95 #define ERG026 (ERRRG + 26) /* gk_sch.c:998 */
98 /* ***********************************************************
100 *************************************************************/
101 #define RGSCHERR_TYPE_BASE 0
102 #define RGSCHERR_CAUSE_BASE 0
104 /* ErrType defines for DHM */
105 #define RG_DHM_ERRTYPE_BASE (RGSCHERR_CAUSE_BASE + 1)
106 #define RGSCHERR_DHM_SND_DAT_REQ RG_DHM_ERRTYPE_BASE
107 #define RGSCHERR_DHM_FDBK_IND (RG_DHM_ERRTYPE_BASE + 1)
108 #define RGSCHERR_DHM_SND_STA_IND (RG_DHM_ERRTYPE_BASE + 2)
109 #define RGSCHERR_DHM_FDBK_IND_INVALID_CB (RGSCHERR_DHM_SND_STA_IND + 3)
110 #define RGSCHERR_DHM_SND_HQ_FDB_REQ (RG_DHM_ERRTYPE_BASE + 4)
111 /* ErrType defines for TOM */
112 #define RG_TOM_ERRTYPE_BASE (RGSCHERR_DHM_SND_HQ_FDB_REQ + 1)
113 #define RGSCHERR_TOM_RAREQIND RG_TOM_ERRTYPE_BASE
114 #define RGSCHERR_TOM_HARQACKIND (RG_TOM_ERRTYPE_BASE + 1)
115 #define RGSCHERR_TOM_SRIND (RG_TOM_ERRTYPE_BASE + 2)
116 #define RGSCHERR_TOM_DLCQIIND (RG_TOM_ERRTYPE_BASE + 3)
117 #define RGSCHERR_TOM_DATIND (RG_TOM_ERRTYPE_BASE + 4)
118 #define RGSCHERR_TOM_DECFAILIND (RG_TOM_ERRTYPE_BASE + 5)
119 #define RGSCHERR_TOM_TAIND (RG_TOM_ERRTYPE_BASE + 6)
120 #define RGSCHERR_TOM_TTIIND (RG_TOM_ERRTYPE_BASE + 7)
121 /* Changes for MIMO feature addition */
122 #define RGSCHERR_TOM_DOAIND (RG_TOM_ERRTYPE_BASE + 8)
123 /* Added changes of TFU_UPGRADE */
125 #define RGSCHERR_TOM_RAWCQIIND (RG_TOM_ERRTYPE_BASE + 9)
126 #define RGSCHERR_TOM_SRSIND (RG_TOM_ERRTYPE_BASE + 10)
128 /* GOM Module related error MACROs for error type */
129 #define RG_GOM_ERRTYPE_BASE (RGSCHERR_TOM_TTIIND + 1)
130 #define RGSCHERR_GOM_CFG_REQ (RG_GOM_ERRTYPE_BASE)
131 #define RGSCHERR_GOM_RECFG_REQ (RG_GOM_ERRTYPE_BASE + 1)
132 #define RGSCHERR_GOM_DEL_REQ (RG_GOM_ERRTYPE_BASE + 2)
133 #define RGSCHERR_GOM_RESET_REQ (RG_GOM_ERRTYPE_BASE + 3)
135 #define RGSCHERR_GOM_SCELL_REQ (RG_GOM_ERRTYPE_BASE + 4)
137 /* L2 Measurement Module related error MACROs for error type */
139 #define RG_L2M_ERRTYPE_BASE (RGSCHERR_GOM_RESET_REQ + 1)
140 #define RGSCHERR_L2M_MEASREQ (RG_L2M_ERRTYPE_BASE)
142 /* ***********************************************************
144 *************************************************************/
145 /* Errcause defines for DHM */
146 #define RG_DHM_ERRCAUSE_BASE (RGSCHERR_GOM_DEL_REQ + 1)
147 #define RG_DHM_MEM_ALLOC_FAIL (RG_DHM_ERRCAUSE_BASE )
148 /* Errcause defines for RAM */
149 #define RG_RAM_ERRCAUSE_BASE (RG_DHM_MEM_ALLOC_FAIL + 1)
150 #define RGSCHERR_RAM_MEM_EXHAUST (RG_RAM_ERRCAUSE_BASE )
151 #define RGSCHERR_RAM_NO_MSG3_RCVD (RG_RAM_ERRCAUSE_BASE + 1)
152 #define RGSCHERR_RAM_RNTI_EXHAUST (RG_RAM_ERRCAUSE_BASE + 2)
153 /* Errcause defines for RAM */
154 #define RG_TOM_ERRCAUSE_BASE (RGSCHERR_RAM_RNTI_EXHAUST + 1)
155 #define RGSCHERR_TOM_INV_CELL_ID (RG_TOM_ERRCAUSE_BASE )
156 #define RGSCHERR_TOM_MEM_EXHAUST (RG_TOM_ERRCAUSE_BASE + 1)
157 /* CFG Module related error MACROs for error cause */
158 #define RG_CFG_ERRCAUSE_BASE (RGSCHERR_TOM_MEM_EXHAUST + 1)
159 #define RGSCHERR_CFG_INVALID_RGR_CELL_CFG (RG_CFG_ERRCAUSE_BASE)
160 #define RGSCHERR_CFG_INVALID_RGR_UE_CFG (RG_CFG_ERRCAUSE_BASE + 1)
161 #define RGSCHERR_CFG_INVALID_RGR_DED_LC_CFG (RG_CFG_ERRCAUSE_BASE + 2)
162 #define RGSCHERR_CFG_INVALID_RGR_DED_LCG_CFG (RG_CFG_ERRCAUSE_BASE + 2)
163 #define RGSCHERR_CFG_INVALID_RGR_CMN_LC_CFG (RG_CFG_ERRCAUSE_BASE + 3)
164 #define RGSCHERR_CFG_INVALID_RGR_CELL_RECFG (RG_CFG_ERRCAUSE_BASE + 4)
165 #define RGSCHERR_CFG_INVALID_RGR_UE_RECFG (RG_CFG_ERRCAUSE_BASE + 5)
166 #define RGSCHERR_CFG_INVALID_RGR_LC_RECFG (RG_CFG_ERRCAUSE_BASE + 6)
167 #define RGSCHERR_CFG_INVALID_RGR_LCG_RECFG (RG_CFG_ERRCAUSE_BASE + 6)
168 #define RGSCHERR_CFG_RGR_CELL_CFG (RG_CFG_ERRCAUSE_BASE + 7)
169 #define RGSCHERR_CFG_RGR_UE_CFG (RG_CFG_ERRCAUSE_BASE + 8)
170 #define RGSCHERR_CFG_RGR_DED_LC_CFG (RG_CFG_ERRCAUSE_BASE + 9)
171 #define RGSCHERR_CFG_RGR_DED_LCG_CFG (RG_CFG_ERRCAUSE_BASE + 9)
172 #define RGSCHERR_CFG_RGR_CMN_LC_CFG (RG_CFG_ERRCAUSE_BASE + 10)
173 #define RGSCHERR_CFG_RGR_CELL_RECFG (RG_CFG_ERRCAUSE_BASE + 11)
174 #define RGSCHERR_CFG_RGR_UE_RECFG (RG_CFG_ERRCAUSE_BASE + 12)
175 #define RGSCHERR_CFG_RGR_LC_RECFG (RG_CFG_ERRCAUSE_BASE + 13)
176 #define RGSCHERR_CFG_RGR_LCG_RECFG (RG_CFG_ERRCAUSE_BASE + 13)
177 #define RGSCHERR_CFG_RGR_CELL_DEL (RG_CFG_ERRCAUSE_BASE + 14)
178 #define RGSCHERR_CFG_RGR_UE_DEL (RG_CFG_ERRCAUSE_BASE + 15)
179 #define RGSCHERR_CFG_RGR_LC_DEL (RG_CFG_ERRCAUSE_BASE + 16)
180 #define RGSCHERR_CFG_RGR_LCG_DEL (RG_CFG_ERRCAUSE_BASE + 16)
181 #define RGSCHERR_CFG_INVALID_RGR_UE_RESET (RG_CFG_ERRCAUSE_BASE + 17)
182 #define RGSCHERR_CFG_RGR_UE_RESET (RG_CFG_ERRCAUSE_BASE + 18)
183 /* Added for SI Enhancement*/
185 #define RGSCHERR_CFG_INVALID_RGR_SI_CFG (RG_CFG_ERRCAUSE_BASE + 19)
188 #define RGSCHERR_HDFDD_SPSCFGRD (RG_CFG_ERRCAUSE_BASE + 20)
190 /* ccpu00117452 - MOD - Changed macro name from
191 RGR_RRM_DLPWR_CNTRL to RGR_CQI_REPT */
193 #define RGSCHERR_CQIREPT (RG_CFG_ERRCAUSE_BASE + 21)
196 /* LTE_ADV_FLAG_REMOVED_START */
197 #define RGSCHERR_CFG_INVALID_RGR_LOAD_INF (RG_CFG_ERRCAUSE_BASE + 22)
198 /* LTE_ADV_FLAG_REMOVED_END */
201 #define RGSCHERR_CFG_INVALID_RGR_UE_SCELL_RECFG (RG_CFG_ERRCAUSE_BASE + 23)
202 #define RGSCHERR_CFG_INVALID_RGR_UE_SCELL_PUCCH_RECFG (RG_CFG_ERRCAUSE_BASE + 24)
204 #define RGSCHERR_CFG_INVALID_RGR_ENB_CFG (RG_CFG_ERRCAUSE_BASE + 25)
206 /* Scheduler related error causes */
207 #define RG_SCH_ERRCAUSE_BASE (RGSCHERR_CFG_RGR_LC_DEL + 1)
208 #define RGSCHERR_SCH_CFG RG_SCH_ERRCAUSE_BASE
209 #define RGSCHERR_SCH_LCG_NOT_CFGD (RG_SCH_ERRCAUSE_BASE + 1)
210 #define RGSCHERR_SCH_NO_LCG_CFGD (RG_SCH_ERRCAUSE_BASE + 2)
211 #ifdef LTE_L2_MEAS /* TODO: Values? */
212 #define RG_L2MEAS_ERRTYPE_BASE (RGSCHERR_SCH_NO_LCG_CFGD + 1)
213 #define RGSCHERR_SCH_L2MEAS (RG_L2MEAS_ERRTYPE_BASE + 2)
214 #define RGSCHERR_SCH_INVALID_MEAS_TYPE (RG_L2MEAS_ERRTYPE_BASE + 3)
215 #define RGSCHERR_SCH_INVALID_PARAM_RANGE (RG_L2MEAS_ERRTYPE_BASE + 4)
216 #define RGSCHERR_SCH_INVALID_CELLID (RG_L2MEAS_ERRTYPE_BASE + 5)
217 #define RGSCHERR_SCH_INVALID_MEASTYPE (RG_L2MEAS_ERRTYPE_BASE + 6)
218 #define RGSCHERR_SCH_DUP_TRANSID (RG_L2MEAS_ERRTYPE_BASE + 7)
219 #define RGSCHERR_SCH_L2MEAS_FAILED (RG_L2MEAS_ERRTYPE_BASE + 8)
220 #define RGSCHERR_SCH_ALLOC_FAILED (RG_L2MEAS_ERRTYPE_BASE + 9)
221 #define RGSCHERR_SCH_INVALID_QCI_VAL (RG_L2MEAS_ERRTYPE_BASE + 10)
222 #endif /* LTE_L2_MEAS */
225 #endif /* __RGSCHERRH__ */
226 /**********************************************************************
229 **********************************************************************/