| /***************************************************************************** |
| * 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: |
| * --------- |
| * el1_ipc_str.h |
| * |
| * Project: |
| * -------- |
| * UMOLY |
| * |
| * Description: |
| * ------------ |
| * LTE Layer 1 (EL1) and WiFi/BT SW message structure. |
| * |
| * Author: |
| * ------- |
| * ------- |
| * |
| * ========================================================================== |
| ****************************************************************************/ |
| #ifndef _IDC_SWMSG_STR_ |
| #define _IDC_SWMSG_STR_ |
| |
| #include "kal_general_types.h" |
| #include "kal_public_defs.h" |
| #include "idc_def.h" |
| |
| /**************************/ |
| /***** DEFINITED VALUE ****/ |
| /**************************/ |
| |
| /***** MD part *****/ |
| |
| #define LTE_INVALID_FREQ 0xFFFF |
| #define NR_INVALID_FREQ 0xFFFFFFFF |
| #define INTF_DIRECT_NUM 2 |
| #define MAX_WIFI_UNSAFE_FREQ_BMP_NUM 2 |
| #define MAX_BT_UNSAFE_FREQ_BMP_NUM 3 |
| #define MAX_UL_DL_SECTORS 3 |
| #define IDC_BWP_NUM 5 |
| #define IDC_LTE_NUM 5 |
| #define IDC_NR_NUM 8 |
| #define IDC_MAX_LTE_NUM (IDC_LTE_NUM + 1) |
| #define IDC_MAX_NR_NUM (IDC_NR_NUM + 1) |
| #define IDC_GROUP_NUM 6 |
| #define IDC_LTE_GROUP_NUM 3 |
| #define IDC_NR_GROUP_NUM 3 |
| #define MAX_SLP_DUR_RES_NUM 4 |
| |
| /***** CONSYS part *****/ |
| |
| #define MAX_WIFI_FREQ_IND_BAND_NUM 2 |
| #define MAX_WIFI_FREQ_NUM 4 |
| |
| /**************************/ |
| /***** ENUM DEFINITION ****/ |
| /**************************/ |
| |
| |
| /***** MD part *****/ |
| |
| typedef enum |
| { |
| MD_CHIP_VER_6290 = 0, |
| MD_CHIP_VER_6291 = 1, |
| MD_CHIP_VER_6292 = 2, |
| MD_CHIP_VER_6293 = 3, |
| MD_CHIP_VER_6295 = 4, |
| MD_CHIP_VER_6297 = 5, |
| MD_CHIP_VER_MAX = 0xFF, |
| }idc_md_chip_ver_enum; |
| |
| typedef enum |
| { |
| MD_RF_CHIP_VER_MT6190 = 0, |
| MD_RF_CHIP_VER_MT6190M = 1, |
| MD_RF_CHIP_VER_MAX = 0xFF, |
| }idc_md_rf_chip_ver_enum; |
| |
| /***** CONSYS part *****/ |
| |
| typedef enum |
| { |
| CONSYS_GEN_INVALID = 0, |
| CONSYS_GEN_2 = 20, |
| CONSYS_GEN_3 = 30, |
| CONSYS_GEN_4 = 40, |
| CONSYS_CONNAC_1_0 = 50, |
| CONSYS_CONNAC_1_1 = 51, |
| CONSYS_CONNAC_1_2 = 52, |
| CONSYS_CONNAC_2_0 = 60, |
| CONSYS_CONNAC_2_1 = 61, |
| CONSYS_CONNAC_2_2 = 62, |
| CONSYS_GENMAX = 0xFF, |
| }idc_consys_gen_enum; |
| |
| typedef enum |
| { |
| PTA_VER_3_0 = 30, |
| PTA_VER_3_1 = 31, |
| PTA_VER_5_0 = 50, |
| PTA_VER_5_1 = 51, |
| PTA_VER_5_2 = 52, |
| PTA_VER_6_0 = 60, |
| PTA_VER_6_1 = 61, |
| PTA_VER_6_2 = 62, |
| PTA_VER_7_0 = 70, |
| PTA_VER_7_1 = 71, |
| PTA_VER_7_2 = 72, |
| PTA_VER_MAX = 0xFF, |
| }idc_consys_pta_ver_enum; |
| |
| typedef enum |
| { |
| CONSYS_CHIP_VER_6625 = 0, |
| CONSYS_CHIP_VER_6630 = 1, |
| CONSYS_CHIP_VER_6631 = 2, |
| CONSYS_CHIP_VER_6632 = 3, |
| CONSYS_CHIP_VER_6633 = 4, |
| CONSYS_CHIP_VER_6635 = 5, |
| CONSYS_CHIP_VER_7915 = 6, |
| CONSYS_CHIP_VER_MAX = 0xFF, |
| }idc_consys_chip_ver_enum; |
| |
| /****************************/ |
| /***** STRUCT DEFINITION ****/ |
| /****************************/ |
| |
| typedef struct _wifi_unsafe_freq_bmp_struct |
| { |
| kal_uint32 FDM_TDM[INTF_DIRECT_NUM][MAX_WIFI_UNSAFE_FREQ_BMP_NUM]; // INTF_DIRECT_NUM = 2, 0: LTE is aggressor, 1: WIFI is aggressor, MAX_WIFI_UNSAFE_FREQ_BMP_NUM = 2, channel base |
| kal_uint32 FDM_PWR[INTF_DIRECT_NUM][MAX_WIFI_UNSAFE_FREQ_BMP_NUM]; |
| kal_uint32 FDM[INTF_DIRECT_NUM][MAX_WIFI_UNSAFE_FREQ_BMP_NUM]; |
| }wifi_unsafe_freq_bmp_struct; |
| |
| typedef struct _bt_unsafe_freq_bmp_struct |
| { |
| kal_uint32 FDM_TDM[INTF_DIRECT_NUM][MAX_BT_UNSAFE_FREQ_BMP_NUM]; // INTF_DIRECT_NUM = 2, 0: LTE is aggressor, 1: BT is aggressor, MAX_WIFI_UNSAFE_FREQ_BMP_NUM = 3, channel base |
| kal_uint32 FDM_PWR[INTF_DIRECT_NUM][MAX_BT_UNSAFE_FREQ_BMP_NUM]; |
| kal_uint32 FDM[INTF_DIRECT_NUM][MAX_BT_UNSAFE_FREQ_BMP_NUM]; |
| }bt_unsafe_freq_bmp_struct; |
| |
| typedef struct _ul_dl_config_struct |
| { |
| kal_uint16 dl_length[MAX_UL_DL_SECTORS]; // PTA6.0 supports max. 5 sections switching |
| #if !defined(CHIP10992) |
| kal_uint8 rsvd1[2]; |
| #endif |
| kal_uint16 ul_length[MAX_UL_DL_SECTORS]; |
| #if !defined(CHIP10992) |
| kal_uint8 rsvd2[2]; |
| #endif |
| }ul_dl_config_struct; |
| |
| /************************/ |
| /***** MD to CONSYS ****/ |
| /************************/ |
| |
| typedef struct _idc_sw_msg_header |
| { |
| #if IDC_CCCI_PATH_EN |
| kal_uint8 msg_id; |
| kal_bool is_need_reply_ack; |
| kal_uint8 rsvd[2]; |
| #else |
| kal_bool is_need_reply_ack; |
| kal_uint8 rsvd[3]; |
| #endif |
| kal_uint32 seq_num; |
| kal_uint32 enqueue_time_stamp; |
| }idc_sw_msg_header; |
| |
| typedef struct _idc_md_idc_info_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| idc_md_chip_ver_enum chip_ver; // 90:0, 91:1, 92:2, 93:3, 95:4, 97:5 |
| kal_uint8 idc_ver_major; // 2 |
| kal_uint8 idc_ver_minor; // support feature: 1 power backoff, 2 scc de-activation, 3 DBDC/MCC, 4 interference detector |
| kal_uint8 timer_for_gps_blank_ind; // 3ms |
| kal_uint8 short_timer_for_rx_ind; // 20ms |
| kal_uint8 timer_for_consecutive_bytes_of_hw_sig; // 4us |
| kal_uint8 timer_for_lte_block_consys_tx_ind; // 200ms |
| kal_uint8 timer_for_nr_block_consys_tx_ind; // 200ms |
| kal_uint8 timer_for_pattern_sync_ind; // 30ms |
| kal_uint8 timer_for_resend_ntf; // 10ms |
| kal_uint8 timer_for_tx_ind; // 50ms |
| kal_uint8 max_num_cc_nr; // 9, 8 for MAX_NUM_CC_NR, 1 for NR inter-freq. |
| kal_uint8 max_num_cc_lte; // 6, 5 for MAX_NUM_CC_LTE, 1 for LTE inter-freq. |
| kal_uint8 md_lte_lead_time_step_cr; |
| kal_uint8 md_nr_lead_time_step_cr; |
| kal_uint8 md_expect_consys_mini_power_cr; |
| kal_uint8 md_expect_consys_pwr_step_cr; |
| #if !defined(CHIP10992) |
| kal_uint16 long_timer_for_rx_ind; // 1000ms |
| idc_md_rf_chip_ver_enum rf_info; |
| #else |
| kal_uint8 rsvd[1]; |
| kal_uint16 long_timer_for_rx_ind; // 1000ms |
| #endif |
| }idc_md_idc_info_ind_struct; |
| |
| typedef struct _idc_lte_default_param_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_bool lte_actv; |
| kal_bool isReset; // 1: must need do handshake, 0: depends on the status change of LTE |
| kal_uint8 default_lte_rx_priority; // 3 |
| kal_uint8 rsvd; |
| kal_uint16 tdm_lte_window; // 130ms |
| kal_uint16 tdm_conn_window; // 110ms |
| }idc_lte_default_param_ind_struct; |
| |
| typedef struct _idc_nr_default_param_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_bool nr_actv; |
| kal_bool isReset; // 1: must need do handshake, 0: depends on the status change of NR |
| kal_uint8 default_nr_rx_priority; // 3 |
| kal_uint8 bwp_switch_lead_time; |
| kal_uint16 tdm_nr_window; // 130ms |
| kal_uint16 tdm_conn_window; // 110ms |
| #if IDC_FDD_FEATURE_SUPPORT |
| kal_uint8 md_nr_tx_mini_pwr_cr; // 0 |
| kal_uint8 md_nr_tx_pwr_step_cr; // 2 |
| #endif |
| }idc_nr_default_param_ind_struct; |
| |
| typedef struct _idc_lte_oper_freq_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_uint8 oper_freq_num; |
| kal_uint8 rsvd1[3]; |
| kal_uint8 dl_bw[IDC_MAX_LTE_NUM]; |
| kal_uint8 rsvd2[2]; |
| kal_uint8 ul_bw[IDC_MAX_LTE_NUM]; |
| kal_uint8 rsvd3[2]; |
| kal_uint8 oper_band[IDC_MAX_LTE_NUM]; |
| kal_uint8 rsvd4[2]; |
| kal_uint16 dl_freq[IDC_MAX_LTE_NUM]; |
| kal_uint16 ul_freq[IDC_MAX_LTE_NUM]; |
| }idc_lte_oper_freq_ind_struct; |
| |
| typedef struct _idc_nr_oper_freq_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_uint8 oper_freq_num; |
| kal_uint8 rsvd1[3]; |
| kal_uint32 dl_bw[IDC_MAX_NR_NUM][IDC_BWP_NUM]; |
| kal_uint32 ul_bw[IDC_MAX_NR_NUM][IDC_BWP_NUM]; |
| kal_uint16 oper_band[IDC_MAX_NR_NUM]; |
| #if !defined(CHIP10992) |
| kal_uint8 rsvd2; |
| #else |
| kal_uint8 rsvd2[2]; |
| #endif |
| kal_uint32 dl_freq[IDC_MAX_NR_NUM][IDC_BWP_NUM]; // MAX_BWP_NUM = 5 |
| kal_uint32 ul_freq[IDC_MAX_NR_NUM][IDC_BWP_NUM]; |
| }idc_nr_oper_freq_ind_struct; |
| |
| typedef struct _idc_lte_wifi_unsafe_freq_bmp_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| wifi_unsafe_freq_bmp_struct bmp_general[IDC_MAX_LTE_NUM]; |
| }idc_lte_wifi_unsafe_freq_bmp_ind_struct; |
| |
| typedef struct _idc_lte_wifi_dbdc_unsafe_freq_bmp_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| wifi_unsafe_freq_bmp_struct bmp_dbdc[IDC_MAX_LTE_NUM][MAX_WIFI_FREQ_IND_BAND_NUM]; // MAX_WIFI_FREQ_IND_BAND_NUM = 2 |
| }idc_lte_wifi_dbdc_unsafe_freq_bmp_ind_struct; |
| |
| typedef struct _idc_lte_bt_unsafe_freq_bmp_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| bt_unsafe_freq_bmp_struct bmp_general[IDC_MAX_LTE_NUM]; |
| }idc_lte_bt_unsafe_freq_bmp_ind_struct; |
| |
| #if IDC_CCCI_PATH_EN |
| /* the max NCCCI message size is limited, so split unsafe bmp of CCs into several messages */ |
| #define IDC_NR_WIFI_UNSAFE_BMP_NCCCI_MAX_CC_NUM (5) |
| #define IDC_NR_WIFI_UNSAFE_BMP_NCCCI_MAX_MSG_NUM (2) |
| |
| typedef struct _idc_nr_wifi_unsafe_freq_bmp_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| wifi_unsafe_freq_bmp_struct bmp_general[IDC_NR_WIFI_UNSAFE_BMP_NCCCI_MAX_CC_NUM][IDC_BWP_NUM]; |
| kal_uint8 start_cc; |
| kal_uint8 end_cc; |
| kal_uint8 rsvd[2]; |
| }idc_nr_wifi_unsafe_freq_bmp_ind_struct; |
| #else |
| #define IDC_NR_WIFI_UNSAFE_BMP_NCCCI_MAX_MSG_NUM (1) |
| |
| typedef struct _idc_nr_wifi_unsafe_freq_bmp_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| wifi_unsafe_freq_bmp_struct bmp_general[IDC_MAX_NR_NUM][IDC_BWP_NUM]; |
| }idc_nr_wifi_unsafe_freq_bmp_ind_struct; |
| #endif |
| |
| #if IDC_CCCI_PATH_EN |
| /* the max NCCCI message size is limited, so split unsafe bmp of CCs into several messages */ |
| #define IDC_NR_WIFI_DBDC_UNSAFE_BMP_NCCCI_MAX_CC_NUM (3) |
| #define IDC_NR_WIFI_DBDC_UNSAFE_BMP_NCCCI_MAX_MSG_NUM (3) |
| |
| typedef struct _idc_nr_wifi_dbdc_unsafe_freq_bmp_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| wifi_unsafe_freq_bmp_struct bmp_dbdc[IDC_NR_WIFI_DBDC_UNSAFE_BMP_NCCCI_MAX_CC_NUM][IDC_BWP_NUM][MAX_WIFI_FREQ_IND_BAND_NUM]; // MAX_WIFI_FREQ_IND_BAND_NUM = 2 |
| kal_uint8 start_cc; |
| kal_uint8 end_cc; |
| kal_uint8 rsvd[2]; |
| }idc_nr_wifi_dbdc_unsafe_freq_bmp_ind_struct; |
| #else |
| #define IDC_NR_WIFI_DBDC_UNSAFE_BMP_NCCCI_MAX_MSG_NUM (1) |
| |
| typedef struct _idc_nr_wifi_dbdc_unsafe_freq_bmp_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| wifi_unsafe_freq_bmp_struct bmp_dbdc[IDC_MAX_NR_NUM][IDC_BWP_NUM][MAX_WIFI_FREQ_IND_BAND_NUM]; // MAX_WIFI_FREQ_IND_BAND_NUM = 2 |
| }idc_nr_wifi_dbdc_unsafe_freq_bmp_ind_struct; |
| #endif |
| |
| #if IDC_CCCI_PATH_EN |
| /* the max NCCCI message size is limited, so split unsafe bmp of CCs into several messages */ |
| #define IDC_NR_BT_UNSAFE_BMP_NCCCI_MAX_CC_NUM (5) |
| #define IDC_NR_BT_UNSAFE_BMP_NCCCI_MAX_MSG_NUM (2) |
| |
| typedef struct _idc_nr_bt_unsafe_freq_bmp_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| bt_unsafe_freq_bmp_struct bmp_general[IDC_NR_BT_UNSAFE_BMP_NCCCI_MAX_CC_NUM][IDC_BWP_NUM]; |
| kal_uint8 start_cc; |
| kal_uint8 end_cc; |
| kal_uint8 rsvd[2]; |
| }idc_nr_bt_unsafe_freq_bmp_ind_struct; |
| #else |
| #define IDC_NR_BT_UNSAFE_BMP_NCCCI_MAX_MSG_NUM (1) |
| |
| typedef struct _idc_nr_bt_unsafe_freq_bmp_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| bt_unsafe_freq_bmp_struct bmp_general[IDC_MAX_NR_NUM][IDC_BWP_NUM]; |
| }idc_nr_bt_unsafe_freq_bmp_ind_struct; |
| #endif |
| |
| typedef struct _idc_md_drx_pattern_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_bool predictable; |
| kal_uint8 on_duration; |
| kal_uint8 start_offset; |
| kal_uint8 rsvd; |
| kal_uint8 resolution[MAX_SLP_DUR_RES_NUM]; // MAX_SLP_DUR_RES_NUM = 4 |
| }idc_md_drx_pattern_ind_struct; |
| |
| typedef struct _idc_md_r11_idc_param_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_bool idc_report_enable; |
| kal_uint8 rsvd[3]; |
| }idc_md_r11_idc_param_ind_struct; |
| |
| typedef struct _idc_md_sw_msg_ack_ind_strcut |
| { |
| idc_sw_msg_header msg_header; |
| kal_bool cnf_status; // Always be ture |
| kal_uint8 rsvd[3]; |
| kal_uint32 recv_msg_bmp; // Set the corresponding bit for the target SW MSG from CONSYS which needs ack |
| kal_uint32 recv_seq_num; |
| }idc_md_sw_msg_ack_ind_strcut; |
| |
| typedef struct _idc_lte_trx_group_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_uint8 lte_rx_group[IDC_MAX_LTE_NUM]; |
| #if !defined(CHIP10992) |
| kal_uint8 rsvd1[2]; |
| #endif |
| kal_uint8 lte_tx_group[IDC_MAX_LTE_NUM]; |
| #if !defined(CHIP10992) |
| kal_uint8 rsvd2[2]; |
| #endif |
| }idc_lte_trx_group_ind_struct; |
| |
| typedef struct _idc_nr_trx_group_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_uint8 nr_rx_group[IDC_MAX_NR_NUM]; |
| #if !defined(CHIP10992) |
| kal_uint8 rsvd1[3]; |
| #endif |
| kal_uint8 nr_tx_group[IDC_MAX_NR_NUM]; |
| #if !defined(CHIP10992) |
| kal_uint8 rsvd2[3]; |
| #else |
| kal_uint8 rsvd[2]; |
| #endif |
| }idc_nr_trx_group_ind_struct; |
| |
| typedef struct _idc_md_pattern_cfg_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| ul_dl_config_struct ul_dl_config[IDC_GROUP_NUM]; // NUM_IDC_GROUP = 6 |
| }idc_md_pattern_cfg_ind_struct; |
| |
| #if IDC_SEND_HW_SIG_VIA_SW_MSG |
| typedef struct _idc_lte_state_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_bool is_lte_enter_conn; // LTE enter connected mode |
| kal_uint8 rsvd[3]; |
| }idc_lte_state_ind_struct; |
| |
| typedef struct _idc_nr_state_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_bool is_nr_enter_conn; // NR enter connected mode |
| kal_uint8 rsvd[3]; |
| }idc_nr_state_ind_struct; |
| |
| typedef struct _idc_lte_scell_actv_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_uint8 cell_bmp; |
| kal_uint8 rsvd[3]; |
| }idc_lte_scell_actv_ind_struct; |
| |
| typedef struct _idc_nr_scell_actv_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_uint16 cell_bmp; |
| kal_uint8 rsvd[2]; |
| }idc_nr_scell_actv_ind_struct; |
| |
| typedef struct _idc_md_tx_bwp_fw_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_uint8 bwp_of_cc[IDC_MAX_NR_NUM]; |
| kal_uint8 rsvd[3]; |
| }idc_md_tx_bwp_fw_ind_struct; |
| |
| typedef struct _idc_md_rx_bwp_fw_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_uint8 bwp_of_cc[IDC_MAX_NR_NUM]; |
| kal_uint8 rsvd[3]; |
| }idc_md_rx_bwp_fw_ind_struct; |
| |
| typedef struct _idc_md_tx_susp_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_uint8 priority; // default is 3 |
| kal_uint8 tx_susp_fdm; // 0: allow CONSYS TX which adopt FDM, 1: LTE stop CONSYS TX, 2: NR stop CONSYS TX, 3: Both RATs stop CONSYS TX |
| kal_uint8 tx_susp_tdm; // 0: allow CONSYS TX which adopt TDM, 1: LTE stop CONSYS TX, 2: NR stop CONSYS TX, 3: Both RATs stop CONSYS TX |
| kal_uint8 rsvd[1]; |
| }idc_md_tx_susp_ind_struct; |
| #endif |
| |
| typedef struct _idc_md_idc_info_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_md_idc_info_ind_struct md_info; |
| }idc_md_idc_info_ind_ilm_struct; |
| |
| typedef struct _idc_lte_default_param_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_lte_default_param_ind_struct lte_param; |
| }idc_lte_default_param_ind_ilm_struct; |
| |
| typedef struct _idc_nr_default_param_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_nr_default_param_ind_struct nr_param; |
| }idc_nr_default_param_ind_ilm_struct; |
| |
| typedef struct _idc_lte_oper_freq_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_lte_oper_freq_ind_struct lte_freq; |
| }idc_lte_oper_freq_ind_ilm_struct; |
| |
| typedef struct _idc_nr_oper_freq_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_nr_oper_freq_ind_struct nr_freq; |
| }idc_nr_oper_freq_ind_ilm_struct; |
| |
| typedef struct _idc_lte_wifi_unsafe_freq_bmp_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_lte_wifi_unsafe_freq_bmp_ind_struct lte_wifi_unsafe_bmp; |
| }idc_lte_wifi_unsafe_freq_bmp_ind_ilm_struct; |
| |
| typedef struct _idc_lte_wifi_dbdc_unsafe_freq_bmp_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_lte_wifi_dbdc_unsafe_freq_bmp_ind_struct lte_wifi_dbdc_unsafe_bmp; |
| }idc_lte_wifi_dbdc_unsafe_freq_bmp_ind_ilm_struct; |
| |
| typedef struct _idc_lte_bt_unsafe_freq_bmp_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_lte_bt_unsafe_freq_bmp_ind_struct lte_bt_unsafe_bmp; |
| }idc_lte_bt_unsafe_freq_bmp_ind_ilm_struct; |
| |
| typedef struct _idc_nr_wifi_unsafe_freq_bmp_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_nr_wifi_unsafe_freq_bmp_ind_struct nr_wifi_unsafe_bmp; |
| }idc_nr_wifi_unsafe_freq_bmp_ind_ilm_struct; |
| |
| typedef struct _idc_nr_wifi_dbdc_unsafe_freq_bmp_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_nr_wifi_dbdc_unsafe_freq_bmp_ind_struct nr_wifi_dbdc_unsafe_bmp; |
| }idc_nr_wifi_dbdc_unsafe_freq_bmp_ind_ilm_struct; |
| |
| typedef struct _idc_nr_bt_unsafe_freq_bmp_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_nr_bt_unsafe_freq_bmp_ind_struct nr_bt_unsafe_bmp; |
| }idc_nr_bt_unsafe_freq_bmp_ind_ilm_struct; |
| |
| typedef struct _idc_md_drx_pattern_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_md_drx_pattern_ind_struct md_drx_pattern; |
| }idc_md_drx_pattern_ind_ilm_struct; |
| |
| typedef struct _idc_md_r11_idc_param_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_md_r11_idc_param_ind_struct md_r11_param; |
| }idc_md_r11_idc_param_ind_ilm_struct; |
| |
| typedef struct _idc_md_sw_msg_ack_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_md_sw_msg_ack_ind_strcut md_ack; |
| }idc_md_sw_msg_ack_ind_ilm_struct; |
| |
| typedef struct _idc_lte_trx_group_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_lte_trx_group_ind_struct lte_trx_group; |
| }idc_lte_trx_group_ind_ilm_struct; |
| |
| typedef struct _idc_nr_trx_group_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_nr_trx_group_ind_struct nr_trx_group; |
| }idc_nr_trx_group_ind_ilm_struct; |
| |
| typedef struct _idc_md_pattern_cfg_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_md_pattern_cfg_ind_struct md_pattern_cfg; |
| }idc_md_pattern_cfg_ind_ilm_struct; |
| |
| #if IDC_SEND_HW_SIG_VIA_SW_MSG |
| typedef struct _idc_lte_state_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_lte_state_ind_struct lte_state_ind; |
| }idc_lte_state_ind_ilm_struct; |
| |
| typedef struct _idc_nr_state_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_nr_state_ind_struct nr_state_ind; |
| }idc_nr_state_ind_ilm_struct; |
| |
| typedef struct _idc_lte_scell_actv_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_lte_scell_actv_ind_struct lte_scell_actv_ind; |
| }idc_lte_scell_actv_ind_ilm_struct; |
| |
| typedef struct _idc_nr_scell_actv_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_nr_scell_actv_ind_struct nr_scell_actv_ind; |
| }idc_nr_scell_actv_ind_ilm_struct; |
| |
| typedef struct _idc_md_tx_bwp_fw_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_md_tx_bwp_fw_ind_struct md_tx_bwp_fw_ind; |
| }idc_md_tx_bwp_fw_ind_ilm_struct; |
| |
| typedef struct _idc_md_rx_bwp_fw_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_md_rx_bwp_fw_ind_struct md_rx_bwp_fw_ind; |
| }idc_md_rx_bwp_fw_ind_ilm_struct; |
| |
| typedef struct _idc_md_tx_susp_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_md_tx_susp_ind_struct md_tx_susp_ind; |
| }idc_md_tx_susp_ind_ilm_struct; |
| #endif |
| |
| /************************/ |
| /***** CONSYS to MD ****/ |
| /************************/ |
| |
| typedef struct _idc_wifi_default_param_ntf_struct |
| { |
| idc_sw_msg_header msg_header; |
| idc_consys_gen_enum idc_ver_major; |
| idc_consys_pta_ver_enum pta_ver; |
| idc_consys_chip_ver_enum chip_ver; |
| #if IDC_MD_CTRL_TDM_WITH_3WIRE_PTA |
| kal_uint8 cpe_mifi_feature_extension;//bit 0 = true indicate wifi support tri-band. |
| #else |
| kal_uint8 rsvd1; |
| #endif |
| kal_bool wifi_en; |
| kal_bool isReset; |
| kal_uint8 idc_ver_minor; |
| kal_uint8 rsvd2; |
| }idc_wifi_default_param_ntf_struct; |
| |
| typedef struct _idc_bt_default_param_ntf_struct |
| { |
| idc_sw_msg_header msg_header; |
| idc_consys_gen_enum idc_ver_major; |
| idc_consys_pta_ver_enum pta_ver; |
| idc_consys_chip_ver_enum chip_ver; |
| kal_uint8 rsvd; |
| kal_bool bt_en; |
| kal_bool gnss_en; |
| kal_bool fm_en; |
| kal_uint8 idc_ver_minor; |
| }idc_bt_default_param_ntf_struct; |
| |
| typedef struct _idc_wifi_oper_freq_ntf_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_uint8 wifi_band0_oper_freq_num; |
| kal_uint8 wifi_band1_oper_freq_num; |
| kal_uint8 rsvd[2]; |
| kal_uint32 wifi_oper_freq_low[MAX_WIFI_FREQ_NUM]; // MAX_WIFI_FREQ_NUM = 4 |
| kal_uint32 wifi_oper_freq_high[MAX_WIFI_FREQ_NUM]; |
| #if IDC_MD_CTRL_TDM_WITH_3WIRE_PTA |
| kal_uint8 wifi_oper_freq_3wire_group[MAX_WIFI_FREQ_NUM]; /* HW interface of each frequency */ |
| /* 0: M2C bridge 1 */ |
| /* BT_ACT_TXD (G9) */ |
| /* BT_PRI_RXD (AG8) */ |
| /* WLAN_ACT (AF8) */ |
| /* 1: GPIO 1 */ |
| /* PTA_RX (GPIO135) */ |
| /* PTA_TX (GPIO134) */ |
| /* EINT15 (GPIO15) */ |
| /* 2: GPIO 2 */ |
| /* PCIE3_PERSTN (GPIO76) */ |
| /* PCIE3_PEWAKEN (GPIO77) */ |
| /* PCIE3_CLKREQN (GPIO78) */ |
| #endif |
| }idc_wifi_oper_freq_ntf_struct; |
| |
| typedef struct _idc_bt_oper_freq_ntf_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_bool bt_oper_freq_valid; |
| kal_uint8 rsvd[3]; |
| kal_uint32 bt_oper_freq_low; |
| kal_uint32 bt_oper_freq_high; |
| }idc_bt_oper_freq_ntf_struct; |
| |
| typedef struct _idc_consys_send_sw_msg_cnf_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_bool cnf_status; |
| kal_uint8 rsvd[3]; |
| kal_uint32 recv_msg_bmp; |
| kal_uint32 recv_seq_num; |
| }idc_consys_send_sw_msg_cnf_struct; |
| |
| typedef struct _idc_wifi_laa_release_ntf_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_bool isWiFion5G; |
| kal_uint8 rsvd[3]; |
| }idc_wifi_laa_release_ntf_struct; |
| |
| typedef struct _idc_wifi_default_param_ntf_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_wifi_default_param_ntf_struct wifiDefaultParam; |
| }idc_wifi_default_param_ntf_ilm_struct; |
| |
| typedef struct _idc_bt_default_param_ntf_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_bt_default_param_ntf_struct btDefaultParam; |
| }idc_bt_default_param_ntf_ilm_struct; |
| |
| typedef struct _idc_wifi_oper_freq_ntf_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_wifi_oper_freq_ntf_struct wifiOperFreq; |
| }idc_wifi_oper_freq_ntf_ilm_struct; |
| |
| typedef struct _idc_bt_oper_freq_ntf_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_bt_oper_freq_ntf_struct btOperFreq; |
| }idc_bt_oper_freq_ntf_ilm_struct; |
| |
| typedef struct _idc_consys_send_sw_msg_cnf_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_consys_send_sw_msg_cnf_struct consysSwMsgCnf; |
| }idc_consys_send_sw_msg_cnf_ilm_struct; |
| |
| typedef struct _idc_wifi_laa_release_ntf_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_wifi_laa_release_ntf_struct wifi5GStatus; |
| }idc_wifi_laa_release_ntf_ilm_struct; |
| |
| #if IDC_SEND_HW_SIG_VIA_SW_MSG |
| typedef struct _idc_wifi_max_power_backoff_ntf_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_bool mdPwrBackoffEn; |
| kal_uint8 wifiPwrBmp;// bit0: band0 bit1: band 1 bit2:tri band |
| kal_uint8 wifiPwrBackoffEnBmp; |
| kal_bool isWifiScan; |
| #if IDC_MD_CTRL_TDM_WITH_3WIRE_PTA |
| kal_uint16 lteCellBmp; /* bit X 1: WIFI Rx need to backoff LTE CC X Tx power */ |
| /* bit X 0: WIFI Rx need not to backoff LTE CC X Tx power */ |
| kal_uint16 nrCellBmp; /* bit X 1: WIFI Rx need to backoff NR CC X Tx power */ |
| /* bit X 0: WIFI Rx need not to backoff NR CC X Tx power */ |
| #endif |
| }idc_wifi_max_power_backoff_ntf_struct; |
| |
| typedef struct _idc_wifi_actv_bss_ntf_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_uint8 wifiActvBmp; |
| kal_bool isSTA; |
| kal_uint8 rsvd[2]; |
| }idc_wifi_actv_bss_ntf_struct; |
| |
| typedef struct _idc_bt_max_power_backoff_ntf_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_bool isMdPwrBack; // TRUE:MODEM NEED TO DO PWER BACK OFF |
| kal_bool isBtPwrBack; |
| kal_uint8 rsvd[2]; |
| }idc_bt_max_power_backoff_ntf_struct; |
| |
| typedef struct _idc_consys_resend_ntf_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_bool isConsys; |
| kal_uint8 rsvd[3]; |
| }idc_consys_resend_ntf_struct; |
| |
| typedef struct _idc_wifi_max_power_backoff_ntf_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_wifi_max_power_backoff_ntf_struct wifiMaxBackOffNtf; |
| }idc_wifi_max_power_backoff_ntf_ilm_struct; |
| |
| typedef struct _idc_wifi_actv_bss_ntf_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_wifi_actv_bss_ntf_struct wifiActvBssNtf; |
| }idc_wifi_actv_bss_ntf_ilm_struct; |
| |
| typedef struct _idc_bt_max_power_backoff_ntf_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_bt_max_power_backoff_ntf_struct btMaxPowerBackOffNtf; |
| }idc_bt_max_power_backoff_ntf_ilm_struct; |
| |
| typedef struct _idc_consys_resend_ntf_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_consys_resend_ntf_struct consysResendNtf; |
| }idc_consys_resend_ntf_ilm_struct; |
| #endif |
| |
| #if IDC_MD_CTRL_TDM_WITH_3WIRE_PTA |
| typedef struct _idc_consys_tdm_ntf_struct |
| { |
| idc_sw_msg_header msg_header; |
| /* following information shall be in the same order with MSG_ID_IDC_WIFI_OPER_FREQ_NTF */ |
| kal_bool isTdmForLte[MAX_WIFI_FREQ_NUM]; /* 1: LTE Rx need to block WIFI Tx */ |
| /* 0: LTE Rx need not to block WIFI Tx */ |
| kal_bool isTdmForNr[MAX_WIFI_FREQ_NUM]; /* 1: NR Rx need to block WIFI Tx */ |
| /* 0: NR Rx need not to block WIFI Tx */ |
| kal_uint16 lteCellBmp[MAX_WIFI_FREQ_NUM]; /* bit X 1: WIFI Rx need to block LTE CC X Tx */ |
| /* bit X 0: WIFI Rx need not to block LTE CC X Tx */ |
| kal_uint16 nrCellBmp[MAX_WIFI_FREQ_NUM]; /* bit X 1: WIFI Rx need to block NR CC X Tx */ |
| /* bit X 0: WIFI Rx need not to block NR CC X Tx */ |
| }idc_consys_tdm_ntf_struct; |
| |
| typedef struct _idc_consys_tdm_ntf_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_consys_tdm_ntf_struct consysTdmNtf; |
| }idc_consys_tdm_ntf_ilm_struct; |
| |
| typedef struct _idc_lte_int_detect_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_uint16 tdmOnCellBmp; /* bit X 1: LTE CC X Rx need to block WIFI Tx */ |
| /* bit X 0: LTE CC X Rx need not to block WIFI Tx */ |
| kal_uint16 rsvd; |
| }idc_lte_int_detect_ind_struct; |
| |
| typedef struct _idc_lte_int_detect_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_lte_int_detect_ind_struct lteIntDetectInd; |
| }idc_lte_int_detect_ind_ilm_struct; |
| |
| typedef struct _idc_nr_int_detect_ind_struct |
| { |
| idc_sw_msg_header msg_header; |
| kal_uint16 tdmOnCellBmp; /* bit X 1: NR CC X Rx need to block WIFI Tx */ |
| /* bit X 0: NR CC X Rx need not to block WIFI Tx */ |
| kal_uint16 rsvd; |
| }idc_nr_int_detect_ind_struct; |
| |
| typedef struct _idc_nr_int_detect_ind_ilm_struct |
| { |
| LOCAL_PARA_HDR |
| idc_nr_int_detect_ind_struct nrIntDetectInd; |
| }idc_nr_int_detect_ind_ilm_struct; |
| #endif |
| #endif |