summaryrefslogtreecommitdiff
path: root/sys/arch/arm/include/cpu.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-12-21 20:36:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-12-21 20:36:04 +0000
commit886a1c5b10c444b7ea32adf0e932600184886ba3 (patch)
treecd93c6d6afedc7abcf6dab0c444ea5dec63c644f /sys/arch/arm/include/cpu.h
parenta5c6c38ac3744b7a3b50cbe6e65213711ae19006 (diff)
sysctl machdep.lidsuspend=1 makes screen closures to cause a suspend.
(opening the screen does not yet wake the machine up, not yet sure if that is even possible yet)
Diffstat (limited to 'sys/arch/arm/include/cpu.h')
-rw-r--r--sys/arch/arm/include/cpu.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/arm/include/cpu.h b/sys/arch/arm/include/cpu.h
index 016b6b4f6f6..74626c507ed 100644
--- a/sys/arch/arm/include/cpu.h
+++ b/sys/arch/arm/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.10 2005/12/20 19:23:57 drahn Exp $ */
+/* $OpenBSD: cpu.h,v 1.11 2005/12/21 20:36:02 deraadt Exp $ */
/* $NetBSD: cpu.h,v 1.34 2003/06/23 11:01:08 martin Exp $ */
/*
@@ -64,8 +64,9 @@
#define CPU_KBDRESET 8 /* int: console keyboard reset */
#define CPU_ZTSRAWMODE 9 /* int: zts returns unscaled x/y */
#define CPU_ZTSSCALE 10 /* struct: zts scaling parameters */
-#define CPU_MAXSPEED 11 /* number of valid machdep ids */
-#define CPU_MAXID 12 /* number of valid machdep ids */
+#define CPU_MAXSPEED 11 /* int: number of valid machdep ids */
+#define CPU_LIDSUSPEND 12 /* int: closing lid causes suspend */
+#define CPU_MAXID 13 /* number of valid machdep ids */
#define CTL_MACHDEP_NAMES { \
{ 0, 0 }, \
@@ -79,7 +80,8 @@
{ "kbdreset", CTLTYPE_INT }, \
{ "ztsrawmode", CTLTYPE_INT }, \
{ "ztsscale", CTLTYPE_STRUCT }, \
- { "maxspeed", CTLTYPE_INT } \
+ { "maxspeed", CTLTYPE_INT }, \
+ { "lidsuspend", CTLTYPE_INT } \
}
#ifdef _KERNEL