summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2015-02-18 19:14:35 +0000
committerMichael S. Tsirkin <mst@redhat.com>2015-02-26 13:04:15 +0100
commit214ae59f8e1c33db0f3fbbc4347bb3dacc6ce876 (patch)
tree0bbea2ef4a109cc7a2c144b343530128af2af50a /include
parent31127938f496f56eb05dc407a31e4c5941fb436a (diff)
downloadhqemu-214ae59f8e1c33db0f3fbbc4347bb3dacc6ce876.zip
hqemu-214ae59f8e1c33db0f3fbbc4347bb3dacc6ce876.tar.gz
acpi: add aml_field() & aml_named_field() terms
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')
-rw-r--r--include/hw/acpi/aml-build.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h
index 57926e5..2bb5f39 100644
--- a/include/hw/acpi/aml-build.h
+++ b/include/hw/acpi/aml-build.h
@@ -29,6 +29,10 @@ typedef enum {
} AmlIODecode;
typedef enum {
+ aml_byte_acc = 1,
+} AmlFieldFlags;
+
+typedef enum {
aml_system_memory = 0x00,
aml_system_io = 0x01,
} AmlRegionSpace;
@@ -86,6 +90,7 @@ 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);
+Aml *aml_named_field(const char *name, unsigned length);
/* Block AML object primitives */
Aml *aml_scope(const char *name_format, ...) GCC_FMT_ATTR(1, 2);
@@ -95,6 +100,7 @@ Aml *aml_if(Aml *predicate);
Aml *aml_package(uint8_t num_elements);
Aml *aml_buffer(void);
Aml *aml_resource_template(void);
+Aml *aml_field(const char *name, AmlFieldFlags flags);
/* other helpers */
GArray *build_alloc_array(void);
OpenPOWER on IntegriCloud