aboutsummaryrefslogtreecommitdiff
path: root/src/acpi-dsdt.dsl
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2012-03-11 10:08:38 +0200
committerKevin O'Connor <kevin@koconnor.net>2012-03-16 20:59:58 -0400
commit8da3f3c3d460f4c6c8fe6fd4f9c1e19ac7eecaa0 (patch)
tree6c8c3eb45ef723ae397b69ad3bb0f09adaebcb95 /src/acpi-dsdt.dsl
parent1fd9a89082b807a4bb4ab6ce1285df474cb75746 (diff)
downloadseabios-hppa-8da3f3c3d460f4c6c8fe6fd4f9c1e19ac7eecaa0.zip
seabios-hppa-8da3f3c3d460f4c6c8fe6fd4f9c1e19ac7eecaa0.tar.gz
seabios-hppa-8da3f3c3d460f4c6c8fe6fd4f9c1e19ac7eecaa0.tar.bz2
if HPET is not present do not report it in DSDT
Replicate the check that detects if HPET table should be created in AML too. Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'src/acpi-dsdt.dsl')
-rw-r--r--src/acpi-dsdt.dsl16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/acpi-dsdt.dsl b/src/acpi-dsdt.dsl
index 7082b65..4e04c48 100644
--- a/src/acpi-dsdt.dsl
+++ b/src/acpi-dsdt.dsl
@@ -188,8 +188,22 @@ DefinitionBlock (
Device(HPET) {
Name(_HID, EISAID("PNP0103"))
Name(_UID, 0)
+ OperationRegion(HPTM, SystemMemory , 0xFED00000, 0x400)
+ Field(HPTM, DWordAcc, Lock, Preserve) {
+ VEND, 32,
+ PRD, 32,
+ }
Method (_STA, 0, NotSerialized) {
- Return(0x0F)
+ Store (VEND, Local0)
+ Store (PRD, Local1)
+ ShiftRight(Local0, 16, Local0)
+ If (LOr (LEqual(Local0, 0), LEqual(Local0, 0xffff))) {
+ Return (0x0)
+ }
+ If (LOr (LEqual(Local1, 0), LGreater(Local1, 100000000))) {
+ Return (0x0)
+ }
+ Return (0x0F)
}
Name(_CRS, ResourceTemplate() {
DWordMemory(