blob: c329e5f73067e5011fa3962a87fae5fa17d05de8 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001/*****************************************************************************
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 * ratcm_rrce_struct.h
40 *
41 * Project:
42 * --------
43 * MONZA
44 *
45 * Description:
46 * ------------
47 *
48 *
49 * Author:
50 * -------
51 * -------
52 *
53 * ==========================================================================
54 * removed!
55 *
56 * removed!
57 * removed!
58 * removed!
59 * removed!
60 *
61 * removed!
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 *
79 * removed!
80 * removed!
81 * removed!
82 *
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 *
99 * removed!
100 * removed!
101 * removed!
102 *
103 * removed!
104 * removed!
105 * removed!
106 *
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 *
122 * removed!
123 * removed!
124 * removed!
125 *
126 * removed!
127 * removed!
128 * removed!
129 *
130 * removed!
131 * removed!
132 * removed!
133 *
134 * removed!
135 * removed!
136 * removed!
137 *
138 * removed!
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 * removed!
158 * removed!
159 * removed!
160 * removed!
161 *
162 * removed!
163 * removed!
164 * removed!
165 *
166 * removed!
167 * removed!
168 * removed!
169 *
170 * removed!
171 * removed!
172 * removed!
173 *
174 * removed!
175 * removed!
176 * removed!
177 *
178 * removed!
179 * removed!
180 * removed!
181 *
182 * removed!
183 * removed!
184 * removed!
185 *
186 * removed!
187 * removed!
188 * removed!
189 *
190 * removed!
191 * removed!
192 * removed!
193 *
194 * removed!
195 * removed!
196 * removed!
197 *
198 * removed!
199 * removed!
200 * removed!
201 *
202 * removed!
203 * removed!
204 * removed!
205 *
206 * removed!
207 * removed!
208 * removed!
209 *
210 * removed!
211 * removed!
212 * removed!
213 *
214 * removed!
215 * removed!
216 * removed!
217 *
218 * removed!
219 * removed!
220 * removed!
221 ******************************************************************************/
222
223#ifndef _RATCM_RRCE_STRUCT_H
224#define _RATCM_RRCE_STRUCT_H
225
226/* MAUI_02828210, redundant header removal */
227#include "ratcm_rrce_enums.h"
228#include "mcd_l3_inc_struct.h"
229#include "ratcm_uas_struct.h"
230//#include "app_ltlcom.h"
231#include "kal_public_api.h"
232#include "kal_general_types.h"
233#include "l3_inc_enums.h"
234
235//move LAC to ratcm_uas_struct.h since CSCE will also need it.
236//typedef kal_uint16 LAC;
237#if 0
238/* under construction !*/
239/* under construction !*/
240/* under construction !*/
241/* under construction !*/
242/* under construction !*/
243/* under construction !*/
244/* under construction !*/
245/* under construction !*/
246/* under construction !*/
247/* under construction !*/
248/* under construction !*/
249/* under construction !*/
250/* under construction !*/
251/* under construction !*/
252/* under construction !*/
253/* under construction !*/
254/* under construction !*/
255/* under construction !*/
256/* under construction !*/
257/* under construction !*/
258/* under construction !*/
259/* under construction !*/
260/* under construction !*/
261/* under construction !*/
262/* under construction !*/
263/* under construction !*/
264/* under construction !*/
265/* under construction !*/
266#endif
267
268//typedef kal_uint8 NAS_MUI;
269
270
271#if 0
272/* under construction !*/
273/* under construction !*/
274/* under construction !*/
275/* under construction !*/
276/* under construction !*/
277/* under construction !*/
278/* under construction !*/
279/* under construction !*/
280/* under construction !*/
281/* under construction !*/
282/* under construction !*/
283/* under construction !*/
284/* under construction !*/
285/* under construction !*/
286/* under construction !*/
287/* under construction !*/
288/* under construction !*/
289/* under construction !*/
290/* under construction !*/
291/* under construction !*/
292/* under construction !*/
293/* under construction !*/
294/* under construction !*/
295/* under construction !*/
296/* under construction !*/
297/* under construction !*/
298/* under construction !*/
299/* under construction !*/
300/* under construction !*/
301/* under construction !*/
302/* under construction !*/
303/* under construction !*/
304/* under construction !*/
305/* under construction !*/
306/* under construction !*/
307/* under construction !*/
308/* under construction !*/
309/* under construction !*/
310/* under construction !*/
311/* under construction !*/
312/* under construction !*/
313/* under construction !*/
314/* under construction !*/
315/* under construction !*/
316/* under construction !*/
317/* under construction !*/
318/* under construction !*/
319/* under construction !*/
320/* under construction !*/
321/* under construction !*/
322/* under construction !*/
323/* under construction !*/
324/* under construction !*/
325/* under construction !*/
326/* under construction !*/
327/* under construction !*/
328/* under construction !*/
329/* under construction !*/
330/* under construction !*/
331/* under construction !*/
332/* under construction !*/
333/* under construction !*/
334/* under construction !*/
335/* under construction !*/
336/* under construction !*/
337/* under construction !*/
338/* under construction !*/
339/* under construction !*/
340/* under construction !*/
341/* under construction !*/
342#endif
343//UDC
344
345typedef struct
346{
347 LOCAL_PARA_HDR
348
349 kal_bool is_tmsi_lai_present;
350 /*Note that bit 8 of tmsi[0] is MSB and bit 1 of tmsi[3] is LSB of TMSI */
351 kal_uint8 tmsi[4];
352 kal_bool is_lai_abnormal; /* MAUI_01959495*/
353 lai_struct reg_lai;
354 kal_bool is_ptmsi_rai_present;
355 /*Note that bit 8 of ptmsi[0] is MSB and bit 1 of ptmsi[3] is LSB of P-TMSI*/
356 kal_uint8 ptmsi[4];
357 kal_bool is_rai_abnormal; /* MAUI_01959495 */
358 rai_struct reg_rai;
359 kal_uint8 PS_CNSpecificDRX_CLC;
360} ratcm_rrce_paging_param_assign_req_struct ;
361
362typedef struct
363{
364 LOCAL_PARA_HDR
365 mmas_regn_status_enum regn_status;
366 kal_bool PowerOff;
367}ratcm_rrce_regn_status_update_req_struct;
368
369typedef struct
370{
371 LOCAL_PARA_HDR
372
373 RATCM_RRC_PagingCause pagingCause;
374 /* Description: Identifies the type of core network domain. This an
375 enumerated type (RRC_CN_DomainIdentity_cs_domain, RRC_CN_DomainIdentity_ps_domain). */
376 domain_id_enum cn_DomainIdentity;
377 ue_id_type_enum pagingIdType;
378} ratcm_rrce_page_ind_struct ;
379
380/*2013/03/26, local release enhancement*/
381typedef struct
382{
383 LOCAL_PARA_HDR
384
385 RATCM_RRC_LocalReleaseType localReleaseType;
386 kal_uint16 locally_released_PS_RAB_bitmap;
387} ratcm_rrce_local_release_ind_struct;
388
389typedef struct
390{
391 LOCAL_PARA_HDR
392
393// NAS_MUI MUI;
394 kal_uint8 MUI;
395 gibi_tag_type gibiTag;
396 domain_id_enum cnDomainID;
397 RATCM_RRC_EstablishmentCause cause;
398 kal_bool is_service_req;
399#ifdef __R6_DSAC__
400 kal_bool isDsacPresent;
401 kal_uint16 selectedDsacInfo;
402#endif
403 plmn_id_struct selectedplmn;
404#ifdef __PPACR_SUPPORT__
405 ppac_checked_type_enum PPACCheckedType;
406 kal_uint16 selectedPPACInfo; //used by PPAC_LR_ALLOWED
407#endif
408#ifdef __LTE_RAT__
409 kal_bool is_csfb; /* Ivy Ivy */
410 csfb_indicator_enum csfb_indicator; // For AT&T requirement: CSFB_REJECT
411#endif /* __LTE_RAT__*/
412 umts_service_priority_enum service_priority; // [Gemini][Two PS attach]
413} ratcm_rrce_conn_est_req_struct ;
414
415typedef struct
416{
417 LOCAL_PARA_HDR
418
419 domain_id_enum cnDomainID ;
420 as_est_cnf_cause_enum status; /* status of the RRC connection */
421 kal_bool wait_gibi_flag;
422 kal_bool is_rrc_conn_already_existed;
423} ratcm_rrce_conn_est_cnf_struct ;
424
425typedef struct
426{
427 LOCAL_PARA_HDR
428
429 // NAS_MUI MUI;
430 kal_uint8 MUI;
431 gibi_tag_type gibiTag;
432 domain_id_enum cnDomainID ;
433 DC_Priority priority ;
434 kal_bool is_service_req;
435} ratcm_rrce_data_transfer_req_struct ;
436
437typedef struct
438{
439 LOCAL_PARA_HDR
440
441 domain_id_enum cnDomainID ;
442 /* This flag is used to inform RATCM that the integrity is applied on this NAS message. Note that at this time,
443 it is possible RRCE has not sent RATCM_RRCE_SECURITY_MODE_COMPLETE_IND.*/
444 kal_bool integrityApplied;
445} ratcm_rrce_data_transfer_ind_struct ;
446
447typedef struct
448{
449 LOCAL_PARA_HDR
450
451 // NAS_MUI MUI;
452 kal_uint8 MUI;
453 DC_Status status;
454 domain_id_enum cnDomainID ;
455 DC_Priority priority ;
456}ratcm_rrce_data_transfer_cnf_struct;
457
458typedef struct
459{
460 LOCAL_PARA_HDR
461
462 domain_id_enum cnDomainID ;
463 as_rel_scope_enum scope;
464 conn_rel_cause_enum cause;
465} ratcm_rrce_conn_rel_req_struct;
466
467typedef struct
468{
469 LOCAL_PARA_HDR
470
471 domain_id_enum cnDomainID ;
472 RATCM_RRC_ReleaseCause cause; /* cause of the connection release */
473 kal_bool waitGibiFlag;
474 kal_bool waitForReleaseInd; /*Inform NAS to wait for connection Release if Network releases the last signalling connection*/
475} ratcm_rrce_conn_rel_ind_struct;
476
477typedef struct
478{
479 LOCAL_PARA_HDR
480
481 kal_bool is_rsva_abort;
482} ratcm_rrce_conn_loss_ind_struct;
483
484typedef struct
485{
486 LOCAL_PARA_HDR
487
488 domain_id_enum cnDomainID ;
489 as_rel_scope_enum scope;
490 /* True means the signaling connection of this domain has been released successfully.
491 Otherwise, it means the release fails. Currently, it will report "failure" only during inter-RAT procedure.
492 RATCM should not resend the release of connection until the completion of inter-RAT procedure.*/
493 kal_bool Is_successful;
494 kal_bool waitGibiFlag;
495 kal_bool waitForReleaseInd; /*Inform NAS to wait for connection Release*/
496} ratcm_rrce_conn_rel_cnf_struct;
497
498/*
499typedef struct
500{
501 LOCAL_PARA_HDR
502
503} ratcm_rrce_conn_loss_ind_struct;
504*/
505
506typedef struct
507{
508 LOCAL_PARA_HDR
509
510 SRB_Priority priority;
511 domain_id_enum cnDomainID;
512}ratcm_rrce_rb_re_establishment_ind_struct;
513
514typedef struct
515{
516 LOCAL_PARA_HDR
517
518 SRB_Priority priority;
519 domain_id_enum cnDomainID;
520}ratcm_rrce_rb_re_establishment_rsp_struct;
521
522typedef struct
523{
524 LOCAL_PARA_HDR
525
526 kal_bool newKeys;
527 umts_security_key security_key;
528 kal_bool is_power_on;
529 kal_uint8 cksn;
530} ratcm_rrce_security_mode_req_struct;
531
532typedef struct
533{
534 LOCAL_PARA_HDR
535
536 domain_id_enum cnDomainID;
537 kal_bool integrityEnabled;
538 Ciphering_Status cipheringStatus;
539 kal_uint8 service_req_mui;
540} ratcm_rrce_security_mode_complete_ind_struct;
541
542
543typedef struct
544{
545 LOCAL_PARA_HDR
546
547 domain_id_enum cnDomainID;
548 Ciphering_Status cipheringStatus;
549} ratcm_rrce_security_mode_change_ind_struct;
550
551typedef struct
552{
553 LOCAL_PARA_HDR
554
555 kal_bool cs_Domain_ResetKeys;
556 kal_bool ps_Domain_ResetKeys;
557} ratcm_rrce_reset_keys_ind_struct;
558
559#ifdef __TC7__CS__SUPPORT__
560
561typedef struct
562{
563 LOCAL_PARA_HDR
564
565 kal_bool isForceLau;
566}ratcm_rrce_cell_change_start_ind_struct;
567#endif
568
569
570typedef struct
571{
572 LOCAL_PARA_HDR
573} ratcm_rrce_force_rel_req_struct;
574
575
576#if defined(__NO_PSDATA_SEND_SCRI__) || defined(__FAST_DORMANCY__)
577typedef struct
578{
579 LOCAL_PARA_HDR
580
581 kal_bool force_send_SCRI;
582 end_session_cause_enum cause;
583} ratcm_rrce_end_ps_data_session_req_struct;
584
585typedef struct
586{
587 LOCAL_PARA_HDR
588
589 end_session_result_enum result;
590} ratcm_rrce_end_ps_data_session_cnf_struct;
591#endif /* __NO_PSDATA_SEND_SCRI__ || __FAST_DORMANCY__ */
592
593typedef struct
594{
595 LOCAL_PARA_HDR
596
597 cs_status_enum status;
598} ratcm_rrce_cs_status_update_req_struct;
599
600typedef struct
601{
602 LOCAL_PARA_HDR
603
604 kal_bool is_pch_state;
605} ratcm_rrce_rrc_state_ind_struct;
606
607#ifdef __GEMINI__
608typedef struct
609{
610 LOCAL_PARA_HDR
611
612 nas_req_gemini_ps_high_sem_enum gemini_ps_high_sem_status;
613} ratcm_uas_gemini_ps_high_sem_req_struct;
614
615//medium ps
616typedef struct{
617 LOCAL_PARA_HDR
618 kal_bool is_data_allowed;
619}ratcm_uas_data_allow_req_struct;
620#endif //__GEMINI__
621
622typedef struct {
623 LOCAL_PARA_HDR
624 kal_bool is_pgcheck_on;
625} ratcm_rrce_set_pgcheck_req_struct;
626
627//MSG_ID_RATCM_RRCE_NO_DATA_DETECT_IND
628typedef struct
629{
630 LOCAL_PARA_HDR
631}ratcm_rrce_no_cc_data_detect_ind_struct;
632
633
634#endif /* _RATCM_RRCE_STRUCT_H */