aml-build.c (0073518dd7232fb4da6331ea298589383d2d16cb) aml-build.c (df241999b606079f01a6f25c54552f8d04058639)
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

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

479}
480
481/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefOr */
482Aml *aml_or(Aml *arg1, Aml *arg2)
483{
484 return build_opcode_2arg_dst(0x7D /* OrOp */, arg1, arg2, NULL);
485}
486
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

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

479}
480
481/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefOr */
482Aml *aml_or(Aml *arg1, Aml *arg2)
483{
484 return build_opcode_2arg_dst(0x7D /* OrOp */, arg1, arg2, NULL);
485}
486
487/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefLOr */
488Aml *aml_lor(Aml *arg1, Aml *arg2)
489{
490 Aml *var = aml_opcode(0x91 /* LOrOp */);
491 aml_append(var, arg1);
492 aml_append(var, arg2);
493 return var;
494}
495
487/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefShiftLeft */
488Aml *aml_shiftleft(Aml *arg1, Aml *count)
489{
490 return build_opcode_2arg_dst(0x79 /* ShiftLeftOp */, arg1, count, NULL);
491}
492
493/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefShiftRight */
494Aml *aml_shiftright(Aml *arg1, Aml *count, Aml *dst)

--- 959 unchanged lines hidden ---
496/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefShiftLeft */
497Aml *aml_shiftleft(Aml *arg1, Aml *count)
498{
499 return build_opcode_2arg_dst(0x79 /* ShiftLeftOp */, arg1, count, NULL);
500}
501
502/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefShiftRight */
503Aml *aml_shiftright(Aml *arg1, Aml *count, Aml *dst)

--- 959 unchanged lines hidden ---