XilinxProcessorIPLib/drivers/axipmon/src/xaxipmon.c
void XAxiPmon_SetReadId(XAxiPmon *InstancePtr, u32 ReadId)
{
	u32 RegVal;
	/*
	 * Assert the arguments.
	 */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

	if (InstancePtr->Config.Is32BitFiltering == 0U)
	{
		RegVal = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
							XAPM_ID_OFFSET);
		RegVal = RegVal & ~(XAPM_ID_RID_MASK);
		RegVal = RegVal | (ReadId << 16);
		XAxiPmon_WriteReg(InstancePtr->Config.BaseAddress,
					XAPM_ID_OFFSET, RegVal);
	} else {
		XAxiPmon_WriteReg(InstancePtr->Config.BaseAddress,
					XAPM_RID_OFFSET, ReadId);
	}
}
/****************************************************************************/
/**
*
* This function sets Read ID in ID register.
*
* @param	InstancePtr is a pointer to the XAxiPmon instance.
* @param	ReadId is the Read ID to be written in ID register.
*
* @return	None.
*
* @note
*			If ID filtering for read is of 32 bits(for Zynq MP APM) width then
*			ReadId is written to XAPM_RID_OFFSET or if it is 16 bit width
*			then lower 16 bits of ReadId are written to XAPM_ID_OFFSET.
*
*****************************************************************************/
This function sets Read ID in ID register.
This function sets Read ID in ID register .
void XAxiPmon_SetReadId(XAxiPmon *InstancePtr, u32 ReadId)
{
	u32 RegVal;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	if (InstancePtr->Config.Is32BitFiltering == 0U)
	{
		RegVal = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
							XAPM_ID_OFFSET);
		RegVal = RegVal & ~(XAPM_ID_RID_MASK);
		RegVal = RegVal | (ReadId << 16);
		XAxiPmon_WriteReg(InstancePtr->Config.BaseAddress,
					XAPM_ID_OFFSET, RegVal);
	} else {
		XAxiPmon_WriteReg(InstancePtr->Config.BaseAddress,
					XAPM_RID_OFFSET, ReadId);
	}
}
void XAxiPmon_SetReadId ( XAxiPmon * InstancePtr , u32 ReadId ) { u32 RegVal ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; if ( InstancePtr -> Config . Is32BitFiltering == 0U ) { RegVal = XAxiPmon_ReadReg ( InstancePtr -> Config . BaseAddress , XAPM_ID_OFFSET ) ; RegVal = RegVal & ~ ( XAPM_ID_RID_MASK ) ; RegVal = RegVal | ( ReadId << 16 ) ; XAxiPmon_WriteReg ( InstancePtr -> Config . BaseAddress , XAPM_ID_OFFSET , RegVal ) ; } else { XAxiPmon_WriteReg ( InstancePtr -> Config . BaseAddress , XAPM_RID_OFFSET , ReadId ) ; } }
This function sets Read ID in ID register.
This function sets Read ID in ID register .
/*
	 * Assert the arguments.
	 */