summaryrefslogtreecommitdiff
path: root/sys/arch/mips64/include
diff options
context:
space:
mode:
authorFrederic Cambus <fcambus@cvs.openbsd.org>2016-12-16 12:01:20 +0000
committerFrederic Cambus <fcambus@cvs.openbsd.org>2016-12-16 12:01:20 +0000
commit6bade498f41f004b1c6117009109ca8b4c5118c6 (patch)
tree59ceabdaa9481ce1fc180305a87239ea265cde28 /sys/arch/mips64/include
parent1b34fdf084109293655997cfbd74bda39b4cbd07 (diff)
Provide the "machdep.lidsuspend" sysctl on Loongson.
OK visa@
Diffstat (limited to 'sys/arch/mips64/include')
-rw-r--r--sys/arch/mips64/include/cpu.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/mips64/include/cpu.h b/sys/arch/mips64/include/cpu.h
index af67a5aa6ae..7eb47813237 100644
--- a/sys/arch/mips64/include/cpu.h
+++ b/sys/arch/mips64/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.111 2016/08/14 08:23:52 visa Exp $ */
+/* $OpenBSD: cpu.h,v 1.112 2016/12/16 12:01:19 fcambus Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -361,12 +361,14 @@ void cp0_calibrate(struct cpu_info *);
*/
#define CPU_ALLOWAPERTURE 1 /* allow mmap of /dev/xf86 */
/* 2 formerly: keyboard reset */
-#define CPU_MAXID 3 /* number of valid machdep ids */
+#define CPU_LIDSUSPEND 3 /* lid close causes a suspend */
+#define CPU_MAXID 4 /* number of valid machdep ids */
#define CTL_MACHDEP_NAMES { \
{ 0, 0 }, \
{ "allowaperture", CTLTYPE_INT }, \
{ 0, 0 }, \
+ { "lidsuspend", CTLTYPE_INT }, \
}
/*