summaryrefslogtreecommitdiff
path: root/src/arch/x86/boot/acpigen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/boot/acpigen.c')
-rw-r--r--src/arch/x86/boot/acpigen.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/arch/x86/boot/acpigen.c b/src/arch/x86/boot/acpigen.c
index 0eee78a141..f714d5985b 100644
--- a/src/arch/x86/boot/acpigen.c
+++ b/src/arch/x86/boot/acpigen.c
@@ -408,6 +408,19 @@ int acpigen_write_method(const char *name, int nargs)
return len;
}
+int acpigen_write_device(const char *name)
+{
+ int len;
+
+ /* method op */
+ len = acpigen_emit_byte(0x5b);
+ len += acpigen_emit_byte(0x82);
+ len += acpigen_write_len_f();
+ len += acpigen_emit_namestring(name);
+
+ return len;
+}
+
/*
* Generates a func with max supported P-states.
*/