aml-build.c (7b38ba9cb6fd47d89ab2db5b92ea6e4e6cd046cd) | aml-build.c (f411199de79bd3015975a31068bbd9d94adcfb38) |
---|---|
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 --- 413 unchanged lines hidden (view full) --- 422 Aml *var; 423 uint8_t op = 0x68 /* ARG0 op */ + pos; 424 425 assert(pos <= 6); 426 var = aml_opcode(op); 427 return var; 428} 429 | 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 --- 413 unchanged lines hidden (view full) --- 422 Aml *var; 423 uint8_t op = 0x68 /* ARG0 op */ + pos; 424 425 assert(pos <= 6); 426 var = aml_opcode(op); 427 return var; 428} 429 |
430/* ACPI 2.0a: 17.2.4.4 Type 2 Opcodes Encoding: DefToInteger */ 431Aml *aml_to_integer(Aml *arg) 432{ 433 Aml *var = aml_opcode(0x99 /* ToIntegerOp */); 434 aml_append(var, arg); 435 build_append_byte(var->buf, 0x00 /* NullNameOp */); 436 return var; 437} 438 |
|
430/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefStore */ 431Aml *aml_store(Aml *val, Aml *target) 432{ 433 Aml *var = aml_opcode(0x70 /* StoreOp */); 434 aml_append(var, val); 435 aml_append(var, target); 436 return var; 437} --- 988 unchanged lines hidden --- | 439/* ACPI 1.0b: 16.2.5.4 Type 2 Opcodes Encoding: DefStore */ 440Aml *aml_store(Aml *val, Aml *target) 441{ 442 Aml *var = aml_opcode(0x70 /* StoreOp */); 443 aml_append(var, val); 444 aml_append(var, target); 445 return var; 446} --- 988 unchanged lines hidden --- |