acpi: Add an __ACPI__ preprocessor symbol
authorSimon Glass <sjg@chromium.org>
Wed, 8 Apr 2020 22:57:37 +0000 (16:57 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 16 Apr 2020 06:36:28 +0000 (14:36 +0800)
commit89c2798f1f2f690cdd269e38ef386ff720435816
tree788472aaf2503f56d42dddbe5a9e0470dce5a4c3
parent776cc2019467567b9a834f80cc5b03128efa372a
acpi: Add an __ACPI__ preprocessor symbol

The ASL compiler cannot handle C structures and the like so needs some
sort of header guard around these.

We already have an __ASSEMBLY__ #define but it seems best to create a new
one for ACPI since the rules may be different.

Add the check to a few files that ACPI always includes.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
include/acpi/acpi_table.h
include/dm/acpi.h
scripts/Makefile.lib