Add acpigen_write_dsm that generates ACPI AML code for _DSM method. Caller should provide set of callbacks with callback[i] corresponding to function index i of DSM method. Local0 and Local1 should not be used in any of the callbacks.
BUG=chrome-os-partner:57846
Change-Id: Ie18cba080424488fe00cc626ea50aa92c1dbb199
c00bd18 arch/x86/acpigen: Add support for _DSM method generation
src/arch/x86/acpigen.c | 86 +++++++++++++++++++++++++++++++++++
src/arch/x86/include/arch/acpigen.h | 8 ++++
2 files changed, 94 insertions(+)
Upstream: review.coreboot.org