[Feature][Modem]Update MTK MODEM V1.6 baseline version: MOLY.NR15.R3.MD700.IVT.MP1MR3.MP.V1.6
MTK modem version: MT2735_IVT_MOLY.NR15.R3.MD700.IVT.MP1MR3.MP.V1.6.tar.gz
RF modem version: NA
Change-Id: I45a4c2752fa9d1a618beacd5d40737fb39ab64fb
diff --git a/mcu/interface/protocol/l4_c2k/valerrs.h b/mcu/interface/protocol/l4_c2k/valerrs.h
new file mode 100644
index 0000000..99dff60
--- /dev/null
+++ b/mcu/interface/protocol/l4_c2k/valerrs.h
@@ -0,0 +1,337 @@
+/*****************************************************************************
+* Copyright Statement:
+* --------------------
+* This software is protected by Copyright and the information contained
+* herein is confidential. The software may not be copied and the information
+* contained herein may not be used or disclosed except with the written
+* permission of MediaTek Inc. (C) 2016
+*
+* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
+* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS (""MEDIATEK SOFTWARE"")
+* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
+* AN ""AS-IS"" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
+* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
+* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
+* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
+* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
+* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
+* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
+* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
+* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
+*
+* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
+* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
+* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
+* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
+* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
+*
+* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
+* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
+* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
+* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
+* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
+*
+*****************************************************************************/
+/*************************************************************
+*
+* This Software is the property of VIA Telecom, Inc. and may only be used pursuant to a license from VIA Telecom, Inc.
+*
+* Any unauthorized use inconsistent with the terms of such license is strictly prohibited.
+*
+* Copyright (c) 2005-2010 VIA Telecom, Inc. All rights reserved.
+*
+*************************************************************/
+#ifndef VALERRS_H
+#define VALERRS_H
+/*****************************************************************************
+
+ FILE NAME: valerrs.h
+
+ DESCRIPTION:
+
+ This file contains the fault codes for the VAL software unit.
+
+*****************************************************************************/
+
+/*------------------------------------------------------------------------
+* The following definitions are fault ids for MonFault routine.
+*-----------------------------------------------------------------------*/
+
+typedef enum
+{
+ VAL_MSG_ID_ERR = 0,
+ VAL_KEY_ID_ERR,
+ VAL_STATE_ERR,
+ VAL_STARTUP_ERR,
+ VAL_DATABASES_NOT_PROG_ERR = 4,
+ VAL_DEEPSLEEP_REQUEST_ERR = 5,
+ VAL_MODEM_FAILURE_ERR = 6,
+#ifdef MTK_CBP
+ VAL_UNEXPECTED_OP_MODE_ERR,
+#endif
+ /* voice memo */
+ VAL_ERR_VMEM_BUFFER_FULL = 0x10,
+ VAL_ERR_VMEM_CANNOT_DO_WRONG_STATE,
+ VAL_ERR_VMEM_RINGER_ACTIVE,
+ VAL_ERR_VMEM_BUFFER_EMPTY,
+ VAL_ERR_VMEM_GET_SPACE_ERR,
+ VAL_ERR_VMEM_DEVICE_FULL_ERR,
+ VAL_ERR_VMEM_REC_PCM_TO_FILE_ERR,
+
+ /* voice recognition */
+ VAL_ERR_VREC_INVALID_STATE = 0x20,
+ VAL_ERR_VREC_INVALID_MSG_FOR_STATE,
+ VAL_ERR_VREC_OPERATION_TIMEOUT,
+ VAL_ERR_VREC_SPURIOUS_TIMEOUT,
+ VAL_ERR_VREC_SECTOR_FULL,
+ VAL_ERR_VREC_VOCABULARY_FULL,
+ VAL_ERR_VREC_ENGINE_ERR,
+ VAL_ERR_VREC_COMPRESSED_BUFFER_FULL,
+ VAL_ERR_VREC_TEMPLATE_BUFFER_FULL,
+ VAL_ERR_VREC_VOCAB_EMPTY,
+ VAL_ERR_VREC_NAMETAG_NOT_FOUND,
+ VAL_ERR_VREC_TRAIN_BUFFER_TOO_SMALL,
+
+ /* Audio errors */
+ VAL_ERR_AUDIO_NOT_INITIALIZED = 0x35,
+ VAL_ERR_AUDIO_WRONG_VOLUME_MODE,
+ VAL_ERR_AUDIO_WRONG_TONE_TYPE,
+ VAL_ERR_AUDIO_NO_DATA,
+ VAL_ERR_AUDIO_FILE_READ_FAIL,
+ VAL_ERR_AUDIO_WRONG_DEVICE_MODE,
+ VAL_ERR_AUDIO_MUSIC_MALLOC_FAIL,
+ VAL_ERR_AUDIO_MUSIC_NOT_ENOUGH_MEM,
+ VAL_ERR_AUDIO_FILE_OPEN_FAIL,
+ VAL_ERR_AUDIO_FILE_GET_LENGTH_FAIL,
+ VAL_ERR_AUDIO_WRONG_MUSIC_TYPE,
+ VAL_ERR_AUDIO_GET_PLAYTIME_WHILE_ACTIVE,
+ VAL_ERR_AUDIO_INCOMPAT_MUSIC_DEVICE,
+ VAL_ERR_AUDIO_INPUT_PCM_FRAME_OVERFLOW,
+ VAL_ERR_AUDIO_OUTPUT_PCM_FRAME_OVERFLOW,
+
+ /* FSI errors */
+ VAL_ERR_FSI_INIT_FAILED = 0x45,
+ VAL_ERR_FSI_DOS_FS_INIT_FAIL,
+ VAL_ERR_FSI_DOS_FS_EXIT_FAIL,
+ VAL_ERR_FSI_SIDB_NOT_SUPPORTED,
+
+ /* Recentcall errors */
+ VAL_ERR_RC_FILE_CREATE_ERR = 0x55,
+ VAL_ERR_RC_FILE_READ_ERR,
+ VAL_ERR_RC_FILE_WRITE_ERR,
+ VAL_ERR_RC_FILE_DELETE_ERR,
+
+ /* BarCode errors */
+ VAL_ERR_BARCODE_FILE_DIRECTORY = 0x60,
+ VAL_ERR_BARCODE_READ_FSM,
+ VAL_ERR_BARCODE_WRITE_FSM,
+ VAL_ERR_BARCODE_READ_FAIL,
+ VAL_ERR_BARCODE_WRITE_FAIL,
+
+ /* Phb errors */
+ VAL_ERR_PHB_FILE_CREATE_ERR,
+ VAL_ERR_PHB_FILE_READ_ERR,
+ VAL_ERR_PHB_FILE_WRITE_ERR,
+ VAL_ERR_PHB_FILE_DELETE_ERR,
+ VAL_ERR_PHB_FILE_CLOSE_ERR,
+ VAL_ERR_PHB_NO_MEMORY_ERR,
+ VAL_ERR_PHB_INIT_ERR,
+
+ /* SMS errors */
+ VAL_ERR_SMS_NOT_READY_ERR = 0x70,
+ VAL_ERR_SMS_FILE_CREATE_ERR,
+ VAL_ERR_SMS_FILE_READ_ERR,
+ VAL_ERR_SMS_FILE_WRITE_ERR,
+
+ VAL_ERR_TOO_MANY_DIGIT_MSG_ID,
+ VAL_ERR_INVALID_CALLBACK_TIMER_ID,
+ VAL_ERR_INSUFFICIENT_TIMER_ID,
+ VAL_ERR_SMS_INVALID_FORMAT,
+ VAL_ERR_SMS_FILE_ALREADY_OPEN,
+
+ /* Display errors */
+ VAL_ERR_DISP_UNEXPECT_CALLBACK_ERR = 0x80,
+ VAL_ERR_DISP_EVENT_ALREADY_ACTIVE,
+ VAL_ERR_DISP_IMAGE_WIDTH_INVALID,
+ VAL_ERR_DISP_FILE_READ_ERR,
+ VAL_ERR_DISP_FILE_WRITE_ERR,
+ VAL_ERR_DISP_IMAGE_TYPE_INVALID,
+ VAL_ERR_DISP_FILE_HANDLE_INVALID,
+ VAL_ERR_DISP_MALLOC_FAIL,
+ VAL_ERR_DISP_NOT_ENOUGH_MEM,
+ VAL_ERR_DISP_IMAGE_NOT_STORED,
+
+ /* ATC errors*/
+ VAL_ERR_ATP_CHANNEL_DISABLED = 0x90,
+ VAL_ERR_CMD_NOT_SUPPORTED,
+ VAL_ERR_AT_DATA_RCVR_TIMEOUT,
+#ifdef MTK_CBP
+ VAL_ERR_TOO_LARGE_AT_CHAN,
+ VAL_ERR_TOO_LONG_AT_CMD_NAME,
+ VAL_ERR_NULL_AT_DATA_PTR,
+ VAL_ERR_EXCEED_ARRAY_LEN,
+ VAL_ERR_UNEXPECTED_ENG_INFO_SETTING,
+ VAL_ERR_TOO_MANY_UICC_SESSION_OPENED,
+ VAL_ERR_UICC_SESSION_NOT_FOUND,
+ VAL_ERR_UNEXPECTED_UICC_APDU_LEN,
+#endif
+#ifdef MTK_CBP //MTK_DEV_C2K_IRAT
+ VAL_ERR_UNEXPECTED_IP_ADDR_TYPE,
+ VAL_ERR_UNEXPECTED_RAT_TYPE,
+ VAL_ERR_UNEXPECTED_PSDM_RESULT,
+ VAL_ERR_INVALID_CGEV_EVENT,
+#endif
+#ifdef MTK_DEV_ETS_ENHANCEMENT
+ VAL_ERR_EXCEED_MAX_ETS_AT_CMD_LEN,
+#endif
+
+ /*Gps errors*/
+ VAL_ERR_GPS_INST_ID = 0xa0,
+ VAL_ERR_GPS_READ_SECURITY_CONFIG,
+ VAL_ERR_GPS_NEXT_STATE,
+ VAL_ERR_GPS_WRITE_SECURITY_CONFIG,
+ VAL_ERR_GPS_ENABLE_SECURITY,
+ VAL_ERR_GPS_ENABLE_SECURITY_2,
+ VAL_ERR_GPS_BASESSD_GET,
+ VAL_ERR_GPS_RAND_PERIOD_SET,
+ VAL_ERR_GPS_RAND_PERIOD_SET_2,
+ VAL_ERR_WRITE_SERVICE_CONFIG,
+ VAL_ERR_GPS_READ_ENCRYPT_CONFIG,
+ VAL_ERR_GPS_DNS_QUERY,
+ SLC_ERR_GPS_FILE_DIRECTORY,
+ VAL_ERR_GPS_READ_FSM,
+ VAL_ERR_GPS_WRITE_FSM,
+ VAL_ERR_GPS_CONFIG_FIX_MODE,
+ VAL_ERR_GPS_CONFIG_FIX_RATE,
+ VAL_ERR_GPS_OPEN_SESS_STATUS,
+ VAL_ERR_GPS_START_FIX_STATUS,
+ VAL_ERR_GPS_LOC_RESP,
+ VAL_ERR_GPS_GET_POS,
+ VAL_ERR_GPS_AES_RSP_STATUS,
+ VAL_ERR_GPS_NMEA_UPDATE,
+ VAL_ERR_GPS_DBM_READ_ID,
+ VAL_ERR_GPS_GSV_SEQ_NUM,
+ VAL_ERR_GPS_SESS_STATE,
+ VAL_ERR_GPS_WRITE_OFFSET_INFO,
+ VAL_ERR_GPS_LOC_ACTIVE_IND,
+#ifdef MTK_CBP
+ VAL_ERR_GPS_SESS_WITH_SAME_MODE,
+ VAL_ERR_GPS_SESS_NOT_FOUND,
+#endif
+
+ VAL_ERR_FAULT_LOG_API = 0xc0,
+#ifdef MTK_CBP
+ /* call id error */
+ VAL_ERR_UNEXPECTED_CALL_ID,
+
+ /* To avoid error ID conflict, move these three error codes to here */
+ VAL_ERR_AV_STRM_WD_BUF_SEM_TIMEOUT,
+ VAL_ERR_AV_STRM_RD_BUF_SEM_TIMEOUT,
+ VAL_ERR_AV_STRM_WD_BUF_OVERRIDE,
+#endif
+
+ VAL_ERR_MPC_MESSAGE_TYPE = 0xD0,
+ VAL_ERR_MPC_VER_ID,
+ VAL_ERR_MPC_REG_ID,
+ VAL_ERR_MPC_POSTECH_IND,
+ VAL_ERR_MPC_IS801_MODE,
+ VAL_ERR_MPC_TIMER_ID,
+ VAL_ERR_MPC_START_POSITIONINGPROC_REQ_ID,
+ VAL_ERR_MPC_STATE_ID,
+ VAL_ERR_MPC_POSITIONING_REQ_LEN,
+ VAL_ERR_MPC_START_POSITIONING_RESP_LEN,
+ VAL_ERR_MPC_START_POSITIONING_RESP_CONTEXT,
+ VAL_ERR_MPC_SMS_ADDR,
+ VAL_ERR_MPC_TCP_SOCKET_STATE_ID,
+ VAL_ERR_MPC_LBS_DISABLED,
+
+
+ /* Connectivity */
+ VAL_ERR_UNKNOWN_PARM_ID = 0xF0,
+
+ /* RPC */
+ VAL_ERR_RPC_LIB,
+
+ /* UIM CHV */
+ VAL_CHV_GET_STATUS_ERR = 0x100,
+ VAL_CHV_GET_STATUS_PRO_ERR,
+ VAL_CHV_GET_POWERUP_STATUS_PRO_ERR,
+ VAL_CHV_VERIFY_ERR,
+ VAL_CHV_CHANGE_ERR,
+ VAL_CHV_DISABLE_ERR,
+ VAL_CHV_ENABLE_ERR,
+ VAL_CHV_UNBLOCK_ERR,
+ VAL_CHV_PRO_RSP_ERR,
+ VAL_CHV_COMMON_PRO_ERR,
+ VAL_CHV_GET_ESN_ERR,
+
+ /* UIM - UTK */
+ VAL_UTK_PROACTIVE_CMD_TAG_ERR = 0x200,
+ VAL_UTK_PROACTIVE_CMD_LEN_ERR,
+ VAL_UTK_PROACTIVE_CMD_NUM_ERR,
+ VAL_UTK_PROACTIVE_CMD_TYPE_ERR,
+ VAL_UTK_PROACTIVE_CMD_SIP_TAG_ERR,
+ VAL_UTK_PROACTIVE_CMD_DEVICE_ERR,
+ VAL_UTK_PROACTIVE_CMD_MISS_DEVICE,
+ VAL_UTK_PROACTIVE_CMD_MISS_ALPHA,
+ VAL_UTK_PROACTIVE_CMD_MISS_ITEM,
+ VAL_UTK_PROACTIVE_CMD_MISS_ADDRESS,
+ VAL_UTK_PROACTIVE_CMD_MISS_RSPLEN,
+ VAL_UTK_PROACTIVE_CMD_MISS_SMSPDU,
+ VAL_UTK_PROACTIVE_CMD_MISS_EVENTLIST,
+ VAL_UTK_PROACTIVE_CMD_MISS_BEARER,
+ VAL_UTK_PROACTIVE_CMD_MISS_BUFSIZE,
+ VAL_UTK_PROACTIVE_CMD_MISS_CHANNELDATALEN,
+ VAL_UTK_PROACTIVE_CMD_MISS_CHANNELDATA,
+ VAL_UTK_CMD_DETAIL_LEN_MISMATCH,
+ VAL_UTK_DEVICE_LEN_MISMATCH,
+ VAL_UTK_ICON_LEN_MISMATCH,
+ VAL_UTK_DURATION_LEN_MISMATCH,
+ VAL_UTK_TEXTRSP_LEN_MISMATCH,
+ VAL_UTK_TONE_LEN_MISMATCH,
+ VAL_UTK_FILELIST_LEN_MISMATCH,
+ VAL_UTK_PROACTIVE_CMD_LEN_MISMATCH,
+ VAL_UTK_PRO_MENU_SELECTION_RSP_ERR,
+ VAL_UTK_EVENT_CALL_CONTROL_RSP_ERR,
+ VAL_UTK_PRO_DATA_AVAILABLE_RSP_ERR,
+ VAL_UTK_PRO_MTCALL_RSP_ERR,
+ VAL_UTK_PRO_CALL_CONN_RSP_ERR,
+ VAL_UTK_PRO_CALL_DISC_RSP_ERR,
+ VAL_UTK_PRO_LOC_STATUS_RSP_ERR,
+ VAL_UTK_PRO_ACCTECH_CHANGE_RSP_ERR,
+ VAL_UTK_PRO_TERM_RSP_RSP_ERR, /* 0x221*/
+ VAL_UIM_PARM_OPERATION_NOT_SUPPORTED = 0x222,
+
+#ifdef MTK_DEV_C2K_IRAT
+ /* VAL UIM BTSAP */
+ VAL_UIM_BTSAP_UNEXPECTED_RESULT = 0x230,
+#endif
+
+ /* VAL DBM */
+ VAL_DBM_INVALID_TASK = 0x300,
+ VAL_DBM_SET_NULL_POINTER,
+
+#ifdef MTK_CBP //MTK_DEV_C2K_IRAT
+ /* VAL IRAT */
+ VAL_IRAT_MD1_MSG_ID_INVALID = 0x310,
+ VAL_IRAT_MD1_MSG_PARAM_ERROR,
+ VAL_IRAT_MD1_MSG_SIZE_INCORRECT,
+ VAL_IRAT_MD1_MSG_SEND_FAIL,
+ VAL_IRAT_EMDSTATUS_ERR,
+#endif /* MTK_DEV_C2K_IRAT */
+
+ /* The base number for PGPS MonFault print out. */
+ VAL_ERR_PGPS_BASE = 9800,
+ VAL_ERR_MAX_NUM_ERR_CODES
+
+#ifdef MTK_CBP
+ , VAL_AT_FORCE_ASSERT = 10000,
+#endif
+} ValErrsT;
+
+/*****************************************************************************
+ End of file
+*****************************************************************************/
+#endif
+
+