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*/
37 /* Macro definitions */
38 #define RGLOGERROR(_inst,errCls, errCode, errVal, errDesc) \
39 SLogError(rgCb[_inst].rgInit.ent, rgCb[_inst].rgInit.inst, rgCb[inst].rgInit.procId, \
43 (ErrCode) (errCode), \
50 #define ERGXXX (ERGBASE + 0) /* reserved */
51 #define ERRRG (ERGBASE + 0) /* reserved */
53 #define RGERR_NONE ERGBASE
55 #define ERG001 (ERRRG + 1) /* gk_rom.c: 221 */
56 #define ERG002 (ERRRG + 2) /* gk_rom.c: 235 */
57 #define ERG003 (ERRRG + 3) /* gk_rom.c: 365 */
58 #define ERG004 (ERRRG + 4) /* gk_rom.c: 476 */
59 #define ERG005 (ERRRG + 5) /* gk_rom.c: 623 */
60 #define ERG006 (ERRRG + 6) /* gk_rom.c: 738 */
61 #define ERG007 (ERRRG + 7) /* gk_rom.c: 933 */
63 #define ERG008 (ERRRG + 8) /* gk_uim.c: 227 */
64 #define ERG009 (ERRRG + 9) /* gk_uim.c: 237 */
65 #define ERG010 (ERRRG + 10) /* gk_uim.c: 293 */
66 #define ERG011 (ERRRG + 11) /* gk_uim.c: 302 */
67 #define ERG012 (ERRRG + 12) /* gk_uim.c: 413 */
68 #define ERG013 (ERRRG + 13) /* gk_uim.c: 423 */
69 #define ERG014 (ERRRG + 14) /* gk_uim.c: 520 */
70 #define ERG015 (ERRRG + 15) /* gk_uim.c: 529 */
71 #define ERG016 (ERRRG + 16) /* gk_uim.c: 612 */
72 #define ERG017 (ERRRG + 17) /* gk_uim.c: 621 */
73 #define ERG018 (ERRRG + 18) /* gk_uim.c: 695 */
74 #define ERG019 (ERRRG + 19) /* gk_uim.c: 704 */
75 #define ERG020 (ERRRG + 20) /* gk_uim.c: 777 */
76 #define ERG021 (ERRRG + 21) /* gk_uim.c: 786 */
77 #define ERG022 (ERRRG + 22) /* gk_uim.c:1061 */
78 #define ERG023 (ERRRG + 23) /* gk_uim.c:1071 */
79 #define ERG024 (ERRRG + 24) /* gk_uim.c:1128 */
80 #define ERG025 (ERRRG + 25) /* gk_uim.c:1137 */
81 #define ERG026 (ERRRG + 26) /* gk_uim.c:1253 */
82 #define ERG027 (ERRRG + 27) /* gk_uim.c:1266 */
84 #define ERG028 (ERRRG + 28) /* gk_utl.c: 196 */
85 #define ERG029 (ERRRG + 29) /* gk_utl.c: 267 */
86 #define ERG030 (ERRRG + 30) /* gk_utl.c: 320 */
87 #define ERG031 (ERRRG + 31) /* gk_utl.c: 605 */
90 /* ***********************************************************
92 *************************************************************/
93 #define RGERR_TYPE_BASE 0
94 #define RGERR_CAUSE_BASE 0
96 /* ErrType defines for MUX */
97 #define RG_MUX_ERRTYPE_BASE RGERR_TYPE_BASE
98 #define RGERR_MUX_BLD_PDU (RG_MUX_ERRTYPE_BASE + 1)
99 #define RGERR_MUX_BLD_CEHDR_FAIL (RG_MUX_ERRTYPE_BASE + 2)
100 #define RGERR_MUX_BLD_CE_FAIL (RG_MUX_ERRTYPE_BASE + 3)
101 #define RGERR_MUX_BLD_SDUHDR_FAIL (RG_MUX_ERRTYPE_BASE + 4)
102 #define RGERR_MUX_BLD_SDU_FAIL (RG_MUX_ERRTYPE_BASE + 5)
103 #define RGERR_MUX_BLD_PADHDR_FAIL (RG_MUX_ERRTYPE_BASE + 6)
104 #define RGERR_MUX_BLD_PAD_FAIL (RG_MUX_ERRTYPE_BASE + 7)
105 #define RGERR_MUX_BLD_BI_FAIL (RG_MUX_ERRTYPE_BASE + 8)
106 #define RGERR_MUX_BLD_RAPIDHDR_FAIL (RG_MUX_ERRTYPE_BASE + 9)
107 #define RGERR_MUX_BLD_RAPID_FAIL (RG_MUX_ERRTYPE_BASE + 10)
108 #define RGERR_MUX_BLD_RAR_PDU (RG_MUX_ERRTYPE_BASE + 11)
109 /* ErrType defines for DHM */
110 #define RG_DHM_ERRTYPE_BASE (RGERR_MUX_BLD_RAR_PDU + 1)
111 #define RGERR_DHM_SND_DAT_REQ RG_DHM_ERRTYPE_BASE
112 #define RGERR_DHM_FDBK_IND (RG_DHM_ERRTYPE_BASE + 1)
113 #define RGERR_DHM_SND_STA_IND (RG_DHM_ERRTYPE_BASE + 2)
114 /* ErrType defines for L2Measurement */
116 #define RGERR_L2M_ERRTYPE_BASE RG_DHM_ERRTYPE_BASE
117 #define RGERR_L2M_MEASREQ (RGERR_L2M_ERRTYPE_BASE + 1)
118 #define RGERR_DHM_SND_HARQ_STA_IND (RGERR_L2M_ERRTYPE_BASE + 2)
119 #define RGERR_L2M_INV_PARAM (RGERR_L2M_ERRTYPE_BASE + 3)
120 #define RGERR_L2M_INV_CELL_ID (RGERR_L2M_ERRTYPE_BASE + 4)
121 #endif /* LTE_L2_MEAS */
122 #define RGERR_DHM_SND_HQ_FDB_REQ (RG_DHM_ERRTYPE_BASE + 3)
123 /* ErrType defines for ROM */
124 #define RG_ROM_ERRTYPE_BASE (RGERR_DHM_FDBK_IND + 1)
125 #define RGERR_ROM_DEDDATREQ RG_ROM_ERRTYPE_BASE
126 #define RGERR_ROM_CMNDATREQ (RG_ROM_ERRTYPE_BASE + 1)
127 #define RGERR_ROM_DEDSTARSP (RG_ROM_ERRTYPE_BASE + 2)
128 #define RGERR_ROM_CMNSTARSP (RG_ROM_ERRTYPE_BASE + 3)
129 /* ErrType defines for TOM */
130 #define RG_TOM_ERRTYPE_BASE (RGERR_ROM_CMNSTARSP + 1)
131 #define RGERR_TOM_RAREQIND (RG_TOM_ERRTYPE_BASE)
132 #define RGERR_TOM_HARQACKIND (RG_TOM_ERRTYPE_BASE + 1)
133 #define RGERR_TOM_SRIND (RG_TOM_ERRTYPE_BASE + 2)
134 #define RGERR_TOM_DLCQIIND (RG_TOM_ERRTYPE_BASE + 3)
135 #define RGERR_TOM_DATIND (RG_TOM_ERRTYPE_BASE + 4)
136 #define RGERR_TOM_DECFAILIND (RG_TOM_ERRTYPE_BASE + 5)
137 #define RGERR_TOM_TTIIND (RG_TOM_ERRTYPE_BASE + 6)
138 /* COM Module related error MACROs for error type */
139 #define RG_COM_ERRTYPE_BASE (RGERR_TOM_TTIIND + 1)
140 #define RGERR_COM_CFG_REQ RG_COM_ERRTYPE_BASE
141 #define RGERR_COM_RECFG_REQ (RG_COM_ERRTYPE_BASE + 1)
142 #define RGERR_COM_DEL_REQ (RG_COM_ERRTYPE_BASE + 2)
143 #define RGERR_COM_RESET_REQ (RG_COM_ERRTYPE_BASE + 3)
144 /* GOM Module related error MACROs for error type */
145 #define RG_GOM_ERRTYPE_BASE (RGERR_COM_DEL_REQ + 1)
146 #define RGERR_GOM_CFG_REQ RG_GOM_ERRTYPE_BASE
147 #define RGERR_GOM_RECFG_REQ (RG_GOM_ERRTYPE_BASE + 1)
149 /* ***********************************************************
151 *************************************************************/
152 /* Errcause defines for MUX */
153 #define RG_MUX_ERR_CAUSE_BASE RGERR_CAUSE_BASE
154 #define RGERR_MUX_MEM_ALLOC_FAIL RG_MUX_ERR_CAUSE_BASE + 1
155 #define RGERR_MUX_BLD_HDR_FAIL RG_MUX_ERR_CAUSE_BASE + 2
156 #define RGERR_FDBK_IND_INVALID_CB RG_MUX_ERR_CAUSE_BASE + 3
157 /* Errcause defines for DHM */
158 #define RG_DHM_ERRCAUSE_BASE RGERR_FDBK_IND_INVALID_CB + 1
159 #define RG_DHM_MEM_ALLOC_FAIL RG_DHM_ERRCAUSE_BASE
160 /* Errcause defines for RAM */
161 #define RG_RAM_ERRCAUSE_BASE RGERR_FDBK_IND_INVALID_CB + 1
162 #define RGERR_RAM_MEM_EXHAUST RG_RAM_ERRCAUSE_BASE
163 #define RGERR_RAM_NO_MSG3_RCVD RG_RAM_ERRCAUSE_BASE + 1
164 #define RGERR_RAM_RNTI_EXHAUST RG_RAM_ERRCAUSE_BASE + 2
165 /* Errcause defines for ROM */
166 #define RG_ROM_ERRCAUSE_BASE RGERR_RAM_RNTI_EXHAUST + 1
167 #define RGERR_ROM_INV_CELL_ID RG_ROM_ERRCAUSE_BASE
168 #define RGERR_ROM_DELAYED_DATREQ RG_ROM_ERRCAUSE_BASE + 1
169 #define RGERR_ROM_INV_UE_ID RG_ROM_ERRCAUSE_BASE + 2
170 #define RGERR_ROM_INV_LC_ID RG_ROM_ERRCAUSE_BASE + 3
171 #define RGERR_ROM_INV_RNTI RG_ROM_ERRCAUSE_BASE + 4
172 #define RGERR_ROM_MEM_EXHAUST RG_ROM_ERRCAUSE_BASE + 5
173 #define RGERR_ROM_INV_DAT_LEN RG_ROM_ERRCAUSE_BASE + 6
174 /* Errcause defines for RAM */
175 #define RG_TOM_ERRCAUSE_BASE RGERR_ROM_INV_DAT_LEN + 1
176 #define RGERR_TOM_INV_CELL_ID RG_TOM_ERRCAUSE_BASE
177 #define RGERR_TOM_MEM_EXHAUST RG_TOM_ERRCAUSE_BASE + 1
178 /* Errcause defines for DUX */
179 #define RG_DUX_ERRCAUSE_BASE RGERR_TOM_MEM_EXHAUST + 1
180 #define RGERR_DUX_INV_LCID_RX RG_DUX_ERRCAUSE_BASE
181 #define RGERR_DUX_MEM_EXHAUST RG_DUX_ERRCAUSE_BASE + 1
182 #define RGERR_DUX_UNPACK_FAILURE RG_DUX_ERRCAUSE_BASE + 2
183 #define RGERR_DUX_RLC_PDU_CREAT_FAIL RG_DUX_ERRCAUSE_BASE + 3
184 #define RGERR_DUX_RLC_DATIND_FAIL RG_DUX_ERRCAUSE_BASE + 4
185 #define RGERR_DUX_DBM_FAILURE RG_DUX_ERRCAUSE_BASE + 5
186 #define RGERR_DUX_INV_PDU_RX RG_DUX_ERRCAUSE_BASE + 6
187 /* CFG Module related error MACROs for error cause */
188 #define RG_CFG_ERRCAUSE_BASE RGERR_DUX_INV_PDU_RX + 1
189 #define RGERR_CFG_INVALID_CRG_CELL_CFG RG_CFG_ERRCAUSE_BASE
190 #define RGERR_CFG_INVALID_CRG_UE_CFG RG_CFG_ERRCAUSE_BASE + 1
191 #define RGERR_CFG_INVALID_CRG_DED_LC_CFG RG_CFG_ERRCAUSE_BASE + 2
192 #define RGERR_CFG_INVALID_CRG_CMN_LC_CFG RG_CFG_ERRCAUSE_BASE + 3
193 #define RGERR_CFG_INVALID_CRG_CELL_RECFG RG_CFG_ERRCAUSE_BASE + 4
194 #define RGERR_CFG_INVALID_CRG_UE_RECFG RG_CFG_ERRCAUSE_BASE + 5
195 #define RGERR_CFG_INVALID_CRG_LC_RECFG RG_CFG_ERRCAUSE_BASE + 6
196 #define RGERR_CFG_INVALID_RGR_CELL_CFG RG_CFG_ERRCAUSE_BASE + 7
197 #define RGERR_CFG_INVALID_RGR_CELL_RECFG RG_CFG_ERRCAUSE_BASE + 8
198 #define RGERR_CFG_CRG_CELL_CFG RG_CFG_ERRCAUSE_BASE + 9
199 #define RGERR_CFG_CRG_UE_CFG RG_CFG_ERRCAUSE_BASE + 10
200 #define RGERR_CFG_CRG_DED_LC_CFG RG_CFG_ERRCAUSE_BASE + 11
201 #define RGERR_CFG_CRG_CMN_LC_CFG RG_CFG_ERRCAUSE_BASE + 12
202 #define RGERR_CFG_CRG_CELL_RECFG RG_CFG_ERRCAUSE_BASE + 13
203 #define RGERR_CFG_CRG_UE_RECFG RG_CFG_ERRCAUSE_BASE + 14
204 #define RGERR_CFG_CRG_LC_RECFG RG_CFG_ERRCAUSE_BASE + 15
205 #define RGERR_CFG_RGR_CELL_CFG RG_CFG_ERRCAUSE_BASE + 16
206 #define RGERR_CFG_RGR_CELL_RECFG RG_CFG_ERRCAUSE_BASE + 17
207 #define RGERR_CFG_CRG_CELL_DEL RG_CFG_ERRCAUSE_BASE + 18
208 #define RGERR_CFG_CRG_UE_DEL RG_CFG_ERRCAUSE_BASE + 19
209 #define RGERR_CFG_CRG_LC_DEL RG_CFG_ERRCAUSE_BASE + 20
210 #define RGERR_CFG_INVALID_CRG_UE_RESET RG_CFG_ERRCAUSE_BASE + 21
212 #define RGERR_CFG_CRG_UE_SCELL_CFG RG_CFG_ERRCAUSE_BASE + 22
214 /* Scheduler related error causes */
215 #define RG_SCH_ERRCAUSE_BASE RGERR_CFG_CRG_LC_DEL + 1
216 #define RGERR_SCH_CFG RG_SCH_ERRCAUSE_BASE
217 #define RGERR_SCH_LCG_NOT_CFGD RG_SCH_ERRCAUSE_BASE + 1
218 #define RGERR_SCH_NO_LCG_CFGD RG_SCH_ERRCAUSE_BASE + 2
222 #endif /* __RGERRH__ */
223 /********************************************************************30**
226 **********************************************************************/