lib/sw_apps/zynqmp_pmufw/src/pm_binding.c
XPfw_PmIpiStatus XPfw_PmCheckIpiRequest(const u32 isrVal,
					const u32* apiId)
{
	XPfw_PmIpiStatus status;
	const PmMaster *master = PmGetMasterByIpiMask(isrVal);

	if (NULL == master) {
		/* IPI is not generated by one of the PM supported PUs */
		status = XPFW_PM_IPI_SRC_UNKNOWN;
		goto done;
	}

	/* Api id is first argument in payload */
	if ((*apiId > PM_API(PM_API_MIN)) && (*apiId < PM_API(PM_API_MAX))) {
		/* Api id is within valid range */
		status = XPFW_PM_IPI_IS_PM_CALL;
	} else {
		/* This IPI was not a PM call */
		status = XPFW_PM_IPI_NOT_PM_CALL;
	}

done:
	return status;
}
/**
 * XPfw_PmCheckIpiRequest() - Check whether the IPI interrupt is a PM call
 * @isrVal  IPI's ISR register value
 * @apiId   Pointer to a variable holding the api id (first word of message)
 *
 * @return  Check result
 *
 * @note    Call from IPI interrupt routine to check is interrupt a PM call.
 *          Function reads first argument of payload in IPI buffer of
 *          requestor master to determine whether first argument is within
 *          PM API regular ids.
 */
Check whether the IPI interrupt is a PM call
@isrVal  IPI's ISR register value
@apiId   Pointer to a variable holding the api id (first word of message)

@return  Check result

@note    Call from IPI interrupt routine to check is interrupt a PM call.
Function reads first argument of payload in IPI buffer of
requestor master to determine whether first argument is within
PM API regular ids.
Check whether the IPI interrupt is a PM call @isrVal IPI ' s ISR register value @apiId Pointer to a variable holding the api id ( first word of message ) @return Check result @note Call from IPI interrupt routine to check is interrupt a PM call . Function reads first argument of payload in IPI buffer of requestor master to determine whether first argument is within PM API regular ids .
XPfw_PmIpiStatus XPfw_PmCheckIpiRequest(const u32 isrVal,
					const u32* apiId)
{
	XPfw_PmIpiStatus status;
	const PmMaster *master = PmGetMasterByIpiMask(isrVal);
	if (NULL == master) {
		status = XPFW_PM_IPI_SRC_UNKNOWN;
		goto done;
	}
	if ((*apiId > PM_API(PM_API_MIN)) && (*apiId < PM_API(PM_API_MAX))) {
		status = XPFW_PM_IPI_IS_PM_CALL;
	} else {
		status = XPFW_PM_IPI_NOT_PM_CALL;
	}
done:
	return status;
}
XPfw_PmIpiStatus XPfw_PmCheckIpiRequest ( const u32 isrVal , const u32 * apiId ) { XPfw_PmIpiStatus status ; const PmMaster * master = PmGetMasterByIpiMask ( isrVal ) ; if ( NULL == master ) { status = XPFW_PM_IPI_SRC_UNKNOWN ; goto done ; } if ( ( * apiId > PM_API ( PM_API_MIN ) ) && ( * apiId < PM_API ( PM_API_MAX ) ) ) { status = XPFW_PM_IPI_IS_PM_CALL ; } else { status = XPFW_PM_IPI_NOT_PM_CALL ; } done : return status ; }
XPfw_PmCheckIpiRequest() - Check whether the IPI interrupt is a PM call
 @isrVal  IPI's ISR register value
 @apiId   Pointer to a variable holding the api id (first word of message)
XPfw_PmCheckIpiRequest () - Check whether the IPI interrupt is a PM call @isrVal IPI ' s ISR register value @apiId Pointer to a variable holding the api id ( first word of message )
/* IPI is not generated by one of the PM supported PUs */ /* Api id is first argument in payload */ /* Api id is within valid range */ /* This IPI was not a PM call */