blob: f88dd4fa6fc8d87d6d57088d8ee9041bfaeb08c5 [file] [log] [blame]
yu.dongc33b3072024-08-21 23:14:49 -07001/******************************************************************************
2* Modification Notice:
3* --------------------------
4* This software is modified by MediaTek Inc. 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) 2005
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/* Doxygen Group Header ****************************************************//**
37 * @addtogroup EL1D_TAILCB
38 * @{
39 ******************************************************************************/
40
41//Doxygen file documentation block example:
42/***************************************************************************//**
43 * @file ltailcbregtbl.h
44 * @author YuLern Chu (MTK12318)
45 * @date 2016.10.14
46 * @brief Header file of EL1D TailCB
47 ******************************************************************************/
48
49/***************************************************************************//**
50 * @brief Registration table of TailCB users
51 * @date 2017.10.12
52 ******************************************************************************/
53#if defined(__MD97__) || defined(__MD97P__)//////////////////////////////////////////////////////////////////////////////////////////////////
54/****************************************************************************************
55 Do NOT use compile option in here
56*****************************************************************************************/
57/*
58For registration of callback functions running on TailCB entry at Core1 EL1D CSMP End. Example:
59EL1D_TAILCB_REGISTER( CSMP_END, Your_CallBack_Function_Name )EL1D_MT_MOD(Your_Module_ID) */
60EL1D_TAILCB_REGISTER( CSMP_END, EL1D_CS_Main_Abort_Tailcb )EL1D_MT_MOD(EL1D_MT_MOD_CS)
61EL1D_TAILCB_REGISTER( CSMP_END, EL1D_CS_Main_Sf_Tick )EL1D_MT_MOD(EL1D_MT_MOD_CS)
62EL1D_TAILCB_REGISTER( CSMP_END, EL1D_POS_Meas_Fsm )EL1D_MT_MOD(EL1D_MT_MOD_POS)
63
64/*
65For registration of callback functions running on TailCB entry at Core1 EL1D RX End. Example:
66EL1D_TAILCB_REGISTER( RX_END, Your_CallBack_Function_Name )EL1D_MT_MOD(Your_Module_ID) */
67EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_RRC_State_Change )EL1D_MT_MOD(EL1D_MT_MOD_RX)
68EL1D_TAILCB_REGISTER( RX_END, EL1D_RxPreSync_Set_Force_Pre_Sync_Mode )EL1D_MT_MOD(EL1D_MT_MOD_RX)
69EL1D_TAILCB_REGISTER( RX_END, EL1D_RxPreSync_Set_Force_Using_RS_EN )EL1D_MT_MOD(EL1D_MT_MOD_RX)
70EL1D_TAILCB_REGISTER( RX_END, EL1D_RxPreSync_Set_Dump_Allowed )EL1D_MT_MOD(EL1D_MT_MOD_RX)
71EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_LoRX_Test_Pattern )EL1D_MT_MOD(EL1D_MT_MOD_RX)
72EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_Low_Power_Allowed )EL1D_MT_MOD(EL1D_MT_MOD_RX)
73EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_LoRX_Allow_In_Test_Mode )EL1D_MT_MOD(EL1D_MT_MOD_RX)
74EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_Factory_RX_Mode )EL1D_MT_MOD(EL1D_MT_MOD_RX)
75EL1D_TAILCB_REGISTER( RX_END, EL1D_RxDspRpt_Set_Rx_Self_Test )EL1D_MT_MOD(EL1D_MT_MOD_RX)
76EL1D_TAILCB_REGISTER( RX_END, EL1D_RxPublic_Set_Inject )EL1D_MT_MOD(EL1D_MT_MOD_RX)
77EL1D_TAILCB_REGISTER( RX_END, EL1D_RxFsm_Force_TBMIMO_Enable_Flag )EL1D_MT_MOD(EL1D_MT_MOD_RX)
78//EL1D_TAILCB_REGISTER( RX_END, EL1D_Nbi_Set_INJ_Force_All_On_Off )EL1D_MT_MOD(EL1D_MT_MOD_RX)
79//EL1D_TAILCB_REGISTER( RX_END, EL1D_Nbi_Set_INJ_Force_CC_Off_Bmp )EL1D_MT_MOD(EL1D_MT_MOD_RX)
80EL1D_TAILCB_REGISTER( RX_END, EL1D_Usip_BootStateUpdate )EL1D_MT_MOD(EL1D_MT_MOD_DSP_BOOTUP)
81EL1D_TAILCB_REGISTER( RX_END, EL1D_Dsp_BootInit )EL1D_MT_MOD(EL1D_MT_MOD_DSP_BOOTUP)
82EL1D_TAILCB_REGISTER( RX_END, EL1D_MT_Inject_Enable )EL1D_MT_MOD(EL1D_MT_MOD_OTHERS)
83#if (__IS_EL1D_RX_MT6295_LoSX_SUPPORT__)
84EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_LoSX_Test_Pattern )EL1D_MT_MOD(EL1D_MT_MOD_RX)
85EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_LoSX_Qi_Threshold )EL1D_MT_MOD(EL1D_MT_MOD_RX)
86#endif
87
88#elif defined(__MD95__)//////////////////////////////////////////////////////////////////////////////////////////////////
89/****************************************************************************************
90 Do NOT use compile option in here
91*****************************************************************************************/
92/*
93For registration of callback functions running on TailCB entry at Core1 EL1D CSMP End. Example:
94EL1D_TAILCB_REGISTER( CSMP_END, Your_CallBack_Function_Name )EL1D_MT_MOD(Your_Module_ID) */
95EL1D_TAILCB_REGISTER( CSMP_END, EL1D_CS_Main_Abort_Tailcb )EL1D_MT_MOD(EL1D_MT_MOD_CS)
96EL1D_TAILCB_REGISTER( CSMP_END, EL1D_CS_Main_Sf_Tick )EL1D_MT_MOD(EL1D_MT_MOD_CS)
97EL1D_TAILCB_REGISTER( CSMP_END, EL1D_POS_Meas_Fsm )EL1D_MT_MOD(EL1D_MT_MOD_POS)
98
99/*
100For registration of callback functions running on TailCB entry at Core1 EL1D RX End. Example:
101EL1D_TAILCB_REGISTER( RX_END, Your_CallBack_Function_Name )EL1D_MT_MOD(Your_Module_ID) */
102EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_RRC_State_Change )EL1D_MT_MOD(EL1D_MT_MOD_RX)
103EL1D_TAILCB_REGISTER( RX_END, EL1D_RxPreSync_Set_Force_Pre_Sync_Mode )EL1D_MT_MOD(EL1D_MT_MOD_RX)
104EL1D_TAILCB_REGISTER( RX_END, EL1D_RxPreSync_Set_Force_Using_RS_EN )EL1D_MT_MOD(EL1D_MT_MOD_RX)
105EL1D_TAILCB_REGISTER( RX_END, EL1D_RxPreSync_Set_Dump_Allowed )EL1D_MT_MOD(EL1D_MT_MOD_RX)
106EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_LoRX_Test_Pattern )EL1D_MT_MOD(EL1D_MT_MOD_RX)
107EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_Low_Power_Allowed )EL1D_MT_MOD(EL1D_MT_MOD_RX)
108EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_LoRX_Allow_In_Test_Mode )EL1D_MT_MOD(EL1D_MT_MOD_RX)
109EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_Factory_RX_Mode )EL1D_MT_MOD(EL1D_MT_MOD_RX)
110EL1D_TAILCB_REGISTER( RX_END, EL1D_RxDspRpt_Set_Rx_Self_Test )EL1D_MT_MOD(EL1D_MT_MOD_RX)
111EL1D_TAILCB_REGISTER( RX_END, EL1D_RxPublic_Set_Inject )EL1D_MT_MOD(EL1D_MT_MOD_RX)
112EL1D_TAILCB_REGISTER( RX_END, EL1D_RxFsm_Force_TBMIMO_Enable_Flag )EL1D_MT_MOD(EL1D_MT_MOD_RX)
113//EL1D_TAILCB_REGISTER( RX_END, EL1D_Nbi_Set_INJ_Force_All_On_Off )EL1D_MT_MOD(EL1D_MT_MOD_RX)
114//EL1D_TAILCB_REGISTER( RX_END, EL1D_Nbi_Set_INJ_Force_CC_Off_Bmp )EL1D_MT_MOD(EL1D_MT_MOD_RX)
115EL1D_TAILCB_REGISTER( RX_END, EL1D_Usip_BootStateUpdate )EL1D_MT_MOD(EL1D_MT_MOD_DSP_BOOTUP)
116EL1D_TAILCB_REGISTER( RX_END, EL1D_Dsp_BootInit )EL1D_MT_MOD(EL1D_MT_MOD_DSP_BOOTUP)
117EL1D_TAILCB_REGISTER( RX_END, EL1D_MT_Inject_Enable )EL1D_MT_MOD(EL1D_MT_MOD_OTHERS)
118#if (__IS_EL1D_RX_MT6295_LoSX_SUPPORT__)
119EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_LoSX_Test_Pattern )EL1D_MT_MOD(EL1D_MT_MOD_RX)
120EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_LoSX_Qi_Threshold )EL1D_MT_MOD(EL1D_MT_MOD_RX)
121#endif
122
123#elif defined(__MD93__)//////////////////////////////////////////////////////////////////////////////////////////////////
124/****************************************************************************************
125 Do NOT use compile option in here
126*****************************************************************************************/
127// for callback function registration on Core0 Symbol11 of TailCB
128// example: EL1D_TAILCB_REGISTER( your tail_type, your callback function name )EL1D_MT_MOD(your module id)
129EL1D_TAILCB_REGISTER( CORE0_11, EL1D_CS_Main_Abort_Tailcb )EL1D_MT_MOD(EL1D_MT_MOD_CS)
130EL1D_TAILCB_REGISTER( CORE0_11, EL1D_CS_Main_Sf_Tick )EL1D_MT_MOD(EL1D_MT_MOD_CS)
131EL1D_TAILCB_REGISTER( CORE0_11, EL1D_POS_Meas_Fsm )EL1D_MT_MOD(EL1D_MT_MOD_POS)
132EL1D_TAILCB_REGISTER( CORE0_11, EL1D_TX_Dump_Timing_Trace )EL1D_MT_MOD(EL1D_MT_MOD_TX)
133
134// for callback function registration on Core1 Symbol11.8 of TailCB
135// example: EL1D_TAILCB_REGISTER( your tail_type, your callback function name )EL1D_MT_MOD(your module id)
136EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_RxLPwr_Set_RRC_State_Change )EL1D_MT_MOD(EL1D_MT_MOD_RX)
137EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_RxPreSync_Set_Force_Pre_Sync_Mode )EL1D_MT_MOD(EL1D_MT_MOD_RX)
138EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_RxPreSync_Set_Force_Using_RS_EN )EL1D_MT_MOD(EL1D_MT_MOD_RX)
139EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_RxPreSync_Set_Dump_Allowed )EL1D_MT_MOD(EL1D_MT_MOD_RX)
140EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_RxLPwr_Set_LoRX_Test_Pattern )EL1D_MT_MOD(EL1D_MT_MOD_RX)
141EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_RxLPwr_Set_Low_Power_Allowed )EL1D_MT_MOD(EL1D_MT_MOD_RX)
142EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_RxLPwr_Set_LoRX_Allow_In_Test_Mode )EL1D_MT_MOD(EL1D_MT_MOD_RX)
143EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_RxLPwr_Set_Factory_RX_Mode )EL1D_MT_MOD(EL1D_MT_MOD_RX)
144EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_RxDspRpt_Set_Rx_Self_Test )EL1D_MT_MOD(EL1D_MT_MOD_RX)
145EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_RxPublic_Set_Inject )EL1D_MT_MOD(EL1D_MT_MOD_RX)
146
147
148EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_RxFsm_Force_TBMIMO_Enable_Flag )EL1D_MT_MOD(EL1D_MT_MOD_RX)
149EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_Nbi_Set_INJ_Force_All_On_Off )EL1D_MT_MOD(EL1D_MT_MOD_RX)
150EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_Nbi_Set_INJ_Force_CC_Off_Bmp )EL1D_MT_MOD(EL1D_MT_MOD_RX)
151EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_Usip_BootStateUpdate )EL1D_MT_MOD(EL1D_MT_MOD_DSP_BOOTUP)
152EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_Dsp_BootInit )EL1D_MT_MOD(EL1D_MT_MOD_DSP_BOOTUP)
153EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_MT_Inject_Enable )EL1D_MT_MOD(EL1D_MT_MOD_OTHERS)
154#else
155#error "Please check the registered TailCB callback functions on this chip."
156#endif
157
158/* Doxygen Group EL1D_TAILCB End ********************************************//**
159 * @}
160 ******************************************************************************/
161