diff options
author | Igor Mammedov <imammedo@redhat.com> | 2015-02-18 19:14:32 +0000 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-02-26 13:04:14 +0100 |
commit | 52fa397c58667080979e8aa64177c0f69b1851b7 (patch) | |
tree | 0e4dfaad76e941232bf888465b09be222e1a1c35 /include/hw | |
parent | ad4a80bc6f4aa7ce8e67e924574521f04b8b19a4 (diff) | |
download | qemu-52fa397c58667080979e8aa64177c0f69b1851b7.tar.gz qemu-52fa397c58667080979e8aa64177c0f69b1851b7.tar.bz2 qemu-52fa397c58667080979e8aa64177c0f69b1851b7.zip |
acpi: add aml_io() 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 'include/hw')
-rw-r--r-- | include/hw/acpi/aml-build.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h index 2810b4c43f..298e2ef3b1 100644 --- a/include/hw/acpi/aml-build.h +++ b/include/hw/acpi/aml-build.h @@ -23,6 +23,11 @@ struct Aml { }; typedef struct Aml Aml; +typedef enum { + aml_decode10 = 0, + aml_decode16 = 1, +} AmlIODecode; + /** * init_aml_allocator: * @@ -72,6 +77,8 @@ Aml *aml_call1(const char *method, Aml *arg1); Aml *aml_call2(const char *method, Aml *arg1, Aml *arg2); Aml *aml_call3(const char *method, Aml *arg1, Aml *arg2, Aml *arg3); Aml *aml_call4(const char *method, Aml *arg1, Aml *arg2, Aml *arg3, Aml *arg4); +Aml *aml_io(AmlIODecode dec, uint16_t min_base, uint16_t max_base, + uint8_t aln, uint8_t len); /* Block AML object primitives */ Aml *aml_scope(const char *name_format, ...) GCC_FMT_ATTR(1, 2); |