mirror of https://gitee.com/openkylin/qemu.git
acpi: add aml_buffer() 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>
This commit is contained in:
parent
ebc3028f7a
commit
04b8da543d
|
@ -506,6 +506,13 @@ Aml *aml_device(const char *name_format, ...)
|
||||||
return var;
|
return var;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefBuffer */
|
||||||
|
Aml *aml_buffer(void)
|
||||||
|
{
|
||||||
|
Aml *var = aml_bundle(0x11 /* BufferOp */, AML_BUFFER);
|
||||||
|
return var;
|
||||||
|
}
|
||||||
|
|
||||||
/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefPackage */
|
/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefPackage */
|
||||||
Aml *aml_package(uint8_t num_elements)
|
Aml *aml_package(uint8_t num_elements)
|
||||||
{
|
{
|
||||||
|
|
|
@ -79,6 +79,7 @@ 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);
|
||||||
Aml *aml_if(Aml *predicate);
|
Aml *aml_if(Aml *predicate);
|
||||||
Aml *aml_package(uint8_t num_elements);
|
Aml *aml_package(uint8_t num_elements);
|
||||||
|
Aml *aml_buffer(void);
|
||||||
|
|
||||||
/* other helpers */
|
/* other helpers */
|
||||||
GArray *build_alloc_array(void);
|
GArray *build_alloc_array(void);
|
||||||
|
|
Loading…
Reference in New Issue