arch/x86/acpigen: Add support for _DSM method generation
commitc00bd18b13f67bf7721d49c89c2d6086c6f9118e
authorFurquan Shaikh <furquan@chromium.org>
Fri, 21 Oct 2016 23:37:41 +0000 (21 16:37 -0700)
committerFurquan Shaikh <furquan@google.com>
Mon, 24 Oct 2016 22:13:16 +0000 (25 00:13 +0200)
treea35d2dc9f17896fa5dda9ee99be2e142def7cbb2
parent1d33488968573888ea1fc386b7ede0bc67e9b32c
arch/x86/acpigen: Add support for _DSM method generation

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
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://review.coreboot.org/17090
Tested-by: build bot (Jenkins)
Reviewed-by: Alexander Couzens <lynxis@fe80.eu>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
src/arch/x86/acpigen.c
src/arch/x86/include/arch/acpigen.h