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

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

	Address = XPrc_GetRegisterAddress(InstancePtr, VsmId,
				XPRC_RM_BS_INDEX_REG, RmId);

	xprc_printf(XPRC_DEBUG_GENERAL,"XPrc_SetRmBsIndex :: Instance %d,"
		"VSMID = %x, Address = %x, Rm = %x, Bs Index = %x \n\r",
		InstancePtr->Config.DeviceId, VsmId, Address, RmId,
		BsIndex);

	XPrc_WriteReg(Address, BsIndex);
}
/*****************************************************************************/
/**
*
* This function sets the BS_INDEX field in the RM_BS_INDEX register to specify
* which row of the Bitstream Information tables holds the partial bitstream 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.
* @param	BsIndex is the row number in the Bitstream Information register
*		bank that holds information about the partial bitstream for the
*		Reconfigurable Module.
*
* @return	None.
*
* @note		This overwrites the entire BS Index register so care is
*		required in Ultrascale parts where clearing bitstreams are
*		required. In those parts, use this first and then call
*		XPrc_SetRmClearingBsIndex.
*
******************************************************************************/
This function sets the BS_INDEX field in the RM_BS_INDEX register to specify
which row of the Bitstream Information tables holds the partial bitstream for
the Reconfigurable Module in the Virtual Socket Manager.
This function sets the BS_INDEX field in the RM_BS_INDEX register to specify which row of the Bitstream Information tables holds the partial bitstream for the Reconfigurable Module in the Virtual Socket Manager .
void XPrc_SetRmBsIndex(XPrc *InstancePtr, u16 VsmId, u16 RmId, u16 BsIndex)
{
	u32 Address;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid(VsmId < XPRC_MAX_NUMBER_OF_VSMS);
	Address = XPrc_GetRegisterAddress(InstancePtr, VsmId,
				XPRC_RM_BS_INDEX_REG, RmId);
	xprc_printf(XPRC_DEBUG_GENERAL,"XPrc_SetRmBsIndex :: Instance %d,"
		"VSMID = %x, Address = %x, Rm = %x, Bs Index = %x \n\r",
		InstancePtr->Config.DeviceId, VsmId, Address, RmId,
		BsIndex);
	XPrc_WriteReg(Address, BsIndex);
}
void XPrc_SetRmBsIndex ( XPrc * InstancePtr , u16 VsmId , u16 RmId , u16 BsIndex ) { u32 Address ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Xil_AssertVoid ( VsmId < XPRC_MAX_NUMBER_OF_VSMS ) ; Address = XPrc_GetRegisterAddress ( InstancePtr , VsmId , XPRC_RM_BS_INDEX_REG , RmId ) ; xprc_printf ( XPRC_DEBUG_GENERAL , " " " \n \r " , InstancePtr -> Config . DeviceId , VsmId , Address , RmId , BsIndex ) ; XPrc_WriteReg ( Address , BsIndex ) ; }
This function sets the BS_INDEX field in the RM_BS_INDEX register to specify
which row of the Bitstream Information tables holds the partial bitstream for
the Reconfigurable Module in the Virtual Socket Manager.
This function sets the BS_INDEX field in the RM_BS_INDEX register to specify which row of the Bitstream Information tables holds the partial bitstream for the Reconfigurable Module in the Virtual Socket Manager .