summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86/acpigen.c12
-rw-r--r--src/arch/x86/include/arch/acpigen.h2
2 files changed, 14 insertions, 0 deletions
diff --git a/src/arch/x86/acpigen.c b/src/arch/x86/acpigen.c
index 31b8dac173..5447752823 100644
--- a/src/arch/x86/acpigen.c
+++ b/src/arch/x86/acpigen.c
@@ -1168,6 +1168,18 @@ void acpigen_write_return_byte(uint8_t arg)
acpigen_write_byte(arg);
}
+void acpigen_write_return_integer(uint64_t arg)
+{
+ acpigen_emit_byte(RETURN_OP);
+ acpigen_write_integer(arg);
+}
+
+void acpigen_write_return_string(const char *arg)
+{
+ acpigen_emit_byte(RETURN_OP);
+ acpigen_write_string(arg);
+}
+
/*
* Generate ACPI AML code for _DSM method.
* This function takes as input uuid for the device, set of callbacks and
diff --git a/src/arch/x86/include/arch/acpigen.h b/src/arch/x86/include/arch/acpigen.h
index 572ae6c248..dcd8fb7a64 100644
--- a/src/arch/x86/include/arch/acpigen.h
+++ b/src/arch/x86/include/arch/acpigen.h
@@ -144,6 +144,8 @@ struct opregion {
unsigned long regionlen;
};
+void acpigen_write_return_integer(uint64_t arg);
+void acpigen_write_return_string(const char *arg);
void acpigen_write_len_f(void);
void acpigen_pop_len(void);
void acpigen_set_current(char *curr);