[Feature]Upload Modem source code
Change-Id: Id4294f30faced84d3e6fd6d5e61e1111bf287a37
diff --git a/mcu/interface/protocol/enl2/5g/ml1s_nmac_struct.h b/mcu/interface/protocol/enl2/5g/ml1s_nmac_struct.h
new file mode 100644
index 0000000..ec8cfa2
--- /dev/null
+++ b/mcu/interface/protocol/enl2/5g/ml1s_nmac_struct.h
@@ -0,0 +1,135 @@
+/*****************************************************************************
+* 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) 2016
+*
+* 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:
+ * ---------
+ * ml1s_nmac_struct.h
+ *
+ * Project:
+ * --------
+ * UMOLYE
+ *
+ * Description:
+ * ------------
+ * Messages and common definitions for ML1S-NMAC interface
+ *
+ * Author:
+ * -------
+ *
+ *
+ * ==========================================================================
+ * $Log$
+ *
+ * 12 04 2019 jeng-yang.kao
+ * [MOLY00369211] [Gen97][NMAC] NMUX development
+ * [NMAC] DL-Tick group support to MAC CEs delivery interface
+ *
+ * 07 20 2018 tangte.lo
+ * [MOLY00322183] [nmac][numx] ul_tb_gen related code check-in
+ * 1. ccch/mphr update for 3gpp CR.
+ * 2. harq_close_ind with harq_id
+ *
+ * [Protocol build tag]
+ * [Is CL self testable: YES]
+ * [Group CL list: NO]
+ *
+ * 06 21 2018 tero.miettinen
+ * [MOLY00318408] [6297] NMAC DL data transfer implementation
+ * NMAC ML1S support implementation.
+ *
+ * [Protocol build tag]
+ * [Is CL self testable: YES]
+ * [Group CL list: NO]
+ *
+ *
+ *
+ ****************************************************************************/
+
+
+#ifndef _ML1S_NMAC_STRUCT_H
+#define _ML1S_NMAC_STRUCT_H
+
+#include "kal_general_types.h"
+#include "kal_public_defs.h"
+#include "nrrc_nmac_struct.h"
+
+/* MSG_ID_ML1S_NMAC_ML1S_TEST_MODE_REQ */
+typedef struct
+{
+ LOCAL_PARA_HDR
+
+} ml1s_nmac_ml1s_test_mode_req_struct;
+
+/* MSG_ID_ML1S_NMAC_CCCH_DATA_REQ */
+typedef struct
+{
+ LOCAL_PARA_HDR
+
+ kal_uint8 ccch_data[NMAC_MAX_CCCH_DATA_SIZE];
+ kal_uint16 ccch_len;
+
+} ml1s_nmac_ccch_data_req_struct;
+
+/* MSG_ID_ML1S_NMAC_DL_DATA_DISCARD_REQ */
+typedef struct
+{
+ LOCAL_PARA_HDR
+
+} ml1s_nmac_dl_data_discard_req_struct;
+
+/* MSG_ID_ML1S_NMAC_MAC_PDU_FOR_RAR_REQ */
+typedef struct
+{
+ LOCAL_PARA_HDR
+
+ kal_uint8 tick_group;
+ kal_uint8 mac_pdu_for_rar[8];
+
+} ml1s_nmac_mac_pdu_for_rar_req_struct;
+
+/* MSG_ID_ML1S_NMAC_MAC_CE_TRIGGER_REQ */
+typedef struct
+{
+ LOCAL_PARA_HDR
+
+ kal_uint8 tick_group;
+ kal_uint8 lcid;
+ kal_uint8 payload[20];
+ kal_uint8 length;
+
+} ml1s_nmac_mac_ce_trigger_req_struct;
+
+#endif /* _ML1S_NMAC_STRUCT_H */
diff --git a/mcu/interface/protocol/enl2/5g/nl2_nl1_api.h b/mcu/interface/protocol/enl2/5g/nl2_nl1_api.h
new file mode 100644
index 0000000..5bd3493
--- /dev/null
+++ b/mcu/interface/protocol/enl2/5g/nl2_nl1_api.h
@@ -0,0 +1,238 @@
+/*****************************************************************************
+* 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) 2018
+*
+* 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).
+*
+*****************************************************************************/
+
+#ifndef _NL2_NL1_API_H
+#define _NL2_NL1_API_H
+
+// include dependency headers
+#include "nl2_nl1_struct.h"
+#include "el1_cnst.h" /* For MAX_NUM_SUPPORT_UL_CELLS */
+#include "nl1_comm_inter_core_public.h"
+
+/********************************************
+ * MACROS *
+ ********************************************/
+
+/* "+2" for phr-Type2OtherCell; "+6" for PHR MAC CE hdr len 2 + 4 octets cc bmp */
+#define PHR_MAX_SIZE ((NL1_MAX_UL_CC_NUM)*2 + (MAX_NUM_SUPPORT_UL_CELLS)*2 + 2 + 6)
+
+/* "+2" for phr-Type2OtherCell; "+3" for PHR MAC CE hdr len 2 + 1 octet cc bmp */
+#define PHR_MAX_SIZE_ONE_OCT ((NL1_MAX_UL_CC_NUM)*2 + (MAX_NUM_SUPPORT_UL_CELLS)*2 + 2 + 3)
+
+#define CRNTI_SIZE 2
+#define CBG_MAX_SIZE 8
+
+
+/********************************************
+ * TYPE DEFINITIONS & ENUMS *
+ ********************************************/
+typedef enum
+{
+ NMAC_CGC_NONE,
+ NMAC_CGC_INC
+
+} nmac_cgc_status_e;
+
+typedef enum
+{
+ NMAC_PHR_NONE,
+ NMAC_PHR_SINGLE,
+ NMAC_PHR_MULTI_ONE_OCT,
+ NMAC_PHR_MULTI_FOUR_OCT
+
+} nmac_phr_status_e;
+
+typedef enum
+{
+ NMAC_NEWTX = 0,
+ NMAC_RETX = 1,
+ NMAC_CFRA_REPACK = 2,
+ NMAC_CBRA_REPACK = 3
+
+} nmac_tx_type_e;
+
+typedef enum
+{
+ NMAC_C_RNTI,
+ NMAC_SP_CSI_RNTI,
+ NMAC_P_RNTI,
+ NMAC_RA_RNTI,
+ NMAC_TC_RNTI,
+ NMAC_SI_RNTI,
+ NMAC_TPC_PUSCH_RNTI,
+ NMAC_TPC_PUCCH_RNTI,
+ NMAC_TPC_SRS_RNTI,
+ NMAC_CS_RNTI,
+ NMAC_INT_RNTI,
+ NMAC_SFI_RNTI
+
+} nmac_icd_rnti_e;
+
+//This structure has dependency with NL1_TX_NMAC_HARQ_CANCEL_SR_CAUSE_E in MAC_L
+typedef enum
+{
+ NMAC_NOT_DELAY_CANCEL_SR = 0,
+ NMAC_DELAY_CANCEL_SR_CAUSE_RV_NOT_ZERO = 1,
+ NMAC_DELAY_CANCEL_SR_CAUSE_RV_ZERO_RETX = 2,
+
+ NMAC_DELAY_CANCEL_SR_CAUSE_NUM
+} nmac_delay_cancel_sr_cause_e;
+
+typedef struct
+{
+ nmac_phr_status_e phr_status;
+ kal_bool is_phr_type2_other_cell;
+ kal_uint8 active_lte_cc_num;
+ kal_uint8 active_nr_cc_num;
+} nl1_nmac_phr_info_t;
+
+typedef struct
+{
+ kal_uint8 cell_group_id;
+ kal_uint8 ul_cc_idx;
+ kal_uint8 harq_id;
+ kal_bool is_csi_trig;
+ kal_uint32 tbs;
+ nmac_tx_type_e tx_type;
+ kal_bool cbg_retx_enable;
+ kal_uint8 cbgnum;
+ kal_uint8 cbgti;
+ kal_uint32 cbg_offset[CBG_MAX_SIZE];
+ kal_bool is_sps_type1_grant;
+ kal_uint8 scs_idx;
+ kal_bool is_msg3_tx;
+ kal_uint8 serving_cell_idx;
+ kal_uint8 slot;
+ kal_uint8 subframe;
+ kal_uint16 SFN;
+ nmac_icd_rnti_e rnti_type;
+ kal_uint32 pusch_dura;
+ kal_uint8 CRNTI[CRNTI_SIZE];
+ kal_uint8 RV;
+ nmac_delay_cancel_sr_cause_e delay_cancel_sr_cause;
+} nmac_tx_cc_info_t;
+
+// function input/output struct
+typedef struct
+{
+ kal_uint8 sim_idx;
+ nmac_tx_cc_info_t txinfo;
+ nmac_cgc_status_e cgc_status;
+ nl1_nmac_phr_info_t phr_info;
+ kal_uint8 channel_idx;
+} nl1_nmac_tb_gen_req_t;
+
+typedef struct
+{
+ kal_uint8 sim_idx;
+ kal_uint8 cell_group_id;
+ kal_uint8 ul_cc_idx;
+ kal_uint8 harq_id;
+ kal_bool cancel_tx;
+ kal_bool is_phr_reserved;
+} nl1_nmac_tb_gen_rsp_t;
+
+typedef struct
+{
+ kal_uint8 sim_idx;
+ kal_uint8 cell_group_id;
+ kal_uint8 ul_cc_idx;
+ kal_uint8 harq_id;
+ kal_bool is_copro_trig;
+ nmac_tx_type_e tx_type;
+ kal_uint8 phr_content[PHR_MAX_SIZE];
+ kal_uint16 phr_len;
+} nl1_nmac_copro_handle_req_t;
+
+typedef struct
+{
+ kal_uint8 sim_idx;
+ kal_bool is_sr_canceled;
+ kal_uint32 timestamp;
+} nl1_nmac_copro_handle_rsp_t;
+
+/********************************************
+ * VARIABLES *
+ ********************************************/
+
+// only extern variables are allowed in header
+
+/********************************************
+ * FUNCTION DECLARATIONS *
+ ********************************************/
+
+// =========================================
+// UL Related APIs
+// =========================================
+
+/**
+ * @brief This function is event-triggered, it will be triggered when NL1 need NMAC to
+ generate UL data. NMAC will start to pack UL TB in this function.
+ * @return return flase if some error happened, otherwise return true.
+ */
+kal_bool nl1_nmac_tb_gen
+(
+ nl1_nmac_tb_gen_req_t *tb_gen_req,
+ nl1_nmac_tb_gen_rsp_t *tb_gen_rsp
+);
+
+ /**
+ * @brief NL1 will use this function to trigger copro. The descriptor context will
+ prepared by NMAC. NL1 will always call this function, but copro trigger only
+ if is_copro_trig set true.
+ * @return return flase if some error happened, otherwise return true.
+ */
+void nl1_nmac_copro_handle
+(
+ nl1_nmac_copro_handle_req_t *copro_req,
+ nl1_nmac_copro_handle_rsp_t *copro_rsp
+);
+
+/**
+ * @brief NL1 will use this function to get potential Msg3 size for RA Preambles
+ * Group selection
+ *
+ * @param sim_id is SIM ID
+ * @param cg_id is Cell Group ID
+ * @return return the potential Msg3 size in bytes
+ */
+kal_uint32 nl1_nmac_get_potential_msg3_size
+(
+ kal_uint32 sim_id,
+ kal_uint32 cg_id
+);
+
+#endif /* _NL2_NL1_API_H */
+
diff --git a/mcu/interface/protocol/enl2/5g/nl2_public_api.h b/mcu/interface/protocol/enl2/5g/nl2_public_api.h
new file mode 100644
index 0000000..bb0f5a0
--- /dev/null
+++ b/mcu/interface/protocol/enl2/5g/nl2_public_api.h
@@ -0,0 +1,46 @@
+/*****************************************************************************
+* 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) 2018
+*
+* 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).
+*
+*****************************************************************************/
+
+#ifndef _NL2_PUBLIC_API_H
+#define _NL2_PUBLIC_API_H
+void nmac_dyn_internet_disconnect_hook(void);
+///@brief API for UPCM to close 1st arrows
+///@param none.
+void nrlcdl_1st_arrow_disable_hndlr();
+///@brief API for UPCM to close 1st arrows
+///@param none.
+void nrlcul_1st_arrow_disable_hndlr();
+#endif /* _NL2_PUBLIC_API_H */
+
diff --git a/mcu/interface/protocol/enl2/5g/nl2pow_api.h b/mcu/interface/protocol/enl2/5g/nl2pow_api.h
new file mode 100644
index 0000000..41fb100
--- /dev/null
+++ b/mcu/interface/protocol/enl2/5g/nl2pow_api.h
@@ -0,0 +1,71 @@
+/*****************************************************************************
+* 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) 2018
+*
+* 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).
+*
+*****************************************************************************/
+
+#ifndef _NL2POW_API_H
+#define _NL2POW_API_H
+
+
+/********************************************
+ * MACROS *
+ ********************************************/
+
+/********************************************
+ * TYPE DEFINITIONS & ENUMS *
+ ********************************************/
+
+/********************************************
+ * VARIABLES *
+ ********************************************/
+
+// only extern variables are allowed in header
+
+/********************************************
+ * FUNCTION DECLARATIONS *
+ ********************************************/
+
+void nl2pow_nmac_config_copro_power_on_req(kal_uint8 protocol_idx, kal_uint8 cell_group_id);
+void nl2pow_nmac_config_copro_power_off_req(kal_uint8 protocol_idx, kal_uint8 cell_group_id);
+void nl2pow_nrlcul_retx_copro_power_on_req(kal_uint8 protocol_idx);
+void nl2pow_nrlcul_retx_copro_power_off_req(kal_uint8 protocol_idx);
+void nl2pow_ml1s_copro_power_on_req(void);
+void nl2pow_ml1s_copro_power_off_req(void);
+void nl2pow_nmac_reg_dl_va_stuck(kal_uint8 protocol_idx);
+void nl2pow_nmac_dereg_dl_va_stuck(kal_uint8 protocol_idx);
+void nl2pow_nmac_vc_copro_power_on_req(kal_uint8 protocol_idx, kal_uint8 cell_group_id);
+void nl2pow_nmac_vc_copro_power_off_req(kal_uint8 protocol_idx, kal_uint8 cell_group_id);
+void nl2pow_nmac_dl_copro_power_on_req(kal_uint8 protocol_idx, kal_uint8 cell_group_id);
+void nl2pow_nmac_dl_copro_power_off_req(kal_uint8 protocol_idx, kal_uint8 cell_group_id);
+#endif /* _NL2POW_API_H */
+
diff --git a/mcu/interface/protocol/enl2/emac_nl1_struct.h b/mcu/interface/protocol/enl2/emac_nl1_struct.h
new file mode 100644
index 0000000..2553856
--- /dev/null
+++ b/mcu/interface/protocol/enl2/emac_nl1_struct.h
@@ -0,0 +1,73 @@
+/*****************************************************************************
+* 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) 2018
+*
+* 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).
+*
+*****************************************************************************/
+#ifndef _EMAC_NL1_STRUCT_H
+#define _EMAC_NL1_STRUCT_H
+
+#include "el1_cnst.h" // for sync definition of MAX_SC and MAX_NUM_SUPPORT_UL_CELLS
+
+#define LTE_MAC_INVALID_PATHLOSS ((kal_int32)0x10000)
+#define LTE_MAC_INVALID_MPR ((kal_uint32)0x10000)
+
+typedef struct{
+ // array indexing by DL cc index (use "DL" cc index instead of UL cc index, due to R14 SRS-switch feature)
+ // possible range of value: -2^15 ~ 2^15-1 ( refer el1tx_SetupPathloss: kal_int16 )
+ // invalid value: LTE_MAC_INVALID_PATHLOSS
+ // initial value: LTE_MAC_INVALID_PATHLOSS
+ kal_atomic_int32 lte_pathloss[MAX_SC];
+
+ // value range: 0-1
+ // 0: means no activation of scell with configured uplink
+ // 1: means scell with configured uplink activation happen
+ // initial value: 0
+ kal_atomic_uint32 lte_scell_activation;
+
+ // array indexing by UL cc index
+ // possible range of value: 0 - 2^8-1 ( refer el1tx_GetLatestMpr: kal_uint8 )
+ // invalid value: LTE_MAC_INVALID_MPR
+ // initial value: LTE_MAC_INVALID_MPR
+ kal_atomic_uint32 lte_mpr[MAX_NUM_SUPPORT_UL_CELLS];
+}emac_nl1_phr_trigger_ind_struct;
+
+// extern emac_nl1_phr_trigger_ind_struct g_emac_nl1_phr_trigger_ind;
+
+#ifdef __ENDC__
+#define EMAC_API_GET_PHR_INFO get_emac_phr_Info
+#define EMAC_API_GET_ABS_TIME get_emac_cur_abs_time
+
+extern kal_uint32 get_emac_cur_abs_time(kal_uint8 protocol_idx);
+extern emac_nl1_phr_trigger_ind_struct * get_emac_phr_Info( kal_uint8 protocol_idx );
+#endif
+
+#endif
diff --git a/mcu/interface/protocol/enl2/l1sp_el2_struct.h b/mcu/interface/protocol/enl2/l1sp_el2_struct.h
new file mode 100644
index 0000000..18a621c
--- /dev/null
+++ b/mcu/interface/protocol/enl2/l1sp_el2_struct.h
@@ -0,0 +1,182 @@
+/*****************************************************************************
+* 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:
+ * ---------
+ * l1sp_el2_struct.h
+ *
+ * Project:
+ * --------
+ * MOLY
+ *
+ * Description:
+ * ------------
+ * message and common structure definition between LTM and EL2 modules.
+ *
+ * Author:
+ * -------
+ * -------
+ *
+ * ==========================================================================
+ * $Log$
+ *
+ * 07 25 2019 ming.lee
+ * [MOLY00418206] [NMAC-H]VoNR enhancement
+ * EWSP0000028893
+ *
+ * 07 03 2019 ming.lee
+ * [MOLY00418206] [NMAC-H]VoNR enhancement
+ * SWRD domain
+ *
+ * 08 24 2017 jia-shi.lin
+ * [MOLY00273519] [MT6763] volte data prediction design change
+ * volte data prediction design change
+ *
+ * 07 26 2017 jia-shi.lin
+ * [MOLY00266995] [MT6763] add normal mode for AAM report
+ * add normal mode for AAM report
+ *
+ * 05 23 2017 fu-shing.ju
+ * [MOLY00241210] [6293][Speech Driver]EVS Speech Driver
+ * EVS speech driver.
+ *
+ * 10 28 2016 jia-shi.lin
+ * [MOLY00194987] [MT6293][UMOLYA/PS DEV] EMAC maintenance
+ * emac timing report for volte dsp
+ *
+ * 10 28 2016 fu-shing.ju
+ * [MOLY00210308] [93MD]early porting.
+ * Modify AAM interface.
+ *
+ * 06 10 2015 fu-shing.ju
+ * [MOLY00091627] TK6291 development
+ * Add time information in l1sp_emac_volte_timing_info_struct.
+ ****************************************************************************/
+
+
+#ifndef _L1SP_EL2_STRUCT_H_
+#define _L1SP_EL2_STRUCT_H_
+
+/*
+2017/03/14 Add comment to clarify interface
+
+1. drx_period
+This field is same with long cycle period defined in 3GPP spec.
+The value means how often UE need to wake-up, 0 = no DRX configuration, possible value are 10,20,32,40,64,80,128,160,256,320,512,640,1024,1280,2048,2560.
+
+2. sr_period
+The value means how often UE can send SR, possible value are 1,2,5,10,20,40,80.
+This field value will be modified when this change will reduce UE power-consumption.
+When VSR is trigger, sr_period will possibly change into 20/40 ms in silence mode and 20ms in talking mode.
+When EVSR is trigger, sr_period will possibly change into 40ms in talking mode.
+
+ a. VSR
+ If DRX cycle < 20 ms || DRX cycle < SR period
+ Do not trigger VSR. use original SR period.
+ If DRX cycle < 40ms
+ If SR period >= 20 then use SR period, otherwise set period=20
+ If DRX cycle >= 40ms
+ Silence: if SR period >= 40 then use SR period, otherwise set period=40
+ Talking: if SR period >= 20 then use SR period, otherwise set period=20
+ b. eVSR
+ b.1 Base condition
+ CDRX cycle length == 40ms && SR periodicity < 40ms
+ b.2 Dynamic start condition
+ UL grant received in on duration && UL grant TBS > threshold for consecutive NSTART times
+ b.3 Dynamic stop condition
+ Data exists in VoLTE RB > 30ms
+
+ If (b.1 && b.2 && !b.3)
+ Talking mode will also set SR period = 40.
+
+3. time_to_next_on
+Define as the time duration between current time and next DRX on duration (wake-up).
+
+4. time_to_trigger_sr
+Define as the time duration between current time and next SR.
+
+5. current_time_us
+Define as current time that use ust_get_current_time to get.
+*/
+#include "kal_public_api.h"
+
+typedef enum{
+ SP4G_AAMPLUS_STA_SILENCE = 0,
+ SP4G_AAMPLUS_STA_TALK,
+ SP4G_AAMPLUS_STA_SID_FIRST
+}SP4G_AAMPlus_State_t;
+
+typedef enum{
+ L1SP_EMAC_REPORT_MODE_SR_0_AFTER_HO = 0,
+ L1SP_EMAC_REPORT_MODE_NORMAL = 1
+}l1sp_emac_report_mode_e;
+
+typedef struct{
+ LOCAL_PARA_HDR
+ //raw information from speech driver
+ SP4G_AAMPlus_State_t silence_talk;
+ kal_uint32 notify_to_data_ms;
+ kal_uint32 issue_time;
+}l1sp_emac_volte_notify_mode_change_struct;
+
+typedef l1sp_emac_volte_notify_mode_change_struct l1sp_nmac_vonr_notify_mode_change_struct;
+
+typedef struct{
+ LOCAL_PARA_HDR
+
+ //to indicate if the RAT is activated for IMS call
+ kal_bool is_lch_on_for_voice;
+
+ //raw information from eMAC
+ kal_uint32 RX_period; //ms
+ kal_uint32 TX_period; //ms
+ kal_uint32 time2nextRX; //ms
+ kal_uint32 time2nextTX; //ms
+ kal_uint32 issueTime; //ms
+}l1sp_emac_resync_info_struct;
+
+typedef l1sp_emac_resync_info_struct l1sp_nr_resync_info_struct;
+
+typedef struct{
+ kal_uint32 drx_period;
+ kal_uint32 sr_period;
+ kal_uint32 time_to_next_on;
+ kal_uint32 time_to_trig_sr;
+ kal_uint32 current_time_us;
+}l1sp_emac_volte_timing_info_struct;
+
+#endif /* ----- #ifndef _L1SP_EL2_STRUCT_H_ ----- */
+
diff --git a/mcu/interface/protocol/enl2/ltecsr_epdcp_interface.h b/mcu/interface/protocol/enl2/ltecsr_epdcp_interface.h
new file mode 100644
index 0000000..ede9c3c
--- /dev/null
+++ b/mcu/interface/protocol/enl2/ltecsr_epdcp_interface.h
@@ -0,0 +1,81 @@
+/*****************************************************************************
+* 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:
+ * ---------
+ * ltecsr_epdcp_interface.h
+ *
+ * Project:
+ * --------
+ * UMOLYA
+ *
+ * Description:
+ * ------------
+ * Interface between EPDCP and LTECSR
+ *
+ * Author:
+ * -------
+ * -------
+ *
+ ****************************************************************************/
+
+#ifndef _LTECSR_EPDCP_INTERFACE_H_
+#define _LTECSR_EPDCP_INTERFACE_H_
+
+#include "kal_public_api.h"
+
+// ===========================================================================
+// EPDCP API for LTECSR
+// ===========================================================================
+
+void epdcp_ltecsr_volte_ebi_ind(kal_bool volte_ebi_valid, kal_uint32 volte_ebi, kal_uint8 protocol_idx);
+
+
+void enpdcp_ltecsr_voice_bearer_ind(kal_bool bearer_valid, kal_uint8 psi, kal_uint8 qfi, kal_uint8 protocol_idx);
+
+typedef struct
+{
+ LOCAL_PARA_HDR
+
+ kal_bool bearer_valid;
+ kal_uint8 psi; // 0 means 4G bearer. 1-15 for 5G PDU session
+ kal_uint8 qfi; // if psi=0, this value is EBI
+ kal_uint8 protocol_idx;
+} ltecsr_enpdcp_voice_bearer_ind;
+
+#endif /* _LTECSR_EPDCP_INTERFACE_H_ */
+
+
diff --git a/mcu/interface/protocol/enl2/ratdm_el2_interface.h b/mcu/interface/protocol/enl2/ratdm_el2_interface.h
new file mode 100644
index 0000000..40b98e7
--- /dev/null
+++ b/mcu/interface/protocol/enl2/ratdm_el2_interface.h
@@ -0,0 +1,74 @@
+/*****************************************************************************
+* 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:
+ * ---------
+ * ratdm_el2_interface.h
+ *
+ * Project:
+ * --------
+ * UMOLYA
+ *
+ * Description:
+ * ------------
+ * Interface between EL2 and RATDM
+ *
+ * Author:
+ * -------
+ * -------
+ *
+ ****************************************************************************/
+
+#ifndef _RATDM_EL2_INTERFACE_H_
+#define _RATDM_EL2_INTERFACE_H_
+
+// ===========================================================================
+// EL2 API for RATDM_LTE
+// ===========================================================================
+
+kal_uint32
+el2_virtual_address_shortage_handler(
+ kal_uint32 vrb_id,
+ kal_uint32 next_add_fail_addr
+);
+
+kal_bool emac_is_meta_mode();
+
+
+
+#endif /* _RATDM_EL2_INTERFACE_H_ */
+
+