diff options
author | Damien Zammit <damien@zamaudio.com> | 2022-09-12 10:39:45 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-09-12 20:32:59 +0200 |
commit | 4830c981325d53f8a4372288dbf0ef77a22059da (patch) | |
tree | 892cd79901ed178e964cbfc25da90ec2bbb99fa9 /shutdown/acpi_shutdown.h | |
parent | 160fb63ee0c72f165ab131c4d725d9badaa646ab (diff) | |
download | hurd-4830c981325d53f8a4372288dbf0ef77a22059da.tar.gz hurd-4830c981325d53f8a4372288dbf0ef77a22059da.tar.bz2 hurd-4830c981325d53f8a4372288dbf0ef77a22059da.zip |
shutdown: Use new acpi RPC to halt machine, clean up
This allows clean shutdown of all modern x86 machines
(not just qemu) by using the acpi translator to call
into libacpica code.
Message-Id: <20220912103837.556815-3-damien@zamaudio.com>
Diffstat (limited to 'shutdown/acpi_shutdown.h')
-rw-r--r-- | shutdown/acpi_shutdown.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/shutdown/acpi_shutdown.h b/shutdown/acpi_shutdown.h deleted file mode 100644 index 50b7f1f6..00000000 --- a/shutdown/acpi_shutdown.h +++ /dev/null @@ -1,18 +0,0 @@ -#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 |