diff options
| author | Igor Mammedov | 2015-12-10 00:41:12 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin | 2015-12-22 17:39:21 +0100 |
| commit | 36de884a133f8cf1a18d55c1d76d783db9844abe (patch) | |
| tree | de9cda790585aebadca0fef73646d04443ba057b /include | |
| parent | acpi: add aml_lgreater() (diff) | |
| download | qemu-36de884a133f8cf1a18d55c1d76d783db9844abe.tar.gz qemu-36de884a133f8cf1a18d55c1d76d783db9844abe.tar.xz qemu-36de884a133f8cf1a18d55c1d76d783db9844abe.zip | |
acpi: extend aml_field() to support LockRule
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.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h index e90137121e..289b4eb0f8 100644 --- a/include/hw/acpi/aml-build.h +++ b/include/hw/acpi/aml-build.h @@ -49,6 +49,11 @@ typedef enum { } AmlAccessType; typedef enum { + AML_NOLOCK = 0, + AML_LOCK = 1, +} AmlLockRule; + +typedef enum { AML_PRESERVE = 0, AML_WRITE_AS_ONES = 1, AML_WRITE_AS_ZEROS = 2, @@ -310,7 +315,8 @@ Aml *aml_while(Aml *predicate); Aml *aml_package(uint8_t num_elements); 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_field(const char *name, AmlAccessType type, AmlLockRule lock, + AmlUpdateRule rule); Aml *aml_mutex(const char *name, uint8_t sync_level); Aml *aml_acquire(Aml *mutex, uint16_t timeout); Aml *aml_release(Aml *mutex); |
