blob: 11019f6add27c33962e4df8eb078afdc5d6a8b31 [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 * TCM2PPP_STRUCT.H
41 *
42 * Project:
43 * --------
44 * MAUI
45 *
46 * Description:
47 * ------------
48 * This file describes the common struct of TCM and PPP.
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 * removed!
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 *------------------------------------------------------------------------------
113 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
114 *============================================================================
115 ****************************************************************************/
116
117/********************************************************************************
118* Copyright Statement:
119* --------------------
120*
121* This product has been developed using a protocol stack
122* developed by Sasken Communication Technologies Limited.
123*
124********************************************************************************/
125
126#ifndef _TCM2PPP_STRUCT_H
127#define _TCM2PPP_STRUCT_H
128
129#include "kal_general_types.h"
130//#include "kal_non_specific_general_types.h"
131//#include "mmi_sm_enums.h"
132//#include "tcm2sm_struct.h"
133#include "ps_public_enum.h"
134#include "ps_public_struct.h"
135
136//#include "mmi_l3_enums.h"
137
138typedef struct {
139 kal_uint8 ref_count;
140 kal_uint16 msg_len;
141 kal_uint8 context_id;
142 pdp_addr_type_enum pdp_addr_type; /* pdp_addr_type_enum */
143 kal_uint8 pdp_addr_len; /* pdp address length*/
144 kal_uint8 pdp_addr[MAXIMUM_POSSIBLE_ADDR_LEN]; // Array size is 20; If IPv4v6 address is assigned,
145 // pdp_addr[0]~[3] is IPv4 address, pdp_addr[4]~[19] is IPv6
146 kal_uint8 config_protocol;
147 kal_uint8 config_option_len; /* config option length*/
148 config_option_struct config_option[MAX_NUM_CONFIG_OPTION_PACKETS];
149 kal_uint8 dns[4];
150 kal_uint8 src_id;
151 kal_bool pdp_act_cause_2_present ; // if network has cause_2 value in ACTIVATE_PDP_CONTEXT_ACCEPT
152 ps_cause_enum pdp_act_cause_2 ; // just relay the PDP accept cause_2 value,
153 // meaningful possible values are: PDP_TYPE_IPV4_ONLY_ALLOWED,
154 // PDP_TYPE_IPV6_ONLY_ALLOWED,
155 // SINGLE_ADDR_BEARERS_ONLY_ALLOWED
156} mmi_ext_pdp_activate_ack_rsp_struct;
157
158typedef struct {
159 kal_uint8 ref_count;
160 kal_uint16 msg_len;
161 kal_uint8 context_id;
162 kal_uint8 config_protocol;
163 kal_uint8 config_option_len; /* config option length*/
164 config_option_struct config_option[MAX_NUM_CONFIG_OPTION_PACKETS];
165 kal_uint8 src_id;
166 kal_bool is_rejected_by_nw; // if this PDP is rejected by NW using SM peer msg, KAL_TRUE, else, KAL_FALSE
167 kal_bool pdp_act_cause_present ; // if network has cause_2 value in previous ACTIVATE_PDP_CONTEXT_ACCEPT
168 ps_cause_enum pdp_act_cause ; // the previous PDP accept cause_2 value, ex: PDP_TYPE_IPV4_ONLY_ALLOWED,
169 // PDP_TYPE_IPV6_ONLY_ALLOWED, SINGLE_ADDR_BEARERS_ONLY_ALLOWED
170 ps_cause_enum cause; // (ps_cause_enum), this is used by RAT_TCM when value == RAT_TCM_RETRY_NEEDED_AFTER_IRAT
171} mmi_ext_pdp_activate_rej_rsp_struct;
172
173typedef struct {
174 kal_uint8 ref_count;
175 kal_uint16 msg_len;
176 kal_uint8 context_id;
177 kal_uint8 src_id;
178 l4c_result_enum result; // deactivate success or fail
179 ps_cause_enum cause; // (ps_cause_enum), this is used by RAT_TCM when value == RAT_TCM_RETRY_NEEDED_AFTER_IRAT
180} mmi_ext_pdp_deactivate_ack_rsp_struct;
181
182typedef struct {
183 kal_uint8 ref_count;
184 kal_uint16 msg_len;
185 kal_uint8 context_id;
186} mmi_ext_pdp_deactivate_req_struct;
187
188typedef struct {
189 kal_uint8 ref_count;
190 kal_uint16 msg_len;
191 kal_uint8 context_id;
192 kal_uint8 dl_pool_id;
193} mmi_ext_data_req_struct;
194
195typedef struct {
196 kal_uint8 ref_count;
197 kal_uint16 msg_len;
198 kal_uint8 context_id;
199 pdp_addr_type_enum pdp_addr_type;
200 kal_uint8 pdp_addr_len;
201 kal_uint8 pdp_addr[16];
202} mmi_ext_update_pdp_addr_req_struct;
203
204typedef struct {
205 kal_uint8 ref_count;
206 kal_uint16 msg_len;
207 kal_uint8 context_id; /* for __APP_SECONDARY_PDP_SUPPORT__ */
208 kal_uint8 profile_id;
209} mmi_data_req_struct;
210
211// PPP Type PDP Dialup Feature
212typedef struct {
213 kal_uint8 ref_count;
214 kal_uint16 msg_len;
215 kal_uint8 serial_number; // for matching request and confirm
216} mmi_ext_pdp_set_ip_and_dns_info_cnf_struct;
217
218//mtk04121
219/* PPP Dial-up */
220typedef struct {
221 kal_uint8 ref_count;
222 kal_uint16 msg_len;
223 kal_uint8 src_id;
224 kal_uint8 context_id;
225 kal_uint8 result;
226 ps_cause_enum error_cause;
227} ppptcm_enter_data_mode_cnf_struct;
228
229typedef mmi_ext_pdp_activate_ack_rsp_struct taf_ext_pdp_activate_ack_rsp_struct;
230typedef mmi_ext_pdp_activate_rej_rsp_struct taf_ext_pdp_activate_rej_rsp_struct;
231typedef mmi_ext_pdp_deactivate_ack_rsp_struct taf_ext_pdp_deactivate_ack_rsp_struct;
232typedef mmi_ext_pdp_deactivate_req_struct taf_ext_pdp_deactivate_req_struct;
233typedef mmi_ext_data_req_struct taf_data_req_struct;
234typedef mmi_data_req_struct tcpip_tcm_data_ind_struct;
235typedef mmi_ext_update_pdp_addr_req_struct taf_ext_update_pdp_addr_req_struct;
236typedef mmi_ext_pdp_set_ip_and_dns_info_cnf_struct taf_ext_pdp_set_ip_and_dns_info_cnf_struct;
237
238//mtk04121
239/* PPP Dial-up */
240typedef ppptcm_enter_data_mode_cnf_struct taf_ext_enter_data_mode_cnf_struct;
241
242#endif
243
244