GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / powerpc / include / asm / perf_event_fsl_emb.h
blob718a9fa94e68eebafec29bcaa4f0214b55db9846
1 /*
2 * Performance event support - Freescale embedded specific definitions.
4 * Copyright 2008-2009 Paul Mackerras, IBM Corporation.
5 * Copyright 2010 Freescale Semiconductor, Inc.
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version
10 * 2 of the License, or (at your option) any later version.
13 #include <linux/types.h>
14 #include <asm/hw_irq.h>
16 #define MAX_HWEVENTS 4
18 /* event flags */
19 #define FSL_EMB_EVENT_VALID 1
20 #define FSL_EMB_EVENT_RESTRICTED 2
22 /* upper half of event flags is PMLCb */
23 #define FSL_EMB_EVENT_THRESHMUL 0x0000070000000000ULL
24 #define FSL_EMB_EVENT_THRESH 0x0000003f00000000ULL
26 struct fsl_emb_pmu {
27 const char *name;
28 int n_counter; /* total number of counters */
31 * The number of contiguous counters starting at zero that
32 * can hold restricted events, or zero if there are no
33 * restricted events.
35 * This isn't a very flexible method of expressing constraints,
36 * but it's very simple and is adequate for existing chips.
38 int n_restricted;
40 /* Returns event flags and PMLCb (FSL_EMB_EVENT_*) */
41 u64 (*xlate_event)(u64 event_id);
43 int n_generic;
44 int *generic_events;
45 int (*cache_events)[PERF_COUNT_HW_CACHE_MAX]
46 [PERF_COUNT_HW_CACHE_OP_MAX]
47 [PERF_COUNT_HW_CACHE_RESULT_MAX];
50 int register_fsl_emb_pmu(struct fsl_emb_pmu *);