summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormanu <manu@NetBSD.org>2002-09-16 19:58:58 +0000
committermanu <manu@NetBSD.org>2002-09-16 19:58:58 +0000
commita9fed430869b7230c6945b2cfb1cd96e289c6716 (patch)
tree08f0cb319565295f2d2cb830da0dff5e8013b765
parente77de5cb68683212f97907bacc04feef53697583 (diff)
Initial support for APM on hpcarm (just enough to get battery state)
-rw-r--r--etc/etc.hpcarm/MAKEDEV10
-rw-r--r--usr.sbin/apm/Makefile4
2 files changed, 11 insertions, 3 deletions
diff --git a/etc/etc.hpcarm/MAKEDEV b/etc/etc.hpcarm/MAKEDEV
index 6ca9855d1d3..ccd4c55ca4d 100644
--- a/etc/etc.hpcarm/MAKEDEV
+++ b/etc/etc.hpcarm/MAKEDEV
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: MAKEDEV,v 1.6 2002/08/09 02:39:23 lukem Exp $
+# $NetBSD: MAKEDEV,v 1.7 2002/09/16 19:58:58 manu Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -115,6 +115,7 @@
# cfs* Coda file system device
# wsmux* wscons event multiplexor
# systrace syscall tracer
+# apm power management device
#
dialin=0
@@ -156,6 +157,7 @@ all)
makedev scsibus0 scsibus1 scsibus2 scsibus3
makedev clockctl
makedev systrace
+ makedev apm
;;
ramdisk|floppy)
@@ -700,6 +702,12 @@ systrace)
chmod 644 systrace
;;
+apm)
+ rm -f apm
+ mknod apm c 103 0
+ chmod 644 apm
+ ;;
+
local)
if [ -f "$0.local" ]; then
umask 0
diff --git a/usr.sbin/apm/Makefile b/usr.sbin/apm/Makefile
index ca9542ee68a..a719c271456 100644
--- a/usr.sbin/apm/Makefile
+++ b/usr.sbin/apm/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.9 2002/06/18 05:24:44 itojun Exp $
+# $NetBSD: Makefile,v 1.10 2002/09/16 19:59:00 manu Exp $
-.if (${MACHINE} == "i386" || ${MACHINE} == "macppc")
+.if (${MACHINE} == "i386" || ${MACHINE} == "macppc" || ${MACHINE} == "hpcarm")
PROG= apm
SRCS= apm.c apmsubr.c
.PATH: ${.CURDIR}/../apmd