XilinxProcessorIPLib/drivers/axipmon/src/xaxipmon.c
u32 XAxiPmon_GetReadIdMask(XAxiPmon *InstancePtr)
{

	u32 RdMask;
	u32 RegVal;
	/*
	 * Assert the arguments.
	 */
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

	if (InstancePtr->Config.Is32BitFiltering == 0U)
	{
		RegVal = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
							XAPM_IDMASK_OFFSET);
		RegVal = RegVal & XAPM_MASKID_RID_MASK;
		RdMask = RegVal >> 16;
	} else {
		RdMask = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
								XAPM_RIDMASK_OFFSET);
	}

	return RdMask;
}
/****************************************************************************/
/**
*
* This function returns Read ID Mask in ID Mask register.
*
* @param	InstancePtr is a pointer to the XAxiPmon instance.
*
* @return	RdMask is the required Read ID Mask in ID Mask register.
*
* @note
*			If ID masking for read is of 32 bits(for Zynq MP APM) width then
*			32 bit XAPM_RIDMASK_OFFSET contents are returned or if it is 16 bit
*			width then higher 16 bits of XAPM_IDMASK_OFFSET register
*			are returned.
*
*****************************************************************************/
This function returns Read ID Mask in ID Mask register.
This function returns Read ID Mask in ID Mask register .
u32 XAxiPmon_GetReadIdMask(XAxiPmon *InstancePtr)
{
	u32 RdMask;
	u32 RegVal;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	if (InstancePtr->Config.Is32BitFiltering == 0U)
	{
		RegVal = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
							XAPM_IDMASK_OFFSET);
		RegVal = RegVal & XAPM_MASKID_RID_MASK;
		RdMask = RegVal >> 16;
	} else {
		RdMask = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
								XAPM_RIDMASK_OFFSET);
	}
	return RdMask;
}
u32 XAxiPmon_GetReadIdMask ( XAxiPmon * InstancePtr ) { u32 RdMask ; u32 RegVal ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; if ( InstancePtr -> Config . Is32BitFiltering == 0U ) { RegVal = XAxiPmon_ReadReg ( InstancePtr -> Config . BaseAddress , XAPM_IDMASK_OFFSET ) ; RegVal = RegVal & XAPM_MASKID_RID_MASK ; RdMask = RegVal >> 16 ; } else { RdMask = XAxiPmon_ReadReg ( InstancePtr -> Config . BaseAddress , XAPM_RIDMASK_OFFSET ) ; } return RdMask ; }
This function returns Read ID Mask in ID Mask register.
This function returns Read ID Mask in ID Mask register .
/*
	 * Assert the arguments.
	 */