summaryrefslogtreecommitdiff
path: root/src/include/acpi/acpi.h
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2020-07-09 11:58:38 -0600
committerFelix Held <felix-coreboot@felixheld.de>2020-07-10 22:50:19 +0000
commit1c0b9f25a1a8983e93ff0e0f4e91c277bb188033 (patch)
treed76e0a27779c54fc8f793b90e5baaf6bd10ac193 /src/include/acpi/acpi.h
parentf6f1f734ee1b6322ebf3913743d5c526be65dc42 (diff)
include/acpi/acpi.h: Add ACPI_NAME_BUFFER_SIZE
ACPI names can only be 4 characters long. Define a constant that defines the size of the name + the NUL terminator. BUG=b:154756391 TEST=none Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: Iad230c029f324005620ddad66c433ada26be78cc Reviewed-on: https://review.coreboot.org/c/coreboot/+/43329 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include/acpi/acpi.h')
-rw-r--r--src/include/acpi/acpi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/acpi/acpi.h b/src/include/acpi/acpi.h
index cd99899164..35a1dc348e 100644
--- a/src/include/acpi/acpi.h
+++ b/src/include/acpi/acpi.h
@@ -52,6 +52,8 @@
#define RSDP_SIG "RSD PTR " /* RSDT pointer signature */
#define ASLC "CORE" /* Must be exactly 4 bytes long! */
+#define ACPI_NAME_BUFFER_SIZE 5 /* 4 chars + 1 NUL */
+
/*
* The assigned ACPI ID for the coreboot project is 'BOOT'
* http://www.uefi.org/acpi_id_list