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

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

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