summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpivar.h
diff options
context:
space:
mode:
authorMartin Natano <natano@cvs.openbsd.org>2017-02-28 10:39:08 +0000
committerMartin Natano <natano@cvs.openbsd.org>2017-02-28 10:39:08 +0000
commitdda377334195e99d66dc6b37c32d383d020990a1 (patch)
tree8f754a35fe4c2871b9c02cb51767721a8c02608c /sys/dev/acpi/acpivar.h
parent733d2987ec55a3619abe4d6a79d7386ac8c4b770 (diff)
Untangle abstract sleep modes from ACPI sleep states. This paves the way
for further work in the area. idea and ok deraadt ok mlarkin
Diffstat (limited to 'sys/dev/acpi/acpivar.h')
-rw-r--r--sys/dev/acpi/acpivar.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpivar.h b/sys/dev/acpi/acpivar.h
index bb6404ed0ed..d521a90ac3d 100644
--- a/sys/dev/acpi/acpivar.h
+++ b/sys/dev/acpi/acpivar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpivar.h,v 1.84 2017/02/22 16:39:56 jcs Exp $ */
+/* $OpenBSD: acpivar.h,v 1.85 2017/02/28 10:39:07 natano Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
@@ -307,6 +307,11 @@ void acpi_attach_machdep(struct acpi_softc *);
int acpi_interrupt(void *);
void acpi_powerdown(void);
void acpi_reset(void);
+
+
+#define ACPI_SLEEP_SUSPEND 0x01
+#define ACPI_SLEEP_HIBERNATE 0x02
+
int acpi_sleep_state(struct acpi_softc *, int);
void acpi_sleep_clocks(struct acpi_softc *, int);
int acpi_sleep_cpu(struct acpi_softc *, int);