Searched hist:"0 f2707e4e733614f2cd566e7210c1cff6f3b5b42" (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/include/hw/acpi/ |
H A D | aml-build.h | diff 0f2707e4e733614f2cd566e7210c1cff6f3b5b42 Wed Feb 18 13:14:14 CST 2015 Igor Mammedov <imammedo@redhat.com> 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>
|
/openbmc/qemu/hw/acpi/ |
H A D | aml-build.c | diff 0f2707e4e733614f2cd566e7210c1cff6f3b5b42 Wed Feb 18 13:14:14 CST 2015 Igor Mammedov <imammedo@redhat.com> 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>
|