[coreboot-gerrit] New patch to review for coreboot: arch/x86/acpigen: Implement ACPI fucntion to return integer & string
Naresh Solanki (naresh.solanki@intel.com)
gerrit at coreboot.org
Wed Nov 16 20:14:46 CET 2016
Naresh Solanki (naresh.solanki at intel.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/17450
-gerrit
commit 687dcf6dbdf5a68ae84e216526074163b4427044
Author: Naresh G Solanki <naresh.solanki at intel.com>
Date: Thu Nov 17 00:16:29 2016 +0530
arch/x86/acpigen: Implement ACPI fucntion to return integer & string
Add ACPI method to return integer & string.
Change-Id: I2a668ccadecb71b71531e2eb53a52015fca96738
Signed-off-by: Naresh G Solanki <naresh.solanki at intel.com>
---
src/arch/x86/acpigen.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/src/arch/x86/acpigen.c b/src/arch/x86/acpigen.c
index 31b8dac..5447752 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
More information about the coreboot-gerrit
mailing list