blob: d5922156e85188d4d7076d261f8d1d3bc33d3964 [file] [log] [blame]
/*****************************************************************************
* 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) 2005
*
* 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:
* ---------
* sim_nvram_def.c
*
* Project:
* --------
* MAUI
*
* Description:
* ------------
* This file is intends for NVRAM security customization.
*
* 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!
* 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 NVRAM_NOT_PRESENT
#include "kal_general_types.h"
#ifdef NVRAM_AUTO_GEN
#include "nvram_auto_gen.h"
#endif
#include "nvram_enums.h"
#include "nvram_defs.h"
/*
* User Headers & Default value
*/
#include "sim_nvram_def.h"
#include "sim_nvram_editor.h"
// Default Values
kal_uint8 sim_term_profile[MAX_SIM_PROFILE_LEN] =
{ /* develope value */
#ifdef __DATA_CARD_ONLY__
0x37 /* 1st */
#else
0xF7
#endif
#if !defined(__MODEM_CARD__) && !defined(__SAT_AP_NOT_SUPPORT__)
| 0x08 /*MENU SELECTION*/
#endif
,
#ifdef __DATA_CARD_ONLY__
0x01 /* 2nd */
#else
0x17
#endif
#ifndef __DISABLE_SMS_CONTROLLED_BY_SIM__
| 0x08 //MO short message control support
#endif
#if !defined(__MODEM_CARD__) && !defined(__SAT_AP_NOT_SUPPORT__)
| 0xE0
#endif
,
0xE8 /* 3rd */
#if !defined(__MODEM_CARD__) && !defined(__SAT_AP_NOT_SUPPORT__)
| 0x17
#endif
,
#ifdef __DATA_CARD_ONLY__
0x82 /* 4th */ // Send SS and Send USSD disabled for DATA CARD
#else
0x8E
#endif
#if !defined(__SAT_LOWCOST_NW_DISABLE__)
| 0x40 // 0x40: PROVIDE LOCAL INFORMATION (MCC, MNC, LAV, Cell ID, IMEI)
#endif
#if !defined(__MODEM_CARD__) && !defined(__SAT_AP_NOT_SUPPORT__)
| 0x21
#ifndef __DISABLE_CSCALL__
| 0x10 // 0x10: Proactive SIM: SET UP CALL
#endif
#endif
,
0x01 /*5th*/ //Proactive UICC: SET UP EVENT LIST
#if !defined(__MODEM_CARD__) && !defined(__SAT_AP_NOT_SUPPORT__)
#ifndef __SAT_LOWCOST_UI_DISABLE__
| 0x60 // 0x20: Event: User activity
// 0x40: Event: Idle screen available
#endif
#ifndef __DATA_CARD_ONLY__
#ifndef __SAT_LOWCOST_NW_DISABLE__
| 0x0E // 0x02: Event: MT call
// 0x04: Event: Call connected
// 0x08: Event: Call disconnected
#endif
#endif
#endif
#ifndef __SAT_LOWCOST_NW_DISABLE__
| 0x10 // 0x10: Event: Location status
#endif
,
0x90 /* 6th */ //0x10: Event: Access Technology Change
#if !defined(__MODEM_CARD__) && !defined(__SAT_AP_NOT_SUPPORT__)
#if !defined(__SAT_LOWCOST_UI_DISABLE__)
| 0x01 // Event: Language selection
#endif
#ifndef __TC10__
#if defined(__SATCC__)
| 0x02 // Event: Browser Termination
#endif
#endif
#endif /* __MODEM_CARD */
#if defined(__SATCE__)
| 0x0C // 0x04: Event: Data available
// 0x08: Event: Channel status
#endif
,
0x00, /* 7th */
0x87 /* 8th */
#if !defined(__MODEM_CARD__) && !defined(__SAT_AP_NOT_SUPPORT__)
| 0x58
#endif
#ifdef __SATCB__
| 0x20 // RUN AT COMMAND (i.e. class "b" is supported)
#endif
,
0x04 /* 9th */ // 0x04: PROVIDE LOCAL INFORMATION (NMR)
#if !defined(__MODEM_CARD__) && !defined(__SAT_AP_NOT_SUPPORT__)
#ifdef __DATA_CARD_ONLY__
| 0x01
#else
| 0x03 // 0x01: Sustained DISPLAY TEXT
// 0x02: SEND DTMF
#endif
#ifndef __DATA_CARD_ONLY__
#if !defined(__SAT_LOWCOST_NW_DISABLE__)
| 0x08 // 0x08: PROVIDE LOCAL INFORMATION (language)
#endif
#endif
#if !defined(__SAT_LOWCOST_UI_DISABLE__)
| 0x20 // 0x20: LANGUAGE NOTIFICATION
#endif
#if defined(__SATCC__)
| 0x40 // 0x40: LAUNCH BROWSER
#endif
#endif /* __MODEM_CARD */
#if !defined(__SAT_LOWCOST_NW_DISABLE__)
| 0x10 // 0x10: PROVIDE LOCAL INFORMATION (Timing Advance)
#endif
#if !defined(__SAT_LOWCOST_NW_DISABLE__)
| 0x80 // 0x80: PROVIDE LOCAL INFORMATION (Access Technology)
#endif
,
0x00, /* 10th *//* No other Softkeys supported */
0x00, /* 11th */
0x00 /* 12th */
#ifdef __SATCE__
| 0x1F
#endif
,
#ifdef __TC10__
0x22
#else
0x01 /* 13th */ // 0x01 CSD supported by ME
#ifdef __SATCE__
#ifdef __SIM_BIP_TP_DISABLE_HSDPA_GPRS__
| 0xE0
#else
| 0xE2
#endif
#endif
#endif
,
0x00 /* 14th */
#if !defined(__MODEM_CARD__) && !defined(__SAT_AP_NOT_SUPPORT__)
| 0x08
#else
| 0x60
#endif
,
0x00 /* 15th */
#if !defined(__MODEM_CARD__) && !defined(__SAT_AP_NOT_SUPPORT__)
| 0x11
#endif
,
0x00 /* 16th */
#if !defined(__MODEM_CARD__) && !defined(__SAT_AP_NOT_SUPPORT__)
| 0x06
#endif
,
#ifdef __SIM_BIP_TP_DISABLE_HSDPA_GPRS__
0x00
#else
0x80 /* 17th */
#endif
#ifdef __LTE_RAT__
| 0x40 //0x40: E-UTRAN (i.e. if class "e" is supported)
#endif
#ifdef __TC10__
#ifdef __SATCE__
| 0x03
#endif
#else
#ifdef __SATCE__
#ifdef __DATA_CARD_ONLY__
| 0x03
#else
| 0x07
#endif
#endif
#endif
,
#ifdef __TC10__
0xEB, /* 18th */ /*DISPLAY text , GET INKEY variable timeout support */
#else
0xC0, /* 18th */ /* MAUI_02883701 GET INKEY HELP */
#endif
0x00, /* 19th */
0x00, /* 20th */
0x00, /* 21th */
0x00, /* 22th */
0x40, /* 23th */
0x00, /* 24th */
0x00 /* 25th */
#ifndef __DATA_CARD_ONLY__
#ifndef __TC10__
#if !defined(__MODEM_CARD__) && !defined(__SAT_AP_NOT_SUPPORT__) && defined(__SATCC__)
| 0x01 // 0x01: Event browsing status
#endif
#endif
#endif
| 0x10 // 0x10: Event Network Rejection
#ifdef __LTE_RAT__
| 0x40 // 0x40: Event: E-UTRAN support in Event Network Rejection
#endif
#if defined(__SATCM__)
| 0x20 // 0x20: HCI connectivity event (if class "m" is supported)
#endif
,
0x00 /* 26th */
#if defined(__SATCR__)
| 0x02 /* Event: Contactless state request */
#endif
,
0x00, /* 27th */
0x00, /* 28th */
0x00, /* 29th */
0x00 /* 30th */
#if defined(__REL7__)
| 0x08 /* Steering of Roaming" REFRESH support */
#endif
#if defined(__SATCL__)
| 0x10 /* Proactive UICC: ACTIVATE (i.e class "l" is supported) */
#endif
,
0x00 /* 31th */
#if defined(__SATCR__)
| 0x01 /* Proactive UICC: Contactless State Changed */
#endif
#if defined(__IMS_SUPPORT__)
// | 0x20 /* Incoming IMS Data event */
// | 0x40 /* IMS Registration event */
#endif
,
0x00 /* 32th */
#if defined(__IMS_SUPPORT__)
// | 0x01 /* IMS support*/
#endif
// | 0x02 /* Support of PROVIDE LOCATION INFORMATION, H(e)NB IP address */
// | 0x04 /* Support of PROVIDE LOCATION INFORMATION, H(e)NB surrounding macrocells */
// | 0x08 /* Launch parameters supported for OPEN CHANNEL in Terminal Server Mode */
// | 0x10 /* Direct communication channel supported for OPEN CHANNEL in Terminal Server Mode */
// | 0x20 /* Proactive UICC: Security for Profile Container, Envelope Container, COMMAND CONTAINER and ENCAPSULATED SESSION CONTROL */
// | 0x40 /* CAT service list for eCAT client */
| 0x80 /* Support of refresh enforcement policy */
,
0x00 /* 33th */
#if defined(__SATCE__) && defined(__SATCAA__)
| 0x01 /* Support of DNS server address request for OPEN CHANNEL related to packet data service bearer */
#endif
#if defined(__SATCE__) && defined(__SATCZ__)
| 0x02 /* Support of Network Access Name reuse indication for CLOSE CHANNEL related to packet data service bearer */
#endif
// | 0x04 /* Event: Poll Interval Negotiation */
// | 0x08 /* ProSe usage information reporting */
// | 0x10 /* Proactive UICC: PROVIDE LOCAL INFORMATION (Supported Radio Access Technologies) */
// | 0x20 /* Event: WLAN Access status (if class "e" is supported) */
// | 0x40 /* WLAN bearer support (if class "e" is supported) */
// | 0x80 /* Proactive UICC: PROVIDE LOCAL INFORMATION (WLAN identifier of the current WLAN connection) */
,
0x00 /* 34th */
// | 0x01 /* URI support for SEND SHORT MESSAGE */
#if defined(__IMS_SUPPORT__) && !defined(__MODEM_CARD__) && !defined(__SAT_AP_NOT_SUPPORT__)
| 0x02 /* IMS URI supported for SET UP CALL */
#endif
// | 0x04 /* Media Type "Voice" supported for SET UP CALL and Call Control by USIM */
// | 0x08 /* Media Type "Video" supported for SET UP CALL and Call Control by USIM */
// | 0x10 /* Proactive UICC: PROVIDE LOCAL INFORMATION (E-UTRAN Timing Advance Information) */
// | 0x20 /* REFRESH with "eUICC Profile State Change" mode */
// | 0x40 /* Extended Rejection Cause Code in Event: Network Rejection for E-UTRAN */
// | 0x80 /* Proactive UICC: eUICC OPERATION */
,
0x00 /* 35th */
// | 0x01 /* Proactive UICC: GET INPUT (Variable Time out) */
| 0x02 /* Data Connection Status Change Event support - PDP Connection */
| 0x04 /* Data Connection Status Change Event support - PDN Connection */
// | 0x08 /* REFRESH with "Application Update" mode (i.e. class "af" is supported) */
// | 0x10 /* RFU */
// | 0x20 /* RFU */
// | 0x40 /* RFU */
// | 0x80 /* RFU */
,
0x00 /* 36th */
| 0x01 /* Data Connection Status Change Event support - PDU Connection */
| 0x02 /* Event: Network Rejection for NG-RAN */
// | 0x04 /* Non-IP Data Delivery support (if class "e" and class "ai" are supported) */
// | 0x08 /* RFU */
// | 0x10 /* RFU */
// | 0x20 /* RFU */
// | 0x40 /* RFU */
// | 0x80 /* RFU */
,
};
nvram_sim_restrict_card_type_object_struct restrict_card_type =
{
1, /* enable multiple SIM slots */
SIM_CARD_TYPE_15 /* modem default suported configuration */
};
#if defined(__ECALL_SUPPORT__) || defined(__NG_ECALL_SUPPORT__)
nvram_sim_ecall_mode_switch_object_struct default_ecall_mode =
{
SIM_ECALL_AND_NORMAL /* modem default ecall mode*/
};
#endif
// LID Declaration
ltable_entry_struct logical_data_item_table_sim[] =
{
{
NVRAM_EF_SIM_ASSERT_LID,
NVRAM_EF_SIM_ASSERT_TOTAL,
NVRAM_EF_SIM_ASSERT_SIZE,
NVRAM_NORMAL(NVRAM_EF_ZERO_DEFAULT),
NVRAM_CATEGORY_USER,
NVRAM_ATTR_RING,
"SM18",
VER(NVRAM_EF_SIM_ASSERT_LID)
},
{
NVRAM_EF_TEST_SIM_LID,
NVRAM_EF_TEST_SIM_TOTAL,
NVRAM_EF_TEST_SIM_SIZE,
NVRAM_NORMAL(NVRAM_EF_ZERO_DEFAULT),
NVRAM_CATEGORY_USER,
NVRAM_ATTR_AVERAGE,
"SM19",
VER(NVRAM_EF_TEST_SIM_LID)
},
{
NVRAM_EF_REGISTRATION_MODE_LID,
NVRAM_EF_REGISTRATION_MODE_TOTAL,
NVRAM_EF_REGISTRATION_MODE_SIZE,
NVRAM_NORMAL(NVRAM_EF_ZERO_DEFAULT),
NVRAM_CATEGORY_USER,
NVRAM_ATTR_AVERAGE,
"SM20",
VER(NVRAM_EF_REGISTRATION_MODE_LID)
},
{
NVRAM_EF_SIM_PROFILE_LID,
NVRAM_EF_SIM_PROFILE_TOTAL,
NVRAM_EF_SIM_PROFILE_SIZE,
NVRAM_NORMAL(sim_term_profile),
NVRAM_CATEGORY_USER,
NVRAM_ATTR_AVERAGE|NVRAM_ATTR_OTA_RESET|NVRAM_ATTR_MCF_OTA|NVRAM_ATTR_MCF_OTA_BY_OP,
"SM21",
VER(NVRAM_EF_SIM_PROFILE_LID)
},
{
NVRAM_EF_SIM_DISABLE_SLOT_BITMASK_LID,
NVRAM_EF_SIM_DISABLE_SLOT_BITMASK_TOTAL,
NVRAM_EF_SIM_DISABLE_SLOT_BITMASK_SIZE,
NVRAM_NORMAL(NVRAM_EF_ZERO_DEFAULT),
NVRAM_CATEGORY_USER,
NVRAM_ATTR_AVERAGE,
"SM22",
VER(NVRAM_EF_SIM_DISABLE_SLOT_BITMASK_LID)
},
{
NVRAM_EF_SIM_DISABLE_ICCID_LIST_LID,
NVRAM_EF_SIM_DISABLE_ICCID_LIST_TOTAL,
NVRAM_EF_SIM_DISABLE_ICCID_LIST_SIZE,
NVRAM_NORMAL(NVRAM_EF_FF_DEFAULT),
NVRAM_CATEGORY_USER,
NVRAM_ATTR_AVERAGE | NVRAM_ATTR_CONFIDENTIAL
#ifdef __NVRAM_BIND_TO_CHIP_CIPHER__
| NVRAM_ATTR_MSP
#endif
,
"SM23",
VER(NVRAM_EF_SIM_DISABLE_ICCID_LIST_LID)
},
#ifdef __FAKEID_SUPPORT__
{
NVRAM_EF_SIM_FAKE_IMSI_LID,
NVRAM_EF_FAKE_IMSI_TOTAL,
NVRAM_EF_FAKE_IMSI_SIZE,
NVRAM_NORMAL(NVRAM_EF_FF_DEFAULT),
NVRAM_CATEGORY_USER,
NVRAM_ATTR_AVERAGE,
"SM24",
VER(NVRAM_EF_SIM_FAKE_IMSI_LID),
},
#endif
#ifdef __SIM_TERMINAL_CAP__
{
NVRAM_EF_SIM_TERMINAL_CAPABILITY_LID,
NVRAM_EF_SIM_TERMINAL_CAPABILITY_TOTAL,
NVRAM_EF_SIM_TERMINAL_CAPABILITY_SIZE,
NVRAM_NORMAL(NVRAM_EF_ZERO_DEFAULT),
NVRAM_CATEGORY_USER,
NVRAM_ATTR_AVERAGE,
"SM25",
VER(NVRAM_EF_SIM_TERMINAL_CAPABILITY_LID)
},
#endif
#ifdef __SIM_RECOVERY_SWITCH__
{
NVRAM_EF_SIM_HOTSWAPOFF_RECOVEROFF_LID,
NVRAM_EF_SIM_HOTSWAPOFF_RECOVEROFF_TOTAL,
NVRAM_EF_SIM_HOTSWAPOFF_RECOVEROFF_SIZE,
NVRAM_NORMAL(NVRAM_EF_ZERO_DEFAULT),
NVRAM_CATEGORY_USER,
NVRAM_ATTR_AVERAGE,
"SM27",
VER(NVRAM_EF_SIM_HOTSWAPOFF_RECOVEROFF_LID)
},
#endif
{
NVRAM_EF_SIM_RESTRICT_CARD_TYPE_LID,
NVRAM_EF_SIM_RESTRICT_CARD_TYPE_TOTAL,
NVRAM_EF_SIM_RESTRICT_CARD_TYPE_SIZE,
NVRAM_NORMAL(&(restrict_card_type)),
NVRAM_CATEGORY_USER,
NVRAM_ATTR_AVERAGE,
"SM28",
VER(NVRAM_EF_SIM_RESTRICT_CARD_TYPE_LID)
},
#ifdef __FAKEID_SUPPORT__
{
NVRAM_EF_SIM_FAKE_GID1_LID,
NVRAM_EF_FAKE_GID1_TOTAL,
NVRAM_EF_FAKE_GID1_SIZE,
NVRAM_NORMAL(NVRAM_EF_FF_DEFAULT),
NVRAM_CATEGORY_USER,
NVRAM_ATTR_AVERAGE,
"SM00",
VER(NVRAM_EF_SIM_FAKE_GID1_LID),
},
#endif
#if defined(__ECALL_SUPPORT__) || defined(__NG_ECALL_SUPPORT__)
{
NVRAM_EF_SIM_ECALL_MODE_SWITCH_LID,
NVRAM_EF_SIM_ECALL_MODE_SWITCH_TOTAL,
NVRAM_EF_SIM_ECALL_MODE_SWITCH_SIZE,
NVRAM_NORMAL(&(default_ecall_mode)),
NVRAM_CATEGORY_USER,
NVRAM_ATTR_AVERAGE|NVRAM_ATTR_OTA_RESET,
"SM29",
VER(NVRAM_EF_SIM_ECALL_MODE_SWITCH_LID)
},
#endif
NVRAM_LTABLE_END
};
#endif /* NVRAM_NOT_PRESENT */