blob: 617e488597992c3d47ea1cdd7fa5f6c944059b3b [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 * L4C2ABM_STRUCT.H
41 *
42 * Project:
43 * --------
44 * MAUI
45 *
46 * Description:
47 * ------------
48 * This file describes the common struct of ABM and L4C.
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 *
64 * removed!
65 * removed!
66 * removed!
67 *
68 * removed!
69 * removed!
70 * removed!
71 *
72 * removed!
73 * removed!
74 * removed!
75 *
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 *
92 * removed!
93 * removed!
94 * removed!
95 *
96 * removed!
97 * removed!
98 * removed!
99 *
100 * removed!
101 * removed!
102 * removed!
103 *
104 * removed!
105 * removed!
106 * removed!
107 *
108 * removed!
109 * removed!
110 * removed!
111 *
112 * removed!
113 * removed!
114 * removed!
115 *
116 * removed!
117 * removed!
118 * removed!
119 *
120 * removed!
121 * removed!
122 * removed!
123 *
124 * removed!
125 * removed!
126 * removed!
127 *
128 * removed!
129 * removed!
130 * removed!
131 *
132 * removed!
133 * removed!
134 * removed!
135 *
136 * removed!
137 * removed!
138 * removed!
139 *
140 * removed!
141 * removed!
142 * removed!
143 *
144 * removed!
145 * removed!
146 * removed!
147 *
148 * removed!
149 * removed!
150 * removed!
151 *
152 * removed!
153 * removed!
154 * removed!
155 *
156 * removed!
157 * removed!
158 * removed!
159 *
160 * removed!
161 * removed!
162 * removed!
163 *
164 * removed!
165 * removed!
166 * removed!
167 *
168 *------------------------------------------------------------------------------
169 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
170 *============================================================================
171 ****************************************************************************/
172
173/********************************************************************************
174* Copyright Statement:
175* --------------------
176*
177* This product has been developed using a protocol stack
178* developed by Sasken Communication Technologies Limited.
179*
180********************************************************************************/
181
182
183#ifndef _L4C2ABM_STRUCT_H
184#define _L4C2ABM_STRUCT_H
185//#include "ps_public_enum.h"
186#include "ps_public_struct.h"
187
188//#include "ps2sat_struct.h"
189//#include "kal_non_specific_general_types.h"
190//#include "custom_mmi_default_value.h"
191//#include "app_ltlcom.h"
192
193#include "kal_public_api.h"
194#include "tcm_api.h"
195#include "ps_public_enum.h"
196
197typedef struct {
198 kal_uint8 ref_count;
199 kal_uint16 msg_len;
200 kal_bool result;
201 kal_uint16 err_cause;
202 kal_uint8 profile_id;
203 /* for __APP_SECONDARY_PDP_SUPPORT__ */
204 kal_uint8 context_id;
205 kal_uint8 qos_id; // Qos Profile ID
206 kal_bool is_qos_fulfilled; // Flag indicates whether the requested QoS is fulfilled by established bearer
207 /* ~for __APP_SECONDARY_PDP_SUPPORT__ */
208 kal_uint8 ip_addr[4];
209 kal_uint8 pri_dns_addr[4];
210 kal_uint8 sec_dns_addr[4];
211 nvram_editor_qos_struct nwk_neg_qos; //__GPRS_BEARER_REPORT_NEGOTIATED_QOS__
212} l4c_ps_abm_setup_rsp_struct;
213
214typedef struct {
215 kal_uint8 ref_count;
216 kal_uint16 msg_len;
217 kal_bool result;
218 kal_uint16 err_cause;
219 kal_uint8 profile_id;
220 /* Following is for __APP_SECONDARY_PDP_SUPPORT__ */
221 kal_uint8 qos_id; // Qos Profile ID
222 kal_uint8 context_id;
223} l4c_ps_abm_disc_rsp_struct;
224
225typedef struct {
226 kal_uint8 ref_count;
227 kal_uint16 msg_len;
228 kal_uint8 profile_id;
229 /* Following is for __APP_SECONDARY_PDP_SUPPORT__ */
230 kal_uint8 qos_id; // Qos Profile ID
231 kal_uint8 context_id;
232 kal_uint16 err_cause;
233} l4c_ps_abm_disc_ind_struct;
234
235typedef struct {
236 kal_uint8 ref_count;
237 kal_uint16 msg_len;
238 kal_bool result; // result
239 kal_uint16 err_cause; // error cause
240 kal_uint8 context_id; // context ID
241} l4c_ps_abm_qos_tft_modify_rsp_struct;
242
243typedef struct {
244 kal_uint8 ref_count;
245 kal_uint16 msg_len;
246 kal_bool result;
247 kal_uint16 err_cause;
248 kal_uint8 ip_addr[4];
249 kal_uint8 pri_dns_addr[4];
250 kal_uint8 sec_dns_addr[4];
251 kal_uint16 mtu;
252} l4c_cc_abm_setup_rsp_struct;
253
254typedef struct {
255 kal_uint8 ref_count;
256 kal_uint16 msg_len;
257 kal_bool result;
258 kal_uint16 err_cause;
259} l4c_cc_abm_disc_rsp_struct;
260
261typedef struct {
262 kal_uint8 ref_count;
263 kal_uint16 msg_len;
264 kal_uint8 csd_profile_id;
265 kal_uint16 err_cause;
266} l4c_cc_abm_disc_ind_struct;
267
268typedef struct {
269 kal_uint8 ref_count;
270 kal_uint16 msg_len;
271 kal_uint8 src_id;
272} l4cabm_start_req_struct;
273
274typedef struct {
275 kal_uint8 ref_count;
276 kal_uint16 msg_len;
277 kal_bool result;
278} l4c_abm_disallow_gprs_and_csd_rsp_struct;
279
280
281typedef struct {
282 kal_uint8 ref_count;
283 kal_uint16 msg_len;
284 kal_bool result;
285} l4c_abm_allow_gprs_and_csd_rsp_struct;
286
287#ifdef __SATCE__
288typedef struct {
289 kal_uint8 ref_count;
290 kal_uint8 msg_len;
291 kal_uint8 nw_acct_id; //MAUI_02866379, mtk02285
292 kal_bool is_apn_valid;
293 kal_uint8 apn_length;
294 kal_uint8 apn[50];
295 kal_bool is_username_valid;
296 kal_uint8 no_username;
297 kal_uint8 username[16];
298 kal_uint8 dcs_of_username;
299 kal_bool is_passwd_valid;
300 kal_uint8 no_passwd;
301 kal_uint8 passwd[16];
302 kal_uint8 dcs_of_passwd;
303 kal_bool is_local_addr_valid;
304 kal_uint8 no_local_addr;
305 kal_uint8 local_addr[16];
306 kal_bool is_dest_addr_valid;
307 kal_uint8 no_dest_addr;
308 kal_uint8 dest_addr[16];
309 sat_gprs_bearer_para_struct gprs_bearer;
310} l4cabm_sate_set_gprs_account_info_req_struct;
311#endif /* __SATCE__ */
312
313typedef struct {
314 kal_uint8 ref_count;
315 kal_uint16 msg_len;
316 kal_uint8 src_id;
317 kal_uint8 profile_type;
318#ifdef __SATCE__
319 l4cabm_sate_set_gprs_account_info_req_struct sate_account_info;
320#endif /* __SATCE__ */
321} l4cabm_set_gprs_account_info_req_struct;
322
323typedef struct {
324 kal_uint8 ref_count;
325 kal_uint16 msg_len;
326 kal_uint8 src_id;
327 kal_uint8 profile_type;
328 kal_uint8 profile_id;
329} l4cabm_get_gprs_account_info_req_struct;
330
331typedef struct {
332 kal_uint8 ref_count;
333 kal_uint16 msg_len;
334 kal_uint8 src_id;
335 l4c_gprs_account_info_struct gprs_account_info;
336} l4cabm_get_gprs_account_info_rsp_struct;
337
338// Karen
339typedef struct {
340 kal_uint8 ref_count;
341 kal_uint16 msg_len;
342 kal_bool result;
343 kal_uint16 err_cause;
344 kal_uint8 profile_id;
345 kal_uint8 qos_id; // Qos Profile ID
346 kal_uint8 context_id;
347 kal_bool is_qos_fulfilled; // Flag indicates whether the requested QoS is fulfilled by established bearer
348} l4c_ps_abm_reactivate_rsp_struct;
349
350typedef struct
351{
352 kal_uint8 ref_count;
353 kal_uint16 msg_len;
354 kal_uint8 profile_id;
355 kal_uint8 context_id;
356 nvram_editor_qos_struct nwk_neg_qos;
357}l4c_ps_abm_pdp_modify_ind_struct; //__GPRS_BEARER_REPORT_NEGOTIATED_QOS__
358
359typedef struct
360{
361 kal_uint8 ref_count;
362 kal_uint16 msg_len;
363 kal_uint8 connect_type;
364 kal_uint8 call_id;
365 kal_uint8 context_id;
366}l4c_abm_dialup_connect_ind_struct;
367
368typedef struct
369{
370 kal_uint8 ref_count;
371 kal_uint16 msg_len;
372 kal_uint8 connect_type;
373 kal_uint8 call_id;
374 kal_uint8 context_id;
375}l4c_abm_dialup_connecting_ind_struct;
376
377typedef struct
378{
379 kal_uint8 ref_count;
380 kal_uint16 msg_len;
381 kal_uint8 context_id;
382 kal_uint64 tx_before_reset;
383 kal_uint64 rx_before_reset;
384}l4c_ps_abm_dialup_info_ind_struct;
385
386typedef struct
387{
388 kal_uint8 ref_count;
389 kal_uint16 msg_len;
390 kal_uint8 connect_type;
391 kal_uint8 call_id;
392 kal_uint8 context_id;
393}l4c_abm_dialup_disc_ind_struct;
394
395typedef struct {
396 kal_uint64 tx;
397 kal_uint64 rx;
398 kal_uint8 context_id;
399} l4c_ps_abm_single_pdp_call_history_info_struct;
400
401typedef struct {
402 kal_uint8 context_id;
403 kal_bool reset_tx;
404 kal_bool reset_rx;
405} l4c_ps_abm_single_pdp_call_history_reset_cmd_struct;
406
407typedef struct {
408 l4c_ps_abm_single_pdp_call_history_reset_cmd_struct original_cmd;
409 l4c_ps_abm_single_pdp_call_history_info_struct volume_before_reset;
410} l4c_ps_dialup_info_reset_result_struct;
411
412typedef struct
413{
414 kal_uint8 ref_count;
415 kal_uint16 msg_len;
416 kal_uint8 serial_num;
417 kal_uint8 total_reset_num;
418 l4c_ps_dialup_info_reset_result_struct result[MAX_GPRS_DIALUP_NUM];
419}l4c_ps_abm_reset_dialup_info_rsp_struct;
420
421typedef struct
422{
423 LOCAL_PARA_HDR
424 kal_uint8 status; /* l4c_rac_response_enum */
425 kal_uint8 plmn[6+1];
426 kal_uint8 gsm_state;
427 kal_uint8 gprs_state;
428 kal_uint8 gprs_status; /* l4c_gprs_status_enum */
429 kal_uint8 rat;
430 kal_uint8 cell_support_egprs;
431 kal_uint8 lac[2];
432} l4c_ps_abm_nw_attach_ind_struct;
433
434typedef struct
435{
436 kal_uint8 ref_count;
437 kal_uint16 msg_len;
438 kal_uint8 connect_type;
439 kal_uint8 call_id;
440 kal_uint8 context_id;
441 kal_bool result;
442}l4c_abm_dialup_disc_rsp_struct;
443
444typedef struct
445{
446 kal_uint8 ref_count;
447 kal_uint16 msg_len;
448 kal_uint8 serial_num;
449 kal_uint8 total_context_id;
450 l4c_ps_abm_single_pdp_call_history_info_struct result[MAX_GPRS_DIALUP_NUM];
451}l4c_ps_abm_get_dialup_info_rsp_struct;
452
453
454typedef struct
455{
456 kal_uint8 ref_count;
457 kal_uint16 msg_len;
458 kal_uint8 gprs_status;
459}l4c_abm_gprs_status_ind_struct;
460
461#endif /* ~_L4C2ABM_STRUCT_H */
462
463