summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/specialreg.h
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2010-11-23 13:55:30 +0000
committeravg <avg@FreeBSD.org>2010-11-23 13:55:30 +0000
commite392e46b15e642d59013376c58c91267c0871797 (patch)
treef97fa84a2446bd00175b0f19b5b4b1d851935efb /sys/amd64/include/specialreg.h
parent64dd3dbf397ac1c9033a04003311d3d0892dff73 (diff)
downloadFreeBSD-src-e392e46b15e642d59013376c58c91267c0871797.zip
FreeBSD-src-e392e46b15e642d59013376c58c91267c0871797.tar.gz
specialreg.h: add definitions for some useful bits found in CPUID.6 EAX and ECX
CPUID.6 is defined as Thermal and Power Management Leaf by both Intel and AMD. Reviewed by: jhb MFC after: 7 days
Diffstat (limited to 'sys/amd64/include/specialreg.h')
-rw-r--r--sys/amd64/include/specialreg.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/amd64/include/specialreg.h b/sys/amd64/include/specialreg.h
index 23d1149..49513d9 100644
--- a/sys/amd64/include/specialreg.h
+++ b/sys/amd64/include/specialreg.h
@@ -136,6 +136,15 @@
#define CPUID2_AESNI 0x02000000
/*
+ * Important bits in the Thermal and Power Management flags
+ * CPUID.6 EAX and ECX.
+ */
+#define CPUTPM1_SENSOR 0x00000001
+#define CPUTPM1_TURBO 0x00000002
+#define CPUTPM1_ARAT 0x00000004
+#define CPUTPM2_EFFREQ 0x00000001
+
+/*
* Important bits in the AMD extended cpuid flags
*/
#define AMDID_SYSCALL 0x00000800
OpenPOWER on IntegriCloud