aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hwpmc/hwpmc_powerpc.h
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2014-02-01 02:03:50 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2014-02-01 02:03:50 +0000
commit169dd953b09816df7e58e350bfdc4f3978f27017 (patch)
treef5f76dcf6a48cb0f8d381268dd1a627375f71d41 /sys/dev/hwpmc/hwpmc_powerpc.h
parent2b1970f36297528c8abe547f94696e07d24d3853 (diff)
Add hwpmc(4) support for the PowerPC 970 class processors, direct events.
This also fixes asserts on removal of the module for the mpc74xx. The PowerPC 970 processors have two different types of events: direct events and indirect events. Thus far only direct events are supported. I included some documentation in the driver on how indirect events work, but support is for the future. MFC after: 1 month
Notes
Notes: svn path=/head/; revision=261342
Diffstat (limited to 'sys/dev/hwpmc/hwpmc_powerpc.h')
-rw-r--r--sys/dev/hwpmc/hwpmc_powerpc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/hwpmc/hwpmc_powerpc.h b/sys/dev/hwpmc/hwpmc_powerpc.h
index a9b54f4ce61b..8f0b8ce1a077 100644
--- a/sys/dev/hwpmc/hwpmc_powerpc.h
+++ b/sys/dev/hwpmc/hwpmc_powerpc.h
@@ -46,11 +46,13 @@
struct powerpc_cpu {
struct pmc_hw *pc_ppcpmcs;
+ enum pmc_class pc_class;
};
extern struct powerpc_cpu **powerpc_pcpu;
extern int pmc_mpc7xxx_initialize(struct pmc_mdep *pmc_mdep);
+extern int pmc_ppc970_initialize(struct pmc_mdep *pmc_mdep);
extern int powerpc_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc);
extern int powerpc_get_config(int cpu, int ri, struct pmc **ppm);