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

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

	XPrc_WriteReg(Address, BsAddress);
}
/*****************************************************************************/
/**
*
* This function sets the Address of the Bitstream.
*
* @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	BsAddress is the address of the bitstream in memory.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function sets the Address of the Bitstream.
This function sets the Address of the Bitstream .
void XPrc_SetBsAddress(XPrc *InstancePtr, u16 VsmId, u16 BsIndex,
		u32 BsAddress)
{
	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_ADDRESS_REG, BsIndex);
	xprc_printf(XPRC_DEBUG_GENERAL,"XPrc_SetBsAddress :: Instance %d,"
		"VSMID = %x, Address = %x, Bs Index = %x, Bs Address ="
		"%x \n\r", InstancePtr->Config.DeviceId, VsmId, Address,
		BsIndex, BsAddress);
	XPrc_WriteReg(Address, BsAddress);
}
void XPrc_SetBsAddress ( XPrc * InstancePtr , u16 VsmId , u16 BsIndex , u32 BsAddress ) { 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_ADDRESS_REG , BsIndex ) ; xprc_printf ( XPRC_DEBUG_GENERAL , " " " " " \n \r " , InstancePtr -> Config . DeviceId , VsmId , Address , BsIndex , BsAddress ) ; XPrc_WriteReg ( Address , BsAddress ) ; }
This function sets the Address of the Bitstream.
This function sets the Address of the Bitstream .