lib/sw_apps/versal_psmfw/src/xpsmfw_ipi_manager.c
XStatus XPsmFw_DispatchIpiHandler(u32 SrcMask)
{
	XStatus Status = XST_FAILURE;
	u32 Payload[XPSMFW_IPI_MAX_MSG_LEN] = {0};
	u32 Response[XPSMFW_IPI_MAX_MSG_LEN];

	/* Warning fix */
	(void) (SrcMask);

	XPsmFw_Printf(DEBUG_DETAILED, "In IPI handler\r\n");

	Status = XIpiPsu_ReadMessage(IpiInstPtr, IPI_PSM_ISR_PMC_MASK, &Payload[0],
			XPSMFW_IPI_MAX_MSG_LEN, XIPIPSU_BUF_TYPE_MSG);
	if (XST_SUCCESS != Status) {
		XPsmFw_Printf(DEBUG_ERROR, "Failure to read IPI msg\r\n");
	} else {
		Status = XPsmFw_ProcessIpi(&Payload[0]);

		Response[0] = (u32)Status;
		Status = XPsmFw_IpiSendResponse(IPI_PSM_IER_PMC_MASK, Response);
	}

	return Status;
}
/**
 * XPsmFw_DispatchIpiHandler() - Interrupt handler for IPI
 *
 * @IpiInstPtr		Pointer to the IPI instance
 */
Interrupt handler for IPI
@IpiInstPtr          Pointer to the IPI instance
Interrupt handler for IPI @IpiInstPtr Pointer to the IPI instance
XStatus XPsmFw_DispatchIpiHandler(u32 SrcMask)
{
	XStatus Status = XST_FAILURE;
	u32 Payload[XPSMFW_IPI_MAX_MSG_LEN] = {0};
	u32 Response[XPSMFW_IPI_MAX_MSG_LEN];
	(void) (SrcMask);
	XPsmFw_Printf(DEBUG_DETAILED, "In IPI handler\r\n");
	Status = XIpiPsu_ReadMessage(IpiInstPtr, IPI_PSM_ISR_PMC_MASK, &Payload[0],
			XPSMFW_IPI_MAX_MSG_LEN, XIPIPSU_BUF_TYPE_MSG);
	if (XST_SUCCESS != Status) {
		XPsmFw_Printf(DEBUG_ERROR, "Failure to read IPI msg\r\n");
	} else {
		Status = XPsmFw_ProcessIpi(&Payload[0]);
		Response[0] = (u32)Status;
		Status = XPsmFw_IpiSendResponse(IPI_PSM_IER_PMC_MASK, Response);
	}
	return Status;
}
XStatus XPsmFw_DispatchIpiHandler ( u32 SrcMask ) { XStatus Status = XST_FAILURE ; u32 Payload [ XPSMFW_IPI_MAX_MSG_LEN ] = { 0 } ; u32 Response [ XPSMFW_IPI_MAX_MSG_LEN ] ; ( void ) ( SrcMask ) ; XPsmFw_Printf ( DEBUG_DETAILED , " \r \n " ) ; Status = XIpiPsu_ReadMessage ( IpiInstPtr , IPI_PSM_ISR_PMC_MASK , & Payload [ 0 ] , XPSMFW_IPI_MAX_MSG_LEN , XIPIPSU_BUF_TYPE_MSG ) ; if ( XST_SUCCESS != Status ) { XPsmFw_Printf ( DEBUG_ERROR , " \r \n " ) ; } else { Status = XPsmFw_ProcessIpi ( & Payload [ 0 ] ) ; Response [ 0 ] = ( u32 ) Status ; Status = XPsmFw_IpiSendResponse ( IPI_PSM_IER_PMC_MASK , Response ) ; } return Status ; }
XPsmFw_DispatchIpiHandler() - Interrupt handler for IPI
 @IpiInstPtr          Pointer to the IPI instance
XPsmFw_DispatchIpiHandler () - Interrupt handler for IPI @IpiInstPtr Pointer to the IPI instance
/* Warning fix */