diff options
| author | Shannon Zhao <shannon.zhao@linaro.org> | 2015-05-29 11:28:57 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2015-05-29 11:28:57 +0100 |
| commit | ed8b5847e46c24d6e9c286892a00a34bee9b0835 (patch) | |
| tree | 6dce14b1bc5b8bad370c83ca36bea458cb61a533 /include/hw/acpi/aml-build.h | |
| parent | 8434488400971c6793893b8c9547bc6b97e076ce (diff) | |
| download | focaccia-qemu-ed8b5847e46c24d6e9c286892a00a34bee9b0835.tar.gz focaccia-qemu-ed8b5847e46c24d6e9c286892a00a34bee9b0835.zip | |
hw/acpi/aml-build: Make aml_buffer() definition consistent with the spec
According to ACPI spec, DefBuffer can take two parameters: BufferSize and ByteList. Make it consistent with the spec. Uninitialized buffer could be requested by passing ByteList as NULL to reserve space. Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com> Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Message-id: 1432522520-8068-15-git-send-email-zhaoshenglong@huawei.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/acpi/aml-build.h')
| -rw-r--r-- | include/hw/acpi/aml-build.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h index f4e678fc62..fac70ea5ed 100644 --- a/include/hw/acpi/aml-build.h +++ b/include/hw/acpi/aml-build.h @@ -253,7 +253,7 @@ Aml *aml_device(const char *name_format, ...) GCC_FMT_ATTR(1, 2); Aml *aml_method(const char *name, int arg_count); Aml *aml_if(Aml *predicate); Aml *aml_package(uint8_t num_elements); -Aml *aml_buffer(void); +Aml *aml_buffer(int buffer_size, uint8_t *byte_list); Aml *aml_resource_template(void); Aml *aml_field(const char *name, AmlAccessType type, AmlUpdateRule rule); Aml *aml_varpackage(uint32_t num_elements); |