PDK API Guide for J721E
ipc_soc.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Texas Instruments Incorporated 2018
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  *
12  * Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in the
14  * documentation and/or other materials provided with the
15  * distribution.
16  *
17  * Neither the name of Texas Instruments Incorporated nor the names of
18  * its contributors may be used to endorse or promote products derived
19  * from this software without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32  */
33 
47 #ifndef IPC_SOC_TOP_H_
48 #define IPC_SOC_TOP_H_
49 
50 #ifdef __cplusplus
51 extern "C" {
52 #endif
53 
54 #define IPC_INVALID_PROCID (0XFFU)
56 /* ========================================================================== */
57 /* Include Files */
58 /* ========================================================================== */
59 
60 
61 /*
62  * These functions and structure is for internal use use and
63  * are not expected to be called from app
64  */
65 
66 /* ========================================================================== */
67 /* Structure Declarations */
68 /* ========================================================================== */
69 
70 /* ========================================================================== */
71 /* Function Declarations */
72 /* ========================================================================== */
73 int32_t Ipc_getMailboxInfoTx(uint32_t selfId, uint32_t remoteId,
74  uint32_t *clusterId, uint32_t *userId, uint32_t *queueId);
75 int32_t Ipc_getMailboxInfoRx(uint32_t selfId, uint32_t remoteId,
76  uint32_t *clusterId, uint32_t *userId, uint32_t *queueId);
77 int32_t Ipc_getMailboxIntrRouterCfg(uint32_t selfId, uint32_t clusterId,
78  uint32_t userId, Ipc_MbConfig* cfg, uint32_t cnt);
79 uintptr_t Ipc_getMailboxBaseAddr(uint32_t clusterId);
80 
88 const char* Ipc_getCoreName(uint32_t procId);
89 
95 uint32_t Ipc_getCoreId(void);
96 
102 uint32_t Ipc_isCacheCoherent(void);
103 
104 /* For J7ES device */
105 #if defined (SOC_J721E) || defined (SOC_J7200)
107 #endif
108 
109 #if defined (SOC_J721S2)
110 #include <ti/drv/ipc/soc/V3/ipc_soc.h>
111 #endif
112 
113 #if defined (SOC_J784S4)
114 #include <ti/drv/ipc/soc/V4/ipc_soc.h>
115 #endif
116 
117 #ifdef __cplusplus
118 }
119 #endif
120 
121 #endif /* #ifndef IPC_SOC_TOP_H_ */
122 
123 /* @} */
Mailbox interrupt router configuration.
Definition: ipc_types.h:113
const char * Ipc_getCoreName(uint32_t procId)
Returns the core name for get core id.
int32_t Ipc_getMailboxInfoTx(uint32_t selfId, uint32_t remoteId, uint32_t *clusterId, uint32_t *userId, uint32_t *queueId)
int32_t Ipc_getMailboxIntrRouterCfg(uint32_t selfId, uint32_t clusterId, uint32_t userId, Ipc_MbConfig *cfg, uint32_t cnt)
uint32_t Ipc_getCoreId(void)
Returns Core ID based on core build flag.
uintptr_t Ipc_getMailboxBaseAddr(uint32_t clusterId)
int32_t Ipc_getMailboxInfoRx(uint32_t selfId, uint32_t remoteId, uint32_t *clusterId, uint32_t *userId, uint32_t *queueId)
IPC Low Level Driver J7 SOC specific file.
uint32_t Ipc_isCacheCoherent(void)
Returns TRUE if the memory is cache coherent.