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>
This commit is contained in:
Michael Niewöhner 2022-05-13 00:04:19 +02:00
parent b621d9bef3
commit 060dc7b26d
2 changed files with 2 additions and 1 deletions

View File

@ -532,7 +532,7 @@ static void acpigen_write_field_offset(uint32_t offset, uint32_t current_bit_pos
acpigen_write_field_length(diff_bits); 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_emit_simple_namestring(name);
acpigen_write_field_length(size); acpigen_write_field_length(size);

View File

@ -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_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_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_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. * Generate ACPI AML code for _DSM method.
* This function takes as input uuid for the device, set of callbacks and * This function takes as input uuid for the device, set of callbacks and