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

	xprc_printf(XPRC_DEBUG_GENERAL,"XPrc_SendTrigger :: Instance %d,"
		"VSM_ID = %x, Address = %x, TriggerId = %x\n\r",
		InstancePtr->Config.DeviceId, VsmId, Address, TriggerId);

	XPrc_WriteReg(Address, TriggerId);
}
/*****************************************************************************/
/**
*
* This function sends a software trigger to 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 is the trigger to send.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function sends a software trigger to a Virtual Socket Manager.
This function sends a software trigger to a Virtual Socket Manager .
void XPrc_SendSwTrigger(XPrc *InstancePtr, u16 VsmId, u16 TriggerId)
{
	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_SW_TRIGGER_REG, XPRC_REG_TABLE_ROW);
	xprc_printf(XPRC_DEBUG_GENERAL,"XPrc_SendTrigger :: Instance %d,"
		"VSM_ID = %x, Address = %x, TriggerId = %x\n\r",
		InstancePtr->Config.DeviceId, VsmId, Address, TriggerId);
	XPrc_WriteReg(Address, TriggerId);
}
void XPrc_SendSwTrigger ( XPrc * InstancePtr , u16 VsmId , u16 TriggerId ) { 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_SW_TRIGGER_REG , XPRC_REG_TABLE_ROW ) ; xprc_printf ( XPRC_DEBUG_GENERAL , " " " \n \r " , InstancePtr -> Config . DeviceId , VsmId , Address , TriggerId ) ; XPrc_WriteReg ( Address , TriggerId ) ; }
This function sends a software trigger to a Virtual Socket Manager.
This function sends a software trigger to a Virtual Socket Manager .