From dda377334195e99d66dc6b37c32d383d020990a1 Mon Sep 17 00:00:00 2001 From: Martin Natano Date: Tue, 28 Feb 2017 10:39:08 +0000 Subject: Untangle abstract sleep modes from ACPI sleep states. This paves the way for further work in the area. idea and ok deraadt ok mlarkin --- sys/dev/acpi/acpivar.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sys/dev/acpi/acpivar.h') 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 * @@ -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); -- cgit v1.2.3