Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Initial support for APM on hpcarm (just enough to get batter...



details:   https://anonhg.NetBSD.org/src/rev/760c4478e38f
branches:  trunk
changeset: 536483:760c4478e38f
user:      manu <manu%NetBSD.org@localhost>
date:      Mon Sep 16 19:58:58 2002 +0000

description:
Initial support for APM on hpcarm (just enough to get battery state)

diffstat:

 etc/etc.hpcarm/MAKEDEV |  10 +++++++++-
 usr.sbin/apm/Makefile  |   4 ++--
 2 files changed, 11 insertions(+), 3 deletions(-)

diffs (52 lines):

diff -r d4c019487215 -r 760c4478e38f etc/etc.hpcarm/MAKEDEV
--- a/etc/etc.hpcarm/MAKEDEV    Mon Sep 16 19:52:52 2002 +0000
+++ b/etc/etc.hpcarm/MAKEDEV    Mon Sep 16 19:58:58 2002 +0000
@@ -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 @@
        makedev scsibus0 scsibus1 scsibus2 scsibus3
        makedev clockctl
        makedev systrace
+       makedev apm
        ;;
 
 ramdisk|floppy)
@@ -700,6 +702,12 @@
        chmod 644 systrace
        ;;
 
+apm)
+       rm -f apm
+       mknod apm c 103 0
+       chmod 644 apm
+       ;;
+
 local)
        if [ -f "$0.local" ]; then
                umask 0
diff -r d4c019487215 -r 760c4478e38f usr.sbin/apm/Makefile
--- a/usr.sbin/apm/Makefile     Mon Sep 16 19:52:52 2002 +0000
+++ b/usr.sbin/apm/Makefile     Mon Sep 16 19:58:58 2002 +0000
@@ -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



Home | Main Index | Thread Index | Old Index