qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: liguang <lig.fnst@cn.fujitsu.com>
To: Igor Mammedov <imammedo@redhat.com>
Cc: seabios@seabios.org, qemu-devel <qemu-devel@nongnu.org>,
	liguang <lig.fnst@cn.fujitsu.com>
Subject: [Qemu-devel] [PATCH RFC v2 1/2] ec: add ASL for ACPI Embedded Controller
Date: Thu, 6 Jun 2013 11:19:54 +0800	[thread overview]
Message-ID: <1370488795-7030-1-git-send-email-lig.fnst@cn.fujitsu.com> (raw)

Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>
---
 src/acpi-dsdt-isa.dsl |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/src/acpi-dsdt-isa.dsl b/src/acpi-dsdt-isa.dsl
index 23761db..2b9c3a0 100644
--- a/src/acpi-dsdt-isa.dsl
+++ b/src/acpi-dsdt-isa.dsl
@@ -99,4 +99,30 @@ Scope(\_SB.PCI0.ISA) {
             IRQNoFlags() { 3 }
         })
     }
+
+	Device (EC0) {
+		Name(_HID, EISAID ("PNP0C09"))
+		Name(_UID, 1)
+
+		Method(_CRS, 0) {
+			Name(BFFR, ResourceTemplate() {
+				IO(Decode16, 0x62, 0x62, 0, 1)      // ACPI DATA IN/OUT
+				IO(Decode16, 0x66, 0x66, 0, 1)      // CMD/STS
+	        })
+			Return(BFFR)
+		}
+
+		OperationRegion(ECFD, EmbeddedControl, 0, 0xFF)
+		Field(ECFD, ByteAcc, Lock, Preserve) {
+			Offset(1),
+			CPUS,   8,      // 1, CPU plug/unplug status map
+			CPUN,   8,      // 2, CPU index
+		}
+
+		Name(_GPE, 3)
+
+		Method(_Q01) {
+		}
+	}
+
 }
-- 
1.7.2.5

             reply	other threads:[~2013-06-06  3:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-06  3:19 liguang [this message]
2013-06-06  3:19 ` [Qemu-devel] [PATCH RFC v2 2/2] use EC space instead of specific systemio for cpu hotplug liguang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1370488795-7030-1-git-send-email-lig.fnst@cn.fujitsu.com \
    --to=lig.fnst@cn.fujitsu.com \
    --cc=imammedo@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=seabios@seabios.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).