blob: 4389ba3bc629eaf35d56a23a5acd0523bd65fc7e [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) 2012
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 * Filename:
38 * ---------
39 * l4bpdn_tcm_struct.h
40 *
41 * Project:
42 * --------
43 *
44 *
45 * Description:
46 * ------------
47 *
48 *
49 * Author:
50 * -------
51 *
52 *
53 *
54 * ==========================================================================
55 * $Log$
56 *
57 * 09 22 2021 stun.wu
58 * [MOLY00728968] [ZM62] AT+EGPCO to get MSISDN
59 *
60 * 09 17 2021 judy.zhu
61 * [MOLY00704256] [VzW] 5G Ultra Wideband icon display
62 *
63 * Patch back from NR15.R3.MP branch
64 * .
65 *
66 * 09 08 2021 judy.zhu
67 * [MOLY00704256] [VzW] 5G Ultra Wideband icon display
68 *
69 * [VzW]5G Ultra Wideband icon display feature patch back
70 *
71 * .
72 *
73 * 04 19 2019 yu-hsin.lin
74 * [MOLY00399993] [Gen97][VMOLY] interworking withN26 features
75 * [MPD][Code] merge from 7781298, l4 ps with n26
76 *
77 * 03 26 2019 yu-hsin.lin
78 * [MOLY00393456] [Gen97][VMOLY] 45G InterRAT & interSystem feature
79 * [VMOLY][MPD][Interface] L4_PS Gen97 irat withou n26
80 *
81 * 12 14 2018 poying.chuang
82 * [MOLY00372635] [VMOLY] L4/TCM/TFTLIB/VGSM phase2 check-in
83 *
84 * - [L4] Phase 2 - Interfaces .
85 *
86 * 08 17 2018 poying.chuang
87 * [MOLY00346763] [6297] Gen97 L4 PS Check-In
88 *
89 * - interfaces .
90 *
91 * 05 21 2018 praveen.komatiguntla
92 * [MOLY00327084] [EIGER][MT3967]PS Data Off feature: PDP Modify procedure to update the PS Data Off Statusto NW side.
93 * PS Data off feature - L4/TCM changes.
94 *
95 * 12 11 2017 poying.chuang
96 * [MOLY00294886] [MT6763][Bianco][O1][MP2][TMO][simulator][in-house][Anritsu][Protocol_IMS & VoLTE][50905][L_IMS_VoLTE_6752_1]
97 * .
98 *
99 * 04 05 2017 poying.chuang
100 * [MOLY00209737] [MT6293] LWTG and C2K L4 integration check in
101 * [M3] Merge CL up to 3677934 - interface .
102 *
103 * 02 20 2017 poying.chuang
104 * [MOLY00209737] [MT6293] LWTG and C2K L4 integration check in
105 *
106 * - [M2] l4bpdn/tcm - interface (up to CL 3474533) .
107 *
108 ****************************************************************************/
109
110
111#ifndef _L4BPDN_TCM_STRUCT_H
112#define _L4BPDN_TCM_STRUCT_H
113
114#include "kal_general_types.h"
115#include "kal_public_defs.h"
116
117#include "tftlib_common_enum.h"
118#include "tftlib_common_struct.h"
119
120#include "ps_public_enum_public.h"
121#include "l3_inc_enums_public.h"
122#include "ps_public_struct.h"
123
124
125#if __GROUP_L4BPDN_TCM_INTERFACE_DEFINE_AND_SUB_STRUCT__ || 1
126
127#define L4BPDN_TCM_PCSCF_4_TO_8_SIZE 5
128#define L4BPDN_TCM_BEARER_NUM 15
129
130#define L4BPDN_TCM_PDU_ADDR_LIFETIME_SIZE 2
131
132typedef struct {
133 pdp_addr_type_enum type;
134 pdp_addr_len_enum len;
135 kal_uint8 val[IPV4V6_ADDR_LEN];
136} l4bpdn_tcm_ip_addr_struct;
137
138typedef struct {
139 kal_uint8 mcc1;
140 kal_uint8 mcc2;
141 kal_uint8 mcc3;
142 kal_uint8 mnc1;
143 kal_uint8 mnc2;
144 kal_uint8 mnc3;
145} l4bpdn_tcm_plmn_id_struct;
146
147typedef struct {
148 kal_uint8 context_id; /* CID */
149
150 /**
151 * In 5G, indicate PDU session id
152 * Otherwise, simply fill-in 0 (or the mapped PDU session id?) */
153 kal_uint8 pdu_session_id;
154
155 /**
156 * In 5G, indicate QoS flow id (qfi)
157 * Otherwise, indicate nsapi(23G) or ebi(4G) */
158 kal_uint8 bearer_id;
159
160 ps_cause_enum cause;
161} l4bpdn_tcm_deact_id_struct;
162
163typedef struct {
164 kal_uint8 apn_length;
165 kal_uint8 apn[MAX_APN_LEN];
166 kal_bool src_addr_sb_net_mask_present;
167 kal_uint8 src_addr_sb_net_mask[IPV4_ADDR_LEN * 2];
168 kal_bool ipv6_src_addr_sb_net_mask_present;
169 kal_uint8 ipv6_src_addr_sb_net_mask[IPV6_ADDR_LEN * 2];
170 kal_bool gw_addr_present;
171 kal_uint8 gw_addr[IPV4_ADDR_LEN];
172 kal_bool ipv6_gw_addr_present;
173 kal_uint8 ipv6_gw_addr[IPV6_ADDR_LEN];
174 kal_bool dns_present;
175 kal_uint8 dns[IPV4_ADDR_LEN];
176 kal_bool dns2_present;
177 kal_uint8 dns2[IPV4_ADDR_LEN];
178 kal_bool dns3_present;
179 kal_uint8 dns3[IPV4_ADDR_LEN];
180 kal_bool ipv6_dns_present;
181 kal_uint8 ipv6_dns[IPV6_ADDR_LEN];
182 kal_bool ipv6_dns2_present;
183 kal_uint8 ipv6_dns2[IPV6_ADDR_LEN];
184 kal_bool ipv6_dns3_present;
185 kal_uint8 ipv6_dns3[IPV6_ADDR_LEN];
186 kal_bool p_cscf_prim_addr_present;
187 kal_uint8 p_cscf_prim_addr[IPV4_ADDR_LEN];
188 kal_bool p_cscf_sec_addr_present;
189 kal_uint8 p_cscf_sec_addr[IPV4_ADDR_LEN];
190 kal_bool p_cscf_third_addr_present;
191 kal_uint8 p_cscf_third_addr[IPV4_ADDR_LEN];
192 kal_bool ipv6_p_cscf_prim_addr_present;
193 kal_uint8 ipv6_p_cscf_prim_addr[IPV6_ADDR_LEN];
194 kal_bool ipv6_p_cscf_sec_addr_present;
195 kal_uint8 ipv6_p_cscf_sec_addr[IPV6_ADDR_LEN];
196 kal_bool ipv6_p_cscf_third_addr_present;
197 kal_uint8 ipv6_p_cscf_third_addr[IPV6_ADDR_LEN];
198 kal_bool im_cn_signalling_flag_present;
199 kal_uint8 im_cn_signalling_flag;
200 kal_bool lipa_indication_present; // indicates that the PDP context provides connectivity using a LIPA PDN connection
201 kal_uint8 lipa_indication;
202 kal_bool v4_mtu_present; // shows the IPv4 MTU size in octets
203 kal_uint16 v4_mtu;
204 kal_bool wlan_offload_present; // indicates whether traffic can be offloaded using the specified PDN connection via a WLAN or not
205 kal_uint8 wlan_offload;
206 kal_bool local_addr_ind_present; // indicates whether or not the MS and the network support local IP address in TFTs
207 kal_uint8 local_addr_ind;
208 kal_bool p_cscf_fourth_to_eighth_addr_present[L4BPDN_TCM_PCSCF_4_TO_8_SIZE]; //add for CT support 8 p-cscf address requirement
209 kal_uint8 p_cscf_fourth_to_eighth_addr[L4BPDN_TCM_PCSCF_4_TO_8_SIZE][IPV4_ADDR_LEN]; //add for CT support 8 p-cscf address requirement
210 kal_bool ipv6_p_cscf_fourth_to_eighth_addr_present[L4BPDN_TCM_PCSCF_4_TO_8_SIZE]; //add for CT support 8 p-cscf address requirement
211 kal_uint8 ipv6_p_cscf_fourth_to_eighth_addr[L4BPDN_TCM_PCSCF_4_TO_8_SIZE][IPV6_ADDR_LEN]; //add for CT support 8 p-cscf address requirement
212 kal_bool ps_data_off_support_present;
213 kal_uint8 ps_data_off_support;
214 kal_bool ssc_mode_present;
215 l4c_tcm_ssc_mode_enum ssc_mode;
216 kal_bool s_nssai_present;
217 l4c_tcm_s_nssai_struct s_nssai;
218 kal_bool access_type_present;
219 l4c_tcm_access_type_enum access_type;
220 kal_uint32 rq_timer_value_in_sec;
221 l4c_tcm_always_on_pdu_enum always_on_pdu_by_nw;
222} l4bpdn_tcm_pdp_rdp_info_struct;
223
224typedef struct {
225 /* v4 dns -> Contained in l4bpdn_tcm_prim_pdp_rdp_info_struct */
226 /* v6 dns -> Contained in l4bpdn_tcm_prim_pdp_rdp_info_struct */
227 /* v4 mtu -> Contained in l4bpdn_tcm_prim_pdp_rdp_info_struct */
228
229 kal_bool msisdn_present;
230 kal_uint8 msisdn[MAX_MSISDN_LEN];
231 kal_uint8 msisdn_len;
232
233 /* pdu address lifetime */
234 kal_bool pdu_addr_lifetime_present;
235 kal_uint8 pdu_addr_lifetime[L4BPDN_TCM_PDU_ADDR_LIFETIME_SIZE];
236
237 /****************************************
238 * Operator Specific PCOs in VZW: Start *
239 ****************************************/
240 /* 0xFF00 */
241 kal_bool pdn_application_access_control_present;
242 l4bpdn_tcm_plmn_id_struct pdn_application_access_control_plmnid;
243 kal_uint8 pdn_application_access_control_action;
244
245 /* 0xFF01 */
246 kal_bool epdg_v6_plmnid_present;
247 l4bpdn_tcm_plmn_id_struct epdg_v6_plmnid;
248 kal_bool epdg_v6_addr_present;
249 kal_uint8 epdg_v6_addr[IPV6_ADDR_LEN];
250 kal_bool epdg_v6_addr2_present;
251 kal_uint8 epdg_v6_addr2[IPV6_ADDR_LEN];
252
253 /* 0xFF02 */
254 kal_bool epdg_v4_plmnid_present;
255 l4bpdn_tcm_plmn_id_struct epdg_v4_plmnid;
256 kal_bool epdg_v4_addr_present;
257 kal_uint8 epdg_v4_addr[IPV4_ADDR_LEN];
258 kal_bool epdg_v4_addr2_present;
259 kal_uint8 epdg_v4_addr2[IPV4_ADDR_LEN];
260
261 /* 0xFF03 */
262 kal_bool vzw_5guw_present;
263 kal_uint8 vzw_5guw;
264 /****************************************
265 * Operator Specific PCOs in VZW: End *
266 ****************************************/
267} l4bpdn_tcm_pco_rdp_info_struct;
268
269#endif // __GROUP_L4BPDN_TCM_INTERFACE_DEFINE_AND_SUB_STRUCT__
270
271typedef struct {
272 LOCAL_PARA_HDR
273
274 kal_uint8 context_id;
275
276 /**
277 * Indicate how to interpret the below ids: pdu_session_id, bearer_id, linked_bearer_id */
278 kal_bool is_5g_id;
279
280 /**
281 * In 5G, indicate PDU session id
282 * Otherwise, simply fill-in 0 (or the mapped PDU session id?) */
283 kal_uint8 pdu_session_id;
284
285 /**
286 * In 5G, indicate QoS flow id (qfi)
287 * Otherwise, indicate nsapi(23G) or ebi(4G) */
288 kal_uint8 bearer_id;
289
290 /**
291 * If the PDP is secondary, indicate UPCM which primary PDP context the bearer is linked with.
292 * If the PDP is primary, indicate the linked_nspai = nsapi.
293 * If in 5G, indicate the qfi which contains default qos rule */
294 kal_uint8 linked_bearer_id;
295
296 /**
297 * TFTLIB output: pkt_filter_act_list_struct
298 * - Needs to convert to pkt_filters_act_list_node_struct for UPCM use
299 * - In 5G, the conversion is done by VGSM
300 * - In 234G, the conversions are done by UGTCM and ETCM, respectively */
301 pkt_filters_act_list_node_struct *pf_action_list_node;
302
303 /* Address acquired by PDP context activation. */
304 l4bpdn_tcm_ip_addr_struct ip_addr;
305
306 kal_bool pdp_rdp_present;
307 l4bpdn_tcm_pdp_rdp_info_struct pdp_rdp;
308} l4bpdn_tcm_bearer_act_ind_struct;
309
310typedef struct {
311 LOCAL_PARA_HDR
312
313 kal_uint8 bearer_num; /* indicate number of nsapi/EBI entries carried in deact_nsapi_list.*/
314 l4bpdn_tcm_deact_id_struct deact_id_list[L4BPDN_TCM_BEARER_NUM]; /* CID/NSAPI/EBI list of the deactivated PDP contexts*/
315} l4bpdn_tcm_bearer_deact_ind_struct;
316
317typedef struct {
318 kal_uint8 context_id;
319
320 /**
321 * Indicate how to interpret the below ids: pdu_session_id, bearer_id, linked_bearer_id */
322 kal_bool is_5g_id;
323
324 /**
325 * In 5G, indicate PDU session id
326 * Otherwise, simply fill-in 0 (or the mapped PDU session id?) */
327 kal_uint8 pdu_session_id;
328
329 /**
330 * In 5G, indicate QoS flow id (qfi)
331 * Otherwise, indicate nsapi(23G) or ebi(4G) */
332 kal_uint8 bearer_id;
333
334 /**
335 * If the PDP is secondary, indicate UPCM which primary PDP context the bearer is linked with.
336 * If the PDP is primary, indicate the linked_nspai = nsapi.
337 * If in 5G, indicate the qfi which contains default qos rule */
338 kal_uint8 linked_bearer_id;
339
340 /**
341 * TFTLIB output: pkt_filter_act_list_struct
342 * - Needs to convert to pkt_filters_act_list_node_struct for UPCM use
343 * - In 5G, the conversion is done by VGSM
344 * - In 234G, the conversions are done by UGTCM and ETCM, respectively */
345 pkt_filters_act_list_node_struct *pf_action_list_node;
346
347 /* Address acquired by PDP context activation. */
348 l4bpdn_tcm_ip_addr_struct ip_addr;
349
350 kal_bool pdp_rdp_present;
351 l4bpdn_tcm_pdp_rdp_info_struct pdp_rdp;
352} l4bpdn_tcm_act_id_struct;
353
354
355typedef struct {
356 LOCAL_PARA_HDR
357
358 /* Indicate UPCM the packet filter modification is triggered by which PDP context/EPS bearer context */
359 kal_uint8 context_id;
360
361 /**
362 * Indicate how to interpret the below ids: pdu_session_id, bearer_id, linked_bearer_id */
363 kal_bool is_5g_id;
364
365 /**
366 * In 5G, indicate PDU session id
367 * Otherwise, simply fill-in 0 (or the mapped PDU session id?) */
368 kal_uint8 pdu_session_id;
369
370 /**
371 * In 5G, indicate QoS flow id (qfi)
372 * Otherwise, indicate nsapi(23G) or ebi(4G) */
373 kal_uint8 bearer_id;
374
375 /**
376 * TFTLIB output: pkt_filter_act_list_struct
377 * - Needs to convert to pkt_filters_act_list_node_struct for UPCM use
378 * - In 5G, the conversion is done by VGSM
379 * - In 234G, the conversions are done by UGTCM and ETCM, respectively */
380 pkt_filters_act_list_node_struct *pf_action_list_node;
381} l4bpdn_tcm_pf_update_ind_struct;
382
383/* Use this ILM to update PCO RDP info
384 * when it is changed by activate/modify/deactivate procedures */
385typedef struct {
386 LOCAL_PARA_HDR
387
388 kal_uint8 context_id;
389
390 l4bpdn_tcm_pco_rdp_info_struct pco_rdp;
391
392 kal_bool pdp_rdp_present;
393 l4bpdn_tcm_pdp_rdp_info_struct pdp_rdp;
394
395} l4bpdn_tcm_pco_rdp_update_ind_struct;
396
397typedef struct {
398 LOCAL_PARA_HDR
399
400 kal_uint8 deact_bearer_num; /* indicate number of nsapi/EBI entries carried in deact_bearer_list.*/
401 l4bpdn_tcm_deact_id_struct deact_bearer_list[L4BPDN_TCM_BEARER_NUM]; /* CID/NSAPI/EBI list of the deactivated PDP contexts*/
402
403 kal_bool is_4g5_irat;
404
405 kal_uint8 act_bearer_num; /* indicate number of nsapi/EBI entries carried in act_bearer_list.*/
406 l4bpdn_tcm_act_id_struct act_bearer_list[L4BPDN_TCM_BEARER_NUM]; /* CID/NSAPI/EBI list of the activated PDP contexts*/
407
408} l4bpdn_tcm_45g_irat_bearer_update_ind_struct;
409
410#endif /* _L4BPDN_TCM_STRUCT_H */