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) 2012 |
| 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_l4c_struct.h |
| 40 | * |
| 41 | * Project: |
| 42 | * -------- |
| 43 | * |
| 44 | * |
| 45 | * Description: |
| 46 | * ------------ |
| 47 | * |
| 48 | * |
| 49 | * Author: |
| 50 | * ------- |
| 51 | * |
| 52 | * |
| 53 | * |
| 54 | * ========================================================================== |
| 55 | * $Log$ |
| 56 | * |
| 57 | * 06 29 2020 star.kuo |
| 58 | * [MOLY00536845] AT&T CDR-WiFi-1510 (MD part) Cell measurement 500 ms in MP6MP7 precheckin |
| 59 | * Cell measurement 500ms in NR15.R3.MP |
| 60 | * |
| 61 | * 08 26 2019 jani.manninen |
| 62 | * [MOLY00433041] [Gen97][EPSFB] IT related issues |
| 63 | * |
| 64 | * VMOLY.APOLLO.SQC - IMS 5G Voice Support Changes |
| 65 | * |
| 66 | * 08 14 2019 jani.manninen |
| 67 | * [MOLY00431762] [VONR] IWLAN Changes for 5G Voice Support - IWLAN |
| 68 | * |
| 69 | * VMOLY.V.5GVOICE.DEV - IWLAN (Interface / ATP / IWLAN / UT) |
| 70 | * |
| 71 | * 07 12 2019 star.kuo |
| 72 | * [MOLY00421387] [VMOLY][Submarine] Merge code protocol IWLAN interface |
| 73 | * Merge code protocol IWLAN interface |
| 74 | * |
| 75 | * 10 16 2018 star.kuo |
| 76 | * [MOLY00353278] Cellular signaling power level config with flexible number of thresholds |
| 77 | * Cellular signaling power level config with flexible number of thresholds |
| 78 | * |
| 79 | * 07 24 2018 star.kuo |
| 80 | * [MOLY00338861] Phase out IMS_CAP_IND from IWLAN to L4C |
| 81 | * Phase out ! IWLAN gives IMS_CAP_IND to L4C |
| 82 | * |
| 83 | * 06 19 2018 star.kuo |
| 84 | * [MOLY00329730] Sprint needs to monitor 1x (C2K) signaling |
| 85 | * LR13.R0 sync Sprint monitoring 1x (C2K) signaling |
| 86 | * |
| 87 | * 05 21 2018 hsin-jun.tang |
| 88 | * [MOLY00325423] [IWLAN] Debug enhancement - A. IWLAN log enhancement, B. KAL legacy API DHL new API |
| 89 | * [IWLAN] log enhancemnet - |
| 90 | * A. apply DHL new log API |
| 91 | * B. log enhancement - primitives number to enum |
| 92 | * change: |
| 93 | * D2RM, L4C, SDM, ATP |
| 94 | * no change: |
| 95 | * WO, L4BNW, SIM, L4BPWR, IMC |
| 96 | * |
| 97 | * ATP: |
| 98 | * 1. ESRVSTATE |
| 99 | * 2. ECNCFG |
| 100 | * 3. EWIFIEN |
| 101 | * 4. EWFCPREF |
| 102 | * 5. EWIFIASC |
| 103 | * 6. Remove EPLWTH, EGREG |
| 104 | * 7. EIWLPING |
| 105 | * 8. EIRAT |
| 106 | * |
| 107 | * 03 14 2018 star.kuo |
| 108 | * [MOLY00313309] [WW FT][ZION][MT6739][O1][MP2][SQC][VzW][Internal FT][Irvine][V-SMS-008] VoLTE Function - SMS cannot be sent when Advanced Calling is turned OFF |
| 109 | * Manual sync. with R3 |
| 110 | * New ILM - L4 IMSCFG |
| 111 | * |
| 112 | * 03 14 2018 star.kuo |
| 113 | * [MOLY00313309] [WW FT][ZION][MT6739][O1][MP2][SQC][VzW][Internal FT][Irvine][V-SMS-008] VoLTE Function - SMS cannot be sent when Advanced Calling is turned OFF |
| 114 | * Send ILM to L4 for sync. with IMC IMSCFG. |
| 115 | * NWSEL needs LTE IMS infomation to attach LTE. |
| 116 | * |
| 117 | * 03 02 2018 mt.tsai |
| 118 | * [MOLY00309820] [IWLAN][L4] SSAC information for VoWiFi requirement "VzW_2016Feb_VZ_REQ_VoWiFi_37627" |
| 119 | * [IF][IWLAN][L4] SSAC information for VoWiFi requirement "VzW_2016Feb_VZ_REQ_VoWiFi_37627" |
| 120 | * |
| 121 | * |
| 122 | ****************************************************************************/ |
| 123 | |
| 124 | |
| 125 | #ifndef _IWLAN_L4C_STRUCT_H |
| 126 | #define _IWLAN_L4C_STRUCT_H |
| 127 | |
| 128 | #include "kal_general_types.h" |
| 129 | #include "kal_public_defs.h" |
| 130 | #include "l3_inc_enums_public.h" |
| 131 | #include "l4c_eval_struct.h" |
| 132 | #include "custom_iwlan_config.h" |
| 133 | |
| 134 | #define IWLAN_L4C_MAX_THRES 8 |
| 135 | |
| 136 | typedef enum { |
| 137 | IWLAN_L4C_GSM_RSSI = 0, |
| 138 | IWLAN_L4C_UTRAN_RSCP, |
| 139 | IWLAN_L4C_UTRAN_ECNO, |
| 140 | IWLAN_L4C_LTE_RSRP, |
| 141 | IWLAN_L4C_LTE_RSRQ, |
| 142 | IWLAN_L4C_LTE_RSSNR, |
| 143 | IWLAN_L4C_1X_RSSI = 6, |
| 144 | IWLAN_L4C_1X_ECIO, |
| 145 | IWLAN_L4C_EVDO_RSSI, |
| 146 | IWLAN_L4C_EVDO_ECIO = 9, |
| 147 | IWLAN_L4C_NR_SS_RSRP, |
| 148 | IWLAN_L4C_NR_SS_RSRQ, |
| 149 | IWLAN_L4C_NR_SS_SINR, |
| 150 | IWLAN_L4C_NR_CSI_RSRP, |
| 151 | IWLAN_L4C_NR_CSI_RSRQ, |
| 152 | IWLAN_L4C_NR_CSI_SINR |
| 153 | } iwlan_l4c_sig_type_enum; |
| 154 | |
| 155 | typedef struct { |
| 156 | LOCAL_PARA_HDR |
| 157 | iwlan_l4c_sig_type_enum signal_type; |
| 158 | kal_bool mode; /* 0: Disable, 1: Enabled */ |
| 159 | kal_uint8 num_thresholds; // the number of thresholds |
| 160 | kal_int32 array_threshold[IWLAN_L4C_MAX_THRES]; |
| 161 | kal_int32 upper_threshold; // Need to phase out |
| 162 | kal_int32 lower_threshold; // Need to phase out |
| 163 | kal_uint16 timer_ms; |
| 164 | iwlan_l4c_sig_meas_timer_level timer_level; |
| 165 | } iwlan_l4c_set_pwl_thrhd_req_struct; |
| 166 | |
| 167 | typedef struct { |
| 168 | LOCAL_PARA_HDR |
| 169 | kal_bool result; |
| 170 | } iwlan_l4c_set_pwl_thrhd_cnf_struct; |
| 171 | |
| 172 | typedef enum { |
| 173 | SIGNAL_STATUS_BAD = 0, |
| 174 | SIGNAL_STATUS_GOOD = 1, |
| 175 | SIGNAL_STATUS_FAIR = 2, |
| 176 | SIGNAL_STATUS_INVALID = 3, |
| 177 | SIGNAL_STATUS_CNT, |
| 178 | } iwlan_l4c_signal_status_enum; |
| 179 | |
| 180 | typedef struct { |
| 181 | LOCAL_PARA_HDR |
| 182 | iwlan_l4c_sig_type_enum signal_type; |
| 183 | iwlan_l4c_signal_status_enum signal_status; |
| 184 | kal_int32 signal_value; |
| 185 | } l4c_iwlan_pwr_level_ind_struct; |
| 186 | |
| 187 | typedef l4c_eval_ims_sys_info_ind_struct iwlan_l4c_ims_sys_info_ind_struct; |
| 188 | |
| 189 | #endif /* _IWLAN_L4C_STRUCT_H */ |