| /***************************************************************************** |
| * Copyright Statement: |
| * -------------------- |
| * This software is protected by Copyright and the information contained |
| * herein is confidential. The software may not be copied and the information |
| * contained herein may not be used or disclosed except with the written |
| * permission of MediaTek Inc. (C) 2012 |
| * |
| * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES |
| * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE") |
| * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON |
| * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES, |
| * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF |
| * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. |
| * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE |
| * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR |
| * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH |
| * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO |
| * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S |
| * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM. |
| * |
| * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE |
| * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE, |
| * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE, |
| * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO |
| * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. |
| * |
| * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE |
| * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF |
| * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND |
| * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER |
| * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC). |
| * |
| *****************************************************************************/ |
| |
| /******************************************************************************* |
| * Filename: |
| * --------- |
| * l5_l4c_struct.h |
| * |
| * Project: |
| * -------- |
| * |
| * |
| * Description: |
| * ------------ |
| * |
| * |
| * Author: |
| * ------- |
| * |
| * |
| * |
| * ========================================================================== |
| ****************************************************************************/ |
| |
| #ifndef _L5_L4C_STRUCT_H |
| #define _L5_L4C_STRUCT_H |
| |
| #ifdef __L5_SUPPORT__ |
| |
| #include "kal_general_types.h" |
| #include "kal_public_defs.h" |
| #include "ps_public_enum.h" |
| #include "l5_l4c_enums.h" |
| #include "rac2l4c_struct.h" |
| #include "mmrf_msg_interface.h" |
| #include "l4c_upds_struct.h" |
| |
| #ifdef __MBIM_MS_NETWORK_BLACKLIST__ |
| |
| typedef struct{ |
| kal_uint16 mcc; |
| kal_bool is_2_digit_mnc; |
| kal_uint16 mnc; |
| nw_black_list_type_enum list_type; |
| }nw_black_list_provider_struct; |
| |
| typedef struct { |
| LOCAL_PARA_HDR |
| kal_uint8 transaction_id; |
| kal_uint8 num_of_black_list; |
| nw_black_list_provider_struct black_list[MAX_NW_BLACK_LIST]; |
| }l5_l4c_set_nw_black_list_req_struct; |
| |
| |
| typedef struct { |
| LOCAL_PARA_HDR |
| kal_uint8 transaction_id; |
| nw_black_list_operator_result_enum result; |
| }l5_l4c_set_nw_black_list_cnf_struct; |
| |
| typedef struct { |
| LOCAL_PARA_HDR |
| kal_uint8 transaction_id; |
| }l5_l4c_get_nw_black_list_req_struct; |
| |
| typedef struct { |
| LOCAL_PARA_HDR |
| kal_uint8 transaction_id; |
| nw_black_list_operator_result_enum result; |
| kal_uint8 num_of_black_list; |
| nw_black_list_provider_struct black_list[MAX_NW_BLACK_LIST]; |
| }l5_l4c_get_nw_black_list_cnf_struct; |
| |
| typedef struct { |
| LOCAL_PARA_HDR |
| nw_black_list_state_enum black_list_state; |
| kal_uint8 num_of_black_list; |
| nw_black_list_provider_struct black_list[MAX_NW_BLACK_LIST]; |
| }l5_l4c_nw_black_list_state_ind_struct; |
| #endif |
| |
| typedef struct { |
| kal_uint16 pci; |
| kal_uint32 earfcn; |
| }lte_ran_cell_info_struct; |
| |
| typedef struct { |
| kal_uint16 pci; |
| kal_uint32 narfcn; |
| kal_uint16 nr_band_indicator; |
| }nr_ran_cell_info_struct; |
| |
| /*struct defined for MSG_ID_L5_L4C_CELL_LIST_REQ */ |
| typedef struct { |
| LOCAL_PARA_HDR |
| kal_uint8 transaction_id; |
| /* Lte band list bitmask array */ |
| kal_uint32 lte_band_list[LTE_BAND_BITMASK_MAX_SUPPORT_SIZE]; |
| /* NR band list bitmask array */ |
| kal_uint32 nr_band_list[NR_BAND_BITMASK_MAX_SUPPORT_SIZE]; |
| /* if TRUE nr_endc_band_list is present */ |
| kal_bool nr_endc_band_list_present; |
| /* NR ENDC band list bitmask array */ |
| kal_uint32 nr_endc_band_list[NR_BAND_BITMASK_MAX_SUPPORT_SIZE]; |
| /* Lte cell list number*/ |
| kal_uint8 num_of_lte_cell; |
| /* NR cell list number*/ |
| kal_uint8 num_of_nr_cell; |
| /* Lte cell list */ |
| lte_ran_cell_info_struct lte_cell_list[MAX_LTE_RAN_CELL_LIST]; |
| /* NR cell list */ |
| nr_ran_cell_info_struct nr_cell_list[MAX_NR_RAN_CELL_LIST]; |
| |
| }l5_l4c_cell_list_req_struct; |
| |
| /*struct defined for MSG_ID_L5_L4C_CELL_LIST_CNF */ |
| typedef struct { |
| LOCAL_PARA_HDR |
| kal_uint8 transaction_id; |
| kal_bool result; |
| |
| }l5_l4c_cell_list_cnf_struct; |
| |
| /*struct defined for MSG_ID_L5_L4C_GET_RF_STATUS_REQ */ |
| typedef l4c_mmrf_get_rf_status_req_struct l5_l4c_get_rf_status_req_struct; |
| |
| /*struct defined for MSG_ID_L5_L4C_GET_RF_STATUS_CNF */ |
| typedef l4c_mmrf_get_rf_status_cnf_struct l5_l4c_get_rf_status_cnf_struct; |
| #endif |
| |
| typedef struct |
| { |
| kal_int16 srxlev_in_qdb; /* range -32768 ~ 32767, invalid value:0x7fff */ |
| kal_int16 squal_in_qdb; /* range -32768 ~ 32767, invalid value:0x7fff */ |
| }ps_cell_srxlev_info_struct; |
| |
| |
| /*struct defined for MSG_ID_L5_L4C_CELL_PWR_SRXLEV_IND */ |
| typedef struct { |
| LOCAL_PARA_HDR |
| kal_uint8 rat_mode; /* ref rat_enum, now support RAT_LTE/RAT_NR */ |
| kal_uint8 is_srxlev_info_valid; /* wherther or not is srxlev info is valid. */ |
| ps_cell_srxlev_info_struct ps_cell_srxlev_info; /* srxlex info*/ |
| |
| }l5_l4c_cell_pwr_srxlev_ind_struct; |
| |
| #ifdef __L5_SUPPORT__ |
| typedef l4crac_set_allowed_mcc_list_req_struct l5_l4c_set_allowed_mcc_list_req_struct; |
| typedef l4crac_set_allowed_mcc_list_cnf_struct l5_l4c_set_allowed_mcc_list_cnf_struct; |
| typedef l4crac_set_pref_nssai_req_struct l5_l4c_set_pref_nssai_req_struct; |
| typedef l4crac_set_pref_nssai_cnf_struct l5_l4c_set_pref_nssai_cnf_struct; |
| typedef l4crac_set_nssai_req_struct l5_l4c_set_nssai_req_struct; |
| typedef l4crac_set_nssai_cnf_struct l5_l4c_set_nssai_cnf_struct; |
| typedef l4crac_get_nssai_req_struct l5_l4c_get_nssai_req_struct; |
| typedef l4crac_get_nssai_cnf_struct l5_l4c_get_nssai_cnf_struct; |
| typedef l4crac_vgmm_nw_params_ind_struct l5_l4c_vgmm_nw_params_ind_struct; |
| #endif |
| typedef l4c_upds_os_id_update_req_struct l5_l4c_os_id_update_req_struct; |
| |
| #endif /* _L5_L4C_STRUCT_H */ |