From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxYRy-0007d8-9S for qemu-devel@nongnu.org; Wed, 27 May 2015 06:20:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YxYRu-000321-Ko for qemu-devel@nongnu.org; Wed, 27 May 2015 06:20:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35068) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxYIe-0005xu-Bv for qemu-devel@nongnu.org; Wed, 27 May 2015 06:11:00 -0400 Date: Wed, 27 May 2015 12:10:54 +0200 From: "Michael S. Tsirkin" Message-ID: <20150527121048-mutt-send-email-mst@redhat.com> References: <1432522520-8068-1-git-send-email-zhaoshenglong@huawei.com> <1432522520-8068-21-git-send-email-zhaoshenglong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1432522520-8068-21-git-send-email-zhaoshenglong@huawei.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v9 20/24] hw/acpi/aml-build: Add aml_dword_io() term List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Shannon Zhao Cc: peter.maydell@linaro.org, hangaohuai@huawei.com, a.spyridakis@virtualopensystems.com, claudio.fontana@huawei.com, qemu-devel@nongnu.org, peter.huangpeng@huawei.com, alex.bennee@linaro.org, hanjun.guo@linaro.org, imammedo@redhat.com, pbonzini@redhat.com, lersek@redhat.com, christoffer.dall@linaro.org, shannon.zhao@linaro.org On Mon, May 25, 2015 at 10:55:16AM +0800, Shannon Zhao wrote: > From: Shannon Zhao >=20 > Signed-off-by: Shannon Zhao > Signed-off-by: Shannon Zhao > Reviewed-by: Alex Benn=E9e > Reviewed-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin > --- > hw/acpi/aml-build.c | 18 ++++++++++++++++++ > include/hw/acpi/aml-build.h | 5 +++++ > 2 files changed, 23 insertions(+) >=20 > diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c > index 2927be1..bd91981 100644 > --- a/hw/acpi/aml-build.c > +++ b/hw/acpi/aml-build.c > @@ -959,6 +959,24 @@ Aml *aml_word_io(AmlMinFixed min_fixed, AmlMaxFixe= d max_fixed, > } > =20 > /* > + * ACPI 1.0b: 6.4.3.5.4 ASL Macros for DWORD Address Descriptor > + * > + * More verbose description at: > + * ACPI 5.0: 19.5.33 DWordIO (DWord IO Resource Descriptor Macro) > + */ > +Aml *aml_dword_io(AmlMinFixed min_fixed, AmlMaxFixed max_fixed, > + AmlDecode dec, AmlISARanges isa_ranges, > + uint32_t addr_gran, uint32_t addr_min, > + uint32_t addr_max, uint32_t addr_trans, > + uint32_t len) > + > +{ > + return aml_dword_as_desc(AML_IO_RANGE, min_fixed, max_fixed, dec, > + addr_gran, addr_min, addr_max, addr_trans,= len, > + isa_ranges); > +} > + > +/* > * ACPI 1.0b: 6.4.3.5.4 ASL Macros for DWORD Address Space Descriptor > * > * More verbose description at: > diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h > index ae62995..b81c838 100644 > --- a/include/hw/acpi/aml-build.h > +++ b/include/hw/acpi/aml-build.h > @@ -236,6 +236,11 @@ Aml *aml_word_io(AmlMinFixed min_fixed, AmlMaxFixe= d max_fixed, > uint16_t addr_gran, uint16_t addr_min, > uint16_t addr_max, uint16_t addr_trans, > uint16_t len); > +Aml *aml_dword_io(AmlMinFixed min_fixed, AmlMaxFixed max_fixed, > + AmlDecode dec, AmlISARanges isa_ranges, > + uint32_t addr_gran, uint32_t addr_min, > + uint32_t addr_max, uint32_t addr_trans, > + uint32_t len); > Aml *aml_dword_memory(AmlDecode dec, AmlMinFixed min_fixed, > AmlMaxFixed max_fixed, AmlCacheable cacheable, > AmlReadAndWrite read_and_write, > --=20 > 2.0.4 >=20