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 | * Filename: |
| 38 | * --------- |
| 39 | * mm2sm_struct.h |
| 40 | * |
| 41 | * Project: |
| 42 | * -------- |
| 43 | * MAUI |
| 44 | * |
| 45 | * Description: |
| 46 | * ------------ |
| 47 | * This file describes the common structure of MM and SM. |
| 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 | * |
| 68 | * removed! |
| 69 | * removed! |
| 70 | * |
| 71 | * removed! |
| 72 | * removed! |
| 73 | * removed! |
| 74 | * |
| 75 | * removed! |
| 76 | * removed! |
| 77 | * |
| 78 | * removed! |
| 79 | * removed! |
| 80 | * removed! |
| 81 | * |
| 82 | * removed! |
| 83 | * removed! |
| 84 | * removed! |
| 85 | * |
| 86 | * removed! |
| 87 | * removed! |
| 88 | * removed! |
| 89 | * |
| 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 | *------------------------------------------------------------------------------ |
| 134 | * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 135 | *============================================================================== |
| 136 | *******************************************************************************/ |
| 137 | |
| 138 | /******************************************************************************** |
| 139 | * Copyright Statement: |
| 140 | * -------------------- |
| 141 | * |
| 142 | * This product has been developed using a protocol stack |
| 143 | * developed by Sasken Communication Technologies Limited. |
| 144 | * |
| 145 | ********************************************************************************/ |
| 146 | |
| 147 | #ifndef _MM2SM_STRUCT_H |
| 148 | #define _MM2SM_STRUCT_H |
| 149 | |
| 150 | #include "kal_general_types.h" |
| 151 | #include "kal_public_defs.h" |
| 152 | #include "l3_inc_enums.h" |
| 153 | #include "mmcm_enums.h" |
| 154 | #include "smmm_enums.h" |
| 155 | #include "as2nas_struct.h" |
| 156 | #include "irat_common_struct.h" |
| 157 | |
| 158 | typedef struct { |
| 159 | LOCAL_PARA_HDR |
| 160 | gmmsm_cause_enum cause; |
| 161 | } gmmsm_suspend_req_struct; |
| 162 | |
| 163 | typedef struct { |
| 164 | LOCAL_PARA_HDR |
| 165 | } gmmsm_resume_req_struct; |
| 166 | |
| 167 | typedef struct { |
| 168 | LOCAL_PARA_HDR |
| 169 | //kal_uint8 cell_support_egprs; |
| 170 | rr_mm_sgsnr_flag_enum sgsnr_flag; /* Erica: 20070320 sgsnr */ |
| 171 | } gmmsm_cell_info_update_ind_struct; /* Johnny: for egprs */ |
| 172 | |
| 173 | typedef struct { |
| 174 | LOCAL_PARA_HDR |
| 175 | rr_mm_sgsnr_flag_enum sgsnr_flag; |
| 176 | gmmsm_fop_status_enum follow_on_status; |
| 177 | } gmmsm_attach_cnf_struct; |
| 178 | |
| 179 | typedef struct { |
| 180 | LOCAL_PARA_HDR |
| 181 | gmmsm_cause_enum cause; |
| 182 | } gmmsm_attach_rej_struct; |
| 183 | |
| 184 | typedef struct { |
| 185 | LOCAL_PARA_HDR |
| 186 | gmmsm_cause_enum cause; |
| 187 | |
| 188 | /** MM notifies SM to stop t3396 as specified in 24.008. |
| 189 | * TRUE |
| 190 | * - 1: NW detaches with cause "re-attach required" |
| 191 | * - 2: NW pages for GPRS service using IMSI |
| 192 | * |
| 193 | * FALSE |
| 194 | * Otherwise . |
| 195 | */ |
| 196 | kal_bool is_stop_t3396 ; |
| 197 | } gmmsm_detach_ind_struct; |
| 198 | |
| 199 | typedef struct { |
| 200 | LOCAL_PARA_HDR |
| 201 | gmmcm_result_enum cause; /* gmmcm_result_enum */ |
| 202 | } gmmsm_est_rej_struct; |
| 203 | |
| 204 | typedef struct { |
| 205 | LOCAL_PARA_HDR |
| 206 | DC_Status status; |
| 207 | peer_msg_id_struct peer_msg_id; |
| 208 | } gmmsm_unitdata_cnf_struct; |
| 209 | |
| 210 | #ifdef __REL4__ |
| 211 | typedef struct { |
| 212 | LOCAL_PARA_HDR |
| 213 | kal_uint16 nsapi_status; |
| 214 | } gmmsm_nsapi_status_ind_struct; |
| 215 | #endif |
| 216 | |
| 217 | /** |
| 218 | * According to Multimode interRAT message processing rules, |
| 219 | * the receiving module, said... the MOD_A, need to process this message in the following way |
| 220 | * - (1) Relay this interRAT message to next module, said... the MOD_B, first |
| 221 | * - (2) then MOD_A can start to do processing of this message |
| 222 | * because when a RD designs a new MM iRAT feature, he/she will assume others process these messages in this way |
| 223 | * this rules make sures the interRAT message flow is as expected |
| 224 | */ |
| 225 | typedef struct { |
| 226 | LOCAL_PARA_HDR |
| 227 | irat_type_enum irat_type; //Indicates the inter-RAT type |
| 228 | rat_type_enum source_rat; //Source RAT (GAS or UAS) |
| 229 | rat_type_enum target_rat; //Target RAT (Should be EAS) |
| 230 | |
| 231 | mm2emm_irat_info_struct mm_info; |
| 232 | void* as_info_ptr; //Indicates the address of the activation request for RAT change to LTE, the information is dedicated for AS. |
| 233 | //The buffer will be freed by soure or target AS |
| 234 | //Note: It should be NULL if irat_type is IR_TYPE_SEARCH |
| 235 | } gmmsm_rat_change_ind_struct;// (23G4 start) |
| 236 | |
| 237 | /** |
| 238 | * According to Multimode interRAT message processing rules, |
| 239 | * the receiving module, said... the MOD_A, need to process this message in the following way |
| 240 | * - (1) Relay this interRAT message to next module, said... the MOD_B, first |
| 241 | * - (2) then MOD_A can start to do processing of this message |
| 242 | * because when a RD designs a new MM iRAT feature, he/she will assume others process these messages in this way |
| 243 | * this rules make sures the interRAT message flow is as expected |
| 244 | */ |
| 245 | typedef struct { |
| 246 | LOCAL_PARA_HDR |
| 247 | irat_type_enum irat_type; |
| 248 | rat_type_enum source_rat; |
| 249 | rat_type_enum target_rat; |
| 250 | irat_result_enum irat_result; |
| 251 | |
| 252 | kal_bool is_ps_sig_connected; //GMM inform SM about the PS Signalling Conn status |
| 253 | kal_bool is_attached; // 2012/12/4 mail confirmed. GMM tells SM if GMM is currently attached or detached (GMM owner confirmed that attaching is not possible, only attached or detached is possible) |
| 254 | |
| 255 | void* as_info_ptr; //The pointer of AS container information |
| 256 | // check L4_NAS_RAT_CHANGE_SAP.docx for detail |
| 257 | } gmmsm_rat_change_cnf_struct; // (4G23 finish) note: need two stage CNF if IRCCO |
| 258 | |
| 259 | #ifdef __GEMINI__ |
| 260 | typedef struct { |
| 261 | LOCAL_PARA_HDR |
| 262 | as_gemini_status_enum as_gemini_status; |
| 263 | }gmmsm_virtual_mode_ind_struct; |
| 264 | #endif |
| 265 | |
| 266 | #endif |
| 267 | |
| 268 | |