summary refs log tree commit diff stats
path: root/include/hw/acpi/aml-build.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2016-03-01 18:56:07 +0800
committerMichael S. Tsirkin <mst@redhat.com>2016-03-11 14:54:28 +0200
commitf20354910893310d5496ebb6edfc551d83d95343 (patch)
tree8a9bcec19faf0b9d864dee9f9b569d538fe90809 /include/hw/acpi/aml-build.h
parent3f3009c0983428f517b743c9de14858b1fdaacb7 (diff)
downloadfocaccia-qemu-f20354910893310d5496ebb6edfc551d83d95343.tar.gz
focaccia-qemu-f20354910893310d5496ebb6edfc551d83d95343.zip
acpi: add build_append_named_dword, returning an offset in buffer
This is a very limited form of support for runtime patching -
similar in functionality to what we can do with ACPI_EXTRACT
macros in python, but implemented in C.

This is to allow ACPI code direct access to data tables -
which is exactly what DataTableRegion is there for, except
no known windows release so far implements DataTableRegion.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/acpi/aml-build.h')
-rw-r--r--include/hw/acpi/aml-build.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h
index b16017ed71..66f48ec04f 100644
--- a/include/hw/acpi/aml-build.h
+++ b/include/hw/acpi/aml-build.h
@@ -368,4 +368,7 @@ void
 build_rsdt(GArray *table_data, GArray *linker, GArray *table_offsets,
            const char *oem_id, const char *oem_table_id);
 
+int
+build_append_named_dword(GArray *array, const char *name_format, ...);
+
 #endif