From a9fed430869b7230c6945b2cfb1cd96e289c6716 Mon Sep 17 00:00:00 2001 From: manu Date: Mon, 16 Sep 2002 19:58:58 +0000 Subject: [PATCH] Initial support for APM on hpcarm (just enough to get battery state) --- etc/etc.hpcarm/MAKEDEV | 10 +++++++++- usr.sbin/apm/Makefile | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/etc/etc.hpcarm/MAKEDEV b/etc/etc.hpcarm/MAKEDEV index 6ca9855d1d30..ccd4c55ca4d2 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 ca9542ee68ae..a719c2714569 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