87 #if defined (SOC_J721E) 89 #define APP_IPC_CPU_MPU1_0 ( 0u) 91 #define APP_IPC_CPU_MCU1_0 ( 1u) 93 #define APP_IPC_CPU_MCU1_1 ( 2u) 95 #define APP_IPC_CPU_MCU2_0 ( 3u) 97 #define APP_IPC_CPU_MCU2_1 ( 4u) 99 #define APP_IPC_CPU_MCU3_0 ( 5u) 101 #define APP_IPC_CPU_MCU3_1 ( 6u) 103 #define APP_IPC_CPU_C6x_1 ( 7u) 105 #define APP_IPC_CPU_C6x_2 ( 8u) 107 #define APP_IPC_CPU_C7x_1 ( 9u) 109 #define APP_IPC_CPU_MAX (10u) 111 #define APP_IPC_CPU_INVALID (0xFFu) 114 #if defined (SOC_J721S2) 116 #define APP_IPC_CPU_MPU1_0 ( 0u) 118 #define APP_IPC_CPU_MCU1_0 ( 1u) 120 #define APP_IPC_CPU_MCU1_1 ( 2u) 122 #define APP_IPC_CPU_MCU2_0 ( 3u) 124 #define APP_IPC_CPU_MCU2_1 ( 4u) 126 #define APP_IPC_CPU_MCU3_0 ( 5u) 128 #define APP_IPC_CPU_MCU3_1 ( 6u) 130 #define APP_IPC_CPU_C7x_1 ( 7u) 132 #define APP_IPC_CPU_C7x_2 ( 8u) 134 #define APP_IPC_CPU_MAX ( 9u) 136 #define APP_IPC_CPU_INVALID (0xFFu) 139 #if defined (SOC_J784S4) 141 #define APP_IPC_CPU_MPU1_0 ( 0u) 143 #define APP_IPC_CPU_MCU1_0 ( 1u) 145 #define APP_IPC_CPU_MCU1_1 ( 2u) 147 #define APP_IPC_CPU_MCU2_0 ( 3u) 149 #define APP_IPC_CPU_MCU2_1 ( 4u) 151 #define APP_IPC_CPU_MCU3_0 ( 5u) 153 #define APP_IPC_CPU_MCU3_1 ( 6u) 155 #define APP_IPC_CPU_MCU4_0 ( 7u) 157 #define APP_IPC_CPU_MCU4_1 ( 8u) 159 #define APP_IPC_CPU_C7x_1 ( 9u) 161 #define APP_IPC_CPU_C7x_2 (10u) 163 #define APP_IPC_CPU_C7x_3 (11u) 165 #define APP_IPC_CPU_C7x_4 (12u) 167 #define APP_IPC_CPU_MAX (13u) 169 #define APP_IPC_CPU_INVALID (0xFFu) 172 #if defined (SOC_AM62A) 174 #define APP_IPC_CPU_MPU1_0 ( 0u) 176 #define APP_IPC_CPU_MCU1_0 ( 1u) 178 #define APP_IPC_CPU_C7x_1 ( 2u) 180 #define APP_IPC_CPU_MAX ( 3u) 182 #define APP_IPC_CPU_INVALID (0xFFu) 183 #if defined(MCU_PLUS_SDK) 184 #define IPC_MAX_PROCS (3U) 191 #define APP_IPC_HW_LOCK_MAX (256u) 194 #define APP_IPC_WAIT_FOREVER (0xFFFFFFFFu) 204 #define APP_IPC_TIOVX_RPMSG_PORT_ID (13u) 207 #define APP_IPC_REMOTE_SERVICE_RPMSG_PORT_ID (21u) 210 #define APP_IPC_ECHO_TEST_RPMSG_PORT_ID (14u) 213 #define APP_IPC_RPMSG_PROTO_ECHO_TEST_RPMSG_PORT_ID (12u) 233 uint32_t enabled_cpu_id_list[APP_IPC_CPU_MAX];
387 #if defined(FREERTOS) || defined(SAFERTOS) 393 int32_t appIpcCreateTraceBufFlushTask(
void);
uint32_t tiovx_rpmsg_port_id
Definition: app_ipc.h:234
int32_t appIpcDeInit()
De-Initialize IPC module.
uint32_t appIpcGetIpcCpuId(uint32_t app_cpu_id)
Convert from APP_CPU_xxx to IPC LLD CPU ID.
void * ipc_resource_tbl
Definition: app_ipc.h:242
void * tiovx_log_rt_mem
Definition: app_ipc.h:239
int32_t appIpcHwLockRelease(uint32_t lock_id)
Release a system wide HW lock.
uint32_t appIpcGetSelfCpuId()
Get current CPU ID.
IPC initialization parameters.
Definition: app_ipc.h:230
int32_t appIpcGetTiovxObjDescSharedMemInfo(void **addr, uint32_t *size)
Get base address and size of memory region assigned for TIOVX obj_desc's.
char * appIpcGetCpuName(uint32_t app_cpu_id)
Get CPU name from CPU ID.
int32_t appIpcRegisterNotifyHandler(app_ipc_notify_handler_f handler)
Register callback to invoke on receiving a notify message.
uint32_t appIpcIsCpuEnabled(uint32_t cpu_id)
Check if a CPU is enabled in current system for IPC.
uint32_t tiovx_obj_desc_mem_size
Definition: app_ipc.h:236
uint32_t tiovx_log_rt_mem_size
Definition: app_ipc.h:240
uint32_t appIpcGetHostPortId(uint16_t cpu_id)
Get current CPU Port ID.
uint32_t appIpcGetAppCpuId(char *name)
Get APP_CPU_xxx from CPU name.
void appIpcGetTiovxLogRtSharedMemInfo(void **shm_base, uint32_t *shm_size)
Get base address and size of memory region assigned for TIOVX run-time logging.
void(* app_ipc_notify_handler_f)(uint32_t src_cpu_id, uint32_t payload)
Callback that is invoke when current CPU receives a IPC notify.
Definition: app_ipc.h:224
int32_t appIpcSendNotifyPort(uint32_t dest_cpu_id, uint32_t payload, uint32_t port_id)
Send a notify message to a given CPU.
uint32_t ipc_vring_mem_size
Definition: app_ipc.h:238
void appIpcInitPrmSetDefault(app_ipc_init_prm_t *prm)
Set IPC init parameters to default state.
uint32_t self_cpu_id
Definition: app_ipc.h:241
void * ipc_vring_mem
Definition: app_ipc.h:237
uint32_t num_cpus
Definition: app_ipc.h:232
int32_t appIpcHwLockAcquire(uint32_t lock_id, uint32_t timeout)
Acquire a system wide HW lock.
uint32_t enable_tiovx_ipc_announce
Definition: app_ipc.h:243
void * tiovx_obj_desc_mem
Definition: app_ipc.h:235
int32_t appIpcInit(app_ipc_init_prm_t *prm)
Initialize IPC module.
int32_t appIpcSendNotify(uint32_t dest_cpu_id, uint32_t payload)
Send a notify message to a given CPU.