]> Git Repo - qemu.git/commitdiff
acpi: add aml_buffer() term
authorIgor Mammedov <[email protected]>
Wed, 18 Feb 2015 19:14:30 +0000 (19:14 +0000)
committerMichael S. Tsirkin <[email protected]>
Thu, 26 Feb 2015 12:04:13 +0000 (13:04 +0100)
Signed-off-by: Igor Mammedov <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
hw/acpi/aml-build.c
include/hw/acpi/aml-build.h

index fdeeacc993a990a88d307b4fe27efde9baa659d8..98b1540bbb0152c7b3ff6ed5cc85dab7dffcd2d7 100644 (file)
@@ -506,6 +506,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)
 {
index 92097b5945579ecd36def0b00a6548fbe1f59b4b..5fe66c68daa00b5bbc8dc4bbb345615915f74c70 100644 (file)
@@ -79,6 +79,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);
This page took 0.029109 seconds and 4 git commands to generate.