blob: 0df125a1d6b18a9eea92a434be38be88398ce05c [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 * PPP2TCM_STRUCT.H
41 *
42 * Project:
43 * --------
44 * MAUI
45 *
46 * Description:
47 * ------------
48 * This file describes the common struct of TCM 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 *------------------------------------------------------------------------------
109 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
110 *============================================================================
111 ****************************************************************************/
112
113/********************************************************************************
114* Copyright Statement:
115* --------------------
116*
117* This product has been developed using a protocol stack
118* developed by Sasken Communication Technologies Limited.
119*
120********************************************************************************/
121
122#ifndef _PPP2TCM_STRUCT_H
123#define _PPP2TCM_STRUCT_H
124
125//#include "mmi_l3_enums.h"
126
127//------------------------------ suggest Add ------------------------------
128//#include "kal_non_specific_general_types.h"
129
130/* Poying: MSBB. */
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//------------------------------ suggest Add ------------------------------
137#include "kal_general_types.h"
138#include "kal_public_defs.h"
139
140typedef struct {
141 LOCAL_PARA_HDR
142 kal_uint8 context_id;
143 kal_uint8 l2p_type; /* layer two protocol*/
144 kal_uint8 pdp_addr_len; /* pdp address length*/
145 kal_uint8 pdp_type; /* pdp address type*/
146 kal_uint8 pdp_addr[16];
147 kal_uint8 config_protocol;
148 kal_uint8 config_option_len; /* config option length*/
149 config_option_struct config_option[MAX_NUM_CONFIG_OPTION_PACKETS];
150 kal_uint8 src_id;
151 //mtk04121
152 kal_uint32 req_reason;
153} mmi_ext_pdp_activate_ind_struct;
154
155typedef struct {
156 LOCAL_PARA_HDR
157 kal_uint8 context_id;
158 kal_uint8 flc_pool_type;
159 kal_uint8 pool_id;
160} mmi_ext_data_ind_struct;
161
162typedef struct {
163 LOCAL_PARA_HDR
164 kal_uint8 context_id;
165 kal_uint8 src_id;
166 #ifdef __LOCAL_DEACTIVATE_PDP_SUPPORT__
167 kal_bool local_deactivate_pdp; /* __LOCAL_DEACTIVATE_PDP_SUPPORT__ */
168 #endif // ~ __LOCAL_DEACTIVATE_PDP_SUPPORT__
169 tcm_pdp_deact_reason_enum deact_reason; // this deactivation is due to MSG_ID_TCM_RAT_TCM_INIT_DEACTIVATE_CONTEXT_IND
170} mmi_ext_pdp_deactivate_ind_struct;
171
172typedef struct {
173 LOCAL_PARA_HDR
174 kal_uint8 context_id;
175 kal_uint8 cause;
176} mmi_link_free_ind_struct;
177
178typedef struct {
179 // [Note] 20081114
180 // This struct shall be aligned with cmux_pkt_data_ind_struct
181 // If you need to modify it, please notify both TCM & CMUX owners. Thanks!
182 LOCAL_PARA_HDR
183 kal_uint8 context_id; /* for __APP_SECONDARY_PDP_SUPPORT__ */
184 kal_uint8 profile_id;
185 kal_uint8 flc_pool_type;
186 kal_uint8 pool_id;
187} mmi_data_ind_struct;
188
189// PPP Type PDP Dialup Feature
190typedef struct {
191 LOCAL_PARA_HDR
192 kal_uint8 serial_number; // for matching request and confirm
193 kal_uint8 context_id;
194 kal_uint8 src_id;
195 kal_uint8 ipv4_addr[4];
196 kal_uint8 ipv4_dns1[4];
197 kal_uint8 ipv4_dns2[4];
198 kal_uint8 ipv6_addr[16];
199 kal_uint8 ipv6_dns1[16];
200 kal_uint8 ipv6_dns2[16];
201} mmi_ext_pdp_set_ip_and_dns_info_req_struct;
202
203typedef struct {
204 LOCAL_PARA_HDR
205 kal_uint8 src_id;
206 kal_uint8 context_id;
207 kal_uint8 channel_id;
208 pdp_addr_type_enum pdp_type;
209 kal_uint8 additional_para_type; //tcm_pdp_activate_req_additional_para_type_enum (TCM_PDP_ACT_REQ_HAS_EXTRA_PARA_AS_MODULE_ID)
210 kal_uint32 additional_para_content; // module id
211}ppptcm_enter_data_mode_req_struct;
212
213
214typedef mmi_ext_pdp_activate_ind_struct taf_ext_pdp_activate_ind_struct;
215typedef mmi_ext_data_ind_struct taf_data_ind_struct;
216typedef mmi_data_ind_struct tcpip_tcm_data_req_struct;
217typedef mmi_ext_pdp_deactivate_ind_struct taf_ext_pdp_deactivate_ind_struct;
218typedef mmi_link_free_ind_struct taf_link_free_ind_struct;
219typedef mmi_ext_pdp_set_ip_and_dns_info_req_struct taf_ext_pdp_set_ip_and_dns_info_req_struct;
220
221typedef ppptcm_enter_data_mode_req_struct taf_ext_enter_data_mode_req_struct;
222
223#endif
224
225