summaryrefslogtreecommitdiff
path: root/src/include/acpi/acpigen.h
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2020-09-30 23:09:29 +0000
committerDuncan Laurie <dlaurie@chromium.org>2020-10-21 22:23:55 +0000
commit095bbf969d47a06388be65e944352f1936c4e1f2 (patch)
tree7f08c105da21c436cd51199908729766df663fd5 /src/include/acpi/acpigen.h
parentcf5d58328fe004d967466be42de62d6bab4c3133 (diff)
acpigen: Add option for reserved bits in Field
Add an option for unused/reserved bits in a Field definition, allowing for declarations that do not start at bit 0: Field (UART, AnyAcc, NoLock, Preserve) { , 7, /* RESERVED */ BITF, /* Used bit */ } These just use byte 0 instead of a name. Change-Id: I86b54685dbdebacb0834173857c9341ea9fa9a46 Signed-off-by: Duncan Laurie <dlaurie@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46254 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include/acpi/acpigen.h')
-rw-r--r--src/include/acpi/acpigen.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/acpi/acpigen.h b/src/include/acpi/acpigen.h
index c30f8449b6..10e328b8b8 100644
--- a/src/include/acpi/acpigen.h
+++ b/src/include/acpi/acpigen.h
@@ -158,6 +158,10 @@ enum {
.name = X, \
.bits = Y, \
}
+#define FIELDLIST_RESERVED(X) { .type = RESERVED, \
+ .name = "", \
+ .bits = X, \
+ }
#define FIELD_ANYACC 0
#define FIELD_BYTEACC 1
@@ -174,6 +178,7 @@ enum {
enum field_type {
OFFSET,
NAME_STRING,
+ RESERVED,
FIELD_TYPE_MAX,
};