aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorXiao Guangrong <guangrong.xiao@linux.intel.com>2016-03-01 18:56:03 +0800
committerMichael S. Tsirkin <mst@redhat.com>2016-03-11 14:54:27 +0200
commit39b6dbd8d7bbaa864ce42dcdcffe79313de9f2d6 (patch)
tree73c48417f1ba135e9c14b2d11e835304c3aff7de /include
parenta648c137383d84bc4f95696e5293978d9541a26e (diff)
downloadqemu-39b6dbd8d7bbaa864ce42dcdcffe79313de9f2d6.zip
qemu-39b6dbd8d7bbaa864ce42dcdcffe79313de9f2d6.tar.gz
qemu-39b6dbd8d7bbaa864ce42dcdcffe79313de9f2d6.tar.bz2
acpi: add aml_create_field()
It will be used by nvdimm acpi 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')
-rw-r--r--include/hw/acpi/aml-build.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h
index d3e0c8f..7d26911 100644
--- a/include/hw/acpi/aml-build.h
+++ b/include/hw/acpi/aml-build.h
@@ -344,6 +344,8 @@ Aml *aml_mutex(const char *name, uint8_t sync_level);
Aml *aml_acquire(Aml *mutex, uint16_t timeout);
Aml *aml_release(Aml *mutex);
Aml *aml_alias(const char *source_object, const char *alias_object);
+Aml *aml_create_field(Aml *srcbuf, Aml *bit_index, Aml *num_bits,
+ const char *name);
Aml *aml_create_dword_field(Aml *srcbuf, Aml *index, const char *name);
Aml *aml_create_qword_field(Aml *srcbuf, Aml *index, const char *name);
Aml *aml_varpackage(uint32_t num_elements);