XilinxProcessorIPLib/drivers/prc/src/xprc.c
void XPrc_SetTriggerToRmMapping(XPrc *InstancePtr, u16 VsmId, u16 TriggerId,
			u16 RmId)
{
	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_TRIGGER_REG, TriggerId);

	xprc_printf(XPRC_DEBUG_GENERAL,"XPrc_SetTriggerToRmMapping :: Instance"
		"%d, VSMID = %x, Address = %x, Trigger = %x, Rm = %x \n\r",
		InstancePtr->Config.DeviceId, VsmId, Address, TriggerId,
		RmId);

	XPrc_WriteReg(Address, RmId);
}
/*****************************************************************************/
/**
*
* This function is used to set a Trigger to Reconfigurable Module mapping in
* a Virtual Socket Manager.
*
* @param	InstancePtr is a pointer to the PRC instance.
* @param	VsmId is the identifier of the VSM to access.
* @param	TriggerId specifies the trigger to modify.
* @param	RmId specifies Reconfigurable Module to load when trigger
*		TriggerId occurs.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function is used to set a Trigger to Reconfigurable Module mapping in
a Virtual Socket Manager.
This function is used to set a Trigger to Reconfigurable Module mapping in a Virtual Socket Manager .
void XPrc_SetTriggerToRmMapping(XPrc *InstancePtr, u16 VsmId, u16 TriggerId,
			u16 RmId)
{
	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_TRIGGER_REG, TriggerId);
	xprc_printf(XPRC_DEBUG_GENERAL,"XPrc_SetTriggerToRmMapping :: Instance"
		"%d, VSMID = %x, Address = %x, Trigger = %x, Rm = %x \n\r",
		InstancePtr->Config.DeviceId, VsmId, Address, TriggerId,
		RmId);
	XPrc_WriteReg(Address, RmId);
}
void XPrc_SetTriggerToRmMapping ( XPrc * InstancePtr , u16 VsmId , u16 TriggerId , u16 RmId ) { 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_TRIGGER_REG , TriggerId ) ; xprc_printf ( XPRC_DEBUG_GENERAL , " " " \n \r " , InstancePtr -> Config . DeviceId , VsmId , Address , TriggerId , RmId ) ; XPrc_WriteReg ( Address , RmId ) ; }
This function is used to set a Trigger to Reconfigurable Module mapping in
a Virtual Socket Manager.
This function is used to set a Trigger to Reconfigurable Module mapping in a Virtual Socket Manager .