MCUSW
Loading...
Searching...
No Matches
Cdd_IpcCfg.h
Go to the documentation of this file.
1/*
2*
3* Copyright (c) 2024 Texas Instruments Incorporated
4*
5* All rights reserved not granted herein.
6*
7* Limited License.
8*
9* Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
10* license under copyrights and patents it now or hereafter owns or controls to make,
11* have made, use, import, offer to sell and sell ("Utilize") this software subject to the
12* terms herein. With respect to the foregoing patent license, such license is granted
13* solely to the extent that any such patent is necessary to Utilize the software alone.
14* The patent license shall not apply to any combinations which include this software,
15* other than combinations with devices manufactured by or for TI ("TI Devices").
16* No hardware patent is licensed hereunder.
17*
18* Redistributions must preserve existing copyright notices and reproduce this license
19* (including the above copyright notice and the disclaimer and (if applicable) source
20* code license limitations below) in the documentation and/or other materials provided
21* with the distribution
22*
23* Redistribution and use in binary form, without modification, are permitted provided
24* that the following conditions are met:
25*
26* * No reverse engineering, decompilation, or disassembly of this software is
27* permitted with respect to any software provided in binary form.
28*
29* * any redistribution and use are licensed by TI for use only with TI Devices.
30*
31* * Nothing shall obligate TI to provide you with source code for the software
32* licensed and provided to you in object code.
33*
34* If software source code is provided to you, modification and redistribution of the
35* source code are permitted provided that the following conditions are met:
36*
37* * any redistribution and use of the source code, including any resulting derivative
38* works, are licensed by TI for use only with TI Devices.
39*
40* * any redistribution and use of any object code compiled from the source code
41* and any resulting derivative works, are licensed by TI for use only with TI Devices.
42*
43* Neither the name of Texas Instruments Incorporated nor the names of its suppliers
44*
45* may be used to endorse or promote products derived from this software without
46* specific prior written permission.
47*
48* DISCLAIMER.
49*
50* THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY EXPRESS
51* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
52* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
53* IN NO EVENT SHALL TI AND TI'S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT,
54* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
55* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
56* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
57* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
58* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
59* OF THE POSSIBILITY OF SUCH DAMAGE.
60*
61*/
62
71/******************************************************************************
72 Project : J721E_Test
73 Date : 2023-11-07 17:28:13
74 SW Ver : 10.0
75 Module Rele Ver : AUTOSAR 4.3.1 0
76
77 This file is generated by EB Tresos
78 Do not modify this file,otherwise the software may behave in unexpected way.
79******************************************************************************/
80
88#ifndef CDD_IPC_CFG_H_
89#define CDD_IPC_CFG_H_
90/* Generic requirements covered mapping */
91/*
92 * Design : DES_CDD_IPC_020
93 */
94/*
95 * Requirements : MCAL-3698
96 */
97
98/* ========================================================================== */
99/* Include Files */
100/* ========================================================================== */
101
102#include "Dem.h"
103#include "Os.h"
104#include <CddIpc/ipc_baremetal_hw/include/ipc_config.h>
105
106
107#ifdef __cplusplus
108extern "C" {
109#endif
110
111/* ========================================================================== */
112/* Macros & Typedefs */
113/* ========================================================================== */
114/*
115 * Design : DES_CDD_IPC_004, DES_CDD_IPC_002, DES_CDD_IPC_017
116 */
117/*
118 * Requirements : MCAL-921, MCAL-3703
119 */
124#define CDD_IPC_PRE_COMPILE_VARIANT (STD_ON)
125/*
126 * Design : DES_CDD_IPC_012
127 */
128/*
129 * Requirements : MCAL-3693
130 */
132#define CDD_IPC_DEV_ERROR_DETECT (STD_ON)
133/*
134 * Design : DES_CDD_IPC_012
135 */
136/*
137 * Requirements : MCAL-3692
138 */
140#define CDD_IPC_ISR_TYPE (CDD_IPC_ISR_CAT1)
141
146/*
147 * Design : DES_CDD_IPC_012
148 */
149/*
150 * Requirements : MCAL-3741
151 */
153#define CDD_IPC_VERSION_INFO_API (STD_ON)
154/*
155 * Design : DES_CDD_IPC_012
156 */
157/*
158 * Requirements : MCAL-3688
159 */
161#define CDD_IPC_DEINIT_API (STD_ON)
162/*
163 * Design : DES_CDD_IPC_012
164 */
165/*
166 * Requirements : MCAL-3689
167 */
169#define CDD_IPC_ANNOUNCE_API (STD_ON)
170/*
171 * Design : DES_CDD_IPC_005, DES_CDD_IPC_012
172 */
173/*
174 * Requirements : MCAL-3687
175 */
177#define CDD_IPC_REGISTER_READBACK_API (STD_ON)
178/*
179 * Design :
180 */
181/*
182 * Requirements : MCAL-8266
183 */
185#define CDD_IPC_SAFETY_DIAGNOSTIC_API (STD_ON)
186/*
187 * Design : DES_CDD_IPC_040
188 */
189/*
190 * Requirements : MCAL-4452
191 */
192
194#define CDD_IPC_IS_INIT_DONE_API (STD_ON)
195
196/*
197 * Design : DES_CDD_IPC_041
198 */
199/*
200 * Requirements : MCAL-4453
201 */
202
204#define CDD_IPC_GET_MAX_MSG_SIZE_API (STD_ON)
205
206
207/* @} */
208
213/*
214 * Design : DES_CDD_IPC_012
215 */
216/*
217 * Requirements : MCAL-3694, MCAL-3694
218 */
220#define CDD_IPC_OS_COUNTER_ID ((CounterType)OsCounter_0)
221
228/*
229 * Design : DES_CDD_IPC_020
230 */
231/*
232 * Requirements : MCAL-3693
233 */
234#define DemConf_DemEventParameter_CDD_IPC_DEM_NO_EVENT (0xFFFFU)
235#define CDD_IPC_DEM_NO_EVENT DemConf_DemEventParameter_CDD_IPC_DEM_NO_EVENT
236
237#ifndef CDD_IPC_E_HARDWARE_ERROR
239#define CDD_IPC_E_HARDWARE_ERROR (DemConf_DemEventParameter_CDD_IPC_E_HARDWARE_ERROR)
240#endif
241/* @} */
242
247/*
248 * Design : DES_CDD_IPC_018
249 */
250/*
251 * Requirements : MCAL-3699, MCAL-3700
252 */
253#define CDD_IPC_CORE_MCU1_0 (1U)
255#define CDD_IPC_CORE_MCU1_1 (2U)
257#define CDD_IPC_CORE_MCU2_0 (3U)
259#define CDD_IPC_CORE_MCU2_1 (4U)
261#define CDD_IPC_CORE_MCU3_0 (5U)
263#define CDD_IPC_CORE_MCU3_1 (6U)
265#define CDD_IPC_CORE_C66X_1 (7U)
267#define CDD_IPC_CORE_C66X_2 (8U)
269#define CDD_IPC_CORE_C7X_1 (9U)
271#define CDD_IPC_CORE_MAX_PROCS (11U)
275#define CDD_IPC_OWN_CORE_ID (CDD_IPC_CORE_MCU1_0)
277#define CDD_IPC_REMOTE_CORE_MCU2_0_USED
280/* @} */
281
282
287/*
288 * Design : DES_CDD_IPC_005, DES_CDD_IPC_016
289 */
290/*
291 * Requirements : MCAL-3686,
292 */
293#define CDD_IPC_VERTIO_OBJECT_SIZE (0x1000U)
294 /* @} */
295
300/*
301 * Design : DES_CDD_IPC_016
302 */
303/*
304 * Requirements : MCAL-3686,
305 */
306#define CddIpcConf_IpcComChanId_Cdd_IpcMcu20 (0U)
309/*
310 * Design : DES_CDD_IPC_016
311 */
312/*
313 * Requirements : MCAL-3755, MCAL-3682
314 */
315#define CDD_IPC_RPMSG_OBJ_SIZE (256U)
317#define CDD_IPC_CH_0_BUFF_SIZE ((256U * (496U + 32U)) + CDD_IPC_RPMSG_OBJ_SIZE)
319#define CDD_IPC_MAX_CHANNEL_CFG (2U)
326#define IPC_VRING_BUFFER_SIZE (0x1C00000U)
327
329#define IPC_MPU1_0 (0U)
330#define IPC_MCU1_0 (1U)
331#define IPC_MCU1_1 (2U)
332#define IPC_MCU2_0 (3U)
333#define IPC_MCU2_1 (4U)
334#define IPC_MCU3_0 (5U)
335#define IPC_MCU3_1 (6U)
336#define IPC_C66X_1 (7U)
337#define IPC_C66X_2 (8U)
338#define IPC_C7X_1 (9U)
339#define IPC_MPU1_1 (10U)
340#define IPC_MAX_PROCS (11U)
344#define CDD_IPC_CORE_ID_MAX (11U)
345
346#define IPC_MAILBOX_CLUSTER_CNT (12U)
347
348/* @} */
349/* ========================================================================== */
350/* Globals Variables */
351/* ========================================================================== */
352/* Mailbox Cluster Base Address */
354
358extern Ipc_ProcInfo g_Ipc_mp_procInfo[IPC_MAX_PROCS];
359
360extern Ipc_MailboxInfo g_IPC_MailboxInfo[IPC_MAX_PROCS][IPC_MAX_PROCS];
361
362/* ========================================================================== */
363/* Function Declarations */
364/* ========================================================================== */
365/*
366 * Design : DES_CDD_IPC_002, DES_CDD_IPC_017
367 */
368/*
369 * Requirements : MCAL-3703
370 */
371extern const struct Cdd_IpcConfigType_s CddIpcConfiguraions_PC;
372
377/*
378 * Design : DES_CDD_IPC_012, DES_CDD_IPC_026
379 */
380/*
381 * Requirements : MCAL-3701, MCAL-3691
382 */
383extern void Cdd_IpcNewMessageNotify(void);
384
385#define CDD_IPC_NEW_MSG_NTFY_FXN Cdd_IpcNewMessageNotify
386
387#if (STD_ON == CDD_IPC_ANNOUNCE_API)
388
393/*
394 * Design : DES_CDD_IPC_039
395 */
396/*
397 * Requirements : MCAL-4067, MCAL-4066
398 */
399extern void Cdd_IpcNewCtrlMessageNotify(uint32 remoteProcId);
400
401#define CDD_IPC_NEW_CTRL_MSG_NTFY_FXN Cdd_IpcNewCtrlMessageNotify
402
403#endif /* STD_ON == CDD_IPC_ANNOUNCE_API */
404
405/*
406 * Design : DES_CDD_IPC_013
407 */
408/*
409 * Requirements : MCAL-3674
410 */
416
431FUNC(void, CDD_IPC_CODE_FAST) Cdd_Ipc_Isr_Cdd_IpcIrqMbxFromMcu_20(void);
432
433#ifdef __cplusplus
434}
435#endif
436
437#endif /* #ifndef CDD_IPC_CFG_H_ */
438
439/* @} */
#define IPC_MAX_PROCS
Definition Cdd_IpcCfg.h:340
const uint32 IPC_Mailbox_BasePhyAddr[IPC_MAILBOX_CLUSTER_CNT]
#define IPC_MAILBOX_CLUSTER_CNT
Definition Cdd_IpcCfg.h:346
void Cdd_IpcNewMessageNotify(void)
New Message notification function.
Ipc_MailboxInfo g_IPC_MailboxInfo[IPC_MAX_PROCS][IPC_MAX_PROCS]
#define CDD_IPC_VERTIO_OBJECT_SIZE
Definition Cdd_IpcCfg.h:293
uint8 Cdd_IpcDrvVertIoObj[CDD_IPC_VERTIO_OBJECT_SIZE]
Communication Channels configured.
const struct Cdd_IpcConfigType_s CddIpcConfiguraions_PC
Ipc_ProcInfo g_Ipc_mp_procInfo[IPC_MAX_PROCS]
Processor IDs to name mapping for all processor in Jacinto7.
void Cdd_IpcNewCtrlMessageNotify(uint32 remoteProcId)
New Control Message notification function.
void Cdd_Ipc_Isr_Cdd_IpcIrqMbxFromMcu_20(void)
A Mailbox can raise multiple interrupts. In this implementation, the Mailbox new message interrupt is...