[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 03/33] acpi: add aml_refof()
From: |
Igor Mammedov |
Subject: |
[Qemu-devel] [PATCH 03/33] acpi: add aml_refof() |
Date: |
Tue, 17 May 2016 16:42:55 +0200 |
Signed-off-by: Igor Mammedov <address@hidden>
---
hw/acpi/aml-build.c | 8 ++++++++
include/hw/acpi/aml-build.h | 1 +
2 files changed, 9 insertions(+)
diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c
index f7d99be..95f6021 100644
--- a/hw/acpi/aml-build.c
+++ b/hw/acpi/aml-build.c
@@ -1416,6 +1416,14 @@ Aml *aml_unicode(const char *str)
return var;
}
+/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefRefOf */
+Aml *aml_refof(Aml *arg)
+{
+ Aml *var = aml_opcode(0x71 /* RefOfOp */);
+ aml_append(var, arg);
+ return var;
+}
+
/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefDerefOf */
Aml *aml_derefof(Aml *arg)
{
diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h
index 70a4b14..dd432d2 100644
--- a/include/hw/acpi/aml-build.h
+++ b/include/hw/acpi/aml-build.h
@@ -359,6 +359,7 @@ Aml *aml_create_qword_field(Aml *srcbuf, Aml *index, const
char *name);
Aml *aml_varpackage(uint32_t num_elements);
Aml *aml_touuid(const char *uuid);
Aml *aml_unicode(const char *str);
+Aml *aml_refof(Aml *arg);
Aml *aml_derefof(Aml *arg);
Aml *aml_sizeof(Aml *arg);
Aml *aml_concatenate(Aml *source1, Aml *source2, Aml *target);
--
1.8.3.1
- Re: [Qemu-devel] [PATCH 01/33] tests: acpi: report names of expected files in verbose mode, (continued)
[Qemu-devel] [PATCH 02/33] acpi: add aml_debug(), Igor Mammedov, 2016/05/17
[Qemu-devel] [PATCH 05/33] pc: acpi: consolidate CPU hotplug AML, Igor Mammedov, 2016/05/17
[Qemu-devel] [PATCH 03/33] acpi: add aml_refof(),
Igor Mammedov <=
[Qemu-devel] [PATCH 10/33] pc: acpi: simplify build_legacy_cpu_hotplug_aml() signature, Igor Mammedov, 2016/05/17
[Qemu-devel] [PATCH 08/33] pc: acpi: mark current CPU hotplug functions as legacy, Igor Mammedov, 2016/05/17
[Qemu-devel] [PATCH 12/33] tests: acpi: update tables with consolidated legacy cpu-hotplug AML, Igor Mammedov, 2016/05/17
[Qemu-devel] [PATCH 09/33] pc: acpi: consolidate legacy CPU hotplug in one file, Igor Mammedov, 2016/05/17
[Qemu-devel] [PATCH 07/33] pc: acpi: cpu-hotplug: make AML CPU_foo defines local to cpu_hotplug_acpi_table.c, Igor Mammedov, 2016/05/17