yu.dong | c33b307 | 2024-08-21 23:14:49 -0700 | [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) 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 | * ABM2L4C_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 | *------------------------------------------------------------------------------ |
| 141 | * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 142 | *============================================================================ |
| 143 | ****************************************************************************/ |
| 144 | |
| 145 | /******************************************************************************** |
| 146 | * Copyright Statement: |
| 147 | * -------------------- |
| 148 | * |
| 149 | * This product has been developed using a protocol stack |
| 150 | * developed by Sasken Communication Technologies Limited. |
| 151 | * |
| 152 | ********************************************************************************/ |
| 153 | #ifndef _ABM2L4C_STRUCT_H |
| 154 | #define _ABM2L4C_STRUCT_H |
| 155 | //#include "ps2sat_struct.h" |
| 156 | #include "l4c2abm_struct.h" |
| 157 | //#include "kal_non_specific_general_types.h" |
| 158 | //#include "custom_mmi_default_value.h" |
| 159 | #include "kal_general_types.h" |
| 160 | #include "ps_public_struct.h" |
| 161 | #include "tcm_api.h" |
| 162 | #include "ps_public_enum.h" |
| 163 | |
| 164 | #ifdef __SATCE__ |
| 165 | typedef struct { |
| 166 | kal_uint8 ref_count; |
| 167 | kal_uint8 msg_len; |
| 168 | kal_uint8 nw_acct_id; |
| 169 | kal_bool is_apn_valid; |
| 170 | kal_uint8 apn_length; |
| 171 | kal_uint8 apn[50]; |
| 172 | kal_bool is_username_valid; |
| 173 | kal_uint8 no_username; |
| 174 | kal_uint8 username[16]; |
| 175 | kal_uint8 dcs_of_username; |
| 176 | kal_bool is_passwd_valid; |
| 177 | kal_uint8 no_passwd; |
| 178 | kal_uint8 passwd[16]; |
| 179 | kal_uint8 dcs_of_passwd; |
| 180 | kal_bool is_local_addr_valid; |
| 181 | kal_uint8 no_local_addr; |
| 182 | kal_uint8 local_addr[16]; |
| 183 | kal_bool is_dest_addr_valid; |
| 184 | kal_uint8 no_dest_addr; |
| 185 | kal_uint8 dest_addr[16]; |
| 186 | sat_gprs_bearer_para_struct gprs_bearer; |
| 187 | } abml4c_sate_set_gprs_account_info_req_struct; |
| 188 | #endif /* __SATCE__ */ |
| 189 | |
| 190 | // Packet filter content which is necessary for GGSN to enable packet classification and policing for downlink data transfer. |
| 191 | typedef struct { |
| 192 | kal_uint8 pfi; // Packet filter identifier |
| 193 | kal_uint8 epi; // Packet filter evaluation precedence |
| 194 | kal_uint8 src_addr_sb_net_mask_len; |
| 195 | kal_uint8 src_addr_sb_net_mask[8]; // IPv4 address and subnet mask |
| 196 | kal_bool prot_number_present; |
| 197 | kal_uint8 prot_number_next_hdr; // Protocol identifier |
| 198 | kal_uint8 dst_port_len; |
| 199 | kal_uint16 dst_port_range[2]; // Destination port range |
| 200 | kal_uint8 src_port_len; |
| 201 | kal_uint16 src_port_range[2]; // Source port range |
| 202 | kal_bool ipsec_spi_present; |
| 203 | kal_uint32 ipsec_spi; // IPSec security parameter index |
| 204 | kal_uint8 tos_len; |
| 205 | kal_uint8 tos_traffic_class_mask[2]; // Type of Service and mask |
| 206 | kal_bool flow_label_present; |
| 207 | kal_uint32 flow_label; // IPv6 Flow label |
| 208 | } l4c_gprs_pf_struct; |
| 209 | |
| 210 | typedef struct { |
| 211 | kal_uint8 ref_count; |
| 212 | kal_uint16 msg_len; |
| 213 | kal_uint8 profile_id; |
| 214 | kal_uint8 profile_type; |
| 215 | l4c_gprs_account_info_struct gprs_account_info; |
| 216 | tcm_ps_qos_profile_struct qos_info; //mtk02285, 20110916 |
| 217 | #ifdef __SATCE__ |
| 218 | abml4c_sate_set_gprs_account_info_req_struct sate_account_info; |
| 219 | #endif /* __SATCE__ */ |
| 220 | /* following are for __APP_SECONDARY_PDP_SUPPORT__ */ |
| 221 | kal_uint8 qos_id; // QoS Profile ID |
| 222 | kal_uint8 gprs_pf_num; // Number of gprs_pf_info |
| 223 | l4c_gprs_pf_struct gprs_pf_info[8]; // Packet filter content |
| 224 | } l4c_ps_abm_setup_req_struct; |
| 225 | |
| 226 | typedef struct { |
| 227 | kal_uint8 ref_count; |
| 228 | kal_uint16 msg_len; |
| 229 | kal_uint8 profile_id; |
| 230 | /* following are for __APP_SECONDARY_PDP_SUPPORT__ */ |
| 231 | kal_uint8 qos_id; // QoS Profile ID |
| 232 | kal_uint8 context_id; |
| 233 | kal_uint8 profile_type; |
| 234 | } l4c_ps_abm_disc_req_struct; |
| 235 | |
| 236 | typedef struct { |
| 237 | kal_uint8 ref_count; |
| 238 | kal_uint16 msg_len; |
| 239 | kal_uint8 context_id; |
| 240 | kal_bool is_qos_present; // indicates if QoS modification |
| 241 | nvram_editor_qos_struct modify_qos; // modifying QoS value |
| 242 | kal_uint8 tft_opcode; // tft_opcode_enum: the operation of TFT modification |
| 243 | kal_uint8 gprs_pf_num; // number of gprs_pf_info |
| 244 | l4c_gprs_pf_struct gprs_pf_info[8];// packet filter content |
| 245 | } l4c_ps_abm_qos_tft_modify_req_struct; |
| 246 | |
| 247 | //MAUI_02395134 |
| 248 | typedef struct { |
| 249 | kal_uint8 authentication_type; |
| 250 | kal_uint8 user_name[32]; |
| 251 | kal_uint8 password[32]; |
| 252 | kal_uint8 dns[4]; |
| 253 | kal_uint8 sec_dns[4]; |
| 254 | kal_uint8 addr_str[41+1]; //MAX_CC_ADDR_LEN +1 |
| 255 | kal_uint8 csd_ur; |
| 256 | kal_uint8 csd_type; |
| 257 | kal_uint8 csd_module; |
| 258 | } l4c_csd_account_info_struct; |
| 259 | |
| 260 | typedef struct { |
| 261 | kal_uint8 ref_count; |
| 262 | kal_uint16 msg_len; |
| 263 | kal_uint8 profile_type; |
| 264 | kal_uint8 csd_profile_id; |
| 265 | l4c_csd_account_info_struct csd_account_info; |
| 266 | } l4c_cc_abm_setup_req_struct; |
| 267 | |
| 268 | typedef struct { |
| 269 | kal_uint8 ref_count; |
| 270 | kal_uint16 msg_len; |
| 271 | kal_uint8 csd_profile_id; |
| 272 | kal_uint8 profile_type; |
| 273 | } l4c_cc_abm_disc_req_struct; |
| 274 | |
| 275 | typedef struct { |
| 276 | kal_uint8 ref_count; |
| 277 | kal_uint16 msg_len; |
| 278 | kal_uint8 src_id; |
| 279 | kal_uint8 result; |
| 280 | kal_uint8 error_cause; |
| 281 | } l4cabm_start_cnf_struct; |
| 282 | |
| 283 | typedef l4cabm_start_cnf_struct l4cabm_set_gprs_account_info_cnf_struct; |
| 284 | |
| 285 | typedef struct { |
| 286 | kal_uint8 ref_count; |
| 287 | kal_uint16 msg_len; |
| 288 | kal_uint8 src_id; |
| 289 | kal_uint8 result; |
| 290 | kal_uint8 error_cause; |
| 291 | l4c_gprs_account_info_struct gprs_account_info; |
| 292 | } l4cabm_get_gprs_account_info_cnf_struct; |
| 293 | |
| 294 | #ifdef __UCM_SUPPORT__ |
| 295 | typedef struct |
| 296 | { |
| 297 | kal_uint8 ref_count; |
| 298 | kal_uint16 msg_len; |
| 299 | kal_uint8 prof_id; |
| 300 | kal_uint8 sim_info; |
| 301 | } abm_l4c_get_csd_call_num_req_struct; |
| 302 | #endif /* __UCM_SUPPORT__ */ |
| 303 | |
| 304 | // Karen |
| 305 | typedef struct { |
| 306 | kal_uint8 ref_count; |
| 307 | kal_uint16 msg_len; |
| 308 | kal_uint8 profile_id; |
| 309 | kal_uint8 qos_id; |
| 310 | kal_uint8 context_id; |
| 311 | } l4c_ps_abm_reactivate_req_struct; |
| 312 | |
| 313 | typedef struct |
| 314 | { |
| 315 | kal_uint8 ref_count; |
| 316 | kal_uint16 msg_len; |
| 317 | kal_uint8 connect_type; |
| 318 | kal_uint8 call_id; |
| 319 | kal_uint8 context_id; |
| 320 | }l4c_abm_dialup_disc_req_struct; |
| 321 | |
| 322 | typedef struct |
| 323 | { |
| 324 | kal_uint8 ref_count; |
| 325 | kal_uint16 msg_len; |
| 326 | kal_uint8 serial_num; |
| 327 | kal_uint8 total_context_id; |
| 328 | kal_uint8 context_id[MAX_GPRS_DIALUP_NUM]; |
| 329 | }l4c_ps_abm_get_dialup_info_req_struct; |
| 330 | |
| 331 | typedef struct { |
| 332 | kal_uint8 context_id; |
| 333 | kal_bool reset_tx; |
| 334 | kal_bool reset_rx; |
| 335 | } l4c_ps_dialup_info_reset_cmd_struct; |
| 336 | |
| 337 | typedef enum |
| 338 | { |
| 339 | L4C_PS_ABM_DIALUP_RESET_TX_RX = 0, |
| 340 | L4C_PS_ABM_DIALUP_RESET_TX, |
| 341 | L4C_PS_ABM_DIALUP_RESET_RX, |
| 342 | L4C_PS_ABM_DIALUP_RESET_IN_DETAIL, |
| 343 | L4C_PS_ABM_DIALUP_RESET_INVALID |
| 344 | } l4c_reset_dialup_cmd_enum; |
| 345 | |
| 346 | typedef struct |
| 347 | { |
| 348 | kal_uint8 ref_count; |
| 349 | kal_uint16 msg_len; |
| 350 | kal_uint8 serial_num; |
| 351 | kal_uint8 total_reset_num; |
| 352 | l4c_reset_dialup_cmd_enum reset_cmd_type; //RESET_TX_RX, RESET_TX, RESET_RX, RESET_IN_DETAIL |
| 353 | l4c_ps_dialup_info_reset_cmd_struct reset_cmd[MAX_GPRS_DIALUP_NUM]; |
| 354 | }l4c_ps_abm_reset_dialup_info_req_struct; |
| 355 | #endif /* ~_ABM2L4C_STRUCT_H */ |
| 356 | |
| 357 | |