From: Kevin O'Connor Date: Fri, 9 Oct 2009 02:03:28 +0000 (-0400) Subject: Provide gpe _L0x methods. X-Git-Tag: rel-0.5.0~75 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=12a490b5bfd1df02761e28e89f88ae30ce83c5e9;p=seabios.git Provide gpe _L0x methods. Provide methods for gpe blk 0, even though they do nothing atm. Qemu pcbios commit 37c3845e38cb8ee4a98960bf1fc31563d071838d Signed-off-by: Gleb Natapov --- 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 eb6b534..d49ea53 100644 --- a/src/acpi.c +++ b/src/acpi.c @@ -273,6 +273,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));