xl2cc_counter.c File Reference

#include <stdint.h>
#include "xparameters_ps.h"
#include "xl2cc_counter.h"
#include "xl2cc.h"

Functions

void XL2cc_EventCtrReset (void)
void XL2cc_EventCtrInit (int Event0, int Event1)
void XL2cc_EventCtrStart (void)
void XL2cc_EventCtrStop (u32 *EveCtr0, u32 *EveCtr1)

Detailed Description

This file contains APIs for configuring and controlling the event counters in PL310 L2 cache controller. For more information about the event counters, see xl2cc_counter.h.

 MODIFICATION HISTORY:

 Ver   Who  Date     Changes
 ----- ---- -------- -----------------------------------------------
 1.00a sdm  07/11/11 First release
 3.07a asa  08/30/12 Updated for CR 675636 to provide the L2 Base Address
		      inside the APIs
 

Function Documentation

void XL2cc_EventCtrInit int  Event0,
int  Event1
 

This function initializes the event counters in L2 Cache controller with a set of event codes specified by the user.

Parameters:
Event0 is the event code for counter 0.
Event1 is the event code for counter 1. Use the event codes defined by XL2CC_* in xl2cc_counter.h.
Returns:
None.
Note:
None.

void XL2cc_EventCtrReset void   ) 
 

This function resets the event counters in L2 Cache controller.

Parameters:
None. 
Returns:
None.
Note:
None.

void XL2cc_EventCtrStart void   ) 
 

This function starts the event counters in L2 Cache controller.

Parameters:
None. 
Returns:
None.
Note:
None.

void XL2cc_EventCtrStop u32 *  EveCtr0,
u32 *  EveCtr1
 

This function disables the event counters in L2 Cache controller, saves the counter values and resets the counters.

Parameters:
EveCtr0 is an output parameter which is used to return the value in event counter 0. EveCtr1 is an output parameter which is used to return the value in event counter 1.
Returns:
None.
Note:
None.


Generated on Thu Feb 13 14:48:12 2014 for 2014.1_doc by  doxygen 1.4.5