summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2006-01-06 16:22:47 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2006-01-06 16:22:47 +0000
commit4ad969a6fa9e7f08bae4f612a5ecac37859e9e4c (patch)
treec028b2eb5e903e485eda4d7011f0571130ec9861 /sys
parent0dc4a2eedc6227ff0949fd512350afbe36d1195b (diff)
Two helper macros for setting SLP_TYPx values.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/acpi/acpireg.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpireg.h b/sys/dev/acpi/acpireg.h
index 8cac200f83a..528d3d1dd5f 100644
--- a/sys/dev/acpi/acpireg.h
+++ b/sys/dev/acpi/acpireg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpireg.h,v 1.7 2006/01/05 21:22:21 grange Exp $ */
+/* $OpenBSD: acpireg.h,v 1.8 2006/01/06 16:22:46 grange Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Marco Peereboom <marco@opebsd.org>
@@ -429,6 +429,8 @@ struct acpi_facs {
#define ACPI_PM1_SCI_EN 0x0001
#define ACPI_PM1_BM_RLD 0x0002
#define ACPI_PM1_GBL_RLS 0x0004
+#define ACPI_PM1_SLP_TYPX(x) ((x) << 10)
+#define ACPI_PM1_SLP_TYPX_MASK 0x1c00
#define ACPI_PM1_SLP_EN 0x2000
/*