From 1ac127193dafb4b5a303e1b0180188141509df3e Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Tue, 19 Feb 2013 08:54:34 +0000 Subject: genid: Introduce again Windows generation ID device This device was removed due to change in specifications. Original patch written by Paul Durrant Signed-off-by: Paul Durrant Signed-off-by: Frediano Ziglio --- tools/firmware/hvmloader/acpi/dsdt.asl | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'tools/firmware') diff --git a/tools/firmware/hvmloader/acpi/dsdt.asl b/tools/firmware/hvmloader/acpi/dsdt.asl index 64896ce11d..247a8ad40e 100644 --- a/tools/firmware/hvmloader/acpi/dsdt.asl +++ b/tools/firmware/hvmloader/acpi/dsdt.asl @@ -397,6 +397,31 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, "Xen", "HVM", 0) IRQNoFlags () {7} }) } + + Device(VGID) { + Name(_HID, EisaId ("XEN0000")) + Name(_UID, 0x00) + Name(_CID, "VM_Gen_Counter") + Name(_DDN, "VM_Gen_Counter") + Method(_STA, 0, NotSerialized) + { + If(LEqual(\_SB.VGIA, 0x00000000)) { + Return(0x00) + } Else { + Return(0x0F) + } + } + Name(PKG, Package () + { + 0x00000000, + 0x00000000 + }) + Method(ADDR, 0, NotSerialized) + { + Store(\_SB.VGIA, Index(PKG, 0)) + Return(PKG) + } + } } } } -- cgit v1.2.3