[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/protocol/interface/l4misc/l4c2smsal_struct.h b/mcu/protocol/interface/l4misc/l4c2smsal_struct.h
new file mode 100644
index 0000000..d8610eb
--- /dev/null
+++ b/mcu/protocol/interface/l4misc/l4c2smsal_struct.h
@@ -0,0 +1,1242 @@
+/*****************************************************************************
+* 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:
+ * ---------
+ * l4c2smsal_struct.h
+ *
+ * Project:
+ * --------
+ * MAUI
+ *
+ * Description:
+ * ------------
+ *
+ * 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!
+ * 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!!
+ *============================================================================
+ ****************************************************************************/
+
+/********************************************************************************
+* Copyright Statement:
+* --------------------
+*
+* This product has been developed using a protocol stack
+* developed by Sasken Communication Technologies Limited.
+*
+********************************************************************************/
+
+
+/*******************************************************************************
+* 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) 2002
+*
+*******************************************************************************
+ * FILENAME : l4c2smsal_struct.h
+ * SYNOPSIS : Functions for encoding/decoding.
+ *
+ * R E V I S I O N H I S T O R Y
+ *
+ */
+#ifndef _L4C2SMSAL_STRUCT_H
+#define _L4C2SMSAL_STRUCT_H
+
+#include "ps_public_struct.h"
+//#include "l4c_aux_struct.h"
+//#include "kal_non_specific_general_types.h"
+#include "kal_general_types.h"
+#include "kal_public_defs.h"
+#include "irat_common_enums.h"
+#include "l3_inc_enums.h"
+#include "smsal_l4c_enum.h"
+
+
+typedef struct
+{
+ kal_uint8 fo;
+ kal_uint8 pid;
+ kal_uint8 dcs;
+ kal_uint8 ori_dcs;
+
+ kal_uint8 vp_format;
+ kal_uint8 vp;
+
+ kal_uint16 no_msg_data;
+ l4_addr_bcd_struct sca;
+ l4_addr_bcd_struct da;
+
+} smsal_submit_msg_hdr_struct;
+/* to replace smsal_submit_msg_struct */
+
+typedef struct
+{
+ kal_uint8 fo;
+ kal_uint8 pid;
+ kal_uint8 dcs;
+ kal_uint8 ori_dcs;
+
+ kal_uint8 pading;
+ kal_uint8 scts[7];
+
+ kal_uint16 no_msg_data;
+ l4_addr_bcd_struct sca;
+ l4_addr_bcd_struct oa;
+
+} smsal_deliver_msg_hdr_struct;
+/* to replace smsal_deliver_msg_struct */
+
+typedef struct
+{
+ kal_uint8 fo;
+ kal_uint8 pid;
+ kal_uint8 dcs;
+ kal_uint8 ori_dcs;
+
+ kal_uint8 mr;
+ kal_uint8 scts[7];
+
+ kal_uint16 no_msg_data;
+ l4_addr_bcd_struct ra;
+ kal_uint8 dt[7];
+ kal_uint8 st;
+
+} smsal_status_report_msg_hdr_struct;
+/* to replace smsal_status_report_msg_struct; */
+
+typedef struct
+{
+ kal_uint8 fo;
+ kal_uint8 ct;
+ kal_uint8 mn;
+ kal_uint8 pid;
+ kal_uint16 no_msg_data;
+ l4_addr_bcd_struct da;
+} smsal_command_msg_hdr_struct;
+/* to replace smsal_command_msg_struct; */
+
+typedef struct
+{
+ kal_uint8 profile_no_tag;
+ kal_uint8 profile_no;
+ kal_uint16 para_ind;
+ kal_uint8 pid;
+ kal_uint8 dcs;
+ kal_uint8 vp;
+ kal_uint8 udhi;
+ kal_uint8 tp_srr;
+ kal_uint8 tp_rp;
+ kal_uint8 da_tag;
+ l4_addr_bcd_struct da;
+ l4_addr_bcd_struct sc_addr;
+} smsal_send_msg_req_hdr_struct;
+/* to replace smsal_send_msg_req_struct */
+
+typedef struct
+{
+ kal_uint16 para_ind;
+ kal_uint8 tp_mms;
+ kal_uint8 tp_rp;
+ kal_uint8 tp_udhi;
+ kal_uint8 tp_sri;
+
+ kal_uint8 pid;
+ kal_uint8 dcs;
+ kal_uint8 tp_scts[7];
+ l4_addr_bcd_struct oa;
+ l4_addr_bcd_struct sc_addr;
+} smsal_receive_msg_hdr_struct;
+
+typedef union {
+ smsal_deliver_msg_hdr_struct deliver;
+ smsal_submit_msg_hdr_struct submit;
+ smsal_status_report_msg_hdr_struct status_rep;
+} smsal_header_info_union;
+
+typedef struct {
+ kal_uint8 mt; /* MT Service Mode*/
+ kal_uint8 mo; /* MO Service Mode*/
+ kal_uint8 bm; /* Broadcast Message Service Mode*/
+} smsal_service_mode_struct;
+
+typedef struct {
+ kal_uint8 mode; /* Buffering Mode*/
+ kal_uint8 mt; /* MT Message Route Mode*/
+ kal_uint8 ds; /* Status Report Route Mode*/
+ kal_uint8 bm; /* Broadcast Message Route Mode*/
+} smsal_mt_msg_route_struct;
+
+typedef struct {
+ kal_uint8 mem1; /* Storage type for Memory1*/
+ kal_uint8 mem2; /* Storage type for Memory2*/
+ kal_uint8 mem3; /* Storage type for Memory3*/
+} smsal_select_mem_struct;
+
+typedef struct {
+ l4_name_struct name;
+ l4_addr_bcd_struct addr;
+ kal_uint8 capability_id;
+ kal_uint8 extension_id;
+} smsal_mailbox_addr_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 src_id; /* Source Code*/
+ kal_uint8 is_sim_change; /* TRUE: if last IMSI changed */
+ kal_uint8 init_type;
+} l4csmsal_init_req_struct;
+
+typedef l4csmsal_init_req_struct l4csmsal_init_me_sms_req_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+} l4csmsal_de_init_req_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+
+ kal_uint8 src_id; /* Source Code*/
+ kal_uint8 req_type; /* Request Type*/
+ kal_uint8 status; /* Status*/
+ kal_uint8 change_status; /* change status*/
+ kal_uint16 index; /* Message Index*/
+} l4csmsal_read_req_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint8 dest_no; /* Specify set target, profile_no or line_no*/
+ kal_uint16 para_ind; /* Specify which parameters shall be set*/
+ kal_uint8 fo;
+ kal_uint8 support_concat;
+ kal_uint8 direct_display;
+ kal_uint8 bearer_serivce;
+ smsal_select_mem_struct prefer_mem;
+ smsal_mailbox_addr_struct mailbox_addr;
+ kal_uint8 vp;
+ kal_uint8 pid;
+ kal_uint8 dcs;
+ l4_addr_bcd_struct sca;
+ l4_name_struct profile_name;
+ kal_uint8 cbch_req;
+ kal_bool is_all_language_on;
+} l4csmsal_set_parameter_req_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint8 profile_no; //if para_ind=SMSAL_PARA_SAVE_PROFILE, only this field is available. (For AT only)
+ kal_uint16 para_ind; /* Specify which parameters shall be set*/
+ kal_uint8 pid; //SMSAL_PARA_PID
+ kal_uint8 dcs; //SMSAL_PARA_DCS
+ kal_uint8 vp; //SMSAL_PARA_VP
+ l4_addr_bcd_struct sca; //SMSAL_PARA_SCA
+ l4_name_struct profile_name; //SMSAL_PARA_PROFILE_NAME
+} l4csmsal_set_profile_para_req_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint8 dest_no; /* index of mailbox list based on smsal_get_mailbox_addr */
+ kal_uint16 para_ind; /* Specify which parameters shall be set*/
+ kal_uint8 fo; //SMSAL_COM_PARA_FO
+ kal_uint8 bearer_serivce; //SMSAL_COM_PARA_BEARER
+ kal_uint8 status_report; //SMSAL_COM_STATUS_REP
+ kal_uint8 reply_path; //SMSAL_COM_REPLY_PATH
+ kal_uint8 cbch_req; //SMSAL_COM_CBCH_REQ
+ kal_uint8 is_all_language_on; //SMSAL_COM_PARA_ALL_CB_LANG
+ smsal_select_mem_struct prefer_mem; //SMSAL_COM_PARA_PREFER_MEM
+ smsal_mailbox_addr_struct mailbox_addr; //SMSAL_COM_PARA_MAILBOX_ADDR
+ kal_uint8 msp_no;
+ smsal_mbi_struct mbi;
+} l4csmsal_set_common_para_req_struct;
+
+typedef struct
+{
+ LOCAL_PARA_HDR
+
+ kal_uint8 src_id;
+ kal_uint8 line_no; /* message waiting line no */
+ kal_uint8 waiting_num; /* message waiting number */
+ kal_uint8 ind_type; /* message waiting type */
+}l4csmsal_set_msg_waiting_req_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+
+ kal_uint8 src_id;
+ kal_uint8 req_type;
+ kal_uint8 seq_num;
+ kal_uint8 fdn_check; /* true: FDN enable */
+ kal_uint8 mms_mode;
+ kal_uint16 reply_index;
+ kal_uint16 message_len; /* Length of Message*/
+ union {
+ smsal_send_msg_req_hdr_struct submit;
+ smsal_command_msg_hdr_struct command;
+ } msg_header;
+} l4csmsal_send_req_struct, l4csmsal_ims_send_req_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+
+ kal_uint8 src_id;
+ sms_addr_struct sc_addr; /* service centre address*/
+} l4csmsal_ims_sms_deliver_req_struct, l4csmsal_ims_sms_status_req_struct,l4csmsal_ims_recv_req_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+
+ kal_uint8 src_id;
+ kal_uint8 result; /* Result Code*/
+ kal_uint16 error_cause; /* Error Cause*/
+ kal_uint8 mr; /* Message reference*/
+ l4_addr_bcd_struct sc_addr;
+
+} l4csmsal_ims_send_cnf_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+
+ kal_uint8 src_id;
+ kal_uint8 result; /* Result Code*/
+ kal_uint16 error_cause; /* Error Cause*/
+
+} l4csmsal_ims_recv_cnf_struct, l4csmsal_ims_sms_deliver_cnf_struct, l4csmsal_ims_sms_status_cnf_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+
+ kal_uint8 src_id; /* identify background sending or else */
+} l4csmsal_ims_send_smma_req_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+
+ kal_uint8 mr; /* Message Reference*/
+ kal_uint8 src_id; /* identify background sending or else */
+} l4csmsal_ims_send_smma_cnf_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+
+ kal_uint8 smma; /* 0:abort, 1:send smma */
+} l4csmsal_ims_send_smma_ind_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+
+ kal_uint8 result; /* Result */
+} l4csmsal_ims_send_smma_result_req_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint8 seq_num;
+} l4csmsal_send_abort_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+
+ kal_uint8 src_id;
+ kal_uint8 seq_num;
+ kal_uint8 fdn_check; //true: FDN enable
+ kal_uint16 index;
+ kal_uint16 reply_index;
+ kal_uint8 da_tag; /* Indicate whether to use da as destination address*/
+ l4_addr_bcd_struct da; /* Destination Address*/
+ kal_uint8 profile_no_tag;
+ kal_uint8 profile_no;
+ #ifdef __IMS_SUPPORT__
+ sms_addr_struct sca;
+ kal_bool is_retry;
+ kal_uint8 msg_ref;
+ smsal_domain_enum domain;
+ #endif
+} l4csmsal_send_from_storage_req_struct, l4csmsal_ims_send_from_storage_req_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+
+ kal_uint8 src_id;
+ kal_uint8 status;
+ kal_uint8 scts[7];
+ kal_uint16 replace_index;
+ kal_uint16 message_len; /* Length of Message*/
+ union{
+ smsal_receive_msg_hdr_struct mt_sms_hdr;
+ smsal_send_msg_req_hdr_struct mo_sms_hdr;
+ }hdr;
+} l4csmsal_write_req_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint8 del_flag;
+ kal_uint16 index;
+ kal_uint8 msg_bitmap[480]; /* length is not final value */
+
+} l4csmsal_delete_req_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint8 seq_num;
+ kal_uint8 is_sms_packed_required;
+ l4_addr_bcd_struct sc_addr;
+ kal_uint8 tpdu_length;
+ kal_uint8 tpdu[175];
+} l4csmsal_sat_send_req_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint8 result; /* Result Code*/
+} l4csmsal_init_cnf_struct;
+
+typedef l4csmsal_init_cnf_struct l4csmsal_init_me_sms_cnf_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint8 result; /* Result Code*/
+} l4csmsal_de_init_cnf_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 line_no; /* Number of Line*/
+ kal_uint8 msp_no;
+ kal_uint8 waiting_num;
+ kal_uint8 ind_type;
+ kal_bool is_show_num;
+ kal_bool is_clear;
+ kal_bool is_from_storage;
+
+ kal_uint8 ext_indicator; // indicate how many "message waiting" follows
+ l4csmsal_msg_waiting_ind_ext_struct msg_waiting[5];
+} l4csmsal_msg_waiting_ind_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 dest; /* Destination Code*/
+ kal_uint8 storage_type;
+ kal_uint16 index; /* Message Index*/
+ kal_uint16 dest_port;
+ kal_uint16 src_port;
+ smsal_concat_struct concat_info; /* Concat. Info*/
+
+ l4_addr_bcd_struct oa; /* Originating Address */
+
+ kal_uint8 mti;
+ kal_uint8 scts[7];
+
+} l4csmsal_new_msg_index_ind_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+
+ kal_uint8 dest; /* Destination Code*/
+ kal_uint8 id; /* Id for distinguish CNMA*/
+ kal_uint8 mti; /* Message Type Identifier*/
+ kal_uint16 message_len; /* Length of Message*/
+} l4csmsal_new_msg_pdu_ind_struct, l4csmsal_ims_new_msg_pdu_ind_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+
+ kal_uint8 dest; /* Destination Code*/
+ kal_uint8 id; /* Id for distinguish CNMA*/
+ kal_uint16 index;
+ kal_uint8 mti; /* Message Type Identifier*/
+ kal_uint8 rmi_use_hex;
+ kal_uint8 display_type;
+ kal_uint8 storage_type;
+ kal_uint16 dest_port;
+ kal_uint16 src_port;
+ kal_uint16 message_len; /* Length of Message*/
+ smsal_concat_struct concat_info; /* Concat. Info*/
+ smsal_header_info_union msg_header;
+} l4csmsal_new_msg_text_ind_struct, l4csmsal_ims_new_msg_text_ind_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint8 result; /* Result Code*/
+ kal_uint16 error_cause; /* Error Cause*/
+ kal_uint8 status; /* Message Status*/
+ kal_uint8 new_status; /* For +CMGR and sync. to MMI */
+ kal_uint8 mti; /* Message Type Identifier*/
+ kal_uint8 storage_type;
+ kal_uint8 rmi_use_hex;
+ kal_uint16 index; /* For +CMGL*/
+ kal_uint16 next_index; /* Indicate the next index*/
+ kal_uint16 dest_port;
+ kal_uint16 src_port;
+ kal_uint8 scts[7];
+ kal_uint8 padding;
+ kal_uint16 message_len; /* Length of Message*/
+ smsal_concat_struct concat_info; /* Concat. Info*/
+ smsal_header_info_union msg_header;
+} l4csmsal_read_cnf_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint8 result; /* Result Code*/
+ kal_uint16 error_cause; /* Error Cause*/
+ kal_uint8 profile;
+} l4csmsal_set_parameter_cnf_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint8 result; /* Result Code*/
+ kal_uint16 error_cause; /* Error Cause*/
+ kal_uint8 profile;
+} l4csmsal_set_profile_para_cnf_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint8 result; /* Result Code*/
+ kal_uint16 error_cause; /* Error Cause*/
+ kal_uint8 profile;
+} l4csmsal_set_common_para_cnf_struct;
+
+typedef struct
+{
+ LOCAL_PARA_HDR
+
+ kal_bool result;
+ kal_uint16 cause;
+ kal_uint8 src_id;
+ kal_uint8 line_no; /* message waiting line no */
+ kal_uint8 waiting_num; /* message waiting number */
+ kal_uint8 ind_type; /* message waiting type */
+}l4csmsal_set_msg_waiting_cnf_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+
+ kal_uint8 src_id;
+ kal_uint8 result; /* Result Code*/
+ kal_uint16 error_cause; /* Error Cause*/
+ kal_uint8 mr; /* Message reference*/
+ kal_uint8 seq_num;
+ kal_uint8 scts[7];
+ smsal_concat_struct concat_info; /* Concat. Info*/
+
+} l4csmsal_send_cnf_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+
+ kal_uint8 src_id;
+ kal_uint8 result; /* Result Code*/
+ kal_uint16 error_cause; /* Error Cause*/
+ kal_uint16 index;
+ kal_uint8 status; /* status of msg */
+ kal_uint8 storage_type;
+} l4csmsal_write_cnf_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint8 result; /* Result Code*/
+ kal_uint16 error_cause; /* Error Cause*/
+ kal_uint16 index;
+ kal_uint8 del_flag;
+ kal_uint8 storage_type;
+ kal_uint8 msg_bitmap[480]; /* length is not final value */
+} l4csmsal_delete_cnf_struct;
+
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint8 result; /* Result Code*/
+ kal_uint16 error_cause; /* Error Cause*/
+ kal_uint8 seq_num;
+}l4csmsal_send_abort_cnf_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 type;
+} l4csmsal_mem_full_ind_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 type;
+} l4csmsal_mem_exceed_ind_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 type;
+} l4csmsal_mem_available_ind_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint16 length; //length of peer buf data; unit:byte
+ kal_uint8 access_id;
+} l4csmsal_sms_depersonalization_ind_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 response;
+ kal_uint8 cause_present;
+ kal_uint16 cause;
+ kal_uint16 length; //length of peer buf data; unit:byte
+ kal_uint8 access_id; //SMU piggy-back
+} l4csmsal_sms_depersonalization_rsp_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint8 res; /* SAT response code*/
+ kal_uint8 cause; /* Error Cause*/
+} l4csmsal_sat_send_cnf_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 cbch_req;
+} l4csmsal_cbch_req_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint16 mi[60]; // = [SMSAL_MMI_CBMI_MAX_ENTRY]
+ kal_uint16 dcs[30]; // = [SMSAL_CB_MAX_ENTRY]
+ kal_bool mi_mask[60]; // = [SMSAL_MMI_CBMI_MAX_ENTRY]
+ kal_bool dcs_mask[30]; // = [SMSAL_CB_MAX_ENTRY]
+
+ /* follows added by Kevin */
+ kal_bool mir_mask[30]; // = [SMSAL_CB_MAX_ENTRY]
+ kal_uint16 mir[60]; // = [SMSAL_CB_MAX_ENTRY*2]
+ kal_uint8 is_all_language_on;
+ kal_uint8 para_ind;/* smsal_cb_para_enum */
+
+ l4c_cb_set_type_enum set_type;
+ smsal_cb_cmd_enum cb_cmd;
+} l4csmsal_cb_update_req_struct;
+
+/* CB UPDATE CNF added by Kevin */
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint8 result; /* Result Code*/
+ kal_uint16 error_cause; /* Error Cause*/
+ smsal_cb_cmd_enum cb_cmd;
+} l4csmsal_cb_update_cnf_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint16 mi;
+ kal_uint8 dcs;
+ kal_uint16 msg_length; /* max length is 93 x 15 = 1395 */
+ kal_uint8 msg_data[1];
+} l4csmsal_cb_msg_ind_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+
+ kal_uint8 dest; /* RMMI or LMMI*/
+ kal_uint16 sn;
+ kal_uint16 mi;
+ kal_uint8 dcs;
+ kal_uint8 page;
+ kal_uint8 pages;
+ kal_uint8 rmi_use_hex;
+ kal_uint16 msg_length; /* max length is 93 x 15 = 1395 */
+ kal_uint8 msg_data[1];
+} l4csmsal_cb_msg_text_ind_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 geography_type;
+} l4csmsal_cb_gs_change_ind_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 dest;
+ kal_uint16 msg_length;
+ kal_uint8 msg_data[CB_MAX_DATA_NUM_PER_PAGE];
+ rat_enum rat;
+} l4csmsal_cb_msg_pdu_ind_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 plmn[MAX_PLMN_LEN+1];
+ rat_enum rat;
+} l4csmsal_cb_service_by_plmn_req_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint16 mid;
+ kal_uint16 sn;
+} l4csmsal_cb_msg_removal_req_struct;
+
+typedef struct
+{
+ LOCAL_PARA_HDR
+
+ kal_uint16 dest_mod_id;
+ kal_uint16 dest_port;
+ kal_uint16 src_port;
+ kal_uint8 dcs;
+ kal_uint8 mti; /* Message Type Identifier*/
+
+ kal_uint8 scts[7];
+ smsal_concat_struct concat_info; /* Concat. Info*/
+ l4_addr_bcd_struct oa; /* Originating Address */
+ kal_uint16 message_len; /* Length of Message*/
+
+}l4csmsal_app_data_ind_struct;
+
+
+typedef struct {
+ LOCAL_PARA_HDR
+
+ kal_uint8 dest; /* Destination Code*/
+ kal_uint8 startup_seq_num;
+ kal_uint8 mti; /* Message Type Identifier*/
+ kal_uint8 status;
+ kal_uint8 storage_type;
+ kal_uint8 scts[7];
+ kal_uint8 padding;
+ kal_uint16 index;
+ kal_uint16 message_len; /* Length of Message*/
+ kal_uint16 dest_port;
+ kal_uint16 src_port;
+ smsal_concat_struct concat_info; /* Concat. Info*/
+ smsal_header_info_union msg_header;
+} l4csmsal_startup_read_msg_ind_struct;
+
+typedef struct
+{
+ LOCAL_PARA_HDR
+
+ kal_uint8 access_id;
+ l4_addr_bcd_struct sc_addr;
+ l4_addr_bcd_struct da;
+} l4csmsal_fdn_check_ind_struct;
+
+typedef struct
+{
+ LOCAL_PARA_HDR
+
+ kal_uint8 result; //true: in FDN list(send), false: not in FDN list
+ kal_uint16 cause; //PHB_L4C_ERROR
+} l4csmsal_fdn_check_rsp_struct;
+
+typedef struct
+{
+ LOCAL_PARA_HDR
+
+ kal_uint8 action;
+ kal_uint8 dst_storage;
+ kal_uint16 src_index;
+ kal_uint8 src_id;
+}l4csmsal_copy_msg_req_struct;
+
+/* __UNIFIED_MESSAGE_BACKGROUND_SEND_SUPPORT__ */
+typedef struct
+{
+ LOCAL_PARA_HDR
+
+ kal_uint8 new_status; /* smsal_status_enum */
+ kal_uint16 index;
+ kal_uint8 src_id;
+}l4csmsal_set_status_req_struct;
+
+typedef struct
+{
+ LOCAL_PARA_HDR
+
+ kal_uint8 result; /* Result Code*/
+ kal_uint16 error_cause; /* Error Cause*/
+ kal_uint8 action;
+ kal_uint8 dst_storage;
+ kal_uint16 src_index;
+ kal_uint16 dst_index;
+ kal_uint8 src_id;
+}l4csmsal_copy_msg_cnf_struct;
+
+/* __UNIFIED_MESSAGE_BACKGROUND_SEND_SUPPORT__ */
+typedef struct
+{
+ LOCAL_PARA_HDR
+
+ kal_uint16 index;
+ kal_uint8 result; /* Result Code*/
+ kal_uint16 error_cause; /* Error Cause*/
+ kal_uint8 src_id;
+}l4csmsal_set_status_cnf_struct;
+
+typedef struct
+{
+ LOCAL_PARA_HDR
+
+ kal_uint8 action;
+}l4csmsal_hz_cb_act_req_struct;
+
+
+typedef struct {
+ LOCAL_PARA_HDR
+
+ kal_uint8 dest; /* not used */
+ kal_uint16 sn;
+ kal_uint16 mi;
+ kal_uint8 dcs;
+ kal_uint8 page;
+ kal_uint8 pages;
+ kal_uint8 rmi_use_hex; /* not used */
+ kal_uint16 msg_length;
+ kal_uint8 msg_data[1];
+} l4csmsal_hz_cb_msg_ind_struct;
+
+
+typedef struct
+{
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+}l4csmsal_get_mailbox_num_req_struct;
+
+
+typedef struct
+{
+ LOCAL_PARA_HDR
+
+ kal_uint8 result; /* Result Code*/
+ kal_uint16 error_cause; /* Error Cause*/
+ kal_uint8 src_id;
+}l4csmsal_get_mailbox_num_cnf_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint16 index; // Message Index
+} l4csmsal_read_raw_data_req_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint8 result; // Result Code
+ kal_uint16 error_cause; // Error Cause
+ kal_uint16 index; // Message Index
+ kal_uint8 status; // Status of msg
+ kal_uint8 storage_type; // SMSAL_SM or SMSAL_ME
+ kal_uint16 data_len; // Message length
+} l4csmsal_read_raw_data_cnf_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint8 storage_type; // SMSAL_SM or SMSAL_ME
+} l4csmsal_write_raw_data_req_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint8 result; // Result Code
+ kal_uint16 error_cause; // Error Cause
+ kal_uint16 index; // Message Index
+ kal_uint8 status; // Status of msg
+ kal_uint8 storage_type; // SMSAL_SM or SMSAL_ME
+} l4csmsal_write_raw_data_cnf_struct;
+
+typedef struct
+{
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint8 result;
+ kal_uint32 error_cause;
+ kal_uint8 uid;
+}l4csmsal_send_deliver_report_req_struct;
+
+typedef struct
+{
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint8 result;
+ kal_uint32 error_cause;
+ kal_uint8 uid;
+}l4csmsal_send_deliver_report_cnf_struct;
+
+ typedef struct
+ {
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint32 sm_max_num;
+ kal_uint32 sm_current_num;
+ kal_uint32 me_max_num;
+ kal_uint32 me_current_num;
+ kal_uint32 sr_max_num;
+ kal_uint32 sr_current_num;
+ }l4csmsal_sync_msg_storage_req_struct;
+
+ typedef struct
+ {
+ LOCAL_PARA_HDR
+ kal_uint8 result;
+ kal_uint32 cause;
+ }l4csmsal_mt_sms_final_ack_ind_struct;
+
+// typedef smsal_evmi_struct l4csmsal_enhanced_voice_mail_ind_struct;
+// l4csmsal_enhanced_voice_mail_ind_struct should be the same as smsal_evmi_struct
+typedef struct
+{
+ kal_uint8 evm_pdu_type;
+ kal_uint8 multi_sub_profile;
+ kal_uint8 is_store;
+ kal_uint8 vm_almost_full;
+ kal_uint8 vm_full;
+ kal_uint8 vm_status_ext_flg;
+
+ l4_addr_bcd_struct vm_access_addr;
+ kal_uint8 number_of_vm_unread; // should be stored in (U)SIM
+ kal_uint8 number_of_vm_notify; // max 15
+ kal_uint8 number_of_vm_delete; // max 31
+
+ kal_uint8 l4_status; // 0:init, 1: sent to MMI, 2:free
+
+ kal_uint8 vm_status_ext_len;
+ kal_uint8 *vm_status_ext_data;
+
+ smsal_evmi_msg_struct *vm_msg[32];
+
+}l4csmsal_enhanced_voice_mail_ind_struct;
+
+typedef struct
+{
+ LOCAL_PARA_HDR
+ irat_type_enum irat_type;
+ rat_type_enum source_rat;
+ rat_type_enum target_rat;
+} l4csmsal_rat_change_start_req_struct;
+
+typedef struct
+{
+ LOCAL_PARA_HDR
+ irat_type_enum irat_type;
+ rat_type_enum source_rat;
+ rat_type_enum target_rat;
+ irat_result_enum irat_result;
+} l4csmsal_rat_change_finish_req_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+
+ kal_uint8 src_id;
+ kal_uint8 result; /* Result Code*/
+ kal_uint16 error_cause; /* Error Cause*/
+ kal_uint8 mr; /* Message reference*/
+ l4_addr_bcd_struct sc_addr;
+ smsal_domain_enum domain;
+
+} l4csmsal_ims_send_from_storage_cnf_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+
+ kal_uint8 src_id;
+ kal_uint8 result; /* Result Code*/
+ kal_uint8 mr; /* Message reference*/
+} l4csmsal_ims_update_msgbox_req_struct;
+
+typedef struct {
+ LOCAL_PARA_HDR
+
+ kal_uint8 src_id;
+ kal_uint8 result; /* Result Code*/
+} l4csmsal_ims_update_msgbox_cnf_struct;
+
+typedef struct
+{
+ LOCAL_PARA_HDR
+ kal_bool enable;
+} l4csmsal_update_sms_over_sgs_cfg_req_struct;
+
+
+typedef struct
+{
+ LOCAL_PARA_HDR
+ kal_bool is_full_changed;
+} l4csmsal_sync_msg_ind_struct;
+
+
+typedef struct
+{
+ /* smsal_mb_entry_state_enum */
+ kal_uint8 state;
+ /* state of the entry */
+
+ /* smsal_storage_enum */
+ kal_uint8 storage_type;
+ /* storage type of the entry */
+
+ /* smsal_mti_enum */
+ kal_uint8 mti;
+ /* message type identifier */
+
+ kal_uint8 status;
+ /* status of the message */
+
+ kal_uint16 record_no;
+ /* indicate record number in storage */
+
+ kal_uint16 mb_type_ind;
+ /* bitmap for specific type SM, ie. PID with replace type, */
+ /* FO with reply path. */
+
+} smsal_mb_entry_struct;
+
+
+typedef struct
+{
+ LOCAL_PARA_HDR
+ kal_uint8 src_id;
+ kal_uint8 domain;
+ kal_uint8 direction;
+} l4csmsal_sms_end_ind_struct;
+
+
+#endif
+
+