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

	/* Read the register and merge in the clearing BS index */
	Data = XPrc_ReadReg(Address);

	return Data;
}
/*****************************************************************************/
/**
*
* This function get 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.
*
* @return	BsId, which is the identifier of the bitstream referenced by
*		BsIdex.
*
* @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 get the Bitstream Identifier.
This function get the Bitstream Identifier .
u32 XPrc_GetBsId(XPrc *InstancePtr, u16 VsmId, u16 BsIndex)
{
	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_BS_ID_REG, BsIndex);
	Data = XPrc_ReadReg(Address);
	return Data;
}
u32 XPrc_GetBsId ( XPrc * InstancePtr , u16 VsmId , u16 BsIndex ) { 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_BS_ID_REG , BsIndex ) ; Data = XPrc_ReadReg ( Address ) ; return Data ; }
This function get the Bitstream Identifier.
This function get the Bitstream Identifier .
/* Read the register and merge in the clearing BS index */