From patchwork Tue Jul 17 12:31:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 171420 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B78E12C0081 for ; Tue, 17 Jul 2012 23:13:37 +1000 (EST) Received: from localhost ([::1]:41609 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sr6wQ-0003Zu-By for incoming@patchwork.ozlabs.org; Tue, 17 Jul 2012 08:31:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sr6vl-0001iH-0B for qemu-devel@nongnu.org; Tue, 17 Jul 2012 08:31:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sr6vg-0007oV-JJ for qemu-devel@nongnu.org; Tue, 17 Jul 2012 08:31:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sr6vg-0007oA-Bw for qemu-devel@nongnu.org; Tue, 17 Jul 2012 08:31:04 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6HCV3Jr019827 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 17 Jul 2012 08:31:03 -0400 Received: from rincewind.home.kraxel.org (ovpn-116-24.ams2.redhat.com [10.36.116.24]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q6HCV3Sw012075; Tue, 17 Jul 2012 08:31:03 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id A4AC040CD5; Tue, 17 Jul 2012 14:31:02 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org, seabios@seabios.org Date: Tue, 17 Jul 2012 14:31:01 +0200 Message-Id: <1342528262-11548-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1342528262-11548-1-git-send-email-kraxel@redhat.com> References: <1342528262-11548-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Gerd Hoffmann Subject: [Qemu-devel] [rfc patch seabios 2/3] wakeup: serial X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Windup gpe bit 0x0a for s3 wakeup. Signed-off-by: Gerd Hoffmann --- src/acpi-dsdt.dsl | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/acpi-dsdt.dsl b/src/acpi-dsdt.dsl index 93d0b3d..03efbfd 100644 --- a/src/acpi-dsdt.dsl +++ b/src/acpi-dsdt.dsl @@ -479,6 +479,12 @@ DefinitionBlock ( }) Return (BUF0) } + /* Power Resources for Wake */ + Name(_PRW, Package(2) { + 0x0a, // GPE bit + 0x03, // S3 + }) + } Device (COM2) @@ -793,6 +799,7 @@ DefinitionBlock ( Return(0x01) } Method(_L0A) { + Notify(\_SB.PCI0.ISA.COM1, 0x80) Return(0x01) } Method(_L0B) {