| /***************************************************************************** |
| * 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) 2002-2010 VIA Telecom, Inc. All rights reserved. |
| * |
| *************************************************************/ |
| #ifndef _LMDERR_H_ |
| #define _LMDERR_H_ |
| /***************************************************************************** |
| * |
| * FILE NAME :lmderr.h |
| * |
| * DESCRIPTION : |
| * |
| * Contains the error typdefs for error traping |
| * |
| * HISTORY : |
| * See Log at end of file |
| * |
| *****************************************************************************/ |
| /*---------------------------------------------------------------------------- |
| Include Files |
| ----------------------------------------------------------------------------*/ |
| |
| /*---------------------------------------------------------------------------- |
| Global Defines and Macros |
| ----------------------------------------------------------------------------*/ |
| |
| /*---------------------------------------------------------------------------- |
| Global Typedefs |
| ----------------------------------------------------------------------------*/ |
| |
| typedef enum |
| { |
| /* Events */ |
| LMD_ERR_UNEXPECTED_EVENT = 0x01, |
| |
| /* Main object related */ |
| LMD_ERR_CMD_MAILBOX_SHOULD_NOT_BE_EMPTY = 0x10, |
| LMD_ERR_INVALID_CMD_MSG_ID = 0x11, |
| LMD_ERR_INVALID_SIG_MSG_ID = 0x12, |
| LMD_ERR_INVALID_PRIMARY_TRAFFIC_MSG_ID = 0x13, |
| LMD_ERR_SIG_MAILBOX_SHOULD_NOT_BE_EMPTY = 0x14, |
| |
| /* Forward channel object */ |
| LMD_ERR_NO_FSCH_IND_ON_DIR_MBOX = 0x20, |
| |
| /* Reverse channel object */ |
| LMD_ERR_ACCESS_MSG_FAIL = 0x30, |
| LMD_ERR_EACH_MSG_FAIL = 0x31, |
| LMD_ERR_RTC_SIG_MSG_FAIL = 0x32, |
| LMD_ERR_TCSTART_MSG_FAIL = 0x33, |
| LMD_ERR_TCSTOP_MSG_FAIL = 0x34, |
| LMD_ERR_SUBSTATE_DISC_MSG_FAIL = 0x35, |
| LMD_ERR_ACCESS_ABORT_MSG_FAIL = 0x36, |
| LMD_ERR_MBOX_ROUTING = 0x37, |
| LMD_DBUF_ACCESS_TIMEOUT_ERR = 0x38, |
| LMD_REV_TRAFFIC_FRAME_TIMING_ERR = 0x39, |
| |
| /* Service configuration object */ |
| LMD_ERR_INVALID_SVC_CMD_MSG = 0x60, |
| LMD_MUX_PDU_1_RATE_UNKNOWN = 0x61, |
| LMD_MUX_PDU_2_RATE_UNKNOWN = 0x62, |
| LMD_DTCH_NOT_IN_USE = 0x63, |
| LMD_DCCH_MUX_PDU_1_BITS_ERROR = 0x64, |
| LMD_DCCH_MUX_PDU_2_BITS_ERROR = 0x65, |
| LMD_CHANNEL_NOT_SUPPORT_IN_PHASE = 0x66, |
| LMD_ERR_INVALID_PACKET_RATE_PRI = 0x67, |
| LMD_INVALID_FWD_FCH_MUX_OPT = 0x68, |
| LMD_INVALID_REV_FCH_MUX_OPT = 0x69, |
| LMD_INVALID_FWD_DCCH_MUX_OPT = 0x6A, |
| LMD_ERR_INVALID_MUX_PDU_TYPE = 0x6B, |
| LMD_ERR_CHNL_RATE_NOT_SUPPORT = 0x6C, |
| LMD_ERR_LOOPBACK_TABLE_DEPENDENCY_OUT_SYNC = 0x6D, |
| LMD_ERR_INVALID_LOOPBACK_MUX_PDU_TYPE = 0x6E, |
| LMD_INVALID_SVC_OPT_FOR_CONTROL = 0x6F, |
| LMD_ERR_UNABLE_SCHED_SRV_OPT_CONTROL_MSG = 0x70, |
| LMD_ERR_SVC_OPT_NOT_SUPPORTED = 0x71, |
| LMD_ERR_INVALID_REV_FCH_NUM_BITS = 0x72, |
| LMD_ERR_INVALID_LPM_ENTRIES = 0x73, |
| LMD_INVALID_FWD_FCH_NUM_BITS = 0x74, |
| LMD_INVALID_SVC_SRID_CONFIG = 0x75, |
| LMD_ERR_RLP_SRID_NOMATCH = 0x76, |
| LMD_ERR_RLP_SRID_DISC = 0x77, |
| /* FCH PT,SIG, SEC all in use MUXPDU1.*/ |
| LMD_ERR_REV_MUX1_ALL_INUSE = 0x78, |
| /* The FCH SEC and SIG in USE w/o PT */ |
| LMD_ERR_REV_FCHSEC_SIG_INUSE = 0x79, |
| LMD_ERR_REV_DCCHSEC_SIG_INUSE = 0x7A, |
| |
| LMD_ERR_REV_FCH_4_RLP = 0x7B, |
| LMD_ERR_REV_DCCH_4_RLP = 0x7C, |
| LMD_ERR_REV_FCH_DATA_MSG = 0x7D, |
| LMD_ERR_REV_DCCH_DATA_MSG = 0x7E, |
| LMD_ERR_REV_SCH_DATA_MSG = 0x7F, |
| LMD_ERR_FWD_SCH_MSG_EMPTY_QUEUE = 0x80, |
| LMD_ERR_REV_SCH_MSG_EMPTY_QUEUE = 0x81, |
| LMD_ERR_FWD_PHY_CHNL_TYPE_4_RLP = 0x82, |
| LMD_INVALID_SIGNAL_CANCELATION = 0x83, |
| LMD_ERR_TASK_NOT_CONNECTED = 0x84, |
| LMD_ERR_SRID_FOR_RSCH = 0x85, |
| LMD_ERR_RSCH_DATA_FROM_RLP = 0x86, |
| LMD_ERR_AUDIO_DISABLED = 0x87, |
| /* |
| * Voice Memo and Voice Recognition errs |
| */ |
| /* Record errs */ |
| LMD_ERR_RECORD_START_INVALID_DATATYPE = 0x90, |
| LMD_ERR_RECORD_START_INVALID_FOR_PRESENT_STATE = 0x91, |
| LMD_ERR_RECORD_START_INVALID_WHILE_ON_TRAFFIC_CH = 0x92, |
| LMD_ERR_RECORD_STOP_INVALID_FOR_PRESENT_STATE = 0x93, |
| LMD_ERR_RECORD_RECEIVED_ZERO_LEN_ENCODE_PACKET = 0x94, |
| LMD_ERR_RECORD_RECEIVED_INVALID_ENCODE_PACKET_MSGID = 0x95, |
| LMD_ERR_RECORD_EXPECTED_ENCODE_PACKET = 0x96, |
| LMD_ERR_RECORD_INVALID_DATATYPE_FROM_DSPV = 0x97, |
| LMD_ERR_RECORD_INVALID_RATE_FOR_SERVICE_OPTION_1 = 0x98, |
| LMD_ERR_RECORD_INVALID_RATE_FOR_SERVICE_OPTION_3 = 0x99, |
| LMD_ERR_RECORD_INVALID_RATE_FOR_SERVICE_OPTION_17 = 0x9A, |
| LMD_ERR_RECORD_INVALID_DATA_LEN_FROM_DSPV = 0x9B, |
| LMD_ERR_RECORD_INVALID_SRVC_OPT_DURING_LOOPBACK = 0x9C, |
| /* Playback errs */ |
| LMD_ERR_PLAYBACK_START_INVALID_FOR_PRESENT_STATE = 0xA0, |
| LMD_ERR_PLAYBACK_START_INVALID_WHILE_ON_TRAFFIC_CH = 0xA1, |
| LMD_ERR_PLAYBACK_STOP_INVALID_FOR_PRESENT_STATE = 0xA2, |
| LMD_ERR_PLAYBACK_INVALID_PACKET_RATE = 0xA3, |
| LMD_ERR_PLAYBACK_SERVICE_OPTION_MISMATCH = 0xA4, |
| /* Specific Conversation Record and Answering Machine Playback errs */ |
| LMD_ERR_CONV_RECORD_INVALID_NO_SPEECH_SRV_OPT = 0xA8, |
| LMD_ERR_ANSWER_PLAYBACK_WITH_NO_PACKETS = 0xA9, |
| /* General Record or Playback errs */ |
| LMD_ERR_INVALID_RECORD_OR_PLAYBACK_SPCH_SRV_OPT = 0xB0, |
| LMD_ERR_INVALID_RECORD_OR_PLAYBACK_MSG = 0xB1, |
| LMD_ERR_CANT_ENABLE_TIMER_FOR_RECORD_OR_PLAYBACK = 0xB2, |
| |
| #if 0 |
| /* under construction !*/ |
| /* under construction !*/ |
| /* under construction !*/ |
| /* under construction !*/ |
| /* under construction !*/ |
| /* under construction !*/ |
| /* under construction !*/ |
| /* under construction !*/ |
| /* under construction !*/ |
| #endif |
| |
| /* Markov */ |
| LMD_ERR_MARKOV_INVALID_ZN = 0x1100, |
| LMD_ERR_MARKOV_INVALID_RATEMODE = 0x1101, |
| LMD_ERR_MARKOV_INVALID_MULTIPLEXOPTION = 0x1102, |
| LMD_ERR_MARKOV_INVALID_PACKETTYPE = 0x1103, |
| LMD_ERR_MARKOV_INVALID_PACKETRATE = 0x1104, |
| LMD_ERR_MARKOV_INVALID_PACKETCAT = 0x1105, |
| LMD_ERR_MARKOV_INVALID_COUNTERID = 0x1106, |
| LMD_ERR_MARKOV_INVALID_CTRLRECTYPE = 0x1107, |
| |
| /* TDSO */ |
| LMD_ERR_TDSO_INVALID_PACKETCAT = 0x1120, |
| LMD_ERR_TDSO_INVALID_COUNTERID = 0x1121, |
| LMD_ERR_TDSO_INVALID_CONNECT_TRAFTYPE = 0x1122, |
| LMD_ERR_TDSO_INVALID_PACKETTYPE = 0x1123, |
| LMD_ERR_TDSO_INVALID_MUXOPTION = 0x1124, |
| LMD_ERR_TDSO_INVALID_Nx_BUFSIZE = 0x1125, |
| LMD_ERR_TDSO_INVALID_FWD_RC = 0x1126, |
| LMD_ERR_TDSO_INVALID_REV_RC = 0x1127, |
| LMD_ERR_TDSO_INVALID_PROBABILITY = 0x1128, |
| LMD_ERR_TDSO_INVALID_CONNECT_CHANNELID = 0x1129, |
| LMD_ERR_TDSO_INVALID_PROCESS_CHANNELID = 0x112A, |
| LMD_ERR_TDSO_INVALID_DISCONN_CHANNELID = 0x112B, |
| LMD_ERR_TDSO_INVALID_CTRLRECTYPE = 0x112C, |
| LMD_ERR_TDSO_BUFSIZE_NOT_MULTIPLE_OF_3 = 0x112D, |
| |
| /* error codes from the secondary task */ |
| LMD_ERR_S_INVALID_SIG_ID = 0x1140, |
| LMD_ERR_S_MAILBOX_EMPTY = 0x1141, |
| LMD_ERR_S_INVALID_MSG_ID = 0x1142, |
| |
| /* Resource Control */ |
| LMD_DCCH_NOT_VALID_PHYRES = 0x1150, |
| LMD_FCH_NOT_VALID_PHYRES = 0x1151, |
| LMD_RES_ALLOC_DEALLOC_CONFLIC = 0x1152, |
| |
| /* MuxPDU FIQ ISR Error Codes */ |
| LMD_ERR_MPISR_INVALID_NUM_PDUS = 0x1160, |
| LMD_ERR_MP_OUT_OF_RAM_BUFFERS = 0x1161, |
| LMD_ERR_MPISR_FRAME_QUE_FULL = 0x1162, |
| LMD_ERR_MPISR_INVALID_PDU_LEN_ZERO = 0x1163, |
| LMD_ERR_MPISR_BAD_CRC = 0x1164, |
| LMD_ERR_MP_FRAME_FREE_BAD_PTR = 0x1165, |
| LMD_ERR_MP_FRAME_FREE_NOT_ALLOCATED = 0x1166, |
| |
| /* MuxPDU RAM Buffer Access Error Codes */ |
| LMD_ERR_MPMEM_BUF_FREE_BAD_PTR = 0x1170, |
| LMD_ERR_MPMEM_BUF_FREE_NOT_ALLOCATED = 0x1171, |
| LMD_ERR_MPMEM_BUF_FREE_CORRUPTED = 0x1172, |
| LMD_ERR_MPMEM_BUF_GET_BAD_SIZE = 0x1173, |
| LMD_ERR_MPMEM_BUF_GET_OUT_OF_BUFFERS = 0x1174, |
| |
| /* MuxPDU Test Error Codes */ |
| LMD_ERR_MPTEST_FRAME_DATA_MISMATCH = 0x1180, |
| LMD_ERR_MPTEST_INVALID_NUM_PDUS_RCVD = 0x1181, |
| LMD_ERR_REV_DATA_MSG_QUEUED = 0x1182, |
| LMD_ERR_INVALID_INDEX_TO_CHIND_TABLE = 0x1183, |
| |
| /* 1X PC Voice stream Error Codes */ |
| LMD_ERR_VSTRM_INVALID_MSG_RCVD = 0x1190, |
| LMD_ERR_VSTRM_FWD_PKT_DISCARD = 0x1191, |
| LMD_ERR_VSTRM_CANT_ENABLE_TIMER = 0x1192, |
| |
| /* Last entry place holder */ |
| LMD_ERR_MAX_NUM_ERR_CODES |
| } LmdErrorCodeT; |
| |
| |
| /***************************************************************************** |
| * $Log: lmderr.h $ |
| * Revision 1.6 2005/03/31 16:42:43 wfu |
| * FixCR5920: Add new MonFault id: Rev Data Msg queued. |
| * Revision 1.5 2004/10/20 18:30:15 vxnguyen |
| * Added/changed some MuxPDU-related error codes. |
| * Revision 1.4 2004/10/06 16:50:33 vxnguyen |
| * Added new MuxPDU ISR 'BAD CRC' error code. |
| * Revision 1.3 2004/07/16 14:13:54 vxnguyen |
| * Added 2 new MPMEM_BUF_GET error codes. |
| * Revision 1.2 2004/03/25 11:55:19 fpeng |
| * Updated from 6.0 CP 2.5.0 |
| * Revision 1.2 2003/10/21 15:45:23 wavis |
| * Added MuxPDU error codes. |
| * Revision 1.1 2003/05/12 15:31:49 fpeng |
| * Initial revision |
| * |
| * |
| * Revision 1.23 2003/03/13 16:17:33 wfu |
| * .Add new fault id: LMD_ERR_RSCH_DATA_FROM_RLP. |
| *****************************************************************************/ |
| |
| /***************************************************************************** |
| * End of File |
| *****************************************************************************/ |
| #endif |
| /**Log information: \main\Trophy\Trophy_ylxiao_href22033\1 2013-03-18 14:16:25 GMT ylxiao |
| ** HREF#22033, merge 4.6.0**/ |
| /**Log information: \main\Trophy\1 2013-03-19 05:20:53 GMT hzhang |
| ** HREF#22033 to merge 0.4.6 code from SD.**/ |
| |