aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/hpet.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-11-20 14:15:50 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-11-20 14:15:50 +0000
commit9e70091fd71e108c5cb3cf89fa677030b088a0a8 (patch)
tree7bd1e37310ce8f3e6b60ad9795b38148d5b12f5e /xen/include/asm-x86/hpet.h
parentc014d5785e7796bfd9bb7cd37de05b41c272f60b (diff)
downloadxen-9e70091fd71e108c5cb3cf89fa677030b088a0a8.tar.gz
xen-9e70091fd71e108c5cb3cf89fa677030b088a0a8.tar.bz2
xen-9e70091fd71e108c5cb3cf89fa677030b088a0a8.zip
x86, hpet: Fix initialisation of secondary timers.
Each channel may have different settings, and in the original implementation, other Tn configuration will accidently overwrite T0 configuration. Signed-off-by: Guanqun Lu <guanqun.lu@intel.com>
Diffstat (limited to 'xen/include/asm-x86/hpet.h')
-rw-r--r--xen/include/asm-x86/hpet.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xen/include/asm-x86/hpet.h b/xen/include/asm-x86/hpet.h
index b63f56805d..82c08bc3c5 100644
--- a/xen/include/asm-x86/hpet.h
+++ b/xen/include/asm-x86/hpet.h
@@ -24,6 +24,10 @@
#define HPET_T2_CMP 0x148
#define HPET_T2_ROUTE 0x150
+#define HPET_Tn_CFG(n) (HPET_T0_CFG + n * 0x20)
+#define HPET_Tn_CMP(n) (HPET_T0_CMP + n * 0x20)
+#define HPET_Tn_ROUTE(n) (HPET_T0_ROUTE + n * 0x20)
+
#define HPET_ID_VENDOR 0xffff0000
#define HPET_ID_LEGSUP 0x00008000
#define HPET_ID_NUMBER 0x00001f00