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) 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 | * iwlan_imsp_struct.h |
| 40 | * |
| 41 | * Project: |
| 42 | * ------------ |
| 43 | * MOLY |
| 44 | * |
| 45 | * Description: |
| 46 | * ------------ |
| 47 | * This file defines the interface messages between IWLAN and IMS Proxy. |
| 48 | * |
| 49 | * Author: |
| 50 | * ----------- |
| 51 | * |
| 52 | * |
| 53 | *=========================================================== |
| 54 | * $Log$ |
| 55 | * |
| 56 | * 05 21 2018 hsin-jun.tang |
| 57 | * [MOLY00325423] [IWLAN] Debug enhancement - A. IWLAN log enhancement, B. KAL legacy API DHL new API |
| 58 | * [IWLAN] log enhancemnet - |
| 59 | * A. apply DHL new log API |
| 60 | * B. log enhancement - primitives number to enum |
| 61 | * change: |
| 62 | * D2RM, L4C, SDM, ATP |
| 63 | * no change: |
| 64 | * WO, L4BNW, SIM, L4BPWR, IMC |
| 65 | * |
| 66 | * ATP: |
| 67 | * 1. ESRVSTATE |
| 68 | * 2. ECNCFG |
| 69 | * 3. EWIFIEN |
| 70 | * 4. EWFCPREF |
| 71 | * 5. EWIFIASC |
| 72 | * 6. Remove EPLWTH, EGREG |
| 73 | * 7. EIWLPING |
| 74 | * 8. EIRAT |
| 75 | * |
| 76 | * 08 24 2017 mt.tsai |
| 77 | * [MOLY00266685] [GEN93][TMOUS] TMO-US Feature in |
| 78 | * [GEN93] TMO-US 2017Q4 Feature in |
| 79 | * Details: |
| 80 | * (6273) 1st PDN LTE prefer |
| 81 | * (96501) Roaming no incall handover |
| 82 | * (6331) thr adjust while EVS call |
| 83 | * (4974) 2/3G prefer |
| 84 | * (6732) VoPS |
| 85 | * (4995) Rove-out alert |
| 86 | * (5025) SIP 403 block WiFi |
| 87 | * (6335) PCSCF block RAT |
| 88 | * (...) QoS & RSL table. |
| 89 | * |
| 90 | * 08 24 2017 mt.tsai |
| 91 | * [MOLY00266685] [GEN93][TMOUS] TMO-US Feature in |
| 92 | * |
| 93 | * [GEN93] TMO-US 2017Q4 Feature in |
| 94 | * Details: |
| 95 | * (6273) 1st PDN LTE prefer |
| 96 | * (96501) Roaming no incall handover |
| 97 | * (6331) thr adjust while EVS call |
| 98 | * (4974) 2/3G prefer |
| 99 | * (6732) VoPS |
| 100 | * (4995) Rove-out alert |
| 101 | * (5025) SIP 403 block WiFi |
| 102 | * (6335) PCSCF block RAT |
| 103 | * (...) QoS & RSL table. |
| 104 | * |
| 105 | *****************************************************************************/ |
| 106 | |
| 107 | #ifndef _IWLAN_IMSP_STRUCT_H_ |
| 108 | #define _IWLAN_IMSP_STRUCT_H_ |
| 109 | |
| 110 | #include "kal_general_types.h" |
| 111 | #include "kal_public_defs.h" |
| 112 | #include "ims_common_def.h" |
| 113 | #include "ps_public_enum.h" |
| 114 | #include "sim_public_enum.h" |
| 115 | |
| 116 | #define LTECSR_EXT_LEN 512 |
| 117 | #define THR_CNT 3 |
| 118 | |
| 119 | /****************************************************************************** |
| 120 | * +EGREG: <n>,<stat>[,[<lac>],[<ci>],[<eAct>],[<rac>],[<nwk_existence >], |
| 121 | * [<roam_indicator>] [,<cause_type>,<reject_cause>]] |
| 122 | *****************************************************************************/ |
| 123 | typedef struct { |
| 124 | LOCAL_PARA_HDR |
| 125 | kal_uint8 stat; |
| 126 | kal_char ci[5]; //4B cid+\0 |
| 127 | kal_uint32 e_act; |
| 128 | kal_uint8 rom_ind; |
| 129 | } iwlan_imsp_cellreg_info_req_struct; |
| 130 | |
| 131 | typedef struct { |
| 132 | LOCAL_PARA_HDR |
| 133 | kal_uint8 srv_stat; |
| 134 | } iwlan_imsp_datasrv_state_req_struct; |
| 135 | |
| 136 | typedef struct { |
| 137 | LOCAL_PARA_HDR |
| 138 | kal_uint8 roam_stat; |
| 139 | } iwlan_imsp_dataroam_state_req_struct; |
| 140 | |
| 141 | typedef struct { |
| 142 | LOCAL_PARA_HDR |
| 143 | kal_char oper[7]; //3formcc, 3formnc, 1for\n |
| 144 | } iwlan_imsp_eops_info_req_struct; |
| 145 | |
| 146 | typedef struct { |
| 147 | LOCAL_PARA_HDR |
| 148 | kal_uint8 act; |
| 149 | kal_int32 sig1; |
| 150 | kal_int32 sig2; |
| 151 | kal_int32 rssi_qdbm; |
| 152 | kal_int32 rscp_qdbm; |
| 153 | kal_int32 ecn0_qdbm; |
| 154 | kal_int32 rsrq_qdbm; |
| 155 | kal_int32 rsrp_qdbm; |
| 156 | } iwlan_imsp_cell_siglevel_req_struct; |
| 157 | |
| 158 | |
| 159 | typedef struct { |
| 160 | LOCAL_PARA_HDR |
| 161 | kal_uint8 vops_en; |
| 162 | } iwlan_imsp_vops_info_req_struct; |
| 163 | |
| 164 | typedef struct { |
| 165 | LOCAL_PARA_HDR |
| 166 | kal_int32 bf_voice; |
| 167 | kal_int32 bf_video; |
| 168 | kal_int32 bt_voice; |
| 169 | kal_int32 bt_video; |
| 170 | } iwlan_imsp_ssac_barinfo_req_struct; |
| 171 | |
| 172 | |
| 173 | typedef struct { |
| 174 | LOCAL_PARA_HDR |
| 175 | kal_bool succ; |
| 176 | kal_uint32 latency; |
| 177 | } iwlan_imsp_epdgping_rpt_req_struct; |
| 178 | |
| 179 | typedef struct { |
| 180 | LOCAL_PARA_HDR |
| 181 | kal_uint8 in_srv; |
| 182 | } iwlan_imsp_wifisrv_state_req_struct; |
| 183 | |
| 184 | typedef struct { |
| 185 | LOCAL_PARA_HDR |
| 186 | kal_int32 rssi; |
| 187 | kal_int32 snr; |
| 188 | } iwlan_imsp_wifisig_update_req_struct; |
| 189 | |
| 190 | typedef struct { |
| 191 | LOCAL_PARA_HDR |
| 192 | kal_bool enable; |
| 193 | } iwlan_imsp_configuration_req_struct; |
| 194 | |
| 195 | typedef iwlan_imsp_configuration_req_struct iwlan_imsp_volte_cfg_req_struct; |
| 196 | typedef iwlan_imsp_configuration_req_struct iwlan_imsp_vilte_cfg_req_struct; |
| 197 | typedef iwlan_imsp_configuration_req_struct iwlan_imsp_vowifi_cfg_req_struct; |
| 198 | typedef iwlan_imsp_configuration_req_struct iwlan_imsp_viwifi_cfg_req_struct; |
| 199 | |
| 200 | typedef struct { |
| 201 | LOCAL_PARA_HDR |
| 202 | kal_bool allow; |
| 203 | kal_uint8 pref; |
| 204 | } iwlan_imsp_wfcpref_cfg_req_struct; |
| 205 | |
| 206 | typedef iwlan_imsp_configuration_req_struct iwlan_imsp_wifiui_cfg_req_struct; |
| 207 | typedef iwlan_imsp_configuration_req_struct iwlan_imsp_dataroam_cfg_req_struct; |
| 208 | typedef iwlan_imsp_configuration_req_struct iwlan_imsp_imscarrier_cfg_req_struct; |
| 209 | |
| 210 | typedef struct { |
| 211 | LOCAL_PARA_HDR |
| 212 | kal_uint8 call_id; |
| 213 | kal_uint32 msg; |
| 214 | kal_uint8 call_mode; |
| 215 | } iwlan_imsp_call_info_req_struct; |
| 216 | |
| 217 | typedef struct { |
| 218 | LOCAL_PARA_HDR |
| 219 | kal_uint8 version; |
| 220 | kal_uint8 state; |
| 221 | kal_uint8 id; |
| 222 | kal_int32 loss_rate; |
| 223 | kal_int32 thrpt; |
| 224 | kal_char ext_body[LTECSR_EXT_LEN]; |
| 225 | } iwlan_imsp_call_quality_req_struct; |
| 226 | |
| 227 | typedef struct |
| 228 | { |
| 229 | LOCAL_PARA_HDR |
| 230 | kal_uint8 thr_cnt; |
| 231 | kal_int32 thr[THR_CNT]; |
| 232 | } iwlan_imsp_siglvl_thrcfg_ind_struct; |
| 233 | |
| 234 | typedef iwlan_imsp_siglvl_thrcfg_ind_struct iwlan_imsp_cellsiglvl_thrcfg_ind_struct; |
| 235 | typedef iwlan_imsp_siglvl_thrcfg_ind_struct iwlan_imsp_wifisiglvl_thrcfg_ind_struct; |
| 236 | |
| 237 | |
| 238 | |
| 239 | #endif // _IWLAN_IMSP_STRUCT_H_ |
| 240 | |