summaryrefslogtreecommitdiffstats
path: root/include/hw/acpi
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2015-02-18 19:14:34 +0000
committerMichael S. Tsirkin <mst@redhat.com>2015-02-26 13:04:14 +0100
commit31127938f496f56eb05dc407a31e4c5941fb436a (patch)
tree96db5eecdfbf26e10303969a1a67da410fa0aaec /include/hw/acpi
parent19fff2d405d3bcc88fd7b860ec47797b3f7af977 (diff)
downloadhqemu-31127938f496f56eb05dc407a31e4c5941fb436a.zip
hqemu-31127938f496f56eb05dc407a31e4c5941fb436a.tar.gz
acpi: add aml_operation_region() term
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/acpi')
-rw-r--r--include/hw/acpi/aml-build.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h
index b7f491e..57926e5 100644
--- a/include/hw/acpi/aml-build.h
+++ b/include/hw/acpi/aml-build.h
@@ -28,6 +28,11 @@ typedef enum {
aml_decode16 = 1,
} AmlIODecode;
+typedef enum {
+ aml_system_memory = 0x00,
+ aml_system_io = 0x01,
+} AmlRegionSpace;
+
/**
* init_aml_allocator:
*
@@ -79,6 +84,8 @@ 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);
+Aml *aml_operation_region(const char *name, AmlRegionSpace rs,
+ uint32_t offset, uint32_t len);
/* Block AML object primitives */
Aml *aml_scope(const char *name_format, ...) GCC_FMT_ATTR(1, 2);
OpenPOWER on IntegriCloud