blob: 52c032ea184d2a4a7f219fcf548a3771eec0fbcb [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 * sm_emm_struct.h
40 *
41 * Project:
42 * --------
43 * MOLY
44 *
45 * Description:
46 * ------------
47 * This file describes the common structure of SM and eSM
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 *
73 * removed!
74 * removed!
75 * removed!
76 *
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 *
92 * removed!
93 * removed!
94 * removed!
95 *
96 * removed!
97 *
98 *------------------------------------------------------------------------------
99 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
100 *==============================================================================
101 *******************************************************************************/
102
103/********************************************************************************
104* Copyright Statement:
105* --------------------
106*
107* This product has been developed using a protocol stack
108* developed by Sasken Communication Technologies Limited.
109*
110********************************************************************************/
111
112#ifndef _SM_ESM_STRUCT_H
113#define _SM_ESM_STRUCT_H
114
115#include "kal_general_types.h"
116#include "irat_common_struct.h"
117#include "kal_public_defs.h"
118
119/**
120 * 3GPP spec version: x.y.z
121 * x => NAS_MAJOR_VERSION
122 * y => NAS_MINOR_VERSION
123 * z => NAS_RELEASE_VERSION
124*/
125
126typedef enum{
127 NAS_MAJOR_VERSION = 15
128}NAS_MAJOR_VERSION_INFO;
129
130typedef enum{
131 NAS_MINOR_VERSION = 5
132}NAS_MINOR_VERSION_INFO;
133
134typedef enum{
135 NAS_RELEASE_VERSION = 0
136} NAS_RELEASE_VERSION_INFO;
137
138typedef struct {
139 kal_uint8 bearer_id;
140 bearer_mapping_result_enum mapping_result;
141}sm_esm_transferred_context_struct;
142
143typedef struct {
144 kal_uint8 total_number; // Total number of PDP context/EPS bearer which transfered to target RAT
145 sm_esm_transferred_context_struct bearers[MAX_TRANSFERRED_BEARER_NUM];
146}sm_esm_context_status_struct;
147
148typedef struct {
149 LOCAL_PARA_HDR
150 // no need to include irat_type, source_rat, target_rat, irat_result. because ESM will send this msg to SM only when 4G23 success
151 //bearer_ctxt_transfer_struct epsb_info;
152 kal_uint8 total_number; // Total number of PDP context/EPS bearer which will transfer to target RAT
153 bearer_ctxt_struct epsb_context[MAX_TRANSFERRED_BEARER_NUM]; // bearer context which will transfer to target RAT
154} sm_esm_epsb_context_transfer_ind_struct; // 4G23 success context transfer: ESM --> SM
155
156typedef sm_esm_epsb_context_transfer_ind_struct sm_esm_epsb_context_transfer_ind_for_sm_ut_struct;
157
158typedef struct {
159 LOCAL_PARA_HDR
160 sm_esm_context_status_struct pdp_ctxt_sts;
161} sm_esm_epsb_context_transfer_rsp_struct; // 4G23 success context transfer: SM --> ESM
162
163typedef struct {
164 LOCAL_PARA_HDR
165 // no need to include irat_type, source_rat, target_rat, irat_result. because ESM will send this msg to SM only when 4G23 success
166 //bearer_ctxt_transfer_struct pdp_info;
167 kal_uint8 total_number; // Total number of PDP context/EPS bearer which will transfer to target RAT
168 bearer_ctxt_struct pdp_context[MAX_TRANSFERRED_BEARER_NUM]; // bearer context which will transfer to target RAT
169} sm_pdp_context_transfer_req_struct; // iRAT success context transfer: Source RAT --> Target RAT
170
171typedef sm_pdp_context_transfer_req_struct sm_esm_pdp_context_transfer_req_struct;
172
173typedef struct {
174 LOCAL_PARA_HDR
175 sm_esm_context_status_struct epsb_ctxt_sts;
176} sm_esm_pdp_context_transfer_cnf_struct; // 23G4 success context transfer : ESM --> SM
177
178
179typedef struct {
180 LOCAL_PARA_HDR
181 kal_uint8 total_number; // Total number of PDP context/EPS bearer which will transfer to target RAT
182 bearer_ctxt_struct epsb_context[MAX_TRANSFERRED_BEARER_NUM]; // bearer context which will transfer to target RAT
183 kal_bool is_deactivate_isr; // whether ISR has to be deactivated after iRAT
184} esm_sm_irat_info_transfer_req_struct; // 4G23 context transfer: ESM --> SM
185
186typedef esm_sm_irat_info_transfer_req_struct esm_sm_irat_info_transfer_req_for_sm_ut_struct;
187typedef sm_esm_epsb_context_transfer_rsp_struct esm_sm_irat_info_transfer_cnf_struct; // 4G23 context transfer: SM --> ESM
188
189typedef struct {
190 LOCAL_PARA_HDR
191 kal_uint8 total_number; // Total number of PDP context/EPS bearer which will transfer to target RAT
192 bearer_ctxt_struct pdp_context[MAX_TRANSFERRED_BEARER_NUM]; // bearer context which will transfer to target RAT
193 kal_bool is_deactivate_isr; // whether ISR has to be deactivated after iRAT
194} sm_esm_irat_info_transfer_req_struct; // 23G4 context transfer: SM --> ESM
195
196typedef sm_esm_pdp_context_transfer_cnf_struct sm_esm_irat_info_transfer_cnf_struct; // 23G4 context transfer: ESM --> SM
197
198#endif // ~ _SM_ESM_STRUCT_H
199
200