diff options
author | Tim Wawrzynczak <twawrzynczak@chromium.org> | 2021-12-02 15:56:42 -0700 |
---|---|---|
committer | Patrick Georgi <patrick@coreboot.org> | 2021-12-06 12:30:43 +0000 |
commit | 1883106c73bb0e36febd9a6be146665517fa755d (patch) | |
tree | 8f4915ceff51c3165617f9e5bb3030ad1b370db8 | |
parent | 727c7bf2219c8f958f9c4262c36d3a377b3b3fd7 (diff) |
acpi: Add #define for Mutex "no timeout" value
Some acpigen code may use mutexes, and it is a common idiom to pass
a value for the Timeout field of 0xffff, which is interpreted by OSPM
to mean "no timeout". Therefore add a macro for this value.
BUG=b:197983574
Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Change-Id: I16bc9f3f04dd1e3dc0f3eca3e56377e6f48132b2
Reviewed-on: https://review.coreboot.org/c/coreboot/+/59851
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subrata.banik@intel.com>
-rw-r--r-- | src/include/acpi/acpigen.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/acpi/acpigen.h b/src/include/acpi/acpigen.h index 463c16d2b2..c97713fa6f 100644 --- a/src/include/acpi/acpigen.h +++ b/src/include/acpi/acpigen.h @@ -298,6 +298,8 @@ struct cppc_config { cppc_entry_t entries[CPPC_MAX_FIELDS_VER_3]; }; +#define ACPI_MUTEX_NO_TIMEOUT 0xffff + void acpigen_write_return_integer(uint64_t arg); void acpigen_write_return_namestr(const char *arg); void acpigen_write_return_string(const char *arg); |