From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvvP5-0004wS-7g for qemu-devel@nongnu.org; Thu, 08 Oct 2009 11:59:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvvOv-0004gv-WD for qemu-devel@nongnu.org; Thu, 08 Oct 2009 11:59:39 -0400 Received: from [199.232.76.173] (port=39098 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvvOv-0004gJ-Nw for qemu-devel@nongnu.org; Thu, 08 Oct 2009 11:59:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54389) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MvvOv-0002Ks-7D for qemu-devel@nongnu.org; Thu, 08 Oct 2009 11:59:33 -0400 From: Gleb Natapov Date: Thu, 8 Oct 2009 17:59:19 +0200 Message-Id: <1255017566-26220-15-git-send-email-gleb@redhat.com> In-Reply-To: <1255017566-26220-1-git-send-email-gleb@redhat.com> References: <1255017566-26220-1-git-send-email-gleb@redhat.com> Subject: [Qemu-devel] [PATCH 14/21] Provide gpe _L0x methods. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kevin@koconnor.net Cc: qemu-devel@nongnu.org Provide methods for gpe blk 0, even though they do nothing atm. Qemu pcbios commit 37c3845e38cb8ee4a98960bf1fc31563d071838d Signed-off-by: Gleb Natapov --- src/acpi-dsdt.dsl | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++ src/acpi.c | 2 + 2 files changed, 57 insertions(+), 0 deletions(-) diff --git a/src/acpi-dsdt.dsl b/src/acpi-dsdt.dsl index 88d3b57..0c01624 100644 --- a/src/acpi-dsdt.dsl +++ b/src/acpi-dsdt.dsl @@ -543,4 +543,59 @@ DefinitionBlock ( Zero, /* reserved */ Zero /* reserved */ }) + + Scope (\_GPE) + { + Name(_HID, "ACPI0006") + + Method(_L00) { + Return(0x01) + } + Method(_L01) { + Return(0x01) + } + Method(_L02) { + Return(0x01) + } + Method(_L03) { + Return(0x01) + } + Method(_L04) { + Return(0x01) + } + Method(_L05) { + Return(0x01) + } + Method(_L06) { + Return(0x01) + } + Method(_L07) { + Return(0x01) + } + Method(_L08) { + Return(0x01) + } + Method(_L09) { + Return(0x01) + } + Method(_L0A) { + Return(0x01) + } + Method(_L0B) { + Return(0x01) + } + Method(_L0C) { + Return(0x01) + } + Method(_L0D) { + Return(0x01) + } + Method(_L0E) { + Return(0x01) + } + Method(_L0F) { + Return(0x01) + } + } + } diff --git a/src/acpi.c b/src/acpi.c index fb57860..7c96427 100644 --- a/src/acpi.c +++ b/src/acpi.c @@ -272,6 +272,8 @@ build_fadt(int bdf) fadt->pm_tmr_len = 4; fadt->plvl2_lat = cpu_to_le16(0xfff); // C2 state not supported fadt->plvl3_lat = cpu_to_le16(0xfff); // C3 state not supported + fadt->gpe0_blk = cpu_to_le32(0xafe0); + fadt->gpe0_blk_len = 4; /* WBINVD + PROC_C1 + PWR_BUTTON + SLP_BUTTON + FIX_RTC */ fadt->flags = cpu_to_le32((1 << 0) | (1 << 2) | (1 << 4) | (1 << 5) | (1 << 6)); -- 1.6.3.3