blob: a144faae21351205cac54fa551d0e04d54f47779 [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 *
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
254typedef struct {
255 LOCAL_PARA_HDR
256 smreg_pdp_activate_req_struct trace;
257} sm_trace_smreg_pdp_activate_req_struct;
258
259typedef struct {
260 NSAPI_STRUCT_HDR // LOCAL_PARA_HDR + kal_uint8 nsapi (SM code assume nsapi is the first parameter of some primitive)
261 ps_cause_enum cause; /* Cause of deactivation*/
262 teardown_enum tear_ind; /* This field indicates whether to deactivate all the associated context or only one for which request has come*/
263 #ifdef __LOCAL_DEACTIVATE_PDP_SUPPORT__
264 kal_bool local_deactivate_pdp; /* __LOCAL_DEACTIVATE_PDP_SUPPORT__ */
265 #endif // ~ __LOCAL_DEACTIVATE_PDP_SUPPORT__
266 req_processing_info_struct req_processing_info;
267} smreg_pdp_deactivate_req_struct;
268
269typedef struct {
270 NSAPI_STRUCT_HDR // LOCAL_PARA_HDR + kal_uint8 nsapi (SM code assume nsapi is the first parameter of some primitive)
271
272 initiated_enum initiated_by; /* This field will tell that the request has come for a NW initiated context or for MS initiated*/
273 kal_uint8 token_id; /* This field is used in case the requestis sent for a NW initiated context.*/
274
275 qos_struct qos_requested; /* QoS requested by the user*/
276 qos_struct qos_minimum; /* Minimum QoS required by the User*/
277 tft_info_struct tft; /* This field gives the TFT parameters*/
278 kal_uint8 linked_nsapi; /* The nsapi value of the associated primary context*/
279 kal_uint8 p_comp_algo; /* Protocol Compression Algorithm. Used only for GPRS*/
280 kal_uint8 d_comp_algo; /* Data Comprssion Algorithm. Used only for UMTS*/
281 kal_uint8 config_protocol;
282 kal_uint8 config_option_len; /* config option length*/
283 config_option_struct config_option[MAX_NUM_CONFIG_OPTION_PACKETS];
284 pdp_auxinfo_struct aux_info; //erica 20070112
285 tcm_qos_mode_enum qos_mode ; /* __MEDIATEK_SMART_QOS__ */
286
287 nas_priority_config_enum nas_priority_config ; /* __MTC_SUPPORT__ */
288 eab_override_config_enum eab_override_config ; /* __MTC_SUPPORT__ */
289 rat_enum rat; /* __MTC_SUPPORT__ */
290 req_processing_info_struct req_processing_info;
291} smreg_pdp_activate_sec_req_struct;
292
293typedef struct {
294 LOCAL_PARA_HDR
295 smreg_pdp_activate_sec_req_struct trace;
296} sm_trace_smreg_pdp_activate_sec_req_struct;
297
298typedef struct {
299 NSAPI_STRUCT_HDR // LOCAL_PARA_HDR + kal_uint8 nsapi (SM code assume nsapi is the first parameter of some primitive)
300 kal_bool qos_mod_present; // this is an optional IE in MODIFY PDP CONTEXT REQUEST (MS to Network direction)
301 qos_struct qos_mod; /* New QoS Requested*/
302 kal_bool qos_min_present;
303 qos_struct min_qos; /* minimum QoS */ //__3G_QOS__
304 kal_bool tft_present; // this is an optional IE in MODIFY PDP CONTEXT REQUEST (MS to Network direction)
305 tft_info_struct tft; /* New TFT Parameters*/
306 //context_mod_type_enum mod_type; /* The type od modification initiated by user.*/
307 tcm_qos_mode_enum qos_mode ;
308 kal_uint8 config_protocol; // new, need to consider BCM:MS/NW ?
309 kal_uint8 config_option_len; /* config option length*/
310 config_option_struct config_option[MAX_NUM_CONFIG_OPTION_PACKETS];
311
312 nas_priority_config_enum nas_priority_config ; /* __MTC_SUPPORT__ */
313 eab_override_config_enum eab_override_config ; /* __MTC_SUPPORT__ */
314 rat_enum rat; /* __MTC_SUPPORT__ */
315 req_processing_info_struct req_processing_info;
316} smreg_pdp_modify_req_struct;
317
318typedef struct {
319 LOCAL_PARA_HDR
320 ps_cause_enum cause; /* Cause of rejection*/
321 kal_uint8 token_id; /* Context Indentifier*/
322 pdp_addr_type_enum pdp_addr_type; /* PDP Address Type, can be IPV4, IPV6, PPP*/
323 pdp_addr_len_enum pdp_addr_len; /* Length of PDP Address field*/
324 kal_uint8 apn_len; /* Length of Access Point Name Parameter*/
325 kal_uint8 pdp_addr[MAXIMUM_POSSIBLE_ADDR_LEN];
326 kal_uint8 access_name[100];
327} smreg_pdp_activate_rej_rsp_struct;
328
329typedef struct {
330 LOCAL_PARA_HDR
331 ps_cause_enum cause; /* Cause of rejection*/
332 kal_uint8 token_id; /* Context Indentifier*/
333} smreg_pdp_activate_sec_rej_rsp_struct;
334
335
336typedef struct {
337 NSAPI_STRUCT_HDR // LOCAL_PARA_HDR + kal_uint8 nsapi (SM code assume nsapi is the first parameter of some primitive)
338} smreg_allow_dl_packet_ind_struct;
339
340#endif
341
342