blob: 8ecb48e58c1f0ea6825e18d476bf83023e5bd3bb [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) 2013
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 * sdm_atp_struct.h
40 *
41 * Project:
42 * ------------
43 * MOLY
44 *
45 * Description:
46 * ------------
47 * This file defines the interface messages between SDM and IMS Proxy.
48 *
49 * Author:
50 * -----------
51 * -------
52 *
53 *===========================================================
54 * $Log$
55 *
56 * 08 20 2021 vishwas.hegde
57 * [MOLY00693453] [In-house][MPR][CYCLE-7][MT6890][Colgin][India][[Delhi]][4GMM][MP7][FreeTest][RJIO]DUT is not able to recieve SMS
58 *
59 * .
60 *
61 * 09 18 2020 chen-wei.lan
62 * [MOLY00568087] [Gen97] Support 5g t911
63 * 5G-911
64 *
65 * 09 11 2020 chen-wei.lan
66 * [MOLY00568087] [Gen97] Support 5g t911
67 *
68 * [MPD]t911
69 *
70 * 07 27 2020 yulong.chang
71 * [MOLY00549478] [Gen97][HE3.0]N3GPP offload over data feature
72 * VoData SDM part
73 *
74 * 03 25 2020 chen-wei.lan
75 * [MOLY00499773] [FTAA][CNY][MDST][SWIFT][MT6873][Margaux][Q0][MP2][SQC][NSA][China][Shanghai][Static][SIM1:CU][SIM2:Verizon]Externel (EE),0,0,99,/data/vendor/core/,1,modem,[Fatal error(buf)] err_code1:0x00000823 err_code2:0x00000100 err_code3:0xCCCCCCCC MD Offender:NAS
76 * IMS SMS MT END
77 *
78 * 02 07 2020 chen-wei.lan
79 * [MOLY00498827] [Need Patch] [Sanity Fail] Failed SMS sending on LTE / UMTS / GSM mode.
80 * nas register status
81 *
82 * 09 25 2019 chen-wei.lan
83 * [MOLY00443561] [Gen97] SCBM
84 * SCBM
85 *
86 * 07 12 2019 chen-wei.lan
87 * [MOLY00346647] [MT6297][VDM/L4] changes for 97
88 *
89 * [SDM patch back]7342306
90 *
91 * 03 12 2019 ian-yw.chen
92 * [MOLY00390240] [Gen97] SMS features and revise
93 * .
94 *
95 * 06 27 2018 hsuanchang.chen
96 * [MOLY00335837] [¶³UT] Fix ¶³UT issue
97 * . Fix Cloud UT issue
98 *
99 * 08 07 2017 hsuanchang.chen
100 * [MOLY00220138] [SDM] LR12 to UMOLYA sync
101 *
102 * . sync [MOLY00261843] [CDMA-less][LR11.MP5] main feature CR (SDM)
103 *
104 * 04 05 2017 hsuanchang.chen
105 * [MOLY00237411] [6293][PreIT] UTK/STK SMS Flow Merge
106 *
107 * . interface
108 *
109 * 04 05 2017 hsuanchang.chen
110 * [MOLY00232032] [SDM] [MT SMS AT Merge] merge +CMT/+EIMSCMT and +CDS/+EIMSCDS
111 *
112 * . ATP and interface
113 *
114 * 04 05 2017 hsuanchang.chen
115 * [MOLY00229182] [MT6293] EIMSCFG for SDM (SDM replace WFC enable to vowifi enable)
116 * .
117 *
118 * 03 24 2017 hsuanchang.chen
119 * [MOLY00228407] [SDM] Internal Re-arch
120 *
121 * add +ECFGSET/+ECFGGET for SDM Profile
122 *
123 * 03 20 2017 hsuanchang.chen
124 * [MOLY00228407] [SDM] Internal Re-arch
125 *
126 * . remove tab and un-used code
127 *
128 * 01 06 2017 hsuanchang.chen
129 * [MOLY00220510] [93 PREIT_DEV][UMOLYA] Rename IMSP interface/context/API to ATP and reorg folder layout
130 *
131 * . SDM interface part
132 *
133 * 12 15 2016 hsuanchang.chen
134 * [SDM] rename IMSP to ATP
135 *
136 * 10 25 2016 zhichao.zhao
137 * [MOLY00204308] [Áªµ÷][Jade][CT][VoLTE]SDM will not select CS domain for SMS when CS is unregistered in LTE
138 *
139 * .
140 *
141 * 05 23 2016 ian-yw.chen
142 * [MOLY00180481] [SDM][ATT req.] Report start and end of MO SMS over IMS to AP (SDM/IMSP part)
143 * .
144 *
145 * 03 24 2016 chinte.chen
146 * [MOLY00167924] [L4][R12] Handling of SCM at VDM/SDM/L4 part
147 * .
148 *
149 * 03 15 2016 ian-yw.chen
150 * [MOLY00169015] [COPY CR][VzW][MT6735][Pre-LC][AT command][2.51] case fail at AT+CMSS=1, shows error
151 * SDM part
152 *
153 * 03 02 2016 ian-yw.chen
154 * [MOLY00163894] [SMS][TC01] 3GPP2 SMS over IMS
155 * [MT/PP download/STK] interface
156 *
157 * 03 02 2016 ian-yw.chen
158 * [MOLY00163894] [SMS][TC01] 3GPP2 SMS over IMS
159 * [MO] interfaces
160 *
161 * 03 01 2016 ian-yw.chen
162 * [MOLY00147454] VZW 3GPP2 SMS over IMS
163 * SDM and interfaces
164 *
165 * 09 18 2015 mika.leinonen
166 * [MOLY00141364] [WWFT][MT6755][Jade][EU][Telefonica][VoLTE][Germany][FT] SMS must be sent over SGs in Telefonica Germany networks
167 * Integration change for UMOLY TRUNK.
168 * Dynamic framework implemented to configure MO SMS domain preferences in 4G per operator country variant.
169 * Review SDM: http://mtksap20:8080/go?page=ReviewDisplay&reviewid=213739
170 * Review IMSP: http://mtksap20:8080/go?page=ReviewDisplay&reviewid=213748
171 *
172 * 08 26 2015 ben.chiu
173 * [MOLY00138217] [ViLTE] M0 migration ViLTE feature Interface
174 * ViLTE interface patch back
175 *
176 * 07 30 2015 chinte.chen
177 * [MOLY00132834] [COPY_CR][TMO][EM] Enable/Disable SMS over SGs through EM for TMO requirement 58071
178 * .
179 *
180 * 07 09 2015 nick.wang
181 * [MOLY00127009] WFC Patch back to UMOLY- interface part
182 * .moly wfc interface patch
183 *
184 * 07 09 2015 nick.wang
185 * [MOLY00127009] WFC Patch back to UMOLY- interface part
186 * .jade interface sync
187 *
188 * 05 08 2015 chinte.chen
189 * [MOLY00110919] [SAT] Support STK SMS over IP
190 * .
191 *
192 * 12 01 2014 chinte.chen
193 * [MOLY00086104] [SDM][Revise] remove redundant src_id from IMSP/SDM/IMCSMS
194 * .
195 *
196 * 11 22 2013 chinte.chen
197 * [MOLY00047460] [MT6582LTE][IMS][VoLTE][Basic IT][IT3-045] Memory status reporting re-enable of SMSoIP
198 * .
199 *
200 * 09 30 2013 chinte.chen
201 * [MOLY00038966] [6290E1][VoLTE][IT][BringUp] Unable to complete RAT mode config
202 * .
203 *
204 * 09 23 2013 jeff.wu
205 * [MOLY00038672] [6290E1][VoLTE][IT][BringUp] SDM assert when receiving SMS over IP config ind
206 * Rename sdm_atp_sms_over_ip_config_ind_struct to match msg id.
207 *
208 * 09 16 2013 chinte.chen
209 * [MOLY00038029] [6290E1][VoLTE][IT][SMS] fixed SMS related build error
210 * .
211 *****************************************************************************/
212
213#ifndef SDM_ATP_STRUCT_H
214#define SDM_ATP_STRUCT_H
215
216#include "ps_public_struct.h"
217#include "sdm_imcsms_enums.h"
218#include "ims_common_def.h"
219#include "sdm_atp_enums.h"
220#include "sim_public_enum.h"
221#include "c2k_sms_enums.h"
222#include "ps_public_enum.h"
223
224
225#define _C2K_MT_SMS_AT_MERGE_ 1
226#define MAX_C2K_SMS_PDU_LENGTH 255
227
228/*************************************
229*
230* IMS domain
231*
232*************************************/
233
234/* MSG_ID_SDM_ATP_CMD_SEND_SMS_IND */
235typedef struct{
236 LOCAL_PARA_HDR
237} sdm_atp_cmd_send_sms_ind_struct;
238
239
240/* MSG_ID_SDM_ATP_CMD_SEND_SMS_IND */
241typedef struct{
242 LOCAL_PARA_HDR
243} sdm_atp_cmd_send_command_ind_struct;
244
245
246/* MSG_ID_SDM_ATP_CMD_SEND_SMS_RSP */
247typedef struct{
248 LOCAL_PARA_HDR
249 kal_bool is_mr_present;
250 kal_uint8 mr_value;
251 kal_bool is_err_cause_present;
252 kal_uint16 err_cause_value;
253} sdm_atp_cmd_send_sms_rsp_struct;
254
255
256/* MSG_ID_SDM_ATP_URC_RCV_SMS_REQ */
257typedef struct{
258 LOCAL_PARA_HDR
259 sms_addr_struct sc_addr;
260} sdm_atp_urc_rcv_sms_req_struct;
261
262/* MSG_ID_SDM_ATP_CMD_SEND_DELIVER_REPORT_IND */
263/* MSG_ID_SDM_ATP_CMD_SEND_CS_DELIVER_REPORT */
264typedef struct{
265 LOCAL_PARA_HDR
266 kal_uint8 n_value;
267 kal_uint8 length;
268 kal_bool is_cdscnma;
269 atp_cmd_mode_enum cmd_mode;
270} sdm_atp_cmd_send_deliver_report_ind_struct, sdm_atp_cmd_send_cs_deliver_report_struct;
271
272typedef struct{
273 LOCAL_PARA_HDR
274 wfc_profile_enum wfc_profile;
275} sdm_atp_cmd_wfc_profile_ind_struct, sdm_atp_cmd_set_wfc_profile_req_struct;
276
277typedef struct {
278 LOCAL_PARA_HDR
279 kal_bool volte_enable;
280 kal_bool vilte_enable;
281 kal_bool vowifi_enable;
282 kal_bool viwifi_enable;
283 kal_bool ims_sms_enable;
284 kal_bool eims_enable;
285} sdm_atp_cmd_eimscfg_ind_struct;
286
287typedef struct {
288 LOCAL_PARA_HDR
289 kal_bool is_vodata_enable;
290} sdm_atp_cmd_evodata_ind_struct;
291
292/* MSG_ID_SDM_ATP_CMD_SEND_MEM_AVL_NOTIF_IND */
293typedef struct{
294 LOCAL_PARA_HDR
295 kal_uint8 smma; /* 0:abort the smma, 1:send smma */
296} sdm_atp_cmd_send_mem_avl_notif_ind_struct;
297
298
299/* MSG_ID_SDM_ATP_CMD_SEND_SMMA_UPDATE_REQ */
300typedef struct{
301 LOCAL_PARA_HDR
302 kal_bool update_mem; /* TRUE if SDM rcv +EMEMS=1,1 */
303 kal_bool update_file; /* TRUE if SDM rcv MEM_AVL_NOTIF_CNF */
304} sdm_atp_cmd_send_smma_update_req_struct;
305
306
307/* MSG_ID_SDM_ATP_IMS_REG_STATUS_IND */
308typedef struct{
309 LOCAL_PARA_HDR
310 ims_reg_state_enum ims_reg_state;
311 ims_reg_type_enum ims_reg_type;
312 ims_access_rat_enum rat;
313 ims_reg_service_enum ims_reg_service;
314 ims_ecmp_enum ecmp;
315 ims_reg_sip_uri_type_enum sip_uri_type;
316} sdm_atp_ims_reg_status_ind_struct;
317
318
319/* MSG_ID_SDM_ATP_SMS_OVER_IP_CONFIG_IND */
320typedef struct{
321 LOCAL_PARA_HDR
322 kal_uint8 sms_over_ip_nw_ind;
323} sdm_atp_sms_over_ip_config_ind_struct;
324
325/* MSG_ID_SDM_ATP_IMSI_GET_REQ */
326typedef struct{
327 LOCAL_PARA_HDR
328} sdm_atp_imsi_get_req_struct;
329
330/* MSG_ID_SDM_ATP_IMSI_GET_CNF */
331typedef struct{
332 LOCAL_PARA_HDR
333 sdm_at_cmd_result_enum result;
334} sdm_atp_imsi_get_cnf_struct;
335
336/* MSG_ID_SDM_ATP_CMD_STK_SMS_IND */
337typedef struct{
338 LOCAL_PARA_HDR
339} sdm_atp_cmd_stk_sms_ind_struct;
340
341/* MSG_ID_SDM_ATP_STK_SMS_QUERY_REQ */
342typedef struct{
343 LOCAL_PARA_HDR
344} sdm_atp_stk_sms_query_req_struct;
345
346/* MSG_ID_SDM_ATP_STK_SMS_QUERY_CNF */
347typedef struct{
348 LOCAL_PARA_HDR
349 kal_uint8 pdu_len;
350 kal_uint8 sms_pdu[MAX_SMS_PDU_LEN];
351 sdm_system_type_enum system_type;
352} sdm_atp_stk_sms_query_cnf_struct;
353
354/* MSG_ID_SDM_ATP_STK_SMS_TR_REQ */
355typedef struct{
356 LOCAL_PARA_HDR
357 sat_terminal_res_enum tr;
358 kal_bool addition_info_present;
359 kal_uint8 addition_info;
360} sdm_atp_stk_sms_tr_req_struct;
361
362/* MSG_ID_SDM_ATP_IMS_SMS_SMART_CONGESTION_REQ*/
363typedef struct
364{
365 LOCAL_PARA_HDR
366 sdm_ims_session_indication_enum indication; // CSCM=<SMSoIP=2>,<start-end indication>, Start:1, End:2
367
368} sdm_atp_ims_sms_smart_congestion_req_struct;
369
370
371/* MSG_ID_SDM_ATP_CMD_SEND_SMS_DELIVER_IND*/
372typedef struct
373{
374 LOCAL_PARA_HDR
375 sdm_sms_domain_enum sms_domain;
376} sdm_atp_cmd_send_sms_deliver_ind_struct;
377
378/* MSG_ID_SDM_ATP_CMD_SEND_C2K_SMS_DELIVER_IND*/
379typedef struct
380{
381 LOCAL_PARA_HDR
382 kal_uint8 pdu_len;
383 kal_uint8 pdu[MAX_C2K_SMS_PDU_LENGTH];
384} sdm_atp_cmd_send_c2k_sms_deliver_ind_struct;
385
386/* MSG_ID_SDM_ATP_SMS_DELIVER_URC_IND */
387typedef struct
388{
389 LOCAL_PARA_HDR
390} sdm_atp_sms_deliver_urc_ind_struct;
391
392/* MSG_ID_SDM_ATP_C2K_SMS_DELIVER_URC_IND */
393typedef struct
394{
395 LOCAL_PARA_HDR
396} sdm_atp_c2k_sms_deliver_urc_ind_struct;
397
398/* MSG_ID_SDM_ATP_CMD_SEND_STATUS_REPORT_IND*/
399typedef struct
400{
401 LOCAL_PARA_HDR
402 sdm_sms_domain_enum sms_domain;
403} sdm_atp_cmd_send_status_report_ind_struct;
404
405/* MSG_ID_SDM_ATP_STATUS_REPORT_URC_IND */
406typedef struct
407{
408 LOCAL_PARA_HDR
409} sdm_atp_status_report_urc_ind_struct;
410
411/*
412 MSG_ID_SDM_ATP_IMS_NORMAL_SMS_SMART_CONGESTION_START_REQ,
413 MSG_ID_SDM_ATP_IMS_STK_SMS_SMART_CONGESTION_START_REQ,
414 MSG_ID_SDM_ATP_IMS_CMSS_SMS_SMART_CONGESTION_START_REQ,
415 MSG_ID_SDM_ATP_IMS_C2K_SMS_SMART_CONGESTION_START_REQ,
416 MSG_ID_SDM_ATP_IMS_UTK_SMS_SMART_CONGESTION_START_REQ,
417*/
418typedef struct
419{
420 LOCAL_PARA_HDR
421} sdm_atp_ims_sms_smart_congestion_start_req_struct;
422
423typedef sdm_atp_ims_sms_smart_congestion_start_req_struct sdm_atp_ims_normal_sms_smart_congestion_start_req_struct;
424typedef sdm_atp_ims_sms_smart_congestion_start_req_struct sdm_atp_ims_stk_sms_smart_congestion_start_req_struct;
425typedef sdm_atp_ims_sms_smart_congestion_start_req_struct sdm_atp_ims_cmss_sms_smart_congestion_start_req_struct;
426typedef sdm_atp_ims_sms_smart_congestion_start_req_struct sdm_atp_ims_c2k_sms_smart_congestion_start_req_struct;
427typedef sdm_atp_ims_sms_smart_congestion_start_req_struct sdm_atp_ims_utk_sms_smart_congestion_start_req_struct;
428
429/* MSG_ID_SDM_ATP_IMS_SMS_SMART_CONGESTION_STOP_REQ */
430typedef struct
431{
432 LOCAL_PARA_HDR
433} sdm_atp_ims_sms_smart_congestion_stop_req_struct;
434
435/*
436 MSG_ID_SDM_ATP_IMS_NORMAL_SMS_SMART_CONGESTION_START_CNF,
437 MSG_ID_SDM_ATP_IMS_STK_SMS_SMART_CONGESTION_START_CNF,
438 MSG_ID_SDM_ATP_IMS_CMSS_SMS_SMART_CONGESTION_START_CNF,
439 MSG_ID_SDM_ATP_IMS_C2K_SMS_SMART_CONGESTION_START_CNF,
440 MSG_ID_SDM_ATP_IMS_UTK_SMS_SMART_CONGESTION_START_CNF,
441*/
442typedef struct{
443 LOCAL_PARA_HDR
444 sdm_at_cmd_result_enum result;
445} sdm_atp_ims_sms_smart_congestion_start_cnf_struct;
446
447typedef sdm_atp_ims_sms_smart_congestion_start_cnf_struct sdm_atp_ims_normal_sms_smart_congestion_start_cnf_struct;
448typedef sdm_atp_ims_sms_smart_congestion_start_cnf_struct sdm_atp_ims_stk_sms_smart_congestion_start_cnf_struct;
449typedef sdm_atp_ims_sms_smart_congestion_start_cnf_struct sdm_atp_ims_cmss_sms_smart_congestion_start_cnf_struct;
450typedef sdm_atp_ims_sms_smart_congestion_start_cnf_struct sdm_atp_ims_c2k_sms_smart_congestion_start_cnf_struct;
451typedef sdm_atp_ims_sms_smart_congestion_start_cnf_struct sdm_atp_ims_utk_sms_smart_congestion_start_cnf_struct;
452
453/* MSG_ID_SDM_ATP_IMS_SMS_SMART_CONGESTION_STOP_CNF */
454typedef struct{
455 LOCAL_PARA_HDR
456 sdm_at_cmd_result_enum result;
457} sdm_atp_ims_sms_smart_congestion_stop_cnf_struct;
458
459/* MSG_ID_SDM_ATP_IMS_SMS_SMART_CONGESTION_URC_IND */
460typedef struct
461{
462 LOCAL_PARA_HDR
463 sdm_ims_session_indication_enum indication; // <start-end indication> Start:1, End:2
464
465} sdm_atp_ims_sms_smart_congestion_urc_ind_struct;
466/*******************/
467/* C2K SMS over IMS */
468/*******************/
469
470/* MSG_ID_SDM_ATP_CMD_SEND_C2K_SMS_IND */
471typedef struct{
472 LOCAL_PARA_HDR
473 kal_bool is_da_valid;
474 kal_bool is_international;
475 kal_uint8 da[MAX_C2K_SMS_DA];
476} sdm_atp_cmd_send_c2k_sms_ind_struct;
477
478/* MSG_ID_SDM_ATP_CMD_SEND_C2K_SMS_RSP */
479typedef struct{
480 LOCAL_PARA_HDR
481 kal_uint8 error_class;
482 kal_uint16 cause_code;
483 kal_uint16 msg_id;
484} sdm_atp_cmd_send_c2k_sms_rsp_struct;
485
486
487/* MSG_ID_SDM_ATP_URC_RCV_C2K_SMS_REQ */
488typedef struct{
489 LOCAL_PARA_HDR
490} sdm_atp_urc_rcv_c2k_sms_req_struct;
491
492
493/* MSG_ID_SDM_ATP_SEND_C2K_MSG_URC_IND */
494typedef struct{
495 LOCAL_PARA_HDR
496 kal_uint16 length;
497 kal_uint8 pdu[MAX_SMS_PDU_LEN];
498} sdm_atp_send_c2k_msg_urc_ind_struct;
499
500
501/* MSG_ID_SDM_ATP_CMD_SEND_C2K_ACKNOWLEDGE_IND */
502typedef struct{
503 LOCAL_PARA_HDR
504} sdm_atp_cmd_send_c2k_acknowledge_ind_struct;
505
506
507/*************************************
508*
509* CS domain
510*
511*************************************/
512
513/* MSG_ID_SDM_ATP_CS_SMS_SUBMIT */
514typedef struct{
515 LOCAL_PARA_HDR
516} sdm_atp_cs_sms_submit_struct;
517
518
519/* MSG_ID_SDM_ATP_CS_SMS_SUBMIT_REPORT_ACK */
520typedef struct{
521 LOCAL_PARA_HDR
522} sdm_atp_cs_sms_submit_report_ack_struct;
523
524
525/* MSG_ID_SDM_ATP_CS_SMS_SUBMIT_REPORT_NACK */
526typedef struct{
527 LOCAL_PARA_HDR
528} sdm_atp_cs_sms_submit_report_nack_struct;
529
530
531/* MSG_ID_SDM_ATP_CS_SMS_COMMAND */
532typedef struct{
533 LOCAL_PARA_HDR
534} sdm_atp_cs_sms_command_struct;
535
536/* MSG_ID_SDM_ATP_CS_SMS_SMMA */
537typedef struct{
538 LOCAL_PARA_HDR
539 kal_uint8 smma; /*0:abort the smma, 1: send smma*/
540} sdm_atp_cs_sms_smma_struct;
541
542/* MSG_ID_SDM_ATP_SMS_OVER_SGS_CONFIG_IND */
543typedef struct
544{
545 LOCAL_PARA_HDR
546 kal_bool enable;
547} sdm_atp_sms_over_sgs_config_ind_struct;
548
549/* MSG_ID_SDM_ATP_CS_STK_SMS_REQ */
550typedef struct{
551 LOCAL_PARA_HDR
552} sdm_atp_cs_stk_sms_req_struct;
553
554/* MSG_ID_SDM_ATP_CS_STK_SMS_CNF */
555typedef struct{
556 LOCAL_PARA_HDR
557 kal_uint8 result;
558 sat_terminal_res_enum tr;
559 kal_bool addition_info_present;
560 kal_uint8 addition_info;
561} sdm_atp_cs_stk_sms_cnf_struct;
562
563/*************************************
564*
565* CMSS: Message Send from Storage
566*
567*************************************/
568
569/* MSG_ID_SDM_ATP_CMD_SEND_CMSS_IND */
570typedef struct{
571 LOCAL_PARA_HDR
572 kal_uint8 index;
573 l4c_number_struct da;
574} sdm_atp_cmd_send_cmss_ind_struct;
575
576/* MSG_ID_SDM_ATP_CMD_SEND_CMSS_RSP */
577typedef struct{
578 LOCAL_PARA_HDR
579 kal_bool is_mr_present;
580 kal_uint8 mr_value;
581 kal_bool is_err_cause_present;
582 kal_uint16 err_cause_value;
583} sdm_atp_cmd_send_cmss_rsp_struct;
584
585/* MSG_ID_SDM_ATP_CMSS_IMS_REQ */
586typedef struct{
587 LOCAL_PARA_HDR
588 kal_bool is_retry;
589 kal_uint8 domain; //Domain = 0 for IMS; Domain = 1 for CS
590 kal_uint8 mr;
591 kal_uint8 index;
592 l4c_number_struct da;
593} sdm_atp_cmss_ims_req_struct;
594
595typedef sdm_atp_cmss_ims_req_struct sdm_atp_cmss_cs_req_struct;
596
597/* MSG_ID_SDM_ATP_CMSS_IMS_CNF */
598typedef struct{
599 LOCAL_PARA_HDR
600 kal_uint8 result;
601 //<result> 0: if unable to get the PDU correctly from the storage
602 // 1: if operation is successful
603 // 2: if sending the SMS over CS domain fails, but PDU is successfully retrieved.
604 // (Only Possible if the domain is CS)
605 sms_addr_struct sca;
606 kal_uint8 mr;
607} sdm_atp_cmss_ims_cnf_struct;
608
609typedef sdm_atp_cmss_ims_cnf_struct sdm_atp_cmss_cs_cnf_struct;
610
611/* MSG_ID_SDM_ATP_UPDATE_MSG_BOX_REQ */
612typedef struct{
613 LOCAL_PARA_HDR
614 kal_bool result;
615 kal_uint8 mr;
616} sdm_atp_update_msg_box_req_struct;
617
618/* MSG_ID_SDM_ATP_UPDATE_MSG_BOX_CNF */
619typedef struct{
620 LOCAL_PARA_HDR
621 kal_bool result;
622} sdm_atp_update_msg_box_cnf_struct;
623
624/*************************************
625*
626* miscellaneous
627*
628*************************************/
629
630/*
631 * @brief
632 * @note MSG_ID_ATP_SDM_ECFG_SET_REQ
633 * AT> AT+ECFGSET=<cfg_name>,<cfg_value>
634 */
635typedef struct {
636 LOCAL_PARA_HDR
637 kal_uint8 name[64];
638 kal_uint8 value[128];
639} sdm_atp_ecfg_set_req_struct;
640
641/*
642 * @brief
643 * @note MSG_ID_ATP_SDM_ECFG_SET_CNF
644 * AT< OK or +CME ERROR:<err>
645 */
646typedef struct {
647 LOCAL_PARA_HDR
648 kal_bool result; // KAL_TRUE-success; KAL_FALSE-fail
649 ims_err_id_enum cause;
650
651} sdm_atp_ecfg_set_cnf_struct;
652
653
654/*
655 * @brief
656 * @note MSG_ID_ATP_SDM_ECFG_GET_REQ
657 * AT> AT+ECFGSET=<cfg_name>
658 */
659typedef struct {
660 LOCAL_PARA_HDR
661 kal_uint8 name[64];
662} sdm_atp_ecfg_get_req_struct;
663
664
665/*
666 * @brief
667 * @note MSG_ID_ATP_SDM_ECFG_GET_CNF
668 * AT< +ECFGGET:<cfg_name>,<cfg_value>
669 * AT< OK or +CME ERROR:<err>
670 */
671typedef struct {
672 LOCAL_PARA_HDR
673 kal_bool result; // KAL_TRUE-success; KAL_FALSE-fail
674 ims_err_id_enum cause;
675
676 kal_uint8 name[64];
677 kal_uint8 value[128];
678} sdm_atp_ecfg_get_cnf_struct;
679
680/*
681* @brief
682* @note MSG_ID_SDM_ATP_REPORT_PSI_URC_IND
683* +EPSI: <psi>
684*/
685typedef struct {
686 LOCAL_PARA_HDR
687 kal_uint8 psi[128];
688} sdm_atp_report_psi_urc_ind_struct;
689
690/*
691 * MSG_ID_ATP_SDM_SMS_STATUS_IND
692 * +C5GUSMS: <sms_available>, <sms_allowed>
693 */
694typedef struct
695{
696 LOCAL_PARA_HDR
697 kal_uint8 sms_available;
698 kal_uint8 sms_allowed;
699} atp_sdm_sms_status_urc_ind_struct;
700
701/* MSG_ID_SDM_ATP_CMD_EXIT_SCBM_IND */
702typedef struct{
703 LOCAL_PARA_HDR
704 exit_scbm_reason_enum reason;
705} sdm_atp_cmd_exit_scbm_ind_struct;
706
707/* MSG_ID_SDM_ATP_SEND_SCBM_URC_IND */
708typedef struct{
709 LOCAL_PARA_HDR
710 md_scbm_status_enum md_scbm_status;
711} sdm_atp_send_scbm_urc_ind_struct;
712
713/******************************************************************************
714 * AT+EAPPROVE:<dial_string>
715 * +EAPPROVE:<is_allowed>,<is_emergency>
716 *****************************************************************************/
717typedef struct
718{
719 LOCAL_PARA_HDR
720 kal_uint8 dial_num[MAX_CC_ATD_NUM_LEN];
721} sdm_atp_fdn_ecc_check_req_struct;
722
723typedef struct
724{
725 LOCAL_PARA_HDR
726 kal_bool is_allowed;
727 kal_bool is_emergency;
728 kal_uint16 emergency_service_category;
729} sdm_atp_fdn_ecc_check_cnf_struct;
730
731/******************************************************************************
732 * AT+ESMSEND:<domain>,<direction>
733 *****************************************************************************/
734typedef struct
735{
736 LOCAL_PARA_HDR
737 sdm_sms_current_domain_enum domain; //0: cs, 1: ims
738 kal_uint8 direction; //0: mo, 1: mt
739} sdm_atp_ims_mt_sms_end_req_struct;
740
741typedef struct
742{
743 LOCAL_PARA_HDR
744 kal_bool is_ut_mode_valid;
745 kal_bool ut_mode;
746 kal_bool is_force_sms_category_valid;
747 kal_uint8 force_sms_category; //0: normal, 1: emergency
748} sdm_ut_config_struct;
749
750/******************************************************************************
751 * +EIMSINFO: <rat>,<cell_id>,<cell_service>, <plmn_id>,<plmn_type>,
752 * <lac>,<tac>,<support_emc>,<lte_underly_cs_plmn_id>
753 *****************************************************************************/
754typedef struct
755{
756 LOCAL_PARA_HDR
757 rat_enum rat;
758 cell_service_enum cell_service;
759 kal_bool is_limited_service_emc_support;
760 kal_uint32 cell_id;
761 plmn_id_struct plmn_id;
762 domain_id_enum domain_id;
763 plmn_id_struct lte_cs_plmn_id;//LTE underlying CS PLMN ID, only available for LTE combined attach UE
764} sdm_atp_cell_info_update_ind_struct;
765
766#endif // SDM_ATP_STRUCT_H
767