From 8e391d3452902ac1a71124118e811eaf378d0779 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Wed, 30 Sep 2020 23:17:41 +0000 Subject: acpigen: Add helpers for common Store operations Add helpers for some store operations: Store(INTEGER, NAME) ex: Store (100, SAVE) Store(INTEGER, OP) ex: Store (100, Local0) Change-Id: Ia1b3f451acbfb2fc50180a8dcd96db24d330c946 Signed-off-by: Duncan Laurie Reviewed-on: https://review.coreboot.org/c/coreboot/+/46255 Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) --- src/include/acpi/acpigen.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include/acpi') diff --git a/src/include/acpi/acpigen.h b/src/include/acpi/acpigen.h index 10e328b8b8..e44326790b 100644 --- a/src/include/acpi/acpigen.h +++ b/src/include/acpi/acpigen.h @@ -361,6 +361,8 @@ void acpigen_write_power_res(const char *name, uint8_t level, uint16_t order, const char * const dev_states[], size_t dev_states_count); void acpigen_write_sleep(uint64_t sleep_ms); void acpigen_write_store(void); +void acpigen_write_store_int_to_namestr(uint64_t src, const char *dst); +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_or(uint8_t arg1, uint8_t arg2, uint8_t res); -- cgit v1.2.3