summaryrefslogtreecommitdiff
path: root/sys/arch/arm/include
diff options
context:
space:
mode:
authorUwe Stuehler <uwe@cvs.openbsd.org>2005-03-03 22:55:01 +0000
committerUwe Stuehler <uwe@cvs.openbsd.org>2005-03-03 22:55:01 +0000
commit12d30f69bf4ab7dc8a21091df30703e81cfe7049 (patch)
tree9f7f11703b39bd31d5ab980d736aa4df754081ef /sys/arch/arm/include
parent60df644cc19dc968a17230597b6d54e23416a506 (diff)
Support APM_IOC_PRN_CTL, and machdep.apmwarn as documented in apm(4), and
apmd(8); missing sysctl variable noticed by drahn@
Diffstat (limited to 'sys/arch/arm/include')
-rw-r--r--sys/arch/arm/include/cpu.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/arm/include/cpu.h b/sys/arch/arm/include/cpu.h
index e5e6ffb9667..3d80bee0b2a 100644
--- a/sys/arch/arm/include/cpu.h
+++ b/sys/arch/arm/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.5 2005/01/21 16:22:34 miod Exp $ */
+/* $OpenBSD: cpu.h,v 1.6 2005/03/03 22:55:00 uwe Exp $ */
/* $NetBSD: cpu.h,v 1.34 2003/06/23 11:01:08 martin Exp $ */
/*
@@ -60,7 +60,8 @@
#define CPU_CONSDEV 4 /* struct: dev_t of our console */
#define CPU_POWERSAVE 5 /* int: use CPU powersave mode */
#define CPU_ALLOWAPERTURE 6 /* int: allow mmap of /dev/xf86 */
-#define CPU_MAXID 7 /* number of valid machdep ids */
+#define CPU_APMWARN 7 /* APM battery warning percentage */
+#define CPU_MAXID 8 /* number of valid machdep ids */
#define CTL_MACHDEP_NAMES { \
{ 0, 0 }, \
@@ -70,6 +71,7 @@
{ "console_device", CTLTYPE_STRUCT }, \
{ "powersave", CTLTYPE_INT }, \
{ "allowaperture", CTLTYPE_INT }, \
+ { "apmwarn", CTLTYPE_INT }, \
}
#ifdef _KERNEL