mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
acpi: add aml_arg() 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
b25af5ad59
commit
7193f3a67e
2 changed files with 12 additions and 0 deletions
|
@ -397,6 +397,17 @@ Aml *aml_name_decl(const char *name, Aml *val)
|
|||
return var;
|
||||
}
|
||||
|
||||
/* ACPI 1.0b: 16.2.6.1 Arg Objects Encoding */
|
||||
Aml *aml_arg(int pos)
|
||||
{
|
||||
Aml *var;
|
||||
uint8_t op = 0x68 /* ARG0 op */ + pos;
|
||||
|
||||
assert(pos <= 6);
|
||||
var = aml_opcode(op);
|
||||
return var;
|
||||
}
|
||||
|
||||
/* ACPI 1.0b: 16.2.5.3 Type 1 Opcodes Encoding: DefIfElse */
|
||||
Aml *aml_if(Aml *predicate)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue