XilinxProcessorIPLib/drivers/prc/src/xprc.c
void XPrc_SetBsId(XPrc *InstancePtr, u16 VsmId, u16 BsIndex, u16 BsId)
{
	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_BS_ID_REG, BsIndex);

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

	XPrc_WriteReg(Address, BsId);
}
/*****************************************************************************/
/**
*
* This function sets the Bitstream Identifier.
*
* @param	InstancePtr is a pointer to the PRC instance.
* @param	VsmId is the identifier of the VSM to access.
* @param	BsIndex is the row number in the Bitstream Information register
*		bank that holds information about the bitstream.
* @param	BsId is the identifier of the bitstream referenced by BsIdex.
*
* @return	None.
*
* @note		When the device being managed is 7 Series or UltraScale+,
*		BsID can only be 0.
*		When the device being managed is UltraScale, BsID can be 0 or 1
*
******************************************************************************/
This function sets the Bitstream Identifier.
This function sets the Bitstream Identifier .
void XPrc_SetBsId(XPrc *InstancePtr, u16 VsmId, u16 BsIndex, u16 BsId)
{
	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_BS_ID_REG, BsIndex);
	xprc_printf(XPRC_DEBUG_GENERAL,"XPrc_SetBsId :: Instance %d, VSMID ="
		"%x, Address = %x, Bs Index = %x, Bs Id = %x \n\r",
		InstancePtr->Config.DeviceId, VsmId, Address, BsIndex,
		BsId);
	XPrc_WriteReg(Address, BsId);
}
void XPrc_SetBsId ( XPrc * InstancePtr , u16 VsmId , u16 BsIndex , u16 BsId ) { 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_BS_ID_REG , BsIndex ) ; xprc_printf ( XPRC_DEBUG_GENERAL , " " " \n \r " , InstancePtr -> Config . DeviceId , VsmId , Address , BsIndex , BsId ) ; XPrc_WriteReg ( Address , BsId ) ; }
This function sets the Bitstream Identifier.
This function sets the Bitstream Identifier .