acpigen: Add an abstracted integer output method

Hardware / Coreboot - Duncan Laurie [chromium.org] - 16 May 2016 12:55 UTC

In order to produce smaller AML and not rely on the caller to size the output type appropriately add a helper function that will output an appropriately sized integer.

To complete this also add helper functions for outputting the single OpCode for Zero and One and Ones.

And finally add "name" variants of the helpers that will output a complete sequence like "Name (_UID, Zero)".

Change-Id: I7ee4bc0a6347d15b8d49df357845a8bc2e517407

f7c3876 acpigen: Add an abstracted integer output method
src/arch/x86/acpigen.c | 49 +++++++++++++++++++++++++++++++++++
src/arch/x86/include/arch/acpigen.h | 7 +++++
2 files changed, 56 insertions(+)

Upstream: review.coreboot.org


  • Share