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) 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 | * mnsms_struct.h |
| 41 | * |
| 42 | * Project: |
| 43 | * -------- |
| 44 | * MAUI |
| 45 | * |
| 46 | * Description: |
| 47 | * ------------ |
| 48 | * |
| 49 | * Author: |
| 50 | * ------- |
| 51 | * ------- |
| 52 | * |
| 53 | *============================================================================ |
| 54 | * HISTORY |
| 55 | * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 56 | *------------------------------------------------------------------------------ |
| 57 | * removed! |
| 58 | * |
| 59 | * removed! |
| 60 | * removed! |
| 61 | * removed! |
| 62 | * removed! |
| 63 | * |
| 64 | * removed! |
| 65 | * removed! |
| 66 | * removed! |
| 67 | * removed! |
| 68 | * |
| 69 | * removed! |
| 70 | * removed! |
| 71 | * removed! |
| 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 | * removed! |
| 92 | * |
| 93 | * removed! |
| 94 | * removed! |
| 95 | * removed! |
| 96 | * |
| 97 | * removed! |
| 98 | * removed! |
| 99 | * removed! |
| 100 | * |
| 101 | * removed! |
| 102 | * removed! |
| 103 | * removed! |
| 104 | * |
| 105 | * removed! |
| 106 | * removed! |
| 107 | * removed! |
| 108 | * |
| 109 | * removed! |
| 110 | * removed! |
| 111 | * removed! |
| 112 | * |
| 113 | * removed! |
| 114 | * removed! |
| 115 | * removed! |
| 116 | * |
| 117 | * removed! |
| 118 | * removed! |
| 119 | * removed! |
| 120 | * |
| 121 | * removed! |
| 122 | * removed! |
| 123 | * removed! |
| 124 | * |
| 125 | * removed! |
| 126 | * removed! |
| 127 | * removed! |
| 128 | * |
| 129 | * removed! |
| 130 | * removed! |
| 131 | * removed! |
| 132 | * |
| 133 | * removed! |
| 134 | * removed! |
| 135 | * removed! |
| 136 | * |
| 137 | *------------------------------------------------------------------------------ |
| 138 | * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 139 | *============================================================================ |
| 140 | ****************************************************************************/ |
| 141 | |
| 142 | /******************************************************************************** |
| 143 | * Copyright Statement: |
| 144 | * -------------------- |
| 145 | * |
| 146 | * This product has been developed using a protocol stack |
| 147 | * developed by Sasken Communication Technologies Limited. |
| 148 | * |
| 149 | ********************************************************************************/ |
| 150 | |
| 151 | /******************************************************************************* |
| 152 | * Copyright Statement: |
| 153 | * -------------------- |
| 154 | * This software is protected by Copyright and the information contained |
| 155 | * herein is confidential. The software may not be copied and the information |
| 156 | * contained herein may not be used or disclosed except with the written |
| 157 | * permission of MediaTek Inc. (C) 2002 |
| 158 | * |
| 159 | ******************************************************************************* |
| 160 | * FILENAME : mnsms_struct.h |
| 161 | * SYNOPSIS : Functions for encoding/decoding. |
| 162 | * |
| 163 | * R E V I S I O N H I S T O R Y |
| 164 | * |
| 165 | */ |
| 166 | #ifndef _MNSMS_STRUCT_H |
| 167 | #define _MNSMS_STRUCT_H |
| 168 | |
| 169 | #include "ps_public_struct.h" |
| 170 | #include "kal_general_types.h" |
| 171 | #include "kal_public_defs.h" |
| 172 | #include "smsal_l4c_enum.h" |
| 173 | |
| 174 | typedef struct { |
| 175 | LOCAL_PARA_HDR |
| 176 | kal_uint8 error_type; /* cp or rp error*/ |
| 177 | kal_uint16 error_cause; |
| 178 | } sms_err_info_struct; |
| 179 | |
| 180 | typedef struct { |
| 181 | LOCAL_PARA_HDR |
| 182 | kal_uint8 smi; /* short message identifier*/ |
| 183 | kal_uint8 seq_num; |
| 184 | } sms_submit_abort_struct; |
| 185 | |
| 186 | typedef struct { |
| 187 | LOCAL_PARA_HDR |
| 188 | kal_uint8 result; /* Indicate the result of aborting request*/ |
| 189 | } sms_submit_abort_cnf_struct; |
| 190 | |
| 191 | typedef struct { |
| 192 | LOCAL_PARA_HDR |
| 193 | kal_uint8 smi; /* short message identifier*/ |
| 194 | kal_uint8 src_id; /* identify background sending or else */ |
| 195 | kal_uint8 mms_mode; /* more msg to send */ |
| 196 | sms_addr_struct sc_addr; /* service centre address*/ |
| 197 | kal_uint8 seq_num; |
| 198 | kal_bool is_stk_sms; |
| 199 | } sms_submit_struct; |
| 200 | |
| 201 | typedef struct { |
| 202 | LOCAL_PARA_HDR |
| 203 | kal_uint8 smi; /* short message identifier*/ |
| 204 | kal_bool is_nack_converted_to_ack; /*Identify whether to consider RP_ERROR as RP_ACK or not */ |
| 205 | } sms_submit_report_ack_struct; |
| 206 | |
| 207 | typedef struct { |
| 208 | LOCAL_PARA_HDR |
| 209 | kal_uint8 smi; /* short message identifier*/ |
| 210 | sms_err_info_struct err_info; |
| 211 | } sms_submit_report_nack_struct; |
| 212 | |
| 213 | typedef struct { |
| 214 | LOCAL_PARA_HDR |
| 215 | kal_uint8 smi; /* short message identifier*/ |
| 216 | sms_addr_struct sc_addr; /* service centre address*/ |
| 217 | } sms_deliver_struct; |
| 218 | |
| 219 | typedef struct { |
| 220 | LOCAL_PARA_HDR |
| 221 | |
| 222 | kal_uint8 sc_addr[22]; /* service centre address */ |
| 223 | |
| 224 | kal_uint8 reply_flag; /* whether reply is sought*/ |
| 225 | kal_uint8 udh_p; /* indicates presence of user data header*/ |
| 226 | kal_uint8 status_rep_flag; /* whether status reports are sought*/ |
| 227 | kal_uint8 mms; /* more message to send*/ |
| 228 | kal_uint8 orig_addr[22]; /* assumed to be byte-packed*/ |
| 229 | kal_uint8 pid; /* to be bit-wise decoded*/ |
| 230 | kal_uint8 dcs; /* to be bit-wise decoded*/ |
| 231 | kal_uint16 year; |
| 232 | kal_uint8 nMonth; |
| 233 | kal_uint8 nDay; |
| 234 | kal_uint8 nHour; |
| 235 | kal_uint8 nMin; |
| 236 | kal_uint8 nSec; |
| 237 | |
| 238 | kal_uint8 user_data[161]; /* can have user data header also*/ |
| 239 | } smsal_tst_deliver_struct; |
| 240 | |
| 241 | typedef struct { |
| 242 | LOCAL_PARA_HDR |
| 243 | kal_uint8 smi; /* short message identifier*/ |
| 244 | } sms_deliver_report_ack_struct; |
| 245 | |
| 246 | typedef struct { |
| 247 | LOCAL_PARA_HDR |
| 248 | kal_uint8 smi; /* short message identifier*/ |
| 249 | } sms_deliver_report_nack_struct; |
| 250 | |
| 251 | typedef struct { |
| 252 | LOCAL_PARA_HDR |
| 253 | kal_uint8 smi; /* short message identifier*/ |
| 254 | sms_addr_struct sc_addr; /* service centre address*/ |
| 255 | } sms_status_report_struct; |
| 256 | |
| 257 | typedef struct { |
| 258 | LOCAL_PARA_HDR |
| 259 | kal_uint8 smi; /* short message identifier*/ |
| 260 | kal_uint8 src_id; /* identify background sending or else */ |
| 261 | kal_uint8 mms_mode; /* more msg to send */ |
| 262 | sms_addr_struct sc_addr; /* service centre address*/ |
| 263 | kal_uint8 seq_num; |
| 264 | } sms_command_struct; |
| 265 | |
| 266 | typedef struct { |
| 267 | LOCAL_PARA_HDR |
| 268 | kal_uint8 result; /* Indicate the result of mem avl. notif.*/ |
| 269 | } sms_mem_avl_notif_cnf_struct; |
| 270 | |
| 271 | typedef struct { |
| 272 | LOCAL_PARA_HDR |
| 273 | kal_uint8 mr; /* Message Reference*/ |
| 274 | kal_uint8 src_id; /* identify background sending or else */ |
| 275 | kal_uint8 req_type; /* Indicate request type: send or about mem avl. notif.*/ |
| 276 | } sms_mem_avl_notif_struct; |
| 277 | |
| 278 | typedef struct { |
| 279 | LOCAL_PARA_HDR |
| 280 | kal_uint8 mode; /* mode of MMS*/ |
| 281 | } sms_more_msg_send_req_struct; |
| 282 | |
| 283 | typedef struct { |
| 284 | LOCAL_PARA_HDR |
| 285 | kal_uint8 service_bit_mask; // bit mask to indicate which var should be updated |
| 286 | kal_uint8 service; /* preferred service*/ |
| 287 | kal_uint8 nr_service; /* NR preferred service*/ |
| 288 | } sms_service_req_struct; |
| 289 | |
| 290 | typedef struct { |
| 291 | LOCAL_PARA_HDR |
| 292 | kal_uint8 tl_id; /* re-try tl_id */ |
| 293 | } sms_try_next_bearer_req_struct; |
| 294 | |
| 295 | typedef struct { |
| 296 | LOCAL_PARA_HDR |
| 297 | kal_uint8 smi; |
| 298 | kal_uint8 result; |
| 299 | kal_uint32 cause; |
| 300 | } sms_mt_final_ack_ind_struct; |
| 301 | |
| 302 | typedef struct { |
| 303 | LOCAL_PARA_HDR |
| 304 | kal_bool enable; |
| 305 | } sms_enable_sms_over_sgs_ind_struct; |
| 306 | |
| 307 | typedef struct { |
| 308 | LOCAL_PARA_HDR |
| 309 | kal_uint8 bitmap; |
| 310 | } sms_set_stub_ind_struct; |
| 311 | |
| 312 | typedef struct { |
| 313 | LOCAL_PARA_HDR |
| 314 | kal_uint8 src_id; |
| 315 | l4csms_cs_call_status_enum cs_call_status; |
| 316 | } l4csms_cs_call_status_req_struct; |
| 317 | |
| 318 | typedef struct { |
| 319 | LOCAL_PARA_HDR |
| 320 | vdm_call_domain_enum call_domain_name; |
| 321 | } l4csms_call_domain_ind_struct; |
| 322 | |
| 323 | typedef struct { |
| 324 | LOCAL_PARA_HDR |
| 325 | kal_uint16 ref; /* concat. message reference*/ |
| 326 | kal_uint8 total_seg; /* total segments*/ |
| 327 | kal_uint32 seg_bitmask;/* bit1 is the 1st segment and so on, bit=0 not received,bit=1 received */ |
| 328 | } sms_imcsms_mt_long_sms_info_ind_struct,imcsms_sms_mt_long_sms_info_ind_struct; |
| 329 | |
| 330 | |
| 331 | #endif |
| 332 | |
| 333 | |