XilinxProcessorIPLib/drivers/prc/src/xprc.c
u32 XPrc_ReadStatusReg(XPrc *InstancePtr, u16 VsmId)
{
	u32 Address;

	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertNonvoid(VsmId < XPRC_MAX_NUMBER_OF_VSMS);

	Address = XPrc_GetRegisterAddress(InstancePtr, VsmId,
			XPRC_STATUS_REG, XPRC_REG_TABLE_ROW);

	return XPrc_ReadReg(Address);
}
/*****************************************************************************/
/**
*
* This function is used to read the VSM's Status Register.
*
* @param	InstancePtr is a pointer to the PRC instance.
* @param	VsmId is the identifier of the VSM to access.
*
* @return	Returns the contents of the VSM's status register.
*
* @note		None.
*
******************************************************************************/
This function is used to read the VSM's Status Register.
This function is used to read the VSM ' s Status Register .
u32 XPrc_ReadStatusReg(XPrc *InstancePtr, u16 VsmId)
{
	u32 Address;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertNonvoid(VsmId < XPRC_MAX_NUMBER_OF_VSMS);
	Address = XPrc_GetRegisterAddress(InstancePtr, VsmId,
			XPRC_STATUS_REG, XPRC_REG_TABLE_ROW);
	return XPrc_ReadReg(Address);
}
u32 XPrc_ReadStatusReg ( XPrc * InstancePtr , u16 VsmId ) { u32 Address ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Xil_AssertNonvoid ( VsmId < XPRC_MAX_NUMBER_OF_VSMS ) ; Address = XPrc_GetRegisterAddress ( InstancePtr , VsmId , XPRC_STATUS_REG , XPRC_REG_TABLE_ROW ) ; return XPrc_ReadReg ( Address ) ; }
This function is used to read the VSM's Status Register.
This function is used to read the VSM ' s Status Register .