blob: 4dd32eb31348e81c2272c128ec8dcdd06ec31ae5 [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 *
38 * Filename:
39 * ---------
40 * TCM2SM_STRUCT.H
41 *
42 * Project:
43 * --------
44 * MAUI
45 *
46 * Description:
47 * ------------
48 * This file describes the common enums of TCM and SM.
49 *
50 * Author:
51 * -------
52 * -------
53 *
54 *============================================================================
55 * HISTORY
56 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
57 *------------------------------------------------------------------------------
58 * removed!
59 *
60 * removed!
61 * removed!
62 * removed!
63 * removed!
64 *
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 * removed!
80 *
81 * removed!
82 * removed!
83 * removed!
84 *
85 * removed!
86 * removed!
87 * removed!
88 * removed!
89 * removed!
90 *
91 * removed!
92 * removed!
93 * removed!
94 *
95 * removed!
96 * removed!
97 * removed!
98 *
99 * removed!
100 * removed!
101 *
102 * removed!
103 * removed!
104 * removed!
105 *
106 * removed!
107 * removed!
108 * removed!
109 *
110 * removed!
111 * removed!
112 * removed!
113 *
114 * removed!
115 * removed!
116 * removed!
117 *
118 * removed!
119 * removed!
120 * removed!
121 * removed!
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 *
158 * removed!
159 * removed!
160 * removed!
161 *
162 * removed!
163 * removed!
164 * removed!
165 *
166 *------------------------------------------------------------------------------
167 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
168 *============================================================================
169 ****************************************************************************/
170
171/********************************************************************************
172* Copyright Statement:
173* --------------------
174*
175* This product has been developed using a protocol stack
176* developed by Sasken Communication Technologies Limited.
177*
178********************************************************************************/
179
180#ifndef _TCM2SM_STRUCT_H
181#define _TCM2SM_STRUCT_H
182
183#include "mcd_l3_inc_gprs_struct.h"
184#include "l3_inc_local.h"
185#include "mmi_l3_enums.h"
186#include "mmi_sm_enums.h"
187#include "kal_general_types.h"
188#include "kal_public_defs.h"
189#include "ps_public_enum.h"
190#include "ps_public_struct.h"
191#include "tftlib_common_struct.h"
192#include "l3_inc_enums.h"
193#include "tcm_api.h"
194
195#include "tcm_context_public.h"
196
197#if 0
198/* under construction !*/
199/* under construction !*/
200/* under construction !*/
201/* under construction !*/
202/* under construction !*/
203#endif
204
205typedef enum {
206 PDN_REQUEST_TYPE_INITIAL_REQUEST = REQUEST_TYPE_INITIAL_REQUEST,
207 PDN_REQUEST_TYPE_HANDOVER = REQUEST_TYPE_HANDOVER,
208 PDN_REQUEST_TYPE_UNUSED = REQUEST_TYPE_UNUSED,
209 PDN_REQUEST_TYPE_EMERGENCY = REQUEST_TYPE_EMERGENCY,
210 PDN_REQUEST_TYPE_HANDOVER_OF_EMERGENCY = REQUEST_TYPE_HANDOVER_OF_EMERGENCY,
211
212 PDN_REQUEST_TYPE_NONE = 0xFF,
213} pdn_request_type_enum ;
214
215typedef enum {
216 xSM_PROCESSING_TIME_UNLIMITED,
217 xSM_PROCESSING_TIME_LIMITED
218} xsm_processing_time_type_enum;
219
220typedef struct
221{
222 xsm_processing_time_type_enum processing_time_type;
223 kal_uint32 processing_time_limit; /* in timestamp */
224 kal_bool is_retry_by_l4;
225} req_processing_info_struct;
226
227typedef struct {
228 NSAPI_STRUCT_HDR // LOCAL_PARA_HDR + kal_uint8 nsapi (SM code assume nsapi is the first parameter of some primitive)
229 qos_struct qos_requested; /* QoS requested by the Application*/
230 qos_struct qos_minimum; /* Minimum QoS required by the Application*/
231 kal_uint8 token_id; /* This field is used in case the requestis sent for a NW initiated context.*/
232 pdp_addr_type_enum pdp_addr_type; /* It gives the address type whether it is IPV4, IPV6 or PPP*/
233 pdp_addr_len_enum pdp_addr_len; /* Length of the PDP address*/
234 kal_uint8 apn_len; /* Length of Access Point Name Parameter*/
235 kal_uint8 p_comp_algo; /* Algo to be used for Protocol Compression. Used only in case of GPRS*/
236 kal_uint8 d_comp_algo; /* Algo to be used for Data Compression. Used only in case if GPRS*/
237 initiated_enum initiated_by; /* This field will tell that the request has come for a NW initiated context or for MS initiated*/
238 kal_uint8 pdp_addr[MAXIMUM_POSSIBLE_ADDR_LEN]; // if MT IPv4v6 PDP activation,
239 // NW may carry 20 bytes (IPv4+IPv6) address to UE,
240 // UE need to carry this 20 bytes address in ACTIVATE_PDP_CONTEXT_REQUEST
241 kal_uint8 access_name[100];
242 kal_uint8 config_protocol;
243 kal_uint8 config_option_len; /* config option length*/
244 config_option_struct config_option[MAX_NUM_CONFIG_OPTION_PACKETS];
245 pdp_auxinfo_struct aux_info; //erica 20070112
246 tcm_qos_mode_enum qos_mode ; /* __MEDIATEK_SMART_QOS__ */
247 nas_priority_config_enum nas_priority_config ; /* __MTC_SUPPORT__ */
248 eab_override_config_enum eab_override_config ; /* __MTC_SUPPORT__ */
249 rat_enum rat; /* __MTC_SUPPORT__ */
250 pdn_request_type_enum request_type ;
251 req_processing_info_struct req_processing_info;
252} smreg_pdp_activate_req_struct;
253
yu.dongc592bc72024-04-24 22:45:13 -0700254#if defined(__SM_UT__)
255typedef struct {
256 LOCAL_PARA_HDR
257 kal_uint8 sim_idx;
258 smreg_pdp_activate_req_struct pdp_act_req;
259 kal_bool rslt;
260} sm_ut_compose_pdp_act_req_struct;
261
262typedef struct {
263 LOCAL_PARA_HDR
264 kal_uint8 sim_idx;
265 kal_uint8 pdu_len;
266 kal_uint8 pdu_data[100];
267 kal_bool rslt;
268} sm_ut_decode_pdp_act_req_struct;
269
270typedef sm_ut_decode_pdp_act_req_struct sm_ut_compose_pdp_act_req_result_struct;
271typedef sm_ut_compose_pdp_act_req_struct sm_ut_decode_pdp_act_req_result_struct;
272#endif
273
rjw6c1fd8f2022-11-30 14:33:01 +0800274typedef struct {
275 LOCAL_PARA_HDR
276 smreg_pdp_activate_req_struct trace;
277} sm_trace_smreg_pdp_activate_req_struct;
278
279typedef struct {
280 NSAPI_STRUCT_HDR // LOCAL_PARA_HDR + kal_uint8 nsapi (SM code assume nsapi is the first parameter of some primitive)
281 ps_cause_enum cause; /* Cause of deactivation*/
282 teardown_enum tear_ind; /* This field indicates whether to deactivate all the associated context or only one for which request has come*/
283 #ifdef __LOCAL_DEACTIVATE_PDP_SUPPORT__
284 kal_bool local_deactivate_pdp; /* __LOCAL_DEACTIVATE_PDP_SUPPORT__ */
285 #endif // ~ __LOCAL_DEACTIVATE_PDP_SUPPORT__
286 req_processing_info_struct req_processing_info;
287} smreg_pdp_deactivate_req_struct;
288
289typedef struct {
290 NSAPI_STRUCT_HDR // LOCAL_PARA_HDR + kal_uint8 nsapi (SM code assume nsapi is the first parameter of some primitive)
291
292 initiated_enum initiated_by; /* This field will tell that the request has come for a NW initiated context or for MS initiated*/
293 kal_uint8 token_id; /* This field is used in case the requestis sent for a NW initiated context.*/
294
295 qos_struct qos_requested; /* QoS requested by the user*/
296 qos_struct qos_minimum; /* Minimum QoS required by the User*/
297 tft_info_struct tft; /* This field gives the TFT parameters*/
298 kal_uint8 linked_nsapi; /* The nsapi value of the associated primary context*/
299 kal_uint8 p_comp_algo; /* Protocol Compression Algorithm. Used only for GPRS*/
300 kal_uint8 d_comp_algo; /* Data Comprssion Algorithm. Used only for UMTS*/
301 kal_uint8 config_protocol;
302 kal_uint8 config_option_len; /* config option length*/
303 config_option_struct config_option[MAX_NUM_CONFIG_OPTION_PACKETS];
304 pdp_auxinfo_struct aux_info; //erica 20070112
305 tcm_qos_mode_enum qos_mode ; /* __MEDIATEK_SMART_QOS__ */
306
307 nas_priority_config_enum nas_priority_config ; /* __MTC_SUPPORT__ */
308 eab_override_config_enum eab_override_config ; /* __MTC_SUPPORT__ */
309 rat_enum rat; /* __MTC_SUPPORT__ */
310 req_processing_info_struct req_processing_info;
311} smreg_pdp_activate_sec_req_struct;
312
313typedef struct {
314 LOCAL_PARA_HDR
315 smreg_pdp_activate_sec_req_struct trace;
316} sm_trace_smreg_pdp_activate_sec_req_struct;
317
318typedef struct {
319 NSAPI_STRUCT_HDR // LOCAL_PARA_HDR + kal_uint8 nsapi (SM code assume nsapi is the first parameter of some primitive)
320 kal_bool qos_mod_present; // this is an optional IE in MODIFY PDP CONTEXT REQUEST (MS to Network direction)
321 qos_struct qos_mod; /* New QoS Requested*/
322 kal_bool qos_min_present;
323 qos_struct min_qos; /* minimum QoS */ //__3G_QOS__
324 kal_bool tft_present; // this is an optional IE in MODIFY PDP CONTEXT REQUEST (MS to Network direction)
325 tft_info_struct tft; /* New TFT Parameters*/
326 //context_mod_type_enum mod_type; /* The type od modification initiated by user.*/
327 tcm_qos_mode_enum qos_mode ;
328 kal_uint8 config_protocol; // new, need to consider BCM:MS/NW ?
329 kal_uint8 config_option_len; /* config option length*/
330 config_option_struct config_option[MAX_NUM_CONFIG_OPTION_PACKETS];
331
332 nas_priority_config_enum nas_priority_config ; /* __MTC_SUPPORT__ */
333 eab_override_config_enum eab_override_config ; /* __MTC_SUPPORT__ */
334 rat_enum rat; /* __MTC_SUPPORT__ */
335 req_processing_info_struct req_processing_info;
336} smreg_pdp_modify_req_struct;
337
338typedef struct {
339 LOCAL_PARA_HDR
340 ps_cause_enum cause; /* Cause of rejection*/
341 kal_uint8 token_id; /* Context Indentifier*/
342 pdp_addr_type_enum pdp_addr_type; /* PDP Address Type, can be IPV4, IPV6, PPP*/
343 pdp_addr_len_enum pdp_addr_len; /* Length of PDP Address field*/
344 kal_uint8 apn_len; /* Length of Access Point Name Parameter*/
345 kal_uint8 pdp_addr[MAXIMUM_POSSIBLE_ADDR_LEN];
346 kal_uint8 access_name[100];
347} smreg_pdp_activate_rej_rsp_struct;
348
349typedef struct {
350 LOCAL_PARA_HDR
351 ps_cause_enum cause; /* Cause of rejection*/
352 kal_uint8 token_id; /* Context Indentifier*/
353} smreg_pdp_activate_sec_rej_rsp_struct;
354
355
356typedef struct {
357 NSAPI_STRUCT_HDR // LOCAL_PARA_HDR + kal_uint8 nsapi (SM code assume nsapi is the first parameter of some primitive)
358} smreg_allow_dl_packet_ind_struct;
359
360#endif
361
362