mirror of
https://github.com/qemu/qemu.git
synced 2024-11-26 12:23:36 +08:00
acpi: add aml_alias()
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> Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
This commit is contained in:
parent
c360639aee
commit
67a5c0faa6
@ -1347,6 +1347,15 @@ Aml *aml_release(Aml *mutex)
|
||||
return var;
|
||||
}
|
||||
|
||||
/* ACPI 1.0b: 16.2.5.1 Name Space Modifier Objects Encoding: DefAlias */
|
||||
Aml *aml_alias(const char *source_object, const char *alias_object)
|
||||
{
|
||||
Aml *var = aml_opcode(0x06 /* AliasOp */);
|
||||
aml_append(var, aml_name("%s", source_object));
|
||||
aml_append(var, aml_name("%s", alias_object));
|
||||
return var;
|
||||
}
|
||||
|
||||
void
|
||||
build_header(GArray *linker, GArray *table_data,
|
||||
AcpiTableHeader *h, const char *sig, int len, uint8_t rev,
|
||||
|
@ -311,6 +311,7 @@ Aml *aml_field(const char *name, AmlAccessType type, 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);
|
||||
Aml *aml_alias(const char *source_object, const char *alias_object);
|
||||
Aml *aml_create_dword_field(Aml *srcbuf, Aml *index, const char *name);
|
||||
Aml *aml_create_qword_field(Aml *srcbuf, Aml *index, const char *name);
|
||||
Aml *aml_varpackage(uint32_t num_elements);
|
||||
|
Loading…
Reference in New Issue
Block a user