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

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

	return (Status & XPRC_SR_STATE_MASK);
}
/*****************************************************************************/
/**
*
* This function is used to get a VSM's state.
* Each VSM exist in two states  1. Active State
*				2. Shutdown State
*
* @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	State of VSM.
*
* @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 get a VSM's state.
Each VSM exist in two states  1. Active State
2. Shutdown State
This function is used to get a VSM ' s state . Each VSM exist in two states 1 . Active State 2 . Shutdown State
u32 XPrc_GetVsmState(XPrc *InstancePtr, u32 VsmIdOrStatus)
{
	u32 Status = VsmIdOrStatus;
	if (InstancePtr != NULL) {
		Status = XPrc_ReadStatusReg(InstancePtr, VsmIdOrStatus);
	}
	return (Status & XPRC_SR_STATE_MASK);
}
u32 XPrc_GetVsmState ( XPrc * InstancePtr , u32 VsmIdOrStatus ) { u32 Status = VsmIdOrStatus ; if ( InstancePtr != NULL ) { Status = XPrc_ReadStatusReg ( InstancePtr , VsmIdOrStatus ) ; } return ( Status & XPRC_SR_STATE_MASK ) ; }
This function is used to get a VSM's state.
This function is used to get a VSM ' s state .