All of lore.kernel.org
 help / color / mirror / Atom feed
From: li guang <lig.fnst@cn.fujitsu.com>
To: qemu-devel@nongnu.org, seabios <seabios@seabios.org>
Cc: "Anthony Liguori" <aliguori@us.ibm.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Stefan Berger" <stefanb@linux.vnet.ibm.com>,
	"Bruce Rogers" <brogers@suse.com>,
	"Joel Schopp" <jschopp@linux.vnet.ibm.com>,
	"Gerd Hoffmann" <kraxel@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Andreas Färber" <afaerber@suse.de>,
	"Isaku Yamahata" <yamahata@valinux.co.jp>
Subject: Re: [Qemu-devel] [PATCH 4/4][seabios] ec: add ASL for ACPI Embedded Controller
Date: Thu, 23 May 2013 11:03:13 +0800	[thread overview]
Message-ID: <1369278193.5142.160.camel@liguang.fnst.cn.fujitsu.com> (raw)
In-Reply-To: <1369194397-608-5-git-send-email-lig.fnst@cn.fujitsu.com>

Add seabios mail-list

在 2013-05-22三的 11:46 +0800,liguang写道:
> Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>
> ---
>  src/acpi-dsdt.dsl     |    1 +
>  src/ec.dsl            |   51 +++++++++++++++++++++++++++++++++++++++++++++++++
>  src/q35-acpi-dsdt.dsl |    1 +
>  3 files changed, 53 insertions(+), 0 deletions(-)
>  create mode 100644 src/ec.dsl
> 
> diff --git a/src/acpi-dsdt.dsl b/src/acpi-dsdt.dsl
> index 158f6b4..4fa2b9a 100644
> --- a/src/acpi-dsdt.dsl
> +++ b/src/acpi-dsdt.dsl
> @@ -112,6 +112,7 @@ DefinitionBlock (
>              }
>              Name(FDEN, 1)
>          }
> +#include "ec.dsl"
>      }
>  
>  #include "acpi-dsdt-isa.dsl"
> diff --git a/src/ec.dsl b/src/ec.dsl
> new file mode 100644
> index 0000000..c8be420
> --- /dev/null
> +++ b/src/ec.dsl
> @@ -0,0 +1,51 @@
> +/*
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License as published by
> + * the Free Software Foundation; version 2 of the License.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program; if not, write to the Free Software
> + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> + */
> +
> +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 status
> +		CPUN,	8,		// 2, CPU index
> +	}
> +
> +	Name(_GPE, 17)
> +
> +	Method(_Q01)
> +	{
> +		If(LEqual(1, CPUS))
> +		{
> +			Store(0, CPUS)
> +		}
> +		Else
> +		{
> +			Store(1, CPUS)
> +		}
> +	}
> +}
> diff --git a/src/q35-acpi-dsdt.dsl b/src/q35-acpi-dsdt.dsl
> index c031d83..056b4f8 100644
> --- a/src/q35-acpi-dsdt.dsl
> +++ b/src/q35-acpi-dsdt.dsl
> @@ -167,6 +167,7 @@ DefinitionBlock (
>                  FDEN,   1
>              }
>          }
> +#include "ec.dsl"
>      }
>  
>  #include "acpi-dsdt-isa.dsl"

  reply	other threads:[~2013-05-23  3:03 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-22  3:46 [Qemu-devel] [PATCH 0/4] add ACPI Embedded Controller liguang
2013-05-22  3:46 ` [Qemu-devel] [PATCH 1/4] acpi: add ACPI Embedded Controller support liguang
2013-05-22  3:46 ` [Qemu-devel] [PATCH 2/4] acpi/gpe: expand bits of gpe register liguang
2013-05-22  5:28   ` Isaku Yamahata
2013-05-22  5:37     ` li guang
2013-05-24  1:24       ` Isaku Yamahata
2013-05-24  2:02         ` li guang
2013-05-27  9:00           ` Gerd Hoffmann
2013-05-28  0:32             ` li guang
2013-05-27  9:06           ` Gerd Hoffmann
2013-05-22  3:46 ` [Qemu-devel] [PATCH 3/4] ich9: add notifer for ec to generate sci liguang
2013-05-27 20:21   ` Michael S. Tsirkin
2013-05-28  0:23     ` li guang
2013-05-28  6:40   ` Michael S. Tsirkin
2013-05-28  6:44     ` li guang
2013-05-22  3:46 ` [Qemu-devel] [PATCH 4/4][seabios] ec: add ASL for ACPI Embedded Controller liguang
2013-05-23  3:03   ` li guang [this message]
2013-05-24  0:34 ` [Qemu-devel] [PATCH 0/4] add " li guang
2013-05-24 11:45 ` Michael S. Tsirkin
2013-05-27  0:20   ` li guang
2013-05-27  0:51     ` Anthony Liguori
2013-05-27  1:22       ` li guang
2013-05-27 11:45         ` Igor Mammedov
2013-05-28  0:28           ` li guang
2013-05-28  8:16             ` Igor Mammedov
2013-05-28  8:34               ` li guang
2013-05-28  9:38                 ` Igor Mammedov
2013-05-29  0:23                   ` li guang
2013-05-27 20:23         ` Michael S. Tsirkin
2013-05-28  0:21           ` li guang
2013-05-28  6:31             ` Michael S. Tsirkin
2013-05-28  6:40               ` li guang
2013-05-28  6:48                 ` Michael S. Tsirkin
2013-05-28  8:26                 ` Igor Mammedov
2013-05-28  8:40                   ` li guang

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=1369278193.5142.160.camel@liguang.fnst.cn.fujitsu.com \
    --to=lig.fnst@cn.fujitsu.com \
    --cc=afaerber@suse.de \
    --cc=aliguori@us.ibm.com \
    --cc=brogers@suse.com \
    --cc=jschopp@linux.vnet.ibm.com \
    --cc=kraxel@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=seabios@seabios.org \
    --cc=stefanb@linux.vnet.ibm.com \
    --cc=yamahata@valinux.co.jp \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.