diff options
author | Igor Mammedov <imammedo@redhat.com> | 2015-02-18 19:14:28 +0000 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-02-26 13:04:13 +0100 |
commit | 3bfa74a7e8c0787877e0f23a873413ad8817c66c (patch) | |
tree | 888e7d180f33b6b2b9e8142ee00af286ddfeb9af /hw/acpi | |
parent | 3f3992b7c4ed9850e7f5502a1294cd017a891b38 (diff) | |
download | qemu-3bfa74a7e8c0787877e0f23a873413ad8817c66c.zip qemu-3bfa74a7e8c0787877e0f23a873413ad8817c66c.tar.gz qemu-3bfa74a7e8c0787877e0f23a873413ad8817c66c.tar.bz2 |
acpi: add aml_package() term
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/acpi')
-rw-r--r-- | hw/acpi/aml-build.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 18427b6..fdeeacc 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -505,3 +505,11 @@ Aml *aml_device(const char *name_format, ...) va_end(ap); return var; } + +/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefPackage */ +Aml *aml_package(uint8_t num_elements) +{ + Aml *var = aml_bundle(0x12 /* PackageOp */, AML_PACKAGE); + build_append_byte(var->buf, num_elements); + return var; +} |