diff options
-rw-r--r-- | src/acpi/acpigen.c | 8 | ||||
-rw-r--r-- | src/include/acpi/acpigen.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c index 8eea91c5f4..2479f58ef4 100644 --- a/src/acpi/acpigen.c +++ b/src/acpi/acpigen.c @@ -1385,6 +1385,14 @@ void acpigen_write_store_int_to_op(uint64_t src, uint8_t dst) acpigen_emit_byte(dst); } +/* Store ("namestr", "namestr") */ +void acpigen_write_store_namestr_to_namestr(const char *src, const char *dst) +{ + acpigen_write_store(); + acpigen_emit_namestring(src); + acpigen_emit_namestring(dst); +} + /* Or (arg1, arg2, res) */ void acpigen_write_or(uint8_t arg1, uint8_t arg2, uint8_t res) { diff --git a/src/include/acpi/acpigen.h b/src/include/acpi/acpigen.h index 0b21938f05..ae501432d1 100644 --- a/src/include/acpi/acpigen.h +++ b/src/include/acpi/acpigen.h @@ -488,6 +488,7 @@ void acpigen_write_store_int_to_op(uint64_t src, uint8_t dst); void acpigen_write_store_ops(uint8_t src, uint8_t dst); void acpigen_write_store_op_to_namestr(uint8_t src, const char *dst); void acpigen_write_store_namestr_to_op(const char *src, uint8_t dst); +void acpigen_write_store_namestr_to_namestr(const char *src, const char *dst); void acpigen_write_or(uint8_t arg1, uint8_t arg2, uint8_t res); void acpigen_write_xor(uint8_t arg1, uint8_t arg2, uint8_t res); void acpigen_write_and(uint8_t arg1, uint8_t arg2, uint8_t res); |