diff options
author | Igor Mammedov <imammedo@redhat.com> | 2015-02-18 19:14:31 +0000 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-02-26 13:04:14 +0100 |
commit | ad4a80bc6f4aa7ce8e67e924574521f04b8b19a4 (patch) | |
tree | ae664b14a2659e9e6aa17b93bf8111f46e44db0b /hw/acpi | |
parent | 04b8da543dd16afaea014032939db4cb54b15459 (diff) | |
download | hqemu-ad4a80bc6f4aa7ce8e67e924574521f04b8b19a4.zip hqemu-ad4a80bc6f4aa7ce8e67e924574521f04b8b19a4.tar.gz |
acpi: add aml_resource_template() helper
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 98b1540..070ca81 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -506,6 +506,14 @@ Aml *aml_device(const char *name_format, ...) return var; } +/* ACPI 1.0b: 6.4.1 ASL Macros for Resource Descriptors */ +Aml *aml_resource_template(void) +{ + /* ResourceTemplate is a buffer of Resources with EndTag at the end */ + Aml *var = aml_bundle(0x11 /* BufferOp */, AML_RES_TEMPLATE); + return var; +} + /* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefBuffer */ Aml *aml_buffer(void) { |