blob: 96797f1001f77692565659924abf4072db69a5a8 [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) 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 * HISTORY
39 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
40 *------------------------------------------------------------------------------
41 * removed!
42 *
43 * removed!
44 * removed!
45 * removed!
46 * removed!
47 *
48 * removed!
49 * removed!
50 * removed!
51 * removed!
52 *
53 * removed!
54 * removed!
55 *
56 * removed!
57 * removed!
58 * removed!
59 * removed!
60 *
61 * removed!
62 * removed!
63 * removed!
64 * removed!
65 *
66 * removed!
67 * removed!
68 * removed!
69 * removed!
70 * removed!
71 * removed!
72 *
73 * removed!
74 * removed!
75 *
76 * removed!
77 * removed!
78 *
79 * removed!
80 * removed!
81 *
82 * removed!
83 * removed!
84 * removed!
85 * removed!
86 *
87 * removed!
88 * removed!
89 * removed!
90 *
91 * removed!
92 * removed!
93 * removed!
94 *
95 * removed!
96 * removed!
97 * removed!
98 * removed!
99 *
100 * removed!
101 * removed!
102 *
103 * removed!
104 * removed!
105 * removed!
106 *
107 * removed!
108 * removed!
109 * removed!
110 *
111 * removed!
112 * removed!
113 * removed!
114 *
115 * removed!
116 * removed!
117 * removed!
118 *
119 *------------------------------------------------------------------------------
120 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
121 *==============================================================================
122 *******************************************************************************/
123
124#ifndef _ATP_SSDS_STRUCT_H
125#define _ATP_SSDS_STRUCT_H
126
127#include "atp_public_defs.h"
128#include "ims_interface_md.h"
129#include "netinfo_common_struct.h"
130#include "ps_public_enum_public.h"
131#include "xcap_if.h"
132#include "ssds_imc_struct.h"
133
134#define ATP_SSDS_XUI_INFO_MAX_SIZE 512 //IMC_ATCMD_MAX_CMDLINE_LEN
135#define ATP_SSDS_MAX_ADDR_BUF_NUM 10 //#define MAX_ADDR_BUF_NUM 10
136
137typedef enum
138{
139 ATP_SSDS_ECUSD_ATCMD_TYPE_BEGIN,
140 ATP_SSDS_ECUSD_ATCMD_TYPE_SS,
141 ATP_SSDS_ECUSD_ATCMD_TYPE_USSD,
142 ATP_SSDS_ECUSD_ATCMD_TYPE_UNKNOWN
143
144}atp_ssds_ecusd_atcmd_type;
145
146typedef enum
147{
148 ATP_SSDS_USSD_ATCMD_TYPE_UNKNOWN,
149 ATP_SSDS_USSD_ATCMD_TYPE_EXECUTE,
150 ATP_SSDS_USSD_ATCMD_TYPE_CANCEL,
151 ATP_SSDS_USSD_ATCMD_TYPE_ENABLE_RESULT
152
153}atp_ssds_ussd_atcmd_type;
154
155
156typedef enum
157{
158 ATP_SSDS_ATCMD_TYPE_BEGIN,
159
160 ATP_SSDS_ATCMD_TYPE_CLIP_SET,
161 ATP_SSDS_ATCMD_TYPE_CLIP_QUERY,
162 ATP_SSDS_ATCMD_TYPE_CLIP_UNKNOWN,
163
164 ATP_SSDS_ATCMD_TYPE_CLIR_SET,
165 ATP_SSDS_ATCMD_TYPE_CLIR_QUERY,
166 ATP_SSDS_ATCMD_TYPE_CLIR_UNKNOWN,
167
168 ATP_SSDS_ATCMD_TYPE_COLP_SET,
169 ATP_SSDS_ATCMD_TYPE_COLP_QUERY,
170 ATP_SSDS_ATCMD_TYPE_COLP_UNKNOWN,
171
172 ATP_SSDS_ATCMD_TYPE_COLR_SET,
173 ATP_SSDS_ATCMD_TYPE_COLR_QUERY,
174 ATP_SSDS_ATCMD_TYPE_COLR_UNKNOWN,
175
176 ATP_SSDS_ATCMD_TYPE_CALL_FORWARDING_SET,
177 ATP_SSDS_ATCMD_TYPE_CALL_FORWARDING_QUERY,
178 ATP_SSDS_ATCMD_TYPE_CALL_FORWARDING_WITH_TIMESLOT_SET,
179 ATP_SSDS_ATCMD_TYPE_CALL_FORWARDING_WITH_TIMESLOT_QUERY,
180 ATP_SSDS_ATCMD_TYPE_CALL_FORWARDING_WITHOUT_REG_SET,
181 ATP_SSDS_ATCMD_TYPE_CALL_FORWARDING_WITHOUT_REG_QUERY,
182 ATP_SSDS_ATCMD_TYPE_CALL_WAITING_SET,
183 ATP_SSDS_ATCMD_TYPE_CALL_WAITING_QUERY,
184 ATP_SSDS_ATCMD_TYPE_CALL_BARRING_SET,
185 ATP_SSDS_ATCMD_TYPE_CALL_BARRING_QUERY,
186 ATP_SSDS_ATCMD_TYPE_ECUSD_UNKNOWN,
187
188 ATP_SSDS_ATCMD_TYPE_SS_UNKNOWN,
189 ATP_SSDS_ATCMD_TYPE_EGBA_TRIGGER,
190 ATP_SSDS_ATCMD_TYPE_CNAP_QUERY,
191 ATP_SSDS_ATCMD_TYPE_DELETE_CMD,
192
193 ATP_SSDS_ATCMD_TYPE_END
194
195}atp_ssds_atcmd_type;
196
197typedef enum
198{
199 ATP_SSDS_USSD_PARSE_OK,
200 ATP_SSDS_USSD_PARSE_FAIL
201
202}atp_ssds_ussd_error_cause_type;
203
204typedef enum
205{
206 ATP_SSDS_REQ_TYPE_NORMAL,
207 ATP_SSDS_REQ_TYPE_PDN_QUERY
208
209}atp_ssds_req_type;
210
211typedef struct
212{
213 atp_ssds_ussd_atcmd_type ussd_type;
214 kal_uint8 cmd_mode;
215 kal_uint16 str_index;
216 kal_uint16 cmd_len;
217 kal_uint8 *at_cmd;
218
219}atp_ssds_atcmd_info_strut;
220
221
222typedef struct
223{
224 kal_uint32 net_id;
225 kal_uint32 dnsv4_num;
226 kal_uint8 dnsv4_addr[ATP_SSDS_MAX_ADDR_BUF_NUM][IPV4_ADDR_LEN];
227 kal_uint32 dnsv6_num;
228 kal_uint8 dnsv6_addr[ATP_SSDS_MAX_ADDR_BUF_NUM][IPV6_ADDR_LEN];
229
230}atp_ssds_network_info_strut;
231
232/*structure for ATP --- > SSDS*/
233#define ATP_SSDS_SS_ATCMD_REQ_FLAGS_SET_TO_QUERY 0x11 /*During set to XCAP, call_waiting/CLIR/CLIP/COLP/COLR set change to get*/
234typedef struct
235{
236 LOCAL_PARA_HDR
237 atp_ssds_atcmd_type ss_type;
238 atp_ssds_network_info_strut network_info;
239 kal_uint32 ss_flags;
240 kal_uint8 *ss_str;
241 atp_ssds_req_type req_type;
242
243}atp_ssds_ss_atcmd_req_struct, atp_ssds_egba_atcmd_req_struct, atp_ssds_ss_atcmd_redirect_req_struct,ssds_xcap_stkss_req_struct;
244
245typedef struct
246{
247 LOCAL_PARA_HDR
248 atp_ssds_ussd_error_cause_type ussd_error_cause;
249 atp_ssds_ussd_atcmd_type ussd_type;
250 kal_uint16 cs_cmd_len;
251 kal_uint8 *ussd_str;
252 kal_uint8 dcs;
253 kal_uint8 language[IMS_USSD_LANGUANGE_LEN];
254 kal_uint8 digit_from_line_number[IMC_MAX_URI_LENGTH];
255}atp_ssds_ussd_atcmd_req_struct;
256
257
258typedef struct
259{
260 LOCAL_PARA_HDR
261
262 kal_bool result;
263 kal_uint32 mobile_data; /*0: off; 1: on;*/
264 kal_uint32 data_roaming; /*0: off; 1: on;*/
265
266}atp_ssds_ecncfg_atcmd_req_struct;
267
268typedef struct
269{
270 LOCAL_PARA_HDR
271 kal_bool is_icon_display;
272
273}atp_ssds_stkussd_atcmd_req_struct,atp_ssds_stkss_atcmd_req_struct;
274
275
276typedef struct
277{
278 LOCAL_PARA_HDR
279
280 kal_bool result;
281 kal_uint32 roaming_type;
282
283}atp_ssds_esrvstate_atcmd_req_struct;
284
285typedef struct
286{
287 LOCAL_PARA_HDR
288 kal_bool result;
289 kal_uint32 vt_volte_enable;
290
291}atp_ssds_ecfgset_atcmd_req_struct;
292
293typedef struct
294{
295 LOCAL_PARA_HDR
296 kal_uint32 reserved;
297}atp_ssds_ss_urc_req_struct;
298
299typedef struct
300{
301 LOCAL_PARA_HDR
302 kal_bool result;
303 kal_uint32 ims_registered;
304}atp_ssds_ciregu_urc_req_struct;
305
306typedef struct
307{
308 LOCAL_PARA_HDR
309 kal_uint8 xui_info[ATP_SSDS_XUI_INFO_MAX_SIZE];
310
311}atp_ssds_xui_info_req_struct;
312
313typedef struct
314{
315 LOCAL_PARA_HDR
316 ims_reg_state_enum reg_state; // REGISTERED, UNREGISTERED
317 ims_reg_type_enum reg_type; // normal or emergency reg
318 ims_dereg_cause_enum dereg_cause; //ims_comm_def.h
319 ims_access_rat_enum rat;
320 ims_ecmp_enum ecmp;
321 ims_reg_service_enum reg_service;
322 kal_bool ims_retry;
323} atp_ssds_ims_reg_status_req_struct;
324
325typedef struct
326{
327 LOCAL_PARA_HDR
328 kal_uint8 ps_reg_status;
329 kal_uint32 ps_reg_tech;
330
331} atp_ssds_ps_reg_status_req_struct;
332
333typedef struct
334{
335 LOCAL_PARA_HDR
336 ssds_ussd_status_enum ussd_status;
337
338} atp_ssds_ussd_atcmd_redirect_ind_struct;
339
340
341typedef struct
342{
343 LOCAL_PARA_HDR
344 proxy_cmd_result_enum result;
345 kal_uint32 error_code;
346 kal_uint32 real_error_code;
347 XCAP_NW_ERROR_DETAIL_INFO error_info;
348
349}atp_ssds_ss_atcmd_redirect_cnf_struct,atp_ssds_ussd_atcmd_redirect_cnf_struct,atp_ssds_erat_query_cnf_struct,atp_ssds_erat_set_cnf_struct;
350
351/*structure for SSDS --- > ATP*/
352
353typedef struct
354{
355 LOCAL_PARA_HDR
356 kal_uint32 reserved;
357}atp_ssds_ss_urc_ind_struct;
358
359typedef struct
360{
361 LOCAL_PARA_HDR
362 ssds_ussd_status_enum ussd_status;
363 kal_uint16 ussd_len;
364}atp_ssds_ussd_urc_ind_struct;
365
366
367
368typedef struct
369{
370 LOCAL_PARA_HDR
371 proxy_cmd_result_enum result;
372 kal_uint32 error_code;
373 kal_uint32 real_error_code;
374 XCAP_NW_ERROR_DETAIL_INFO error_info;
375
376}atp_ssds_ss_atcmd_cnf_struct, atp_ssds_egba_atcmd_cnf_struct,ssds_xcap_ss_atcmd_cnf_struct,ssds_xcap_stkss_cnf_struct;
377
378typedef struct
379{
380 LOCAL_PARA_HDR
381 kal_uint32 test_mode;
382}atp_ssds_test_req_struct;
383
384typedef struct
385{
386 LOCAL_PARA_HDR
387}atp_ssds_excaprcn_urc_ind_struct;
388
389typedef struct {
390 LOCAL_PARA_HDR
391 kal_uint8 sim_id;
392 kal_uint32 sbp_id;
393 protocol_id_enum ps_id;
394 kal_char mcc[MAX_MCC_STR_LEN];
395 kal_char mnc[MAX_MNC_STR_LEN];
396 //nvram_ef_ssds_xcap_profile_struct xcap_mcf_config;
397} ssds_dsbp_reconfigure_ind_struct;
398
399#endif /* _ATP_SSDS_STRUCT_H */