yu.dong | c33b307 | 2024-08-21 23:14:49 -0700 | [diff] [blame] | 1 | /***************************************************************************** |
| 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) 2018 |
| 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 | * Filename: |
| 38 | * --------- |
| 39 | * mcf_enum.h |
| 40 | * |
| 41 | * Project: |
| 42 | * -------- |
| 43 | * UMOLYA |
| 44 | * |
| 45 | * Description: |
| 46 | * ------------ |
| 47 | * MD Configuration Framework enumeration definition. |
| 48 | * |
| 49 | * Author: |
| 50 | * ------- |
| 51 | * ------- |
| 52 | * |
| 53 | *============================================================================== |
| 54 | * HISTORY |
| 55 | * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 56 | *------------------------------------------------------------------------------ |
| 57 | * removed! |
| 58 | * |
| 59 | * removed! |
| 60 | * removed! |
| 61 | * removed! |
| 62 | * removed! |
| 63 | * |
| 64 | * removed! |
| 65 | * removed! |
| 66 | * removed! |
| 67 | * removed! |
| 68 | * |
| 69 | * removed! |
| 70 | * removed! |
| 71 | * removed! |
| 72 | * removed! |
| 73 | * |
| 74 | * removed! |
| 75 | * removed! |
| 76 | * removed! |
| 77 | * |
| 78 | * removed! |
| 79 | * removed! |
| 80 | * removed! |
| 81 | * |
| 82 | * removed! |
| 83 | * removed! |
| 84 | * removed! |
| 85 | * |
| 86 | * removed! |
| 87 | * removed! |
| 88 | * removed! |
| 89 | * |
| 90 | * removed! |
| 91 | * removed! |
| 92 | * removed! |
| 93 | * |
| 94 | * removed! |
| 95 | * removed! |
| 96 | * removed! |
| 97 | * |
| 98 | * removed! |
| 99 | * removed! |
| 100 | * removed! |
| 101 | * |
| 102 | * removed! |
| 103 | * removed! |
| 104 | * removed! |
| 105 | * |
| 106 | * removed! |
| 107 | * removed! |
| 108 | * removed! |
| 109 | * removed! |
| 110 | * |
| 111 | * removed! |
| 112 | * removed! |
| 113 | * removed! |
| 114 | * |
| 115 | * removed! |
| 116 | * removed! |
| 117 | * removed! |
| 118 | * |
| 119 | * removed! |
| 120 | * removed! |
| 121 | * removed! |
| 122 | * |
| 123 | * removed! |
| 124 | * removed! |
| 125 | * removed! |
| 126 | * |
| 127 | * removed! |
| 128 | * removed! |
| 129 | * removed! |
| 130 | * |
| 131 | * removed! |
| 132 | * removed! |
| 133 | * removed! |
| 134 | * |
| 135 | *------------------------------------------------------------------------------ |
| 136 | * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 137 | *============================================================================== |
| 138 | *******************************************************************************/ |
| 139 | #ifndef __MCF_ENUM_H |
| 140 | #define __MCF_ENUM_H |
| 141 | |
| 142 | /* Tag type */ |
| 143 | #define MCF_TLVOTA_TAG_OTHER 0 |
| 144 | #define MCF_TLVOTA_TAG_SBPID 1 |
| 145 | #define MCF_TLVOTA_TAG_ICCID 2 |
| 146 | |
| 147 | /* MCF Tool version, related to file structure */ |
| 148 | typedef enum { |
| 149 | MCF_TOOL_VERSION = 3, |
| 150 | } mcf_tool_version_info; |
| 151 | |
| 152 | /* MCF API return code */ |
| 153 | typedef enum _mcf_ota_result_e { |
| 154 | MCF_OTA_R_SUCCESS = 0, |
| 155 | MCF_OTA_R_MCF_NOT_SUPPORT = 1, |
| 156 | MCF_OTA_R_VERSION_NOT_MATCH = 2, |
| 157 | MCF_OTA_R_WRONG_BUFFER_SIZE = 3, |
| 158 | MCF_OTA_R_INVALID_PARAMETER = 4, |
| 159 | MCF_OTA_R_READ_NVRAM_FAIL = 5, |
| 160 | MCF_OTA_R_WRITE_NVRAM_FAIL = 6, |
| 161 | MCF_OTA_R_READ_OTA_FILE_FAIL = 7, |
| 162 | MCF_OTA_R_INVALID_SBP_TAG = 8, |
| 163 | MCF_OTA_R_INVALID_FILE = 9, |
| 164 | MCF_OTA_R_INVALID_ATTR = 10, |
| 165 | MCF_OTA_R_TAKE_READ_LOCK_FAIL = 11, |
| 166 | MCF_OTA_R_ALLOCATE_BUFFER_FAIL = 12, |
| 167 | MCF_OTA_R_ENCRYPTION_FAIL = 13, |
| 168 | MCF_OTA_R_DECRYPTION_FAIL = 14, |
| 169 | MCF_OTA_R_CHECKSUM_ERROR = 15, |
| 170 | MCF_OTA_R_WRITE_DISK_FAIL = 16, |
| 171 | MCF_OTA_R_READ_INI_FILE_FAIL = 17, |
| 172 | MCF_OTA_R_INVALID_INI_ITEM = 18, |
| 173 | MCF_OTA_R_WRITE_INI_FILE_FAIL = 19, |
| 174 | MCF_OTA_R_FILE_NOT_CHANGE = 20, |
| 175 | MCF_OTA_R_DIGEST_FAIL = 21, |
| 176 | |
| 177 | MCF_OTA_R_DSBP_FAIL = 50, |
| 178 | MCF_OTA_R_FAIL_MCF_DSBP_ONGOING = 51, |
| 179 | MCF_OTA_R_MAX, |
| 180 | } mcf_ota_result_e; |
| 181 | |
| 182 | /* MCF report URC type */ |
| 183 | typedef enum _mcf_l4c_report_type_e { |
| 184 | MCF_L4C_REPORT_DSBP_RESULT_OF_MCF_DSBP_ACTIVE_MODE = 0, |
| 185 | MCF_L4C_REPORT_MCF_DUMP_RESULT = 1, |
| 186 | MCF_L4C_REPORT_MCF_DUMP_RESULT_OF_AUTO_SELECT_BIN = 2, |
| 187 | MCF_L4C_REPORT_UPDATE_FILE_RESULT = 3, |
| 188 | MCF_L4C_REPORT_MAX, |
| 189 | } mcf_l4c_report_type_e; |
| 190 | |
| 191 | /* MCF trigger DSBP return code */ |
| 192 | typedef enum _mcf_trigger_dsbp_result_e { |
| 193 | MCF_TRIGGER_DSBP_R_SUCCESS = 0, |
| 194 | MCF_TRIGGER_DSBP_R_FAIL_MCF_DSBP_ONGOING = 1, |
| 195 | MCF_TRIGGER_DSBP_R_FAIL_SIM_SWITCH_ONGOING = 2, |
| 196 | MCF_TRIGGER_DSBP_R_FAIL_ONGOING_CALL_OR_ECBM = 3, |
| 197 | MCF_TRIGGER_DSBP_R_FAIL_NO_SIM = 4, |
| 198 | MCF_TRIGGER_DSBP_R_FAIL_NOT_MODE2 = 5, |
| 199 | MCF_TRIGGER_DSBP_R_FAIL_SIM_ERROR = 6, |
| 200 | MCF_TRIGGER_DSBP_R_FAIL_UNKNOWN = 7, |
| 201 | MCF_TRIGGER_DSBP_R_FAIL_MAX_DATA_RETRY_TIME = 8, |
| 202 | MCF_TRIGGER_DSBP_R_MAX, |
| 203 | } mcf_trigger_dsbp_result_e; |
| 204 | |
| 205 | /* MCF dump related definition */ |
| 206 | #define MCF_DUMP_NTFY_TYPE_OTA 1<<0 |
| 207 | #define MCF_DUMP_NTFY_TYPE_OTA_BY_OP 1<<1 |
| 208 | |
| 209 | typedef enum _mcf_ota_type_enum { |
| 210 | MCF_TYPE_OTA = 0, |
| 211 | MCF_TYPE_OTA_BY_OP = 1, |
| 212 | } mcf_ota_type_enum; |
| 213 | |
| 214 | typedef enum _mcf_l4c_report_result_e { |
| 215 | MCF_L4C_REPORT_R_SUCCESS = 0, |
| 216 | MCF_L4C_REPORT_R_RESET_MD = 1, |
| 217 | MCF_L4C_REPORT_R_AP_RETRY = 2, |
| 218 | MCF_L4C_REPORT_R_MAX, |
| 219 | } mcf_l4c_report_result_e ; |
| 220 | |
| 221 | typedef enum { |
| 222 | MCF_TYPE_INTEGER, // int8/16/32, char |
| 223 | MCF_TYPE_STRING, // char * |
| 224 | MCF_TYPE_MAX = 0x7FFFFFFF, |
| 225 | }MCF_TYPE_ENUM; |
| 226 | |
| 227 | typedef enum _mcf_utfwk_ota_type_enum { |
| 228 | MCF_UTFWK_ATTR_OTA = 0, |
| 229 | MCF_UTFWK_ATTR_OTA_BY_OP = 1, |
| 230 | } mcf_ota_utfwk_type_enum; |
| 231 | |
| 232 | typedef enum _mcf_utfwk_ota_input_op_enum { |
| 233 | MCF_UTFWK_OTA_FILE_PATH = 0, |
| 234 | MCF_UTFWK_OTA_VARIABLE_CONFIG = 1, |
| 235 | } mcf_utfwk_ota_input_op_enum; |
| 236 | |
| 237 | typedef enum _mcf_utfwk_dump_type_enum { |
| 238 | MCF_UTFWK_DUMP_LID = 0, |
| 239 | MCF_UTFWK_DUMP_ONE_VARIABLE = 1, |
| 240 | } mcf_utfwk_dump_type_enum; |
| 241 | |
| 242 | #endif /* __MCF_ENUM_H */ |
| 243 | |