| /***************************************************************************** |
| * 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) 2018 |
| * |
| * 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). |
| * |
| *****************************************************************************/ |
| |
| /******************************************************************************* |
| * Filename: |
| * --------- |
| * mcf_enum.h |
| * |
| * Project: |
| * -------- |
| * UMOLYA |
| * |
| * Description: |
| * ------------ |
| * MD Configuration Framework enumeration definition. |
| * |
| * Author: |
| * ------- |
| * ------- |
| * |
| *============================================================================== |
| * HISTORY |
| * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| *------------------------------------------------------------------------------ |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| *------------------------------------------------------------------------------ |
| * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| *============================================================================== |
| *******************************************************************************/ |
| #ifndef __MCF_ENUM_H |
| #define __MCF_ENUM_H |
| |
| /* Tag type */ |
| #define MCF_TLVOTA_TAG_OTHER 0 |
| #define MCF_TLVOTA_TAG_SBPID 1 |
| #define MCF_TLVOTA_TAG_ICCID 2 |
| |
| /* MCF Tool version, related to file structure */ |
| typedef enum { |
| MCF_TOOL_VERSION = 3, |
| } mcf_tool_version_info; |
| |
| /* MCF API return code */ |
| typedef enum _mcf_ota_result_e { |
| MCF_OTA_R_SUCCESS = 0, |
| MCF_OTA_R_MCF_NOT_SUPPORT = 1, |
| MCF_OTA_R_VERSION_NOT_MATCH = 2, |
| MCF_OTA_R_WRONG_BUFFER_SIZE = 3, |
| MCF_OTA_R_INVALID_PARAMETER = 4, |
| MCF_OTA_R_READ_NVRAM_FAIL = 5, |
| MCF_OTA_R_WRITE_NVRAM_FAIL = 6, |
| MCF_OTA_R_READ_OTA_FILE_FAIL = 7, |
| MCF_OTA_R_INVALID_SBP_TAG = 8, |
| MCF_OTA_R_INVALID_FILE = 9, |
| MCF_OTA_R_INVALID_ATTR = 10, |
| MCF_OTA_R_TAKE_READ_LOCK_FAIL = 11, |
| MCF_OTA_R_ALLOCATE_BUFFER_FAIL = 12, |
| MCF_OTA_R_ENCRYPTION_FAIL = 13, |
| MCF_OTA_R_DECRYPTION_FAIL = 14, |
| MCF_OTA_R_CHECKSUM_ERROR = 15, |
| MCF_OTA_R_WRITE_DISK_FAIL = 16, |
| MCF_OTA_R_READ_INI_FILE_FAIL = 17, |
| MCF_OTA_R_INVALID_INI_ITEM = 18, |
| MCF_OTA_R_WRITE_INI_FILE_FAIL = 19, |
| MCF_OTA_R_FILE_NOT_CHANGE = 20, |
| MCF_OTA_R_DIGEST_FAIL = 21, |
| |
| MCF_OTA_R_DSBP_FAIL = 50, |
| MCF_OTA_R_FAIL_MCF_DSBP_ONGOING = 51, |
| MCF_OTA_R_MAX, |
| } mcf_ota_result_e; |
| |
| /* MCF report URC type */ |
| typedef enum _mcf_l4c_report_type_e { |
| MCF_L4C_REPORT_DSBP_RESULT_OF_MCF_DSBP_ACTIVE_MODE = 0, |
| MCF_L4C_REPORT_MCF_DUMP_RESULT = 1, |
| MCF_L4C_REPORT_MCF_DUMP_RESULT_OF_AUTO_SELECT_BIN = 2, |
| MCF_L4C_REPORT_UPDATE_FILE_RESULT = 3, |
| MCF_L4C_REPORT_MAX, |
| } mcf_l4c_report_type_e; |
| |
| /* MCF trigger DSBP return code */ |
| typedef enum _mcf_trigger_dsbp_result_e { |
| MCF_TRIGGER_DSBP_R_SUCCESS = 0, |
| MCF_TRIGGER_DSBP_R_FAIL_MCF_DSBP_ONGOING = 1, |
| MCF_TRIGGER_DSBP_R_FAIL_SIM_SWITCH_ONGOING = 2, |
| MCF_TRIGGER_DSBP_R_FAIL_ONGOING_CALL_OR_ECBM = 3, |
| MCF_TRIGGER_DSBP_R_FAIL_NO_SIM = 4, |
| MCF_TRIGGER_DSBP_R_FAIL_NOT_MODE2 = 5, |
| MCF_TRIGGER_DSBP_R_FAIL_SIM_ERROR = 6, |
| MCF_TRIGGER_DSBP_R_FAIL_UNKNOWN = 7, |
| MCF_TRIGGER_DSBP_R_FAIL_MAX_DATA_RETRY_TIME = 8, |
| MCF_TRIGGER_DSBP_R_MAX, |
| } mcf_trigger_dsbp_result_e; |
| |
| /* MCF dump related definition */ |
| #define MCF_DUMP_NTFY_TYPE_OTA 1<<0 |
| #define MCF_DUMP_NTFY_TYPE_OTA_BY_OP 1<<1 |
| |
| typedef enum _mcf_ota_type_enum { |
| MCF_TYPE_OTA = 0, |
| MCF_TYPE_OTA_BY_OP = 1, |
| } mcf_ota_type_enum; |
| |
| typedef enum _mcf_l4c_report_result_e { |
| MCF_L4C_REPORT_R_SUCCESS = 0, |
| MCF_L4C_REPORT_R_RESET_MD = 1, |
| MCF_L4C_REPORT_R_AP_RETRY = 2, |
| MCF_L4C_REPORT_R_MAX, |
| } mcf_l4c_report_result_e ; |
| |
| typedef enum { |
| MCF_TYPE_INTEGER, // int8/16/32, char |
| MCF_TYPE_STRING, // char * |
| MCF_TYPE_MAX = 0x7FFFFFFF, |
| }MCF_TYPE_ENUM; |
| |
| typedef enum _mcf_utfwk_ota_type_enum { |
| MCF_UTFWK_ATTR_OTA = 0, |
| MCF_UTFWK_ATTR_OTA_BY_OP = 1, |
| } mcf_ota_utfwk_type_enum; |
| |
| typedef enum _mcf_utfwk_ota_input_op_enum { |
| MCF_UTFWK_OTA_FILE_PATH = 0, |
| MCF_UTFWK_OTA_VARIABLE_CONFIG = 1, |
| } mcf_utfwk_ota_input_op_enum; |
| |
| typedef enum _mcf_utfwk_dump_type_enum { |
| MCF_UTFWK_DUMP_LID = 0, |
| MCF_UTFWK_DUMP_ONE_VARIABLE = 1, |
| } mcf_utfwk_dump_type_enum; |
| |
| #endif /* __MCF_ENUM_H */ |
| |