aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/hpet.h
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2012-03-27 15:23:43 +0200
committerJan Beulich <jbeulich@suse.com>2012-03-27 15:23:43 +0200
commitcb938f2c4ddfee6fad950289f6a2ed497c11ee03 (patch)
treed69aad8acc7daa0bd00abd09bf39041e1e08d174 /xen/include/asm-x86/hpet.h
parenteca1bfec46214a902f24bce2b44c96ae364f1219 (diff)
downloadxen-cb938f2c4ddfee6fad950289f6a2ed497c11ee03.tar.gz
xen-cb938f2c4ddfee6fad950289f6a2ed497c11ee03.tar.bz2
xen-cb938f2c4ddfee6fad950289f6a2ed497c11ee03.zip
x86/hpet: clear unwanted bits
Leaving certain bits set when being started from an environment where the HPET was already in use can affect functionality. Clear those bits to be on the safe side. We should also consider ignoring the HPET altogether if any reserved bits are found to be set. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/asm-x86/hpet.h')
-rw-r--r--xen/include/asm-x86/hpet.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/include/asm-x86/hpet.h b/xen/include/asm-x86/hpet.h
index bb2c4b4af8..c6a08c1cba 100644
--- a/xen/include/asm-x86/hpet.h
+++ b/xen/include/asm-x86/hpet.h
@@ -32,9 +32,11 @@
#define HPET_LEGACY_8254 2
#define HPET_LEGACY_RTC 8
+#define HPET_TN_LEVEL 0x002
#define HPET_TN_ENABLE 0x004
#define HPET_TN_PERIODIC 0x008
#define HPET_TN_PERIODIC_CAP 0x010
+#define HPET_TN_64BIT_CAP 0x020
#define HPET_TN_SETVAL 0x040
#define HPET_TN_32BIT 0x100
#define HPET_TN_ROUTE 0x3e00