lib/sw_apps/zynqmp_pmufw/src/pm_binding.c
s32 XPfw_PmWfiHandler(const u32 srcMask)
{
	s32 status;
	PmProc *proc = PmGetProcByWfiStatus(srcMask);

	if (NULL == proc) {
		PmErr("Unknown processor 0x%lx\r\n", srcMask);
		status = XST_INVALID_PARAM;
		goto done;
	}

	status = PmProcFsm(proc, PM_PROC_EVENT_SLEEP);

done:
	return status;
}
/**
 * XPfw_PmWfiHandler() - Call from GPI2 interrupt handler to process sleep req
 * @srcMask Value read from GPI2 register which determines master requestor
 *
 * @return  Status of triggering sleep for a processor (XST_INVALID_PARAM if
 *          processor cannot be determined by srcMask, status of performing
 *          sleep operation otherwise)
 *
 * @note    Call from GPI2 interrupt routine to process sleep request. Must not
 *          clear GPI2 interrupt before this function returns.
 */
Call from GPI2 interrupt handler to process sleep req
@srcMask Value read from GPI2 register which determines master requestor

@return  Status of triggering sleep for a processor (XST_INVALID_PARAM if
processor cannot be determined by srcMask, status of performing
sleep operation otherwise)

@note    Call from GPI2 interrupt routine to process sleep request. Must not
clear GPI2 interrupt before this function returns.
Call from GPI2 interrupt handler to process sleep req @srcMask Value read from GPI2 register which determines master requestor @return Status of triggering sleep for a processor ( XST_INVALID_PARAM if processor cannot be determined by srcMask status of performing sleep operation otherwise ) @note Call from GPI2 interrupt routine to process sleep request . Must not clear GPI2 interrupt before this function returns .
s32 XPfw_PmWfiHandler(const u32 srcMask)
{
	s32 status;
	PmProc *proc = PmGetProcByWfiStatus(srcMask);
	if (NULL == proc) {
		PmErr("Unknown processor 0x%lx\r\n", srcMask);
		status = XST_INVALID_PARAM;
		goto done;
	}
	status = PmProcFsm(proc, PM_PROC_EVENT_SLEEP);
done:
	return status;
}
s32 XPfw_PmWfiHandler ( const u32 srcMask ) { s32 status ; PmProc * proc = PmGetProcByWfiStatus ( srcMask ) ; if ( NULL == proc ) { PmErr ( " \r \n " , srcMask ) ; status = XST_INVALID_PARAM ; goto done ; } status = PmProcFsm ( proc , PM_PROC_EVENT_SLEEP ) ; done : return status ; }
XPfw_PmWfiHandler() - Call from GPI2 interrupt handler to process sleep req
 @srcMask Value read from GPI2 register which determines master requestor
XPfw_PmWfiHandler () - Call from GPI2 interrupt handler to process sleep req @srcMask Value read from GPI2 register which determines master requestor