summaryrefslogtreecommitdiff
path: root/shutdown/acpi_shutdown.h
diff options
context:
space:
mode:
Diffstat (limited to 'shutdown/acpi_shutdown.h')
-rw-r--r--shutdown/acpi_shutdown.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/shutdown/acpi_shutdown.h b/shutdown/acpi_shutdown.h
new file mode 100644
index 00000000..50b7f1f6
--- /dev/null
+++ b/shutdown/acpi_shutdown.h
@@ -0,0 +1,18 @@
+#ifndef _ACPI_SHUTDOWN_H_
+#define _ACPI_SHUTDOWN_H_
+
+#include <hurd/paths.h>
+
+#define _SERVERS_ACPI _SERVERS "/acpi/tables"
+#define SERVERS_ACPI_FADT _SERVERS_ACPI "/FACP"
+#define SLP_TYP0 (0x0 << 10)
+#define SLP_TYP5 (0x5 << 10)
+#define SLP_EN (0x1 << 13)
+#define SCI_EN 1
+#define SMI_CMD_OFFSET 12
+#define SMI_EN_OFFSET 16
+#define PM1A_CTL_OFFSET 28
+
+void disappear_via_acpi(void);
+
+#endif