summaryrefslogtreecommitdiffstats
path: root/sys/sys/pmc.h
diff options
context:
space:
mode:
authorjhibbits <jhibbits@FreeBSD.org>2014-02-01 02:03:50 +0000
committerjhibbits <jhibbits@FreeBSD.org>2014-02-01 02:03:50 +0000
commit859fb3bb22aee35c1a8558c3f1cdb245976f80e5 (patch)
treef5f76dcf6a48cb0f8d381268dd1a627375f71d41 /sys/sys/pmc.h
parentb1dd5bd906d2acc156631422593d9f178f81984d (diff)
downloadFreeBSD-src-859fb3bb22aee35c1a8558c3f1cdb245976f80e5.zip
FreeBSD-src-859fb3bb22aee35c1a8558c3f1cdb245976f80e5.tar.gz
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
Diffstat (limited to 'sys/sys/pmc.h')
-rw-r--r--sys/sys/pmc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/pmc.h b/sys/sys/pmc.h
index e5a9c45..de397c8 100644
--- a/sys/sys/pmc.h
+++ b/sys/sys/pmc.h
@@ -95,6 +95,7 @@
__PMC_CPU(MIPS_24K, 0x200, "MIPS 24K") \
__PMC_CPU(MIPS_OCTEON, 0x201, "Cavium Octeon") \
__PMC_CPU(PPC_7450, 0x300, "PowerPC MPC7450") \
+ __PMC_CPU(PPC_970, 0x380, "IBM PowerPC 970") \
__PMC_CPU(GENERIC, 0x400, "Generic")
enum pmc_cputype {
@@ -125,6 +126,7 @@ enum pmc_cputype {
__PMC_CLASS(MIPS24K) /* MIPS 24K */ \
__PMC_CLASS(OCTEON) /* Cavium Octeon */ \
__PMC_CLASS(PPC7450) /* Motorola MPC7450 class */ \
+ __PMC_CLASS(PPC970) /* IBM PowerPC 970 class */ \
__PMC_CLASS(SOFT) /* Software events */
enum pmc_class {
OpenPOWER on IntegriCloud