diff options
author | Michael Niewöhner <foss@mniewoehner.de> | 2022-05-13 00:04:19 +0200 |
---|---|---|
committer | Michael Niewöhner <foss@mniewoehner.de> | 2022-11-02 21:03:40 +0000 |
commit | 060dc7b26d47d9750d0692340761ba34942b1545 (patch) | |
tree | 803c6c3eade8b05e50aed45c97ae8b816f67d804 | |
parent | b621d9bef31a92b5a8cf23af17bf576e5d341efd (diff) |
acpigen: export acpigen_write_field_name
It will be used in a follow-up change.
Change-Id: If89f9569c33949995d3b45a5f871ff2cb84a6610
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/68787
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r-- | src/acpi/acpigen.c | 2 | ||||
-rw-r--r-- | src/include/acpi/acpigen.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c index acef34d455..85b49b25b0 100644 --- a/src/acpi/acpigen.c +++ b/src/acpi/acpigen.c @@ -532,7 +532,7 @@ static void acpigen_write_field_offset(uint32_t offset, uint32_t current_bit_pos acpigen_write_field_length(diff_bits); } -static void acpigen_write_field_name(const char *name, uint32_t size) +void acpigen_write_field_name(const char *name, uint32_t size) { acpigen_emit_simple_namestring(name); acpigen_write_field_length(size); diff --git a/src/include/acpi/acpigen.h b/src/include/acpi/acpigen.h index 4546cffd34..789dd47dcd 100644 --- a/src/include/acpi/acpigen.h +++ b/src/include/acpi/acpigen.h @@ -519,6 +519,7 @@ void acpigen_write_create_byte_field(uint8_t op, size_t byte_offset, const char void acpigen_write_create_word_field(uint8_t op, size_t byte_offset, const char *name); void acpigen_write_create_dword_field(uint8_t op, size_t byte_offset, const char *name); void acpigen_write_create_qword_field(uint8_t op, size_t byte_offset, const char *name); +void acpigen_write_field_name(const char *name, uint32_t size); /* * Generate ACPI AML code for _DSM method. * This function takes as input uuid for the device, set of callbacks and |