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 | * l5_l4c_struct.h |
| 40 | * |
| 41 | * Project: |
| 42 | * -------- |
| 43 | * |
| 44 | * |
| 45 | * Description: |
| 46 | * ------------ |
| 47 | * |
| 48 | * |
| 49 | * Author: |
| 50 | * ------- |
| 51 | * |
| 52 | * |
| 53 | * |
| 54 | * ========================================================================== |
| 55 | ****************************************************************************/ |
| 56 | |
| 57 | #ifndef _L5_L4C_STRUCT_H |
| 58 | #define _L5_L4C_STRUCT_H |
| 59 | |
| 60 | #ifdef __L5_SUPPORT__ |
| 61 | |
| 62 | #include "kal_general_types.h" |
| 63 | #include "kal_public_defs.h" |
| 64 | #include "ps_public_enum.h" |
| 65 | #include "l5_l4c_enums.h" |
| 66 | #include "rac2l4c_struct.h" |
| 67 | #include "mmrf_msg_interface.h" |
rjw | 2b1408e | 2022-12-19 11:19:29 +0800 | [diff] [blame] | 68 | #include "l4c_upds_struct.h" |
rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 69 | |
| 70 | #ifdef __MBIM_MS_NETWORK_BLACKLIST__ |
| 71 | |
| 72 | typedef struct{ |
| 73 | kal_uint16 mcc; |
| 74 | kal_bool is_2_digit_mnc; |
| 75 | kal_uint16 mnc; |
| 76 | nw_black_list_type_enum list_type; |
| 77 | }nw_black_list_provider_struct; |
| 78 | |
| 79 | typedef struct { |
| 80 | LOCAL_PARA_HDR |
| 81 | kal_uint8 transaction_id; |
| 82 | kal_uint8 num_of_black_list; |
| 83 | nw_black_list_provider_struct black_list[MAX_NW_BLACK_LIST]; |
| 84 | }l5_l4c_set_nw_black_list_req_struct; |
| 85 | |
| 86 | |
| 87 | typedef struct { |
| 88 | LOCAL_PARA_HDR |
| 89 | kal_uint8 transaction_id; |
| 90 | nw_black_list_operator_result_enum result; |
| 91 | }l5_l4c_set_nw_black_list_cnf_struct; |
| 92 | |
| 93 | typedef struct { |
| 94 | LOCAL_PARA_HDR |
| 95 | kal_uint8 transaction_id; |
| 96 | }l5_l4c_get_nw_black_list_req_struct; |
| 97 | |
| 98 | typedef struct { |
| 99 | LOCAL_PARA_HDR |
| 100 | kal_uint8 transaction_id; |
| 101 | nw_black_list_operator_result_enum result; |
| 102 | kal_uint8 num_of_black_list; |
| 103 | nw_black_list_provider_struct black_list[MAX_NW_BLACK_LIST]; |
| 104 | }l5_l4c_get_nw_black_list_cnf_struct; |
| 105 | |
| 106 | typedef struct { |
| 107 | LOCAL_PARA_HDR |
| 108 | nw_black_list_state_enum black_list_state; |
| 109 | kal_uint8 num_of_black_list; |
| 110 | nw_black_list_provider_struct black_list[MAX_NW_BLACK_LIST]; |
| 111 | }l5_l4c_nw_black_list_state_ind_struct; |
| 112 | #endif |
| 113 | |
| 114 | typedef struct { |
| 115 | kal_uint16 pci; |
| 116 | kal_uint32 earfcn; |
| 117 | }lte_ran_cell_info_struct; |
| 118 | |
| 119 | typedef struct { |
| 120 | kal_uint16 pci; |
| 121 | kal_uint32 narfcn; |
| 122 | kal_uint16 nr_band_indicator; |
| 123 | }nr_ran_cell_info_struct; |
| 124 | |
| 125 | /*struct defined for MSG_ID_L5_L4C_CELL_LIST_REQ */ |
| 126 | typedef struct { |
| 127 | LOCAL_PARA_HDR |
| 128 | kal_uint8 transaction_id; |
| 129 | /* Lte band list bitmask array */ |
| 130 | kal_uint32 lte_band_list[LTE_BAND_BITMASK_MAX_SUPPORT_SIZE]; |
| 131 | /* NR band list bitmask array */ |
| 132 | kal_uint32 nr_band_list[NR_BAND_BITMASK_MAX_SUPPORT_SIZE]; |
| 133 | /* if TRUE nr_endc_band_list is present */ |
| 134 | kal_bool nr_endc_band_list_present; |
| 135 | /* NR ENDC band list bitmask array */ |
| 136 | kal_uint32 nr_endc_band_list[NR_BAND_BITMASK_MAX_SUPPORT_SIZE]; |
| 137 | /* Lte cell list number*/ |
| 138 | kal_uint8 num_of_lte_cell; |
| 139 | /* NR cell list number*/ |
| 140 | kal_uint8 num_of_nr_cell; |
| 141 | /* Lte cell list */ |
| 142 | lte_ran_cell_info_struct lte_cell_list[MAX_LTE_RAN_CELL_LIST]; |
| 143 | /* NR cell list */ |
| 144 | nr_ran_cell_info_struct nr_cell_list[MAX_NR_RAN_CELL_LIST]; |
| 145 | |
| 146 | }l5_l4c_cell_list_req_struct; |
| 147 | |
| 148 | /*struct defined for MSG_ID_L5_L4C_CELL_LIST_CNF */ |
| 149 | typedef struct { |
| 150 | LOCAL_PARA_HDR |
| 151 | kal_uint8 transaction_id; |
| 152 | kal_bool result; |
| 153 | |
| 154 | }l5_l4c_cell_list_cnf_struct; |
| 155 | |
| 156 | /*struct defined for MSG_ID_L5_L4C_GET_RF_STATUS_REQ */ |
| 157 | typedef l4c_mmrf_get_rf_status_req_struct l5_l4c_get_rf_status_req_struct; |
| 158 | |
| 159 | /*struct defined for MSG_ID_L5_L4C_GET_RF_STATUS_CNF */ |
| 160 | typedef l4c_mmrf_get_rf_status_cnf_struct l5_l4c_get_rf_status_cnf_struct; |
| 161 | #endif |
| 162 | |
| 163 | typedef struct |
| 164 | { |
| 165 | kal_int16 srxlev_in_qdb; /* range -32768 ~ 32767, invalid value:0x7fff */ |
| 166 | kal_int16 squal_in_qdb; /* range -32768 ~ 32767, invalid value:0x7fff */ |
| 167 | }ps_cell_srxlev_info_struct; |
| 168 | |
| 169 | |
| 170 | /*struct defined for MSG_ID_L5_L4C_CELL_PWR_SRXLEV_IND */ |
| 171 | typedef struct { |
| 172 | LOCAL_PARA_HDR |
| 173 | kal_uint8 rat_mode; /* ref rat_enum, now support RAT_LTE/RAT_NR */ |
| 174 | kal_uint8 is_srxlev_info_valid; /* wherther or not is srxlev info is valid. */ |
| 175 | ps_cell_srxlev_info_struct ps_cell_srxlev_info; /* srxlex info*/ |
| 176 | |
| 177 | }l5_l4c_cell_pwr_srxlev_ind_struct; |
| 178 | |
| 179 | #ifdef __L5_SUPPORT__ |
| 180 | typedef l4crac_set_allowed_mcc_list_req_struct l5_l4c_set_allowed_mcc_list_req_struct; |
| 181 | typedef l4crac_set_allowed_mcc_list_cnf_struct l5_l4c_set_allowed_mcc_list_cnf_struct; |
| 182 | typedef l4crac_set_pref_nssai_req_struct l5_l4c_set_pref_nssai_req_struct; |
| 183 | typedef l4crac_set_pref_nssai_cnf_struct l5_l4c_set_pref_nssai_cnf_struct; |
| 184 | typedef l4crac_set_nssai_req_struct l5_l4c_set_nssai_req_struct; |
| 185 | typedef l4crac_set_nssai_cnf_struct l5_l4c_set_nssai_cnf_struct; |
| 186 | typedef l4crac_get_nssai_req_struct l5_l4c_get_nssai_req_struct; |
| 187 | typedef l4crac_get_nssai_cnf_struct l5_l4c_get_nssai_cnf_struct; |
| 188 | typedef l4crac_vgmm_nw_params_ind_struct l5_l4c_vgmm_nw_params_ind_struct; |
rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 189 | #endif |
rjw | 2b1408e | 2022-12-19 11:19:29 +0800 | [diff] [blame] | 190 | typedef l4c_upds_os_id_update_req_struct l5_l4c_os_id_update_req_struct; |
| 191 | |
rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 192 | #endif /* _L5_L4C_STRUCT_H */ |