Source-Changes-HG archive

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

[src/trunk]: src Add sysmon at cdev 101.



details:   https://anonhg.NetBSD.org/src/rev/43f88d5157ae
branches:  trunk
changeset: 534573:43f88d5157ae
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Jul 29 18:26:58 2002 +0000

description:
Add sysmon at cdev 101.

diffstat:

 etc/etc.evbarm/MAKEDEV    |  15 ++++++++++++++-
 sys/arch/arm/arm32/conf.c |   8 +++++++-
 2 files changed, 21 insertions(+), 2 deletions(-)

diffs (81 lines):

diff -r 5babf9d61966 -r 43f88d5157ae etc/etc.evbarm/MAKEDEV
--- a/etc/etc.evbarm/MAKEDEV    Mon Jul 29 17:37:14 2002 +0000
+++ b/etc/etc.evbarm/MAKEDEV    Mon Jul 29 18:26:58 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.19 2002/07/22 01:56:38 ichiro Exp $
+#      $NetBSD: MAKEDEV,v 1.20 2002/07/29 18:27:48 thorpej Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -107,6 +107,7 @@
 #      wsmux*  wscons event multiplexor
 #      systrace syscall tracer
 #      kttcp   kernel ttcp helper
+#      sysmon  System Monitoring hardware
 #
 
 dialin=0
@@ -147,6 +148,7 @@
        makedev scsibus0 scsibus1 scsibus2 scsibus3
        makedev systrace
        makedev kttcp
+       makedev sysmon
        ;;
 
 ramdisk|floppy)
@@ -655,6 +657,17 @@
        chmod 600 kttcp
        ;;
 
+sysmon)
+       major=101
+       rm -f sysmon
+       mknod sysmon c $major 0
+       chmod 644 sysmon
+
+       rm -f watchdog
+       mknod watchdog c $major 1
+       chmod 644 watchdog
+       ;;
+
 local)
        umask 0
        sh $0.local all
diff -r 5babf9d61966 -r 43f88d5157ae sys/arch/arm/arm32/conf.c
--- a/sys/arch/arm/arm32/conf.c Mon Jul 29 17:37:14 2002 +0000
+++ b/sys/arch/arm/arm32/conf.c Mon Jul 29 18:26:58 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.16 2002/07/22 01:12:24 ichiro Exp $ */
+/*     $NetBSD: conf.c,v 1.17 2002/07/29 18:26:58 thorpej Exp $        */
 
 /*
  * Copyright (c) 1994-1998 Mark Brinicombe.
@@ -411,6 +411,9 @@
 #include "kttcp.h"
 cdev_decl(kttcp);
 
+#include <dev/sysmon/sysmonconf.h>
+cdev_decl(sysmon);
+
 struct cdevsw cdevsw[] = {
        cdev_mm_init(1,mm),                     /*  0: /dev/{null,mem,kmem,...} */
        cdev_swap_init(1,sw),                   /*  1: /dev/drum (swap pseudo-device) */
@@ -517,6 +520,7 @@
 #endif
        cdev__oci_init(NKTTCP,kttcp),           /* 99: kernel ttcp helper */
        cdev_tty_init(NIXPCOM,ixpcom),          /* 100: IXP1200 serial port */
+       cdev_sysmon_init(NSYSMON, sysmon),      /* 101: System Monitor */
 };
 
 int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]);
@@ -659,6 +663,8 @@
     /* 97 */       NODEV,
     /* 98 */       NODEV,
     /* 99 */       NODEV,
+    /* 100 */      NODEV,
+    /* 101 */      NODEV,
 };
 
 /*



Home | Main Index | Thread Index | Old Index