blob: 99dff60e417887b2f8d0b8d048e5ce3b37cd65f8 [file] [log] [blame]
yu.dongc33b3072024-08-21 23:14:49 -07001/*****************************************************************************
2* Copyright Statement:
3* --------------------
4* This software is protected by Copyright and the information contained
5* herein is confidential. The software may not be copied and the information
6* contained herein may not be used or disclosed except with the written
7* permission of MediaTek Inc. (C) 2016
8*
9* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
10* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS (""MEDIATEK SOFTWARE"")
11* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
12* AN ""AS-IS"" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
13* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
14* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
15* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
16* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
17* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
18* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
19* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
20* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
21*
22* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
23* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
24* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
25* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
26* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
27*
28* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
29* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
30* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
31* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
32* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
33*
34*****************************************************************************/
35/*************************************************************
36*
37* This Software is the property of VIA Telecom, Inc. and may only be used pursuant to a license from VIA Telecom, Inc.
38*
39* Any unauthorized use inconsistent with the terms of such license is strictly prohibited.
40*
41* Copyright (c) 2005-2010 VIA Telecom, Inc. All rights reserved.
42*
43*************************************************************/
44#ifndef VALERRS_H
45#define VALERRS_H
46/*****************************************************************************
47
48 FILE NAME: valerrs.h
49
50 DESCRIPTION:
51
52 This file contains the fault codes for the VAL software unit.
53
54*****************************************************************************/
55
56/*------------------------------------------------------------------------
57* The following definitions are fault ids for MonFault routine.
58*-----------------------------------------------------------------------*/
59
60typedef enum
61{
62 VAL_MSG_ID_ERR = 0,
63 VAL_KEY_ID_ERR,
64 VAL_STATE_ERR,
65 VAL_STARTUP_ERR,
66 VAL_DATABASES_NOT_PROG_ERR = 4,
67 VAL_DEEPSLEEP_REQUEST_ERR = 5,
68 VAL_MODEM_FAILURE_ERR = 6,
69#ifdef MTK_CBP
70 VAL_UNEXPECTED_OP_MODE_ERR,
71#endif
72 /* voice memo */
73 VAL_ERR_VMEM_BUFFER_FULL = 0x10,
74 VAL_ERR_VMEM_CANNOT_DO_WRONG_STATE,
75 VAL_ERR_VMEM_RINGER_ACTIVE,
76 VAL_ERR_VMEM_BUFFER_EMPTY,
77 VAL_ERR_VMEM_GET_SPACE_ERR,
78 VAL_ERR_VMEM_DEVICE_FULL_ERR,
79 VAL_ERR_VMEM_REC_PCM_TO_FILE_ERR,
80
81 /* voice recognition */
82 VAL_ERR_VREC_INVALID_STATE = 0x20,
83 VAL_ERR_VREC_INVALID_MSG_FOR_STATE,
84 VAL_ERR_VREC_OPERATION_TIMEOUT,
85 VAL_ERR_VREC_SPURIOUS_TIMEOUT,
86 VAL_ERR_VREC_SECTOR_FULL,
87 VAL_ERR_VREC_VOCABULARY_FULL,
88 VAL_ERR_VREC_ENGINE_ERR,
89 VAL_ERR_VREC_COMPRESSED_BUFFER_FULL,
90 VAL_ERR_VREC_TEMPLATE_BUFFER_FULL,
91 VAL_ERR_VREC_VOCAB_EMPTY,
92 VAL_ERR_VREC_NAMETAG_NOT_FOUND,
93 VAL_ERR_VREC_TRAIN_BUFFER_TOO_SMALL,
94
95 /* Audio errors */
96 VAL_ERR_AUDIO_NOT_INITIALIZED = 0x35,
97 VAL_ERR_AUDIO_WRONG_VOLUME_MODE,
98 VAL_ERR_AUDIO_WRONG_TONE_TYPE,
99 VAL_ERR_AUDIO_NO_DATA,
100 VAL_ERR_AUDIO_FILE_READ_FAIL,
101 VAL_ERR_AUDIO_WRONG_DEVICE_MODE,
102 VAL_ERR_AUDIO_MUSIC_MALLOC_FAIL,
103 VAL_ERR_AUDIO_MUSIC_NOT_ENOUGH_MEM,
104 VAL_ERR_AUDIO_FILE_OPEN_FAIL,
105 VAL_ERR_AUDIO_FILE_GET_LENGTH_FAIL,
106 VAL_ERR_AUDIO_WRONG_MUSIC_TYPE,
107 VAL_ERR_AUDIO_GET_PLAYTIME_WHILE_ACTIVE,
108 VAL_ERR_AUDIO_INCOMPAT_MUSIC_DEVICE,
109 VAL_ERR_AUDIO_INPUT_PCM_FRAME_OVERFLOW,
110 VAL_ERR_AUDIO_OUTPUT_PCM_FRAME_OVERFLOW,
111
112 /* FSI errors */
113 VAL_ERR_FSI_INIT_FAILED = 0x45,
114 VAL_ERR_FSI_DOS_FS_INIT_FAIL,
115 VAL_ERR_FSI_DOS_FS_EXIT_FAIL,
116 VAL_ERR_FSI_SIDB_NOT_SUPPORTED,
117
118 /* Recentcall errors */
119 VAL_ERR_RC_FILE_CREATE_ERR = 0x55,
120 VAL_ERR_RC_FILE_READ_ERR,
121 VAL_ERR_RC_FILE_WRITE_ERR,
122 VAL_ERR_RC_FILE_DELETE_ERR,
123
124 /* BarCode errors */
125 VAL_ERR_BARCODE_FILE_DIRECTORY = 0x60,
126 VAL_ERR_BARCODE_READ_FSM,
127 VAL_ERR_BARCODE_WRITE_FSM,
128 VAL_ERR_BARCODE_READ_FAIL,
129 VAL_ERR_BARCODE_WRITE_FAIL,
130
131 /* Phb errors */
132 VAL_ERR_PHB_FILE_CREATE_ERR,
133 VAL_ERR_PHB_FILE_READ_ERR,
134 VAL_ERR_PHB_FILE_WRITE_ERR,
135 VAL_ERR_PHB_FILE_DELETE_ERR,
136 VAL_ERR_PHB_FILE_CLOSE_ERR,
137 VAL_ERR_PHB_NO_MEMORY_ERR,
138 VAL_ERR_PHB_INIT_ERR,
139
140 /* SMS errors */
141 VAL_ERR_SMS_NOT_READY_ERR = 0x70,
142 VAL_ERR_SMS_FILE_CREATE_ERR,
143 VAL_ERR_SMS_FILE_READ_ERR,
144 VAL_ERR_SMS_FILE_WRITE_ERR,
145
146 VAL_ERR_TOO_MANY_DIGIT_MSG_ID,
147 VAL_ERR_INVALID_CALLBACK_TIMER_ID,
148 VAL_ERR_INSUFFICIENT_TIMER_ID,
149 VAL_ERR_SMS_INVALID_FORMAT,
150 VAL_ERR_SMS_FILE_ALREADY_OPEN,
151
152 /* Display errors */
153 VAL_ERR_DISP_UNEXPECT_CALLBACK_ERR = 0x80,
154 VAL_ERR_DISP_EVENT_ALREADY_ACTIVE,
155 VAL_ERR_DISP_IMAGE_WIDTH_INVALID,
156 VAL_ERR_DISP_FILE_READ_ERR,
157 VAL_ERR_DISP_FILE_WRITE_ERR,
158 VAL_ERR_DISP_IMAGE_TYPE_INVALID,
159 VAL_ERR_DISP_FILE_HANDLE_INVALID,
160 VAL_ERR_DISP_MALLOC_FAIL,
161 VAL_ERR_DISP_NOT_ENOUGH_MEM,
162 VAL_ERR_DISP_IMAGE_NOT_STORED,
163
164 /* ATC errors*/
165 VAL_ERR_ATP_CHANNEL_DISABLED = 0x90,
166 VAL_ERR_CMD_NOT_SUPPORTED,
167 VAL_ERR_AT_DATA_RCVR_TIMEOUT,
168#ifdef MTK_CBP
169 VAL_ERR_TOO_LARGE_AT_CHAN,
170 VAL_ERR_TOO_LONG_AT_CMD_NAME,
171 VAL_ERR_NULL_AT_DATA_PTR,
172 VAL_ERR_EXCEED_ARRAY_LEN,
173 VAL_ERR_UNEXPECTED_ENG_INFO_SETTING,
174 VAL_ERR_TOO_MANY_UICC_SESSION_OPENED,
175 VAL_ERR_UICC_SESSION_NOT_FOUND,
176 VAL_ERR_UNEXPECTED_UICC_APDU_LEN,
177#endif
178#ifdef MTK_CBP //MTK_DEV_C2K_IRAT
179 VAL_ERR_UNEXPECTED_IP_ADDR_TYPE,
180 VAL_ERR_UNEXPECTED_RAT_TYPE,
181 VAL_ERR_UNEXPECTED_PSDM_RESULT,
182 VAL_ERR_INVALID_CGEV_EVENT,
183#endif
184#ifdef MTK_DEV_ETS_ENHANCEMENT
185 VAL_ERR_EXCEED_MAX_ETS_AT_CMD_LEN,
186#endif
187
188 /*Gps errors*/
189 VAL_ERR_GPS_INST_ID = 0xa0,
190 VAL_ERR_GPS_READ_SECURITY_CONFIG,
191 VAL_ERR_GPS_NEXT_STATE,
192 VAL_ERR_GPS_WRITE_SECURITY_CONFIG,
193 VAL_ERR_GPS_ENABLE_SECURITY,
194 VAL_ERR_GPS_ENABLE_SECURITY_2,
195 VAL_ERR_GPS_BASESSD_GET,
196 VAL_ERR_GPS_RAND_PERIOD_SET,
197 VAL_ERR_GPS_RAND_PERIOD_SET_2,
198 VAL_ERR_WRITE_SERVICE_CONFIG,
199 VAL_ERR_GPS_READ_ENCRYPT_CONFIG,
200 VAL_ERR_GPS_DNS_QUERY,
201 SLC_ERR_GPS_FILE_DIRECTORY,
202 VAL_ERR_GPS_READ_FSM,
203 VAL_ERR_GPS_WRITE_FSM,
204 VAL_ERR_GPS_CONFIG_FIX_MODE,
205 VAL_ERR_GPS_CONFIG_FIX_RATE,
206 VAL_ERR_GPS_OPEN_SESS_STATUS,
207 VAL_ERR_GPS_START_FIX_STATUS,
208 VAL_ERR_GPS_LOC_RESP,
209 VAL_ERR_GPS_GET_POS,
210 VAL_ERR_GPS_AES_RSP_STATUS,
211 VAL_ERR_GPS_NMEA_UPDATE,
212 VAL_ERR_GPS_DBM_READ_ID,
213 VAL_ERR_GPS_GSV_SEQ_NUM,
214 VAL_ERR_GPS_SESS_STATE,
215 VAL_ERR_GPS_WRITE_OFFSET_INFO,
216 VAL_ERR_GPS_LOC_ACTIVE_IND,
217#ifdef MTK_CBP
218 VAL_ERR_GPS_SESS_WITH_SAME_MODE,
219 VAL_ERR_GPS_SESS_NOT_FOUND,
220#endif
221
222 VAL_ERR_FAULT_LOG_API = 0xc0,
223#ifdef MTK_CBP
224 /* call id error */
225 VAL_ERR_UNEXPECTED_CALL_ID,
226
227 /* To avoid error ID conflict, move these three error codes to here */
228 VAL_ERR_AV_STRM_WD_BUF_SEM_TIMEOUT,
229 VAL_ERR_AV_STRM_RD_BUF_SEM_TIMEOUT,
230 VAL_ERR_AV_STRM_WD_BUF_OVERRIDE,
231#endif
232
233 VAL_ERR_MPC_MESSAGE_TYPE = 0xD0,
234 VAL_ERR_MPC_VER_ID,
235 VAL_ERR_MPC_REG_ID,
236 VAL_ERR_MPC_POSTECH_IND,
237 VAL_ERR_MPC_IS801_MODE,
238 VAL_ERR_MPC_TIMER_ID,
239 VAL_ERR_MPC_START_POSITIONINGPROC_REQ_ID,
240 VAL_ERR_MPC_STATE_ID,
241 VAL_ERR_MPC_POSITIONING_REQ_LEN,
242 VAL_ERR_MPC_START_POSITIONING_RESP_LEN,
243 VAL_ERR_MPC_START_POSITIONING_RESP_CONTEXT,
244 VAL_ERR_MPC_SMS_ADDR,
245 VAL_ERR_MPC_TCP_SOCKET_STATE_ID,
246 VAL_ERR_MPC_LBS_DISABLED,
247
248
249 /* Connectivity */
250 VAL_ERR_UNKNOWN_PARM_ID = 0xF0,
251
252 /* RPC */
253 VAL_ERR_RPC_LIB,
254
255 /* UIM CHV */
256 VAL_CHV_GET_STATUS_ERR = 0x100,
257 VAL_CHV_GET_STATUS_PRO_ERR,
258 VAL_CHV_GET_POWERUP_STATUS_PRO_ERR,
259 VAL_CHV_VERIFY_ERR,
260 VAL_CHV_CHANGE_ERR,
261 VAL_CHV_DISABLE_ERR,
262 VAL_CHV_ENABLE_ERR,
263 VAL_CHV_UNBLOCK_ERR,
264 VAL_CHV_PRO_RSP_ERR,
265 VAL_CHV_COMMON_PRO_ERR,
266 VAL_CHV_GET_ESN_ERR,
267
268 /* UIM - UTK */
269 VAL_UTK_PROACTIVE_CMD_TAG_ERR = 0x200,
270 VAL_UTK_PROACTIVE_CMD_LEN_ERR,
271 VAL_UTK_PROACTIVE_CMD_NUM_ERR,
272 VAL_UTK_PROACTIVE_CMD_TYPE_ERR,
273 VAL_UTK_PROACTIVE_CMD_SIP_TAG_ERR,
274 VAL_UTK_PROACTIVE_CMD_DEVICE_ERR,
275 VAL_UTK_PROACTIVE_CMD_MISS_DEVICE,
276 VAL_UTK_PROACTIVE_CMD_MISS_ALPHA,
277 VAL_UTK_PROACTIVE_CMD_MISS_ITEM,
278 VAL_UTK_PROACTIVE_CMD_MISS_ADDRESS,
279 VAL_UTK_PROACTIVE_CMD_MISS_RSPLEN,
280 VAL_UTK_PROACTIVE_CMD_MISS_SMSPDU,
281 VAL_UTK_PROACTIVE_CMD_MISS_EVENTLIST,
282 VAL_UTK_PROACTIVE_CMD_MISS_BEARER,
283 VAL_UTK_PROACTIVE_CMD_MISS_BUFSIZE,
284 VAL_UTK_PROACTIVE_CMD_MISS_CHANNELDATALEN,
285 VAL_UTK_PROACTIVE_CMD_MISS_CHANNELDATA,
286 VAL_UTK_CMD_DETAIL_LEN_MISMATCH,
287 VAL_UTK_DEVICE_LEN_MISMATCH,
288 VAL_UTK_ICON_LEN_MISMATCH,
289 VAL_UTK_DURATION_LEN_MISMATCH,
290 VAL_UTK_TEXTRSP_LEN_MISMATCH,
291 VAL_UTK_TONE_LEN_MISMATCH,
292 VAL_UTK_FILELIST_LEN_MISMATCH,
293 VAL_UTK_PROACTIVE_CMD_LEN_MISMATCH,
294 VAL_UTK_PRO_MENU_SELECTION_RSP_ERR,
295 VAL_UTK_EVENT_CALL_CONTROL_RSP_ERR,
296 VAL_UTK_PRO_DATA_AVAILABLE_RSP_ERR,
297 VAL_UTK_PRO_MTCALL_RSP_ERR,
298 VAL_UTK_PRO_CALL_CONN_RSP_ERR,
299 VAL_UTK_PRO_CALL_DISC_RSP_ERR,
300 VAL_UTK_PRO_LOC_STATUS_RSP_ERR,
301 VAL_UTK_PRO_ACCTECH_CHANGE_RSP_ERR,
302 VAL_UTK_PRO_TERM_RSP_RSP_ERR, /* 0x221*/
303 VAL_UIM_PARM_OPERATION_NOT_SUPPORTED = 0x222,
304
305#ifdef MTK_DEV_C2K_IRAT
306 /* VAL UIM BTSAP */
307 VAL_UIM_BTSAP_UNEXPECTED_RESULT = 0x230,
308#endif
309
310 /* VAL DBM */
311 VAL_DBM_INVALID_TASK = 0x300,
312 VAL_DBM_SET_NULL_POINTER,
313
314#ifdef MTK_CBP //MTK_DEV_C2K_IRAT
315 /* VAL IRAT */
316 VAL_IRAT_MD1_MSG_ID_INVALID = 0x310,
317 VAL_IRAT_MD1_MSG_PARAM_ERROR,
318 VAL_IRAT_MD1_MSG_SIZE_INCORRECT,
319 VAL_IRAT_MD1_MSG_SEND_FAIL,
320 VAL_IRAT_EMDSTATUS_ERR,
321#endif /* MTK_DEV_C2K_IRAT */
322
323 /* The base number for PGPS MonFault print out. */
324 VAL_ERR_PGPS_BASE = 9800,
325 VAL_ERR_MAX_NUM_ERR_CODES
326
327#ifdef MTK_CBP
328 , VAL_AT_FORCE_ASSERT = 10000,
329#endif
330} ValErrsT;
331
332/*****************************************************************************
333 End of file
334*****************************************************************************/
335#endif
336
337