xl2cc_counter.h File Reference

#include "xpseudo_asm.h"
#include "xil_types.h"

Functions

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

Detailed Description

This header file contains APIs for configuring and controlling the event counters in PL310 L2 cache controller. PL310 has 2 event counters which can be used to count a variety of events like DRHIT, DRREQ, DWHIT, DWREQ, etc. This file defines configurations, where value configures the event counters to count a set of events.

XL2cc_EventCtrInit API can be used to select a set of events and XL2cc_EventCtrStart configures the event counters and starts the counters. XL2cc_EventCtrStop diables the event counters and returns the counter values.

 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_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