From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUiAW-0004hw-Pz for qemu-devel@nongnu.org; Wed, 04 Feb 2009 08:51:56 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUiAV-0004hc-Nh for qemu-devel@nongnu.org; Wed, 04 Feb 2009 08:51:55 -0500 Received: from [199.232.76.173] (port=36300 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUiAV-0004hZ-Iz for qemu-devel@nongnu.org; Wed, 04 Feb 2009 08:51:55 -0500 Received: from mx2.redhat.com ([66.187.237.31]:34679) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LUiAV-0001Qm-2F for qemu-devel@nongnu.org; Wed, 04 Feb 2009 08:51:55 -0500 Message-Id: <20090204134435.626738306@localhost.localdomain> References: <20090204134415.511485602@localhost.localdomain> Date: Wed, 04 Feb 2009 11:44:18 -0200 From: Marcelo Tosatti Content-Disposition: inline; filename=acpi-gpe Subject: [Qemu-devel] [patch 3/5] qemu: bios: provide gpe _L0x methods Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Avi Kivity , Glauber Costa provide methods for gpe blk 0, even though they do nothing atm Signed-off-by: Glauber Costa Signed-off-by: Avi Kivity Index: bochs/bios/acpi-dsdt.dsl =================================================================== --- bochs.orig/bios/acpi-dsdt.dsl +++ bochs/bios/acpi-dsdt.dsl @@ -597,4 +597,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) + } + } + } Index: bochs/bios/rombios32.c =================================================================== --- bochs.orig/bios/rombios32.c +++ bochs/bios/rombios32.c @@ -1647,6 +1647,8 @@ void acpi_bios_init(void) 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)); acpi_build_table_header((struct acpi_table_header *)fadt, "FACP", --