rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 1 | /***************************************************************************** |
| 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 | #ifndef _D2RM_DDM_STRUCT_H |
| 37 | #define _D2RM_DDM_STRUCT_H |
| 38 | |
| 39 | #include "kal_general_types.h" |
| 40 | #include "kal_public_defs.h" |
| 41 | #include "atcmd_struct.h" |
| 42 | #include "atcmd_enum.h" |
| 43 | #include "ps_public_enum.h" |
| 44 | #include "ddm_common_struct.h" |
| 45 | #include "d2pm_ddm_struct.h" |
| 46 | #include "d2pm_d2rm_struct.h" |
| 47 | |
| 48 | // Implementation |
| 49 | /******************************************************************************* |
| 50 | * D2RM to DDM REQ * |
| 51 | *******************************************************************************/ |
| 52 | typedef ddm_ip_info_struct d2rm_ddm_ip_info_struct; |
| 53 | typedef ddm_net_info_struct d2rm_ddm_net_info_struct; |
| 54 | typedef ddm_retry_info_struct d2rm_ddm_retry_info_struct; |
| 55 | typedef ddm_ims_info_struct d2rm_ddm_ims_info_struct; |
| 56 | |
| 57 | typedef enum |
| 58 | { |
| 59 | D2RM_DDM_DEACT_MODE_NORMAL = 0x0, |
| 60 | D2RM_DDM_DEACT_MODE_GRT = 0x1, |
| 61 | }d2rm_ddm_deact_mode_enum; |
| 62 | |
| 63 | typedef enum |
| 64 | { |
| 65 | D2RM_DDM_PCO_FF03H_VALUE_0 = 0x0, |
| 66 | D2RM_DDM_PCO_FF03H_VALUE_1 = 0x1, |
| 67 | D2RM_DDM_PCO_FF03H_VALUE_MAX = 0x7FFFFFFF, |
| 68 | }d2rm_ddm_pco_ff03h_enum; |
| 69 | |
| 70 | typedef struct |
| 71 | { |
| 72 | d2rm_ddm_deact_mode_enum mode; |
| 73 | }d2rm_ddm_deact_data_call_req_prv_struct; |
| 74 | |
| 75 | // MSG_ID_D2RM_DDM_ACT_DATA_CALL_REQ |
| 76 | typedef struct |
| 77 | { |
| 78 | ddm_pdp_type_enum pdp_type; |
| 79 | }d2rm_ddm_param_roam_struct; |
| 80 | |
| 81 | typedef struct |
| 82 | { |
| 83 | ddm_pdp_type_enum pdp_type; |
| 84 | }d2rm_ddm_param_5g_roam_struct; |
| 85 | |
| 86 | typedef struct |
| 87 | { |
| 88 | kal_bool qos_param_present; |
| 89 | kal_uint32 qos_reliability; |
| 90 | kal_uint32 qos_precedence_class; |
| 91 | kal_uint32 qos_delay_class; |
| 92 | kal_uint32 qos_peak_throughput_class; |
| 93 | kal_uint32 qos_mean_throughput_class; |
| 94 | }d2rm_ddm_param_qos_struct; |
| 95 | |
| 96 | typedef struct |
| 97 | { |
| 98 | LOCAL_PARA_HDR |
| 99 | |
| 100 | /* common part */ |
| 101 | kal_int32 cid; |
| 102 | kal_char apn[APN_STRING_LEN]; |
| 103 | kal_int32 apn_idx; |
| 104 | kal_uint32 src_id; |
| 105 | |
| 106 | atcmd_request_type_enum req_type; |
| 107 | atcmd_rat_enum cell_rat; |
| 108 | |
| 109 | apn_type_info_struct apn_type_info; // ddm_common_struct.h |
| 110 | cid_info_struct cid_info; |
| 111 | |
| 112 | /* conditional part */ |
| 113 | struct |
| 114 | { |
| 115 | struct |
| 116 | { |
| 117 | pdp_addr_type_enum pdx_type; // by default NULL_PDP_ADDR_TYPE |
| 118 | }roam; |
| 119 | |
| 120 | struct |
| 121 | { |
| 122 | kal_char dnn[APN_STRING_LEN]; // by default a NULL string |
| 123 | pdp_addr_type_enum pdx_type; // by default NULL_PDP_ADDR_TYPE in ps_public_enum_public.h |
| 124 | atcmd_SSC_mode_enum ssc_mode; // by default ATCMD_SSC_MODE_MAX |
| 125 | at_s_nssai_struct s_nssai; // by default is_sst_present, is_sd_present, is_mapped_configured_sst_present, is_mapped_configured_sd_present) = (KAL_FALSE, KAL_FALSE, KAL_FALSE, KAL_FALSE) |
| 126 | atcmd_Access_type_enum access_type; // by default ATCMD_ACCESS_TYPE_MAX |
| 127 | }vg; |
| 128 | |
| 129 | struct |
| 130 | { |
| 131 | pdp_addr_type_enum pdx_type; // by default NULL_PDP_ADDR_TYPE |
| 132 | }vg_roam; |
| 133 | |
| 134 | /* operator part */ |
| 135 | struct |
| 136 | { |
| 137 | kal_uint32 wapn; // by default 0 to disable VzW |
| 138 | kal_uint32 apncl; |
| 139 | kal_uint32 apned; |
| 140 | kal_uint32 max_conn; |
| 141 | kal_uint32 max_conn_t; |
| 142 | kal_uint32 wait_time; |
| 143 | }vzw; |
| 144 | |
| 145 | struct |
| 146 | { |
| 147 | kal_uint32 inact_time; // by default 0 |
| 148 | }sprint; |
| 149 | }cond; |
| 150 | |
| 151 | /* ---- 234G HPLMN ---- */ |
| 152 | kal_bool fb_ipv4_first; |
| 153 | kal_uint32 auth_type; |
| 154 | pdp_addr_type_enum pdp_type; |
| 155 | kal_uint8 username[USERID_STRING_LEN]; |
| 156 | kal_uint8 passwd[PASSWORD_STRING_LEN]; |
| 157 | // kal_bool carrier_enabled; // renamed to cond.vzw.apned |
| 158 | // kal_uint32 max_conn; |
| 159 | // kal_uint32 max_conn_time; |
| 160 | // kal_uint32 wait_time; |
| 161 | // kal_uint32 inact_time; |
| 162 | kal_bool pcscf_restore; |
| 163 | /* ++++ 234G HPLMN ++++ */ |
| 164 | |
| 165 | kal_bool is_dangling; |
| 166 | kal_bool is_acttest; |
| 167 | |
| 168 | d2rm_ddm_param_qos_struct param_qos; |
| 169 | d2rm_ddm_pco_ff03h_enum pco_ff03h; |
| 170 | //d2rm_ddm_param_roam_struct param_roam; |
| 171 | //d2rm_ddm_param_5g_roam_struct param_5g_roam; |
| 172 | d2_legacy_at_struct param_legacy_at; |
| 173 | }d2rm_ddm_act_data_call_req_struct; |
| 174 | |
| 175 | // MSG_ID_D2RM_DDM_DEACT_DATA_CALL_REQ |
| 176 | |
| 177 | typedef struct |
| 178 | { |
| 179 | LOCAL_PARA_HDR |
| 180 | |
| 181 | /* common part */ |
| 182 | kal_uint32 cid; |
| 183 | |
| 184 | /* private part */ |
| 185 | d2pm_ddm_deact_data_call_req_prv_struct d2pm_ddm_prv; |
| 186 | d2am_ddm_deact_data_call_req_prv_struct d2am_ddm_prv; |
| 187 | d2rm_ddm_deact_data_call_req_prv_struct d2rm_ddm_prv; |
| 188 | }d2rm_ddm_deact_data_call_req_struct; |
| 189 | |
| 190 | // MSG_ID_D2RM_DDM_ABORT_DATA_CALL_REQ |
| 191 | typedef d2rm_ddm_deact_data_call_req_struct d2rm_ddm_abort_data_call_req_struct; |
| 192 | |
| 193 | // MSG_ID_D2RM_DDM_GET_DATA_CALL_LIST_REQ |
| 194 | typedef struct |
| 195 | { |
| 196 | LOCAL_PARA_HDR |
| 197 | |
| 198 | at_cgact_req_struct cmd; |
| 199 | d2pm_ddm_comm_req_prv_struct d2pm_ddm_prv; |
| 200 | }d2rm_ddm_get_data_call_list_req_struct; |
| 201 | |
| 202 | // MSG_ID_D2RM_DDM_GET_DYNAMIC_PARAM_REQ |
| 203 | typedef struct |
| 204 | { |
| 205 | LOCAL_PARA_HDR |
| 206 | |
| 207 | at_cgcontrdp_req_struct cmd; |
| 208 | d2pm_ddm_comm_req_prv_struct d2pm_ddm_prv; |
| 209 | }d2rm_ddm_get_dynamic_param_req_struct; |
| 210 | |
| 211 | // MSG_ID_D2RM_DDM_GET_PDP_ADDRESS_REQ |
| 212 | typedef struct |
| 213 | { |
| 214 | LOCAL_PARA_HDR |
| 215 | |
| 216 | at_cgpaddr_req_struct cmd; |
| 217 | d2pm_ddm_comm_req_prv_struct d2pm_ddm_prv; |
| 218 | }d2rm_ddm_get_pdp_address_req_struct; |
| 219 | |
| 220 | //MSG_ID_D2RM_DDM_GET_SECONDARY_DYNAMIC_PARAM_REQ |
| 221 | typedef struct |
| 222 | { |
| 223 | LOCAL_PARA_HDR |
| 224 | |
| 225 | at_cgscontrdp_req_struct cmd; |
| 226 | d2pm_ddm_comm_req_prv_struct d2pm_ddm_prv; |
| 227 | }d2rm_ddm_get_secondary_dynamic_param_req_struct; |
| 228 | |
| 229 | // MSG_ID_D2RM_DDM_GET_QOS_REQ |
| 230 | typedef struct |
| 231 | { |
| 232 | LOCAL_PARA_HDR |
| 233 | |
| 234 | at_cgeqosrdp_req_struct cmd; |
| 235 | d2pm_ddm_comm_req_prv_struct d2pm_ddm_prv; |
| 236 | }d2rm_ddm_get_qos_req_struct; |
| 237 | |
| 238 | // MSG_ID_D2RM_DDM_GET_5GQOS_REQ |
| 239 | typedef struct |
| 240 | { |
| 241 | LOCAL_PARA_HDR |
| 242 | |
| 243 | at_c5gqosrdp_req_struct cmd; |
| 244 | d2pm_ddm_comm_req_prv_struct d2pm_ddm_prv; |
| 245 | }d2rm_ddm_get_5gqos_req_struct; |
| 246 | |
| 247 | // MSG_ID_D2RM_DDM_GET_TFT_REQ |
| 248 | typedef struct |
| 249 | { |
| 250 | LOCAL_PARA_HDR |
| 251 | |
| 252 | at_cgtftrdp_req_struct cmd; |
| 253 | d2pm_ddm_comm_req_prv_struct d2pm_ddm_prv; |
| 254 | }d2rm_ddm_get_tft_req_struct; |
| 255 | |
| 256 | // MSG_ID_D2RM_DDM_SET_PACKET_FILTER_REQ |
| 257 | typedef struct |
| 258 | { |
| 259 | LOCAL_PARA_HDR |
| 260 | |
| 261 | at_eglnkpf_req_struct cmd; |
| 262 | d2pm_ddm_comm_req_prv_struct d2pm_ddm_prv; |
| 263 | }d2rm_ddm_set_packet_filter_req_struct; |
| 264 | |
| 265 | //MSG_ID_D2RM_DDM_GET_PACKET_FILTER_REQ |
| 266 | /*atp_cmd_mode_enum: ATP_READ_MODE, cid_parse_result: AT_TOKEN_PARSE_RESULT_NOT_FOUND*/ |
| 267 | typedef d2rm_ddm_set_packet_filter_req_struct d2rm_ddm_get_packet_filter_req_struct; |
| 268 | |
| 269 | // MSG_ID_D2RM_DDM_MODIFY_DATA_CALL_REQ |
| 270 | typedef struct |
| 271 | { |
| 272 | LOCAL_PARA_HDR |
| 273 | |
| 274 | at_cgcmod_req_struct cmd; |
| 275 | d2pm_ddm_comm_req_prv_struct d2pm_ddm_prv; |
| 276 | }d2rm_ddm_modify_data_call_req_struct; |
| 277 | |
| 278 | // MSG_ID_D2RM_DDM_GET_RETRYTMR_REQ |
| 279 | typedef struct |
| 280 | { |
| 281 | LOCAL_PARA_HDR |
| 282 | |
| 283 | /* common part */ |
| 284 | kal_char apn[APN_STRING_LEN]; |
| 285 | |
| 286 | /* private part */ |
| 287 | d2pm_ddm_comm_req_prv_struct d2pm_ddm_prv; |
| 288 | }d2rm_ddm_get_retrytmr_req_struct; |
| 289 | |
| 290 | // MSG_ID_D2RM_DDM_SET_RETRYTMR_REQ |
| 291 | typedef struct |
| 292 | { |
| 293 | LOCAL_PARA_HDR |
| 294 | |
| 295 | /* common part */ |
| 296 | kal_char apn[APN_STRING_LEN]; |
| 297 | kal_uint8 cmd; |
| 298 | |
| 299 | /* private part */ |
| 300 | d2pm_ddm_comm_req_prv_struct d2pm_ddm_prv; |
| 301 | }d2rm_ddm_set_retrytmr_req_struct; |
| 302 | |
| 303 | // MSG_ID_D2RM_DDM_GET_EPDG_INFO_REQ |
| 304 | typedef struct |
| 305 | { |
| 306 | LOCAL_PARA_HDR |
| 307 | kal_uint32 cid; |
| 308 | } d2rm_ddm_get_epdg_info_req_struct; |
| 309 | |
| 310 | // MSG_ID_D2RM_DDM_VZWAPNE_REQ |
| 311 | typedef struct |
| 312 | { |
| 313 | LOCAL_PARA_HDR |
| 314 | |
| 315 | /* common part */ |
| 316 | kal_uint32 txid, num_of_apn; |
| 317 | struct |
| 318 | { |
| 319 | kal_char apn[APN_STRING_LEN]; |
| 320 | kal_int32 apn_idx; |
| 321 | }apn_list[DDM_MAX_NUM_OF_APN]; |
| 322 | |
| 323 | /* private part */ |
| 324 | // N/A |
| 325 | }d2rm_ddm_vzwapne_req_struct; |
| 326 | |
| 327 | // MSG_ID_D2RM_DDM_VZWAPNETMR_REQ |
| 328 | typedef struct |
| 329 | { |
| 330 | LOCAL_PARA_HDR |
| 331 | |
| 332 | /* common part */ |
| 333 | kal_uint32 txid, num_of_apn; |
| 334 | struct |
| 335 | { |
| 336 | kal_char apn[APN_STRING_LEN]; |
| 337 | kal_int32 apn_idx; |
| 338 | }apn_list[DDM_MAX_NUM_OF_APN]; |
| 339 | |
| 340 | /* private part */ |
| 341 | // N/A |
| 342 | }d2rm_ddm_vzwapnetmr_req_struct; |
| 343 | |
| 344 | /******************************************************************************* |
| 345 | * DDM TO D2RM CNF * |
| 346 | *******************************************************************************/ |
| 347 | |
| 348 | |
| 349 | // MSG_ID_D2RM_DDM_ACT_DATA_CALL_CNF |
| 350 | typedef struct |
| 351 | { |
| 352 | kal_bool errcause_present; |
| 353 | kal_int32 errcause; |
| 354 | kal_bool retrytime_present; |
| 355 | kal_int32 retrytime; |
| 356 | }d2rm_ddm_act_data_call_cnf_prv_struct; |
| 357 | |
| 358 | typedef struct |
| 359 | { |
| 360 | LOCAL_PARA_HDR |
| 361 | |
| 362 | /*common part*/ |
| 363 | kal_uint32 cid; |
| 364 | kal_uint8 apn[APN_STRING_LEN]; |
| 365 | kal_uint8 req_apn[APN_STRING_LEN]; |
| 366 | #if 0 |
| 367 | /* under construction !*/ |
| 368 | /* under construction !*/ |
| 369 | #endif |
| 370 | d2rm_ddm_ip_info_struct ip_info; // for IP address |
| 371 | d2rm_ddm_net_info_struct net_info; // for Internet information |
| 372 | |
| 373 | // ddm_res_enum res_code; |
| 374 | kal_uint32 res_code; |
rjw | 8e44aab | 2022-11-30 16:42:16 +0800 | [diff] [blame] | 375 | // result info |
| 376 | res_info_ps_cause_t ps_cause; |
| 377 | res_info_nw_cause_t nw_cause; |
rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 378 | /* private part */ |
| 379 | d2rm_ddm_act_data_call_cnf_prv_struct d2rm_ddm_prv; |
| 380 | d2pm_ddm_act_data_call_cnf_prv_struct d2pm_ddm_prv; |
| 381 | |
| 382 | d2rm_ddm_retry_info_struct retry_info; |
| 383 | d2rm_ddm_pco_ff03h_enum pco_ff03h; |
| 384 | }d2rm_ddm_act_data_call_cnf_struct; |
| 385 | |
| 386 | // MSG_ID_D2RM_DDM_DEACT_DATA_CALL_CNF |
| 387 | typedef struct |
| 388 | { |
| 389 | LOCAL_PARA_HDR |
| 390 | |
| 391 | /* common part */ |
| 392 | kal_uint32 cid; |
| 393 | ddm_res_enum res_code; |
| 394 | /* private part */ |
| 395 | d2pm_ddm_deact_data_call_cnf_prv_struct d2pm_ddm_prv; |
| 396 | }d2rm_ddm_deact_data_call_cnf_struct; |
| 397 | |
| 398 | // MSG_ID_D2RM_DDM_ABORT_DATA_CALL_CNF |
| 399 | typedef d2rm_ddm_deact_data_call_cnf_struct d2rm_ddm_abort_data_call_cnf_struct; |
| 400 | |
| 401 | // MSG_ID_D2RM_DDM_GET_DATA_CALL_LIST_CNF |
| 402 | typedef struct |
| 403 | { |
| 404 | LOCAL_PARA_HDR |
| 405 | |
| 406 | ddm_res_enum res_code; |
| 407 | d2pm_ddm_comm_cnf_prv_struct d2pm_ddm_prv; |
| 408 | }d2rm_ddm_get_data_call_list_cnf_struct; |
| 409 | |
| 410 | // MSG_ID_D2RM_DDM_GET_DYNAMIC_PARAM_CNF |
| 411 | typedef struct |
| 412 | { |
| 413 | LOCAL_PARA_HDR |
| 414 | |
| 415 | ddm_res_enum res_code; |
| 416 | d2pm_ddm_comm_cnf_prv_struct d2pm_ddm_prv; |
| 417 | }d2rm_ddm_get_dynamic_param_cnf_struct; |
| 418 | |
| 419 | // MSG_ID_D2RM_DDM_GET_PDP_ADDRESS_CNF |
| 420 | typedef struct |
| 421 | { |
| 422 | LOCAL_PARA_HDR |
| 423 | |
| 424 | ddm_res_enum res_code; |
| 425 | d2pm_ddm_comm_cnf_prv_struct d2pm_ddm_prv; |
| 426 | }d2rm_ddm_get_pdp_address_cnf_struct; |
| 427 | |
| 428 | //MSG_ID_D2RM_DDM_GET_SECONDARY_DYNAMIC_PARAM_CNF |
| 429 | typedef struct |
| 430 | { |
| 431 | LOCAL_PARA_HDR |
| 432 | |
| 433 | ddm_res_enum res_code; |
| 434 | d2pm_ddm_comm_cnf_prv_struct d2pm_ddm_prv; |
| 435 | }d2rm_ddm_get_secondary_dynamic_param_cnf_struct; |
| 436 | |
| 437 | // MSG_ID_D2RM_DDM_GET_QOS_CNF |
| 438 | typedef struct |
| 439 | { |
| 440 | LOCAL_PARA_HDR |
| 441 | |
| 442 | ddm_res_enum res_code; |
| 443 | d2pm_ddm_comm_cnf_prv_struct d2pm_ddm_prv; |
| 444 | }d2rm_ddm_get_qos_cnf_struct; |
| 445 | |
| 446 | // MSG_ID_D2RM_DDM_GET_TFT_CNF |
| 447 | typedef struct |
| 448 | { |
| 449 | LOCAL_PARA_HDR |
| 450 | |
| 451 | ddm_res_enum res_code; |
| 452 | d2pm_ddm_comm_cnf_prv_struct d2pm_ddm_prv; |
| 453 | }d2rm_ddm_get_tft_cnf_struct; |
| 454 | |
| 455 | //MSG_ID_D2RM_DDM_SET_PACKET_FILTER_CNF |
| 456 | typedef struct |
| 457 | { |
| 458 | LOCAL_PARA_HDR |
| 459 | |
| 460 | ddm_res_enum res_code; |
| 461 | d2pm_ddm_comm_cnf_prv_struct d2pm_ddm_prv; |
| 462 | }d2rm_ddm_set_packet_filter_cnf_struct; |
| 463 | //MSG_ID_D2RM_DDM_GET_PACKET_FILTER_CNF |
| 464 | typedef struct |
| 465 | { |
| 466 | LOCAL_PARA_HDR |
| 467 | |
| 468 | ddm_res_enum res_code; |
| 469 | d2pm_ddm_comm_cnf_prv_struct d2pm_ddm_prv; |
| 470 | }d2rm_ddm_get_packet_filter_cnf_struct; |
| 471 | //MSG_ID_D2RM_DDM_MODIFY_DATA_CALL_CNF |
| 472 | typedef struct |
| 473 | { |
| 474 | LOCAL_PARA_HDR |
| 475 | |
| 476 | ddm_res_enum res_code; |
| 477 | d2pm_ddm_comm_cnf_prv_struct d2pm_ddm_prv; |
| 478 | }d2rm_ddm_modify_data_call_cnf_struct; |
| 479 | |
| 480 | // MSG_ID_D2RM_DDM_GET_RETRYTMR_CNF |
| 481 | typedef struct |
| 482 | { |
| 483 | LOCAL_PARA_HDR |
| 484 | |
| 485 | /* common part */ |
| 486 | kal_char apn[APN_STRING_LEN]; |
| 487 | d2rm_ddm_retry_info_struct retry_info; |
| 488 | |
| 489 | /* private part */ |
| 490 | d2pm_ddm_comm_cnf_prv_struct d2pm_ddm_prv; |
| 491 | }d2rm_ddm_get_retrytmr_cnf_struct; |
| 492 | |
| 493 | // MSG_ID_D2RM_DDM_SET_RETRYTMR_CNF |
| 494 | typedef struct |
| 495 | { |
| 496 | LOCAL_PARA_HDR |
| 497 | |
| 498 | /* common part */ |
| 499 | kal_char apn[APN_STRING_LEN]; |
| 500 | kal_bool is_succ; |
| 501 | |
| 502 | /* private part */ |
| 503 | d2pm_ddm_comm_cnf_prv_struct d2pm_ddm_prv; |
| 504 | }d2rm_ddm_set_retrytmr_cnf_struct; |
| 505 | |
| 506 | // MSG_ID_D2RM_DDM_GET_EPDG_INFO_CNF |
| 507 | typedef struct |
| 508 | { |
| 509 | LOCAL_PARA_HDR |
| 510 | |
| 511 | kal_int32 cid; |
| 512 | kal_bool is_success; |
| 513 | }d2rm_ddm_get_epdg_info_cnf_struct; |
| 514 | |
| 515 | |
| 516 | /******************************************************************************* |
| 517 | * DDM TO D2RM IND * |
| 518 | *******************************************************************************/ |
| 519 | |
| 520 | |
| 521 | // MSG_ID_D2RM_DDM_ACT_DATA_CALL_IND |
| 522 | typedef d2rm_ddm_act_data_call_cnf_prv_struct d2rm_ddm_act_data_call_ind_prv_struct; |
| 523 | typedef struct |
| 524 | { |
| 525 | LOCAL_PARA_HDR |
| 526 | |
| 527 | /*common part*/ |
| 528 | kal_uint32 cid; |
| 529 | kal_uint8 apn[APN_STRING_LEN]; |
| 530 | kal_uint8 req_apn[APN_STRING_LEN]; |
| 531 | #if 0 |
| 532 | /* under construction !*/ |
| 533 | /* under construction !*/ |
| 534 | #endif |
| 535 | d2rm_ddm_ip_info_struct ip_info; |
| 536 | d2rm_ddm_net_info_struct net_info; |
| 537 | ddm_res_enum res_code; |
rjw | 8e44aab | 2022-11-30 16:42:16 +0800 | [diff] [blame] | 538 | res_info_ps_cause_t ps_cause; |
| 539 | res_info_nw_cause_t nw_cause; |
rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 540 | /* private part */ |
| 541 | d2rm_ddm_act_data_call_ind_prv_struct d2rm_ddm_prv; |
| 542 | d2pm_ddm_act_data_call_ind_prv_struct d2pm_ddm_prv; |
| 543 | }d2rm_ddm_act_data_call_ind_struct; |
| 544 | |
| 545 | typedef struct |
| 546 | { |
| 547 | LOCAL_PARA_HDR |
| 548 | |
| 549 | /* common part */ |
| 550 | kal_bool apn_present; |
| 551 | kal_uint8 apn[APN_STRING_LEN]; |
| 552 | kal_bool req_apn_present; |
| 553 | kal_uint8 req_apn[APN_STRING_LEN]; |
| 554 | #if 0 |
| 555 | /* under construction !*/ |
| 556 | /* under construction !*/ |
| 557 | /* under construction !*/ |
| 558 | /* under construction !*/ |
| 559 | #endif |
| 560 | kal_bool ip_info_present; |
| 561 | d2rm_ddm_ip_info_struct ip_info; |
| 562 | kal_bool net_info_present; |
| 563 | d2rm_ddm_net_info_struct net_info; |
| 564 | at_cgev_ind_struct cgev_cmd; |
| 565 | kal_uint32 cid; |
| 566 | ps_cause_enum deact_cause; |
| 567 | d2pm_ddm_res_enum res; |
| 568 | kal_uint32 pdx_attr; |
| 569 | /*private part */ |
| 570 | d2pm_ddm_urc_cgev_ind_prv_struct d2pm_ddm_prv; |
| 571 | }d2rm_ddm_urc_cgev_ind_struct; |
| 572 | |
| 573 | // MSG_ID_D2RM_DDM_GET_DATA_CALL_LIST_IND |
| 574 | typedef struct |
| 575 | { |
| 576 | LOCAL_PARA_HDR |
| 577 | |
| 578 | at_cgact_ind_struct cmd; |
| 579 | d2pm_ddm_comm_ind_prv_struct d2pm_ddm_prv; |
| 580 | }d2rm_ddm_get_data_call_list_ind_struct; |
| 581 | |
| 582 | // MSG_ID_D2RM_DDM_GET_DYNAMIC_PARAM_IND |
| 583 | typedef struct |
| 584 | { |
| 585 | LOCAL_PARA_HDR |
| 586 | |
| 587 | kal_uint32 cid; |
| 588 | |
| 589 | d2pm_ddm_get_dynamic_param_ind_prv_struct d2pm_ddm_prv; |
| 590 | }d2rm_ddm_get_dynamic_param_ind_struct; |
| 591 | |
| 592 | // MSG_ID_D2RM_DDM_GET_PDP_ADDRESS_IND |
| 593 | typedef struct |
| 594 | { |
| 595 | LOCAL_PARA_HDR |
| 596 | |
| 597 | at_cgpaddr_ind_struct cmd; |
| 598 | d2pm_ddm_comm_ind_prv_struct d2pm_ddm_prv; |
| 599 | }d2rm_ddm_get_pdp_address_ind_struct; |
| 600 | |
| 601 | //MSG_ID_D2RM_DDM_GET_SECONDARY_DYNAMIC_PARAM_IND |
| 602 | typedef struct |
| 603 | { |
| 604 | LOCAL_PARA_HDR |
| 605 | |
| 606 | at_cgscontrdp_ind_struct cmd; |
| 607 | d2pm_ddm_comm_ind_prv_struct d2pm_ddm_prv; |
| 608 | }d2rm_ddm_get_secondary_dynamic_param_ind_struct; |
| 609 | |
| 610 | // MSG_ID_D2RM_DDM_GET_QOS_IND |
| 611 | typedef struct |
| 612 | { |
| 613 | LOCAL_PARA_HDR |
| 614 | |
| 615 | at_cgeqosrdp_ind_struct cmd; |
| 616 | d2pm_ddm_comm_ind_prv_struct d2pm_ddm_prv; |
| 617 | }d2rm_ddm_get_qos_ind_struct; |
| 618 | |
| 619 | // MSG_ID_D2RM_DDM_GET_5GQOS_IND |
| 620 | typedef struct |
| 621 | { |
| 622 | LOCAL_PARA_HDR |
| 623 | |
| 624 | at_c5gqosrdp_ind_struct cmd; |
| 625 | d2pm_ddm_comm_ind_prv_struct d2pm_ddm_prv; |
| 626 | }d2rm_ddm_get_5gqos_ind_struct; |
| 627 | |
| 628 | // MSG_ID_D2RM_DDM_GET_TFT_IND |
| 629 | typedef struct |
| 630 | { |
| 631 | LOCAL_PARA_HDR |
| 632 | |
| 633 | at_cgtftrdp_ind_struct cmd; |
| 634 | d2pm_ddm_comm_ind_prv_struct d2pm_ddm_prv; |
| 635 | }d2rm_ddm_get_tft_ind_struct; |
| 636 | |
| 637 | //MSG_ID_D2RM_DDM_GET_PACKET_FILTER_IND |
| 638 | typedef struct |
| 639 | { |
| 640 | LOCAL_PARA_HDR |
| 641 | |
| 642 | at_eglnkpf_ind_struct cmd; |
| 643 | d2pm_ddm_comm_ind_prv_struct d2pm_ddm_prv; |
| 644 | }d2rm_ddm_get_packet_filter_ind_struct; |
| 645 | |
| 646 | // MSG_ID_D2RM_DDM_URC_EGEV_IND |
| 647 | typedef struct |
| 648 | { |
| 649 | LOCAL_PARA_HDR |
| 650 | kal_uint32 cid; |
| 651 | kal_uint8 apn[APN_STRING_LEN]; |
| 652 | d2rm_ddm_ip_info_struct ip_info; |
| 653 | d2rm_ddm_net_info_struct net_info; |
| 654 | d2rm_ddm_ims_info_struct ims_info; |
| 655 | /* private part */ |
| 656 | d2pm_ddm_mod_data_call_ind_prv_struct d2pm_ddm_prv; |
| 657 | }d2rm_ddm_mod_data_call_ind_struct; |
| 658 | |
| 659 | // MSG_ID_D2RM_DDM_RST_RETRYTMR_IND |
| 660 | typedef struct{ |
| 661 | LOCAL_PARA_HDR |
| 662 | |
| 663 | /* common part */ |
| 664 | kal_bool apn_present; |
| 665 | kal_char apn[APN_STRING_LEN]; |
| 666 | kal_uint32 cause; //TBD: if needed |
| 667 | |
| 668 | /* private part */ |
| 669 | d2pm_ddm_comm_ind_prv_struct d2pm_ddm_prv; |
| 670 | }d2rm_ddm_rst_retrytmr_ind_struct; |
| 671 | |
| 672 | // MSG_ID_D2RM_DDM_GET_EPDG_INFO_IND |
| 673 | typedef struct |
| 674 | { |
| 675 | LOCAL_PARA_HDR |
| 676 | |
| 677 | kal_int32 cid; |
| 678 | d2rm_ddm_ip_info_struct ip_info; |
| 679 | }d2rm_ddm_get_epdg_info_ind_struct; |
| 680 | /******************************************************************************* |
| 681 | * D2RM TO DDM RSP * |
| 682 | *******************************************************************************/ |
| 683 | |
| 684 | typedef struct { |
| 685 | LOCAL_PARA_HDR |
| 686 | kal_uint8 rat_src; |
| 687 | kal_uint8 rat_dst; |
| 688 | kal_uint32 context_id; |
| 689 | kal_uint32 network_interface_id; |
| 690 | char cmd[128]; |
| 691 | } d2rm_db_test_req_struct; |
| 692 | |
| 693 | typedef struct d2rm_db_test_cnf_struct{ |
| 694 | LOCAL_PARA_HDR |
| 695 | kal_bool is_successful; |
| 696 | ps_cause_enum error_result; |
| 697 | kal_uint8 ps_id; |
| 698 | kal_uint32 action; |
| 699 | kal_uint32 rat; |
| 700 | kal_uint32 cid; |
| 701 | kal_uint32 network_interface_id; |
| 702 | void *user_data; |
| 703 | } d2rm_db_test_cnf_struct; |
| 704 | |
| 705 | //MSG_ID_D2RM_DB_DUMP_IND |
| 706 | |
| 707 | typedef enum { |
| 708 | RMDB_STATE_UNBIND = 0, |
| 709 | RMDB_STATE_UNBINDING = 1, |
| 710 | RMDB_STATE_BIND = 2, |
| 711 | RMDB_STATE_BINDING = 3, |
| 712 | } rmdb_state_e; |
| 713 | |
| 714 | typedef enum { |
| 715 | RMDB_RAT_INVALID = ERR, |
| 716 | RMDB_RAT_CELLULAR = CELL, |
| 717 | RMDB_RAT_WIFI = WLAN, |
| 718 | |
| 719 | RMDB_RAT_DATA_1 = DATA_1, |
| 720 | RMDB_RAT_DATA_2 = DATA_2, |
| 721 | RMDB_RAT_DATA_3 = DATA_3, |
| 722 | RMDB_RAT_DATA_4 = DATA_4 |
| 723 | } rmdb_rat_e; |
| 724 | |
| 725 | /* action */ |
| 726 | typedef enum { |
| 727 | RMDB_ACTION_NONE = 0, |
| 728 | RMDB_ACTION_NOTIFY_ONLY, |
| 729 | RMDB_ACTION_BIND, |
| 730 | RMDB_ACTION_UNBIND, |
| 731 | RMDB_ACTION_REBIND, |
| 732 | |
| 733 | RMDB_ACTION_REBIND_BIND, |
| 734 | RMDB_ACTION_REBIND_UNBIND, |
| 735 | } rmdb_action_e; |
| 736 | |
| 737 | typedef struct { |
| 738 | rmdb_action_e action; |
| 739 | rmdb_rat_e rat_src; |
| 740 | rmdb_rat_e rat_dst; |
| 741 | kal_uint32 cid; |
| 742 | kal_uint32 network_interface_id; |
| 743 | } rmdb_action_info_t; |
| 744 | |
| 745 | typedef struct { |
| 746 | kal_uint32 cid; |
| 747 | rmdb_state_e state; |
| 748 | rmdb_rat_e rat; |
| 749 | kal_uint32 network_interface_id; |
| 750 | } rmdb_cid_info_t; |
| 751 | |
| 752 | |
| 753 | #define D2RM_DB_MAX_ACTION_INFO_NUM (16) |
| 754 | #define D2RM_DB_MAX_CID_INFO_NUM (32) |
| 755 | typedef struct { |
| 756 | LOCAL_PARA_HDR |
| 757 | char event[32]; |
| 758 | kal_uint32 act_todo_num; |
| 759 | rmdb_action_info_t act_todo[D2RM_DB_MAX_ACTION_INFO_NUM]; |
| 760 | kal_uint32 act_going_num; |
| 761 | rmdb_action_info_t act_going[D2RM_DB_MAX_ACTION_INFO_NUM]; |
| 762 | kal_uint32 cid_num; |
| 763 | rmdb_cid_info_t cid[D2RM_DB_MAX_CID_INFO_NUM]; |
| 764 | } d2rm_db_dump_all_ind_struct; |
| 765 | |
| 766 | typedef struct { |
| 767 | LOCAL_PARA_HDR |
| 768 | char event[32]; |
| 769 | rmdb_action_info_t act_info; |
| 770 | rmdb_cid_info_t cid_info; |
| 771 | } d2rm_db_dump_info_ind_struct; |
| 772 | |
| 773 | typedef struct { |
| 774 | LOCAL_PARA_HDR |
| 775 | #if 0 |
| 776 | /* under construction !*/ |
| 777 | /* under construction !*/ |
| 778 | /* under construction !*/ |
| 779 | #else |
| 780 | at_cgdata_req_struct cmd; |
| 781 | network_interface_id_info_struct selected_network_interface_id_info; |
| 782 | apn_type_info_struct apn_type_info; |
| 783 | #endif |
| 784 | } d2rm_ddm_pdn_bind_req_struct; |
| 785 | |
| 786 | typedef struct { |
| 787 | LOCAL_PARA_HDR |
| 788 | kal_uint32 context_id; |
| 789 | kal_bool is_successful; |
| 790 | ps_cause_enum error_result; |
| 791 | } d2rm_ddm_pdn_bind_cnf_struct; |
| 792 | |
| 793 | typedef struct { |
| 794 | LOCAL_PARA_HDR |
| 795 | #if 0 |
| 796 | /* under construction !*/ |
| 797 | #else |
| 798 | at_egld_req_struct cmd; |
| 799 | #endif |
| 800 | } d2rm_ddm_pdn_unbind_req_struct; |
| 801 | |
| 802 | typedef struct { |
| 803 | LOCAL_PARA_HDR |
| 804 | kal_uint32 context_id; |
| 805 | kal_bool is_successful; |
| 806 | ps_cause_enum error_result; |
| 807 | } d2rm_ddm_pdn_unbind_cnf_struct; |
| 808 | |
| 809 | |
| 810 | #endif |
| 811 | |