Michael Niewöhner has submitted this change. ( https://review.coreboot.org/c/coreboot/+/68787 )
Change subject: acpigen: export acpigen_write_field_name ......................................................................
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 --- M src/acpi/acpigen.c M src/include/acpi/acpigen.h 2 files changed, 17 insertions(+), 1 deletion(-)
Approvals: build bot (Jenkins): Verified Angel Pons: Looks good to me, approved
diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c index acef34d..85b49b2 100644 --- a/src/acpi/acpigen.c +++ b/src/acpi/acpigen.c @@ -532,7 +532,7 @@ 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 4546cff..789dd47 100644 --- a/src/include/acpi/acpigen.h +++ b/src/include/acpi/acpigen.h @@ -519,6 +519,7 @@ 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