aml-build.c (a23b887281a018495948b924182bd6767d013b47) aml-build.c (ca3df95df86de9e261135db26a434ebf829999c6)
1/* Support for generating ACPI tables and passing them to Guests
2 *
3 * Copyright (C) 2015 Red Hat Inc
4 *
5 * Author: Michael S. Tsirkin <mst@redhat.com>
6 * Author: Igor Mammedov <imammedo@redhat.com>
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 491 unchanged lines hidden (view full) ---

500
501/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefAnd */
502Aml *aml_and(Aml *arg1, Aml *arg2)
503{
504 return build_opcode_2arg_dst(0x7B /* AndOp */, arg1, arg2, NULL);
505}
506
507/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefOr */
1/* Support for generating ACPI tables and passing them to Guests
2 *
3 * Copyright (C) 2015 Red Hat Inc
4 *
5 * Author: Michael S. Tsirkin <mst@redhat.com>
6 * Author: Igor Mammedov <imammedo@redhat.com>
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 491 unchanged lines hidden (view full) ---

500
501/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefAnd */
502Aml *aml_and(Aml *arg1, Aml *arg2)
503{
504 return build_opcode_2arg_dst(0x7B /* AndOp */, arg1, arg2, NULL);
505}
506
507/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefOr */
508Aml *aml_or(Aml *arg1, Aml *arg2)
508Aml *aml_or(Aml *arg1, Aml *arg2, Aml *dst)
509{
509{
510 return build_opcode_2arg_dst(0x7D /* OrOp */, arg1, arg2, NULL);
510 return build_opcode_2arg_dst(0x7D /* OrOp */, arg1, arg2, dst);
511}
512
513/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefLOr */
514Aml *aml_lor(Aml *arg1, Aml *arg2)
515{
516 Aml *var = aml_opcode(0x91 /* LOrOp */);
517 aml_append(var, arg1);
518 aml_append(var, arg2);

--- 996 unchanged lines hidden ---
511}
512
513/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefLOr */
514Aml *aml_lor(Aml *arg1, Aml *arg2)
515{
516 Aml *var = aml_opcode(0x91 /* LOrOp */);
517 aml_append(var, arg1);
518 aml_append(var, arg2);

--- 996 unchanged lines hidden ---