XilinxProcessorIPLib/drivers/prc/src/xprc.c
u8 XPrc_IsVsmInShutdown(XPrc *InstancePtr, u32 VsmIdOrStatus)
{
	u32 Status = VsmIdOrStatus;

	if (InstancePtr != NULL) {
		Status = XPrc_ReadStatusReg(InstancePtr, VsmIdOrStatus);
	}

	return (Status & XPRC_SR_SHUTDOWN_MASK) ? XPRC_SR_SHUTDOWN_ON :
		XPRC_SR_SHUTDOWN_OFF;
}
/*****************************************************************************/
/**
*
* This function is used to identify whether a VSM is in the Shutdown state or
* not.
*
* @param	InstancePtr is a pointer to the PRC instance.
* @param	VsmIdOrStatus is an identifier of the VSM to access or
*		a pre-read status word.
*
* @return
*		- XPRC_SR_SHUTDOWN_ON when VSM is in Shutdown State.
*		- XPRC_SR_SHUTDOWN_OFF when VSM is not in Shutdown State.
*
* @note		There are two modes of operation.  If InstancePtr is NULL then
*		VsmIdOrStatus contains a previously read status value.  Just
*		decode it. If InstancePtr is not NULL then read a fresh status
*		value.
*
******************************************************************************/
This function is used to identify whether a VSM is in the Shutdown state or
not.
This function is used to identify whether a VSM is in the Shutdown state or not .
u8 XPrc_IsVsmInShutdown(XPrc *InstancePtr, u32 VsmIdOrStatus)
{
	u32 Status = VsmIdOrStatus;
	if (InstancePtr != NULL) {
		Status = XPrc_ReadStatusReg(InstancePtr, VsmIdOrStatus);
	}
	return (Status & XPRC_SR_SHUTDOWN_MASK) ? XPRC_SR_SHUTDOWN_ON :
		XPRC_SR_SHUTDOWN_OFF;
}
u8 XPrc_IsVsmInShutdown ( XPrc * InstancePtr , u32 VsmIdOrStatus ) { u32 Status = VsmIdOrStatus ; if ( InstancePtr != NULL ) { Status = XPrc_ReadStatusReg ( InstancePtr , VsmIdOrStatus ) ; } return ( Status & XPRC_SR_SHUTDOWN_MASK ) ? XPRC_SR_SHUTDOWN_ON : XPRC_SR_SHUTDOWN_OFF ; }
This function is used to identify whether a VSM is in the Shutdown state or
not.
This function is used to identify whether a VSM is in the Shutdown state or not .