XilinxProcessorIPLib/drivers/prc/src/xprc.c
u32 XPrc_GetTriggerToRmMapping(XPrc *InstancePtr, u16 VsmId, u16 TriggerId)
{
	u32 Address;

	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_TRIGGER_REG, TriggerId);

	return XPrc_ReadReg(Address);
}
/*****************************************************************************/
/**
*
* This function gets 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 query.
*
* @return	The identifier of the Reconfigurable Module that will be loaded
*		when trigger TriggerId occurs.
*
* @note		None.
*
******************************************************************************/
This function gets a Trigger to Reconfigurable Module mapping in a Virtual
Socket Manager.
This function gets a Trigger to Reconfigurable Module mapping in a Virtual Socket Manager .
u32 XPrc_GetTriggerToRmMapping(XPrc *InstancePtr, u16 VsmId, u16 TriggerId)
{
	u32 Address;
	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_TRIGGER_REG, TriggerId);
	return XPrc_ReadReg(Address);
}
u32 XPrc_GetTriggerToRmMapping ( XPrc * InstancePtr , u16 VsmId , u16 TriggerId ) { u32 Address ; 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_TRIGGER_REG , TriggerId ) ; return XPrc_ReadReg ( Address ) ; }
This function gets a Trigger to Reconfigurable Module mapping in a Virtual
Socket Manager.
This function gets a Trigger to Reconfigurable Module mapping in a Virtual Socket Manager .