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

	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_RM_BS_INDEX_REG, RmId);

	/* Read the register and merge in the clearing BS index */
	Data = XPrc_ReadReg(Address);
	/* Mask out any clearing BS index (only needed in Ultrascale) */
	Data &= XPRC_RM_BS_INDEX_MASK;

	return Data;
}
/*****************************************************************************/
/**
*
* This function get the BS_INDEX field from the RM_BS_INDEX register for the
* Reconfigurable Module in the Virtual Socket Manager.
*
* @param	InstancePtr is a pointer to the PRC instance.
* @param	VsmId is the identifier of the VSM to access.
* @param	RmId is the identifier of the Reconfigurable Module.
*
* @return	Returns BS_INDEX.  This is the row number in the Bitstream
*		Information register bank that holds information about the
*		partial bitstream for the Reconfigurable Module.
*
* @note		None.
*
******************************************************************************/
This function get the BS_INDEX field from the RM_BS_INDEX register for the
Reconfigurable Module in the Virtual Socket Manager.
This function get the BS_INDEX field from the RM_BS_INDEX register for the Reconfigurable Module in the Virtual Socket Manager .
u32 XPrc_GetRmBsIndex(XPrc *InstancePtr, u16 VsmId, u16 RmId)
{
	u32 Address;
	u32 Data;
	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_RM_BS_INDEX_REG, RmId);
	Data = XPrc_ReadReg(Address);
	Data &= XPRC_RM_BS_INDEX_MASK;
	return Data;
}
u32 XPrc_GetRmBsIndex ( XPrc * InstancePtr , u16 VsmId , u16 RmId ) { u32 Address ; u32 Data ; 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_RM_BS_INDEX_REG , RmId ) ; Data = XPrc_ReadReg ( Address ) ; Data &= XPRC_RM_BS_INDEX_MASK ; return Data ; }
This function get the BS_INDEX field from the RM_BS_INDEX register for the
Reconfigurable Module in the Virtual Socket Manager.
This function get the BS_INDEX field from the RM_BS_INDEX register for the Reconfigurable Module in the Virtual Socket Manager .
/* Read the register and merge in the clearing BS index */ /* Mask out any clearing BS index (only needed in Ultrascale) */