Source-Changes-HG archive

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

[src/trunk]: src Add kttcp device.



details:   https://anonhg.NetBSD.org/src/rev/7d69bf041d72
branches:  trunk
changeset: 533876:7d69bf041d72
user:      simonb <simonb%NetBSD.org@localhost>
date:      Wed Jul 10 13:44:02 2002 +0000

description:
Add kttcp device.

diffstat:

 etc/etc.walnut/MAKEDEV        |  10 +++++++++-
 sys/arch/walnut/walnut/conf.c |   6 +++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diffs (74 lines):

diff -r 9e2d8d2b2740 -r 7d69bf041d72 etc/etc.walnut/MAKEDEV
--- a/etc/etc.walnut/MAKEDEV    Wed Jul 10 13:21:56 2002 +0000
+++ b/etc/etc.walnut/MAKEDEV    Wed Jul 10 13:44:02 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.21 2002/06/18 13:40:33 wiz Exp $
+#      $NetBSD: MAKEDEV,v 1.22 2002/07/10 13:44:19 simonb Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -94,6 +94,7 @@
 #      cfs*    Coda file system device
 #      wsmux*  wscons event multiplexor
 #      systrace syscall tracer
+#      kttcp   kernel ttcp helper
 #
 
 dialin=0
@@ -133,6 +134,7 @@
        makedev isdns
        makedev clockctl
        makedev systrace
+       makedev kttcp
        ;;
 
 ramdisk)
@@ -541,6 +543,12 @@
        chmod 644 systrace
        ;;
 
+kttcp)
+       rm -f kttcp
+       mknod kttcp c 61 0
+       chmod 600 kttcp
+       ;;
+
 local)
        umask 0
        sh $0.local all
diff -r 9e2d8d2b2740 -r 7d69bf041d72 sys/arch/walnut/walnut/conf.c
--- a/sys/arch/walnut/walnut/conf.c     Wed Jul 10 13:21:56 2002 +0000
+++ b/sys/arch/walnut/walnut/conf.c     Wed Jul 10 13:44:02 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.4 2002/06/17 16:33:20 christos Exp $        */
+/*     $NetBSD: conf.c,v 1.5 2002/07/10 13:44:02 simonb Exp $  */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -137,6 +137,8 @@
 cdev_decl(isdntel);
 #include "clockctl.h"
 cdev_decl(clockctl);
+#include "kttcp.h"
+cdev_decl(kttcp);
 
 struct cdevsw cdevsw[] = {
        cdev_cn_init(1,cn),             /* 0: virtual console */
@@ -204,6 +206,7 @@
 #else
        cdev_notdef(),                  /* 60: system call tracing */
 #endif
+       cdev__oci_init(NKTTCP,kttcp),   /* 61: kernel ttcp helper */
 };
 int nchrdev = sizeof cdevsw / sizeof cdevsw[0];
 
@@ -298,6 +301,7 @@
        /* 58 */        NODEV,
        /* 59 */        NODEV,
        /* 60 */        NODEV,
+       /* 61 */        NODEV,
 };
 
 /*



Home | Main Index | Thread Index | Old Index