From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKlze-0004I4-CW for qemu-devel@nongnu.org; Mon, 09 Feb 2015 05:55:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKlzd-0000uP-8y for qemu-devel@nongnu.org; Mon, 09 Feb 2015 05:55:06 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44397) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKlzd-0000tX-2m for qemu-devel@nongnu.org; Mon, 09 Feb 2015 05:55:05 -0500 From: Igor Mammedov Date: Mon, 9 Feb 2015 10:53:47 +0000 Message-Id: <1423479254-15342-26-git-send-email-imammedo@redhat.com> In-Reply-To: <1423479254-15342-1-git-send-email-imammedo@redhat.com> References: <1423479254-15342-1-git-send-email-imammedo@redhat.com> Subject: [Qemu-devel] [PATCH v3 25/52] acpi: add aml_buffer() term List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: drjones@redhat.com, marcel.a@redhat.com, claudio.fontana@huawei.com, mst@redhat.com, zhaoshenglong@huawei.com Signed-off-by: Igor Mammedov --- hw/acpi/aml-build.c | 7 +++++++ include/hw/acpi/aml-build.h | 1 + 2 files changed, 8 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 31e999d..6488433 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -557,6 +557,13 @@ Aml *aml_device(const char *name_format, ...) return var; } +/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefBuffer */ +Aml *aml_buffer(void) +{ + Aml *var = aml_bundle(0x11 /* BufferOp */, AML_BUFFER); + return var; +} + /* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefPackage */ Aml *aml_package(uint8_t num_elements) { diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h index 511abf6..06826df 100644 --- a/include/hw/acpi/aml-build.h +++ b/include/hw/acpi/aml-build.h @@ -93,6 +93,7 @@ Aml *aml_device(const char *name_format, ...) GCC_FMT_ATTR(1, 2); Aml *aml_method(const char *name, int arg_count); Aml *aml_if(Aml *predicate); Aml *aml_package(uint8_t num_elements); +Aml *aml_buffer(void); /* other helpers */ GArray *build_alloc_array(void); -- 1.8.3.1