summaryrefslogtreecommitdiff
path: root/sys/arch/mips64
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2007-12-18 08:29:03 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2007-12-18 08:29:03 +0000
commite08e626c1e0d6bd9408366747ec127b22bc76ef4 (patch)
treea66faefe5e2af39123dd45be7d1f54b5321aa7b4 /sys/arch/mips64
parent163e5cb01d451ff0ae1cd7e8d2d7ee8599d92891 (diff)
add power(4), a driver for the power button found on SGI O2's.
when machdep.kbdreset is set, and the correct interrupt is fired, the machine gets shut down. with help from and ok jsing@, ok miod@
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r--sys/arch/mips64/include/cpu.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/arch/mips64/include/cpu.h b/sys/arch/mips64/include/cpu.h
index 8683a2b93ae..46f7eaa9fe6 100644
--- a/sys/arch/mips64/include/cpu.h
+++ b/sys/arch/mips64/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.21 2007/11/25 16:40:04 jmc Exp $ */
+/* $OpenBSD: cpu.h,v 1.22 2007/12/18 08:29:02 jasper Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -400,11 +400,13 @@ extern int want_resched; /* resched() was called */
* CTL_MACHDEP definitions.
*/
#define CPU_ALLOWAPERTURE 1 /* allow mmap of /dev/xf86 */
-#define CPU_MAXID 2 /* number of valid machdep ids */
+#define CPU_KBDRESET 2 /* keyboard reset */
+#define CPU_MAXID 3 /* number of valid machdep ids */
-#define CTL_MACHDEP_NAMES { \
- { 0, 0 }, \
- { "allowaperture", CTLTYPE_INT }, \
+#define CTL_MACHDEP_NAMES { \
+ { 0, 0 }, \
+ { "allowaperture", CTLTYPE_INT }, \
+ { "kbdreset", CTLTYPE_INT }, \
}
/*