qemu/hw/acpi
Igor Mammedov 0f2707e4e7 acpi: introduce AML composer aml_append()
Adds for dynamic AML creation, which will be used
for piecing ASL/AML primitives together and hiding
from user/caller details about how nested context
should be closed/packed leaving less space for
mistakes and necessity to know how AML should be
encoded, allowing user to concentrate on ASL
representation instead.

For example it will allow to create AML like this:

init_aml_allocator();
...
Aml *scope = aml_scope("PCI0")
Aml *dev = aml_device("PM")
    aml_append(dev, aml_name_decl("_ADR", aml_int(addr)))
aml_append(scope, dev);
...
free_aml_allocator();

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>
2015-02-26 13:04:09 +01:00
..
acpi_interface.c acpi: introduce TYPE_ACPI_DEVICE_IF interface 2014-06-19 18:44:22 +03:00
aml-build.c acpi: introduce AML composer aml_append() 2015-02-26 13:04:09 +01:00
bios-linker-loader.c bios linker: validate pointer within table 2015-02-26 12:42:15 +01:00
core.c acpi: accurate overflow check 2014-11-13 16:13:28 +01:00
cpu_hotplug.c acpi/cpu-hotplug: introduce helper function to keep bit setting in one place 2014-11-02 13:44:12 +02:00
ich9.c acpi, ich9: Add unplug cb for ich9. 2015-02-26 12:42:18 +01:00
Makefile.objs acpi: move generic aml building helpers into dedictated file 2015-02-26 12:42:15 +01:00
memory_hotplug.c acpi: fix typo in memory hotplug MMIO region name 2014-07-06 09:13:54 +03:00
pcihp.c pcihp: fix possible array out of bounds 2014-08-25 00:16:06 +02:00
piix4.c acpi, piix4: Add unplug cb for piix4. 2015-02-26 12:42:19 +01:00