Source-Changes-HG archive

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

[src/trunk]: src userland access to apm emulation.



details:   https://anonhg.NetBSD.org/src/rev/346ed2c0e333
branches:  trunk
changeset: 532943:346ed2c0e333
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Jun 18 05:24:44 2002 +0000

description:
userland access to apm emulation.

diffstat:

 distrib/sets/lists/base/md.macppc |   4 +++-
 distrib/sets/lists/comp/md.macppc |   3 ++-
 etc/etc.macppc/MAKEDEV            |  12 ++++++++++--
 usr.sbin/apm/Makefile             |   4 ++--
 usr.sbin/apmd/Makefile            |   4 ++--
 5 files changed, 19 insertions(+), 8 deletions(-)

diffs (95 lines):

diff -r a893c7d15d5c -r 346ed2c0e333 distrib/sets/lists/base/md.macppc
--- a/distrib/sets/lists/base/md.macppc Tue Jun 18 05:22:50 2002 +0000
+++ b/distrib/sets/lists/base/md.macppc Tue Jun 18 05:24:44 2002 +0000
@@ -1,7 +1,9 @@
-# $NetBSD: md.macppc,v 1.15 2002/06/17 15:27:05 itojun Exp $
+# $NetBSD: md.macppc,v 1.16 2002/06/18 05:24:45 itojun Exp $
 ./sbin/fdisk                   base-sysutil-root
 ./usr/mdec/bootxx              base-sysutil-bin
 ./usr/mdec/ofwboot             base-sysutil-bin
 ./usr/mdec/ofwboot.elf         base-sysutil-bin
 ./usr/mdec/ofwboot.xcf         base-sysutil-bin
 ./usr/mdec/mbr                 base-sysutil-bin
+./usr/sbin/apm                 base-sysutil-bin
+./usr/sbin/apmd                        base-sysutil-bin
diff -r a893c7d15d5c -r 346ed2c0e333 distrib/sets/lists/comp/md.macppc
--- a/distrib/sets/lists/comp/md.macppc Tue Jun 18 05:22:50 2002 +0000
+++ b/distrib/sets/lists/comp/md.macppc Tue Jun 18 05:24:44 2002 +0000
@@ -1,9 +1,10 @@
-# $NetBSD: md.macppc,v 1.20 2001/05/03 13:17:26 soren Exp $
+# $NetBSD: md.macppc,v 1.21 2002/06/18 05:24:45 itojun Exp $
 ./usr/include/macppc   comp-c-include
 ./usr/include/macppc/_G_config.h       comp-c-include
 ./usr/include/macppc/adbsys.h  comp-c-include
 ./usr/include/macppc/ansi.h    comp-c-include
 ./usr/include/macppc/aout_machdep.h    comp-c-include
+./usr/include/macppc/apmvar.h          comp-c-include
 ./usr/include/macppc/asm.h     comp-c-include
 ./usr/include/macppc/autoconf.h        comp-c-include
 ./usr/include/macppc/bat.h     comp-c-include
diff -r a893c7d15d5c -r 346ed2c0e333 etc/etc.macppc/MAKEDEV
--- a/etc/etc.macppc/MAKEDEV    Tue Jun 18 05:22:50 2002 +0000
+++ b/etc/etc.macppc/MAKEDEV    Tue Jun 18 05:24:44 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.61 2002/06/17 16:21:09 christos Exp $
+#      $NetBSD: MAKEDEV,v 1.62 2002/06/18 05:24:44 itojun Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -97,6 +97,7 @@
 #      random  random number generator
 #      lkm     loadable kernel modules interface
 #      audio*  audio devices
+#      apm     power management device
 #      tun*    network tunnel driver
 #      scsibus* SCSI busses, see scsi(4), scsictl(8)
 #      ss*     SCSI scanner
@@ -139,7 +140,7 @@
        makedev bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
        makedev tun0 tun1 ipl usbs ttyCZ0 ttyCY0 audio openfirm
        makedev music rmidi0 rmidi1 rmidi2 rmidi3 rmidi4 rmidi5 rmidi6 rmidi7
-       makedev lkm nvram local
+       makedev lkm nvram apm local
        makedev raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
        makedev scsibus0 scsibus1 scsibus2 scsibus3
        makedev isdns
@@ -745,6 +746,13 @@
        chmod 644 systrace
        ;;
 
+apm*)
+       rm -f apm apmctl
+       mknod apm c 64 0
+       mknod apmctl c 64 8
+       chmod 644 apm apmctl
+       ;;
+
 local)
        umask 0
        sh $0.local all
diff -r a893c7d15d5c -r 346ed2c0e333 usr.sbin/apm/Makefile
--- a/usr.sbin/apm/Makefile     Tue Jun 18 05:22:50 2002 +0000
+++ b/usr.sbin/apm/Makefile     Tue Jun 18 05:24:44 2002 +0000
@@ -1,6 +1,6 @@
-#      $NetBSD: Makefile,v 1.8 1997/10/23 06:29:14 lukem Exp $
+#      $NetBSD: Makefile,v 1.9 2002/06/18 05:24:44 itojun Exp $
 
-.if ${MACHINE} == "i386"
+.if (${MACHINE} == "i386" || ${MACHINE} == "macppc")
 PROG=  apm
 SRCS=  apm.c apmsubr.c
 .PATH: ${.CURDIR}/../apmd
diff -r a893c7d15d5c -r 346ed2c0e333 usr.sbin/apmd/Makefile
--- a/usr.sbin/apmd/Makefile    Tue Jun 18 05:22:50 2002 +0000
+++ b/usr.sbin/apmd/Makefile    Tue Jun 18 05:24:44 2002 +0000
@@ -1,6 +1,6 @@
-#      $NetBSD: Makefile,v 1.7 1999/12/15 20:34:03 garbled Exp $
+#      $NetBSD: Makefile,v 1.8 2002/06/18 05:24:44 itojun Exp $
 
-.if ${MACHINE} == "i386" || ${MACHINE} == "sparc"
+.if ${MACHINE} == "i386" || ${MACHINE} == "sparc" || ${MACHINE} == "macppc"
 PROG=  apmd
 SRCS=  apmd.c apmsubr.c
 .endif



Home | Main Index | Thread Index | Old Index