XilinxProcessorIPLib/drivers/axipmon/src/xaxipmon.c
void XAxiPmon_ResetGlobalClkCounter(XAxiPmon *InstancePtr)
{

	u32 RegValue;

	/*
	 * Assert the arguments.
	 */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid(InstancePtr->Mode == XAPM_MODE_ADVANCED);

	/*
	 * Write the reset value to the Control register to reset
	 * Global Clock Counter
	 */
	RegValue = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
							 XAPM_CTL_OFFSET);
	XAxiPmon_WriteReg(InstancePtr->Config.BaseAddress, XAPM_CTL_OFFSET,
					(RegValue | XAPM_CR_GCC_RESET_MASK));

	/*
	 * Release from Reset
	 */
	XAxiPmon_WriteReg(InstancePtr->Config.BaseAddress, XAPM_CTL_OFFSET,
				(RegValue & ~(XAPM_CR_GCC_RESET_MASK)));

}
/*****************************************************************************/
/**
*
* This function resets Global Clock Counter of AXI Performance Monitor
*
* @param	InstancePtr is a pointer to the XAxiPmon instance.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function resets Global Clock Counter of AXI Performance Monitor
This function resets Global Clock Counter of AXI Performance Monitor
void XAxiPmon_ResetGlobalClkCounter(XAxiPmon *InstancePtr)
{
	u32 RegValue;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid(InstancePtr->Mode == XAPM_MODE_ADVANCED);
	RegValue = XAxiPmon_ReadReg(InstancePtr->Config.BaseAddress,
							 XAPM_CTL_OFFSET);
	XAxiPmon_WriteReg(InstancePtr->Config.BaseAddress, XAPM_CTL_OFFSET,
					(RegValue | XAPM_CR_GCC_RESET_MASK));
	XAxiPmon_WriteReg(InstancePtr->Config.BaseAddress, XAPM_CTL_OFFSET,
				(RegValue & ~(XAPM_CR_GCC_RESET_MASK)));
}
void XAxiPmon_ResetGlobalClkCounter ( XAxiPmon * InstancePtr ) { u32 RegValue ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Xil_AssertVoid ( InstancePtr -> Mode == XAPM_MODE_ADVANCED ) ; RegValue = XAxiPmon_ReadReg ( InstancePtr -> Config . BaseAddress , XAPM_CTL_OFFSET ) ; XAxiPmon_WriteReg ( InstancePtr -> Config . BaseAddress , XAPM_CTL_OFFSET , ( RegValue | XAPM_CR_GCC_RESET_MASK ) ) ; XAxiPmon_WriteReg ( InstancePtr -> Config . BaseAddress , XAPM_CTL_OFFSET , ( RegValue & ~ ( XAPM_CR_GCC_RESET_MASK ) ) ) ; }
This function resets Global Clock Counter of AXI Performance Monitor
This function resets Global Clock Counter of AXI Performance Monitor
/*
	 * Assert the arguments.
	 */ /*
	 * Write the reset value to the Control register to reset
	 * Global Clock Counter
	 */ /*
	 * Release from Reset
	 */