From 4dbfc88149b1b7359c9e0c6e6d4bbca960acf2e8 Mon Sep 17 00:00:00 2001 From: Xiao Guangrong Date: Thu, 17 Dec 2015 13:37:13 +0000 Subject: acpi: support serialized method Add serialized method support so that explicit Mutex can be avoided Signed-off-by: Xiao Guangrong Signed-off-by: Igor Mammedov Reviewed-by: Shannon Zhao Signed-off-by: Shannon Zhao Message-id: 1449804086-3464-2-git-send-email-zhaoshenglong@huawei.com Signed-off-by: Peter Maydell --- include/hw/acpi/aml-build.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include/hw/acpi') diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h index 1b632dc..a3580e1 100644 --- a/include/hw/acpi/aml-build.h +++ b/include/hw/acpi/aml-build.h @@ -148,6 +148,12 @@ typedef enum { AML_SHARED_AND_WAKE = 3, } AmlShared; +/* ACPI 1.0b: 16.2.5.2 Named Objects Encoding: MethodFlags */ +typedef enum { + AML_NOTSERIALIZED = 0, + AML_SERIALIZED = 1, +} AmlSerializeFlag; + typedef struct AcpiBuildTables { GArray *table_data; @@ -262,7 +268,7 @@ Aml *aml_qword_memory(AmlDecode dec, AmlMinFixed min_fixed, /* Block AML object primitives */ Aml *aml_scope(const char *name_format, ...) GCC_FMT_ATTR(1, 2); Aml *aml_device(const char *name_format, ...) GCC_FMT_ATTR(1, 2); -Aml *aml_method(const char *name, int arg_count); +Aml *aml_method(const char *name, int arg_count, AmlSerializeFlag sflag); Aml *aml_if(Aml *predicate); Aml *aml_else(void); Aml *aml_while(Aml *predicate); -- cgit v1.1