blob: 61b756aa2781df69dc04544110457a57b3fcadd7 [file] [log] [blame]
yu.dongc33b3072024-08-21 23:14:49 -07001/*****************************************************************************
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) 2005
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 * mm2mmi_struct.h
40 *
41 * Project:
42 * --------
43 * MAUI
44 *
45 * Description:
46 * ------------
47 * This file is intends for structure definition between MM and MMI.
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 *
62 * removed!
63 * removed!
64 * removed!
65 *
66 * removed!
67 * removed!
68 * removed!
69 * removed!
70 *
71 * removed!
72 * removed!
73 * removed!
74 *
75 * removed!
76 * removed!
77 * removed!
78 * removed!
79 *
80 * removed!
81 * removed!
82 * removed!
83 *
84 * removed!
85 * removed!
86 * removed!
87 *
88 * removed!
89 * removed!
90 * removed!
91 * removed!
92 *
93 * removed!
94 * removed!
95 * removed!
96 *
97 * removed!
98 * removed!
99 * removed!
100 *
101 * removed!
102 * removed!
103 * removed!
104 * removed!
105 *
106 * removed!
107 * removed!
108 * removed!
109 * removed!
110 *
111 * removed!
112 * removed!
113 * removed!
114 * removed!
115 *
116 * removed!
117 * removed!
118 *
119 * removed!
120 * removed!
121 * removed!
122 *
123 * removed!
124 * removed!
125 * removed!
126 * removed!
127 *
128 * removed!
129 * removed!
130 *
131 * removed!
132 * removed!
133 * removed!
134 *
135 * removed!
136 * removed!
137 * removed!
138 *
139 * removed!
140 * removed!
141 *
142 * removed!
143 * removed!
144 * removed!
145 *
146 * removed!
147 * removed!
148 * removed!
149 *
150 * removed!
151 * removed!
152 * removed!
153 *
154 * removed!
155 * removed!
156 * removed!
157 *
158 * removed!
159 * removed!
160 * removed!
161 *
162 * removed!
163 * removed!
164 *
165 * removed!
166 * removed!
167 *
168 * removed!
169 * removed!
170 * removed!
171 *
172 * removed!
173 * removed!
174 * removed!
175 *
176 * removed!
177 * removed!
178 * removed!
179 *
180 * removed!
181 * removed!
182 * removed!
183 *
184 * removed!
185 * removed!
186 * removed!
187 *
188 * removed!
189 * removed!
190 * removed!
191 *
192 * removed!
193 * removed!
194 * removed!
195 *
196 * removed!
197 * removed!
198 * removed!
199 *
200 * removed!
201 * removed!
202 * removed!
203 *
204 * removed!
205 * removed!
206 * removed!
207 *
208 * removed!
209 * removed!
210 * removed!
211 *
212 * removed!
213 * removed!
214 *
215 *
216 * removed!
217 * removed!
218 *
219 *
220 * removed!
221 * removed!
222 *
223 *
224 * removed!
225 * removed!
226 *
227 *
228 * removed!
229 * removed!
230 *
231 *
232 * removed!
233 * removed!
234 *
235 *
236 * removed!
237 * removed!
238 *
239 *
240 * removed!
241 * removed!
242 *
243 *
244 * removed!
245 * removed!
246 *
247 *
248 * removed!
249 * removed!
250 *
251 *
252 * removed!
253 * removed!
254 *
255 *
256 *------------------------------------------------------------------------------
257 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
258 *==============================================================================
259 *******************************************************************************/
260
261/********************************************************************************
262* Copyright Statement:
263* --------------------
264*
265* This product has been developed using a protocol stack
266* developed by Sasken Communication Technologies Limited.
267*
268********************************************************************************/
269
270
271/*******************************************************************************
272* Copyright Statement:
273* --------------------
274* This software is protected by Copyright and the information contained
275* herein is confidential. The software may not be copied and the information
276* contained herein may not be used or disclosed except with the written
277* permission of MediaTek Inc. (C) 2002
278*
279*******************************************************************************
280 * FILENAME : mm2mmi_struct.h
281 * SYNOPSIS : Functions for encoding/decoding.
282 *
283 * R E V I S I O N H I S T O R Y
284 *
285 */
286#ifndef _MM2MMI_STRUCT_H
287#define _MM2MMI_STRUCT_H
288
289#include "kal_general_types.h"
290#include "ps_public_enum.h"
291#include "l3_inc_enums.h"
292#include "mcd_l3_inc_struct.h"
293#include "l3_inc_local.h"
294#include "mm_mmi_enums.h"
295#include "kal_public_defs.h"
296#include "sim_public_enum.h"
297#include "mm_emm_struct.h"
298#include "mmi2mm_struct.h"
299
300typedef struct {
301 LOCAL_PARA_HDR
302 kal_bool full_nw_nameP;
303 kal_uint8 full_nw_name_len;
304 kal_uint8 full_nw_name[MAX_NW_NAME_LENGTH];
305 kal_bool short_nw_nameP;
306 kal_uint8 short_nw_name_len;
307 kal_uint8 short_nw_name[MAX_NW_NAME_LENGTH];
308 kal_bool nw_time_zoneP;
309 kal_uint8 nw_time_zone;
310 kal_bool nw_time_zone_timeP;
311 nw_time_zone_time_struct nw_time_zone_time;
312 kal_bool lsa_idP;
313 kal_uint8 lsa_id_len;
314 kal_uint8 lsa_id[3];
315 kal_bool nw_day_light_saving_timeP;
316 kal_uint8 nw_day_light_saving_time;
317 /* MAUI_01664028, mtk02118: added for MMI to exactly know which PLMN the NITZ comes from */
318 plmn_id_struct plmn_id;
319} gmmreg_nw_info_struct; /* This struct shall be the same with l4crac_nw_info_ind_struct. */
320
321typedef struct {
322 LOCAL_PARA_HDR
323 data_speed_support_enum cell_data_speed_support; /* mtk02475: for edge and hspa status */
324 cell_info_and_rat_struct cell_info;
325 kal_bool is_ra_code_valid;
326 kal_bool is_from_cgi_ind;
327} gmmreg_cell_info_update_ind_struct;
328
329/* For GPRS MMI. */
330typedef struct {
331 LOCAL_PARA_HDR
332 gmmreg_ps_service_info_enum current_status; /* gmmreg_ps_service_info_enum */
333} gmmreg_ps_service_info_ind_struct;
334
335typedef struct {
336 LOCAL_PARA_HDR
337 kal_uint8 is_gsm_conn_exist;
338 gmmreg_cipher_ind_enum gsm_cipher_cond;
339 gmmreg_cipher_ind_enum gprs_cipher_cond;
340} gmmreg_cipher_ind_struct; /* must same as l4crac_cipher_ind_struct */
341
342typedef struct {
343 LOCAL_PARA_HDR
344 kal_bool is_dedicated_mode;
345} gmmreg_dedicated_mode_ind_struct; /* must same as l4crac_hz_dedicated_mode_ind_struct */
346
347
348typedef struct {
349 LOCAL_PARA_HDR
350 proc_status_enum status; /* proc_status_enum */
351 mm_cause_enum cause; /* mm_cause_enum */
352 kal_uint8 num_of_hplmn;
353 rac_plmn_list_struct plmn_list;
354} gmmreg_plmn_list_cnf_struct;
355
356typedef struct {
357 LOCAL_PARA_HDR
358 proc_status_enum status;
359 mm_cause_enum cause;
360 rac_csg_list_struct csg_list;
361} gmmreg_csg_list_cnf_struct;
362
363typedef gmmreg_nw_info_struct gmmreg_nw_info_ind_struct;
364
365#ifdef __GEMINI__
366typedef struct {
367 LOCAL_PARA_HDR
368 rr_suspend_mode_reason_enum rr_service_status;
369}gmmreg_rr_service_status_ind_struct; //20080217
370#endif
371
372typedef struct {
373 LOCAL_PARA_HDR
374 kal_uint8 no_ecc; //number of ECC list
375 ecc_number_struct ecc_list[MAX_NW_ECC_NUM]; //ECC list
376} gmmreg_nw_ecc_ind_struct;
377//~ __REL5__
378
379typedef struct {
380 LOCAL_PARA_HDR
381 end_session_result_enum result;
382}gmmreg_end_ps_data_session_cnf_struct;
383
384#if defined (__NO_PSDATA_SEND_SCRI__) || defined (__FAST_DORMANCY__)
385typedef struct {
386 LOCAL_PARA_HDR
387 end_session_cause_enum cause;
388}gmmreg_end_ps_data_session_ind_struct;
389#endif
390
391#ifdef __LTE_RAT__
392
393typedef struct {
394 LOCAL_PARA_HDR
395 mm_emm_csfb_paging_id_enum csfb_paging_id; //Paging identity used in CS SERVICE NOTIFICATION
396 kal_bool is_cli_present; //Whether CLI (Calling Line Identification) IE exists or not
397 kal_uint8 cli_len; //Length of CLI
398 kal_uint8 cli[12]; //CLI value Refer to TS 24.008 subclause 10.5.4.9 Calling party BCD number for decoding.
399 kal_bool is_ss_code_present; //Whether SS code IE exists or not
400 kal_uint8 ss_code; //SS code value Refer to TS 29.002 subclause 17.7.5 for decoding.
401 kal_bool is_lcs_ind_present; //Whether LCS indicator IE exists or not
402 kal_uint8 lcs_indicatior; //LCS indicator value; 0x01: MT-LR, Other values: Normal, unspecified in this version of the protocol
403 kal_bool is_lcs_client_id_present; //Whether LCS client identity IE exists or not
404 kal_uint8 lcs_client_id_len; //Length of LCS client identity
405 kal_uint8 lcs_client_id[255]; //LCS client identity value, Refer to TS 29.002 subclause 17.7.13 for decoding.
406}gmmreg_csfb_page_ind_struct;
407
408typedef struct {
409 LOCAL_PARA_HDR
410 kal_bool is_accept_paging; //Whether upper layer decides to answer the mobile terminating CS service
411}gmmreg_csfb_page_rsp_struct;
412
413#endif
414typedef struct {
415 LOCAL_PARA_HDR
416 RATCM_RRC_ReleaseCause cause;
417}gmmreg_rrc_conn_rel_cause_ind_struct;
418
419
420typedef struct
421{
422 LOCAL_PARA_HDR
423 gmm_nw_feature_support_struct ug_nw_feature;
424} gmmreg_nw_feature_ind_struct;
425
426typedef struct {
427 LOCAL_PARA_HDR
428 sat_nw_rej_info_enum op;
429 cell_info_and_rat_struct current_cell;
430 sat_nw_rej_type_enum type;
431 kal_uint8 rej_cause;
432}gmmreg_nw_reject_ind_struct;
433
434#ifdef __GEMINI__
435typedef struct {
436 LOCAL_PARA_HDR
437 kal_bool is_virtual_connected;
438}gmmreg_virtual_mode_ind_struct;
439
440typedef struct {
441 LOCAL_PARA_HDR
442 rsim_auth_finish_result_enum result;
443}gmmreg_auth_finish_ind_struct;
444
445typedef struct {
446 LOCAL_PARA_HDR
447 rsim_auth_abort_result_enum result;
448}gmmreg_rsim_auth_abort_cnf_struct;
449
450#endif /* __GEMINI__ */
451
452typedef struct {
453 LOCAL_PARA_HDR
454 kal_bool non_3gpp_emergency_number_indicator; // To indicate non-3gpp nw provided policies IEI information to Upper layers which is extracted from LU accept message, RAU accept message and Attach accept message.
455}gmmreg_non_3gpp_nw_policies_ind_struct;
456
457typedef mm_emm_csfb_result_ind_struct gmmreg_csfb_result_ind_struct;
458
459typedef struct {
460 LOCAL_PARA_HDR
461 mm_cause_source_enum event;
462 mm_cause_enum original_mm_cause;
463 mm_cause_enum converted_mm_cause;
464 kal_bool is_ps_sim_valid;
465 kal_bool is_cs_sim_valid;
466} gmmreg_cause_info_ind_struct;
467
468#if defined(__ECALL_SUPPORT__) || defined(__NG_ECALL_SUPPORT__)
469typedef struct
470{
471 LOCAL_PARA_HDR
472 kal_bool result; /* 1 : success, 0: failure */
473} gmmreg_set_ecall_registration_cnf_struct;
474
475typedef gmmreg_set_ecall_registration_req_struct gmmreg_ecall_registration_state_ind_struct;
476#endif
477
478#endif
479
480