summaryrefslogtreecommitdiff
path: root/src/include/acpi
diff options
context:
space:
mode:
authorTim Wawrzynczak <twawrzynczak@chromium.org>2021-07-01 11:18:50 -0600
committerPatrick Georgi <pgeorgi@google.com>2021-07-12 07:34:44 +0000
commitc4ca2f63967c3ab274d068d50f98df584014101a (patch)
tree5dd9dd78999a117049b5de3c9ef8cfe85f20009f /src/include/acpi
parentf16a5ec87104c6ab83a85ababdf9d2f43940ab5c (diff)
acpi: Add function to simplify If (CondRefOf (..)) sequences
The new function is called acpigen_write_if_cond_refof(), and it must be paired with a following acpigen_write_if_end() call. Change-Id: I6e192a569f550ecb77ad264275d52f219eacaca1 Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/56003 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/include/acpi')
-rw-r--r--src/include/acpi/acpigen.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/acpi/acpigen.h b/src/include/acpi/acpigen.h
index 2d0bb77d79..09ec4bce61 100644
--- a/src/include/acpi/acpigen.h
+++ b/src/include/acpi/acpigen.h
@@ -415,6 +415,8 @@ inline void acpigen_write_if_end(void)
{
acpigen_pop_len();
}
+/* Emits If (CondRefOf(NAME)) */
+void acpigen_write_if_cond_ref_of(const char *namestring);
void acpigen_write_else(void);
void acpigen_write_shiftleft_op_int(uint8_t src_result, uint64_t count);
void acpigen_write_to_buffer(uint8_t src, uint8_t dst);