Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Add the kttcp device.
details: https://anonhg.NetBSD.org/src/rev/f772f4974643
branches: trunk
changeset: 533377:f772f4974643
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Jun 28 23:29:26 2002 +0000
description:
Add the kttcp device.
diffstat:
etc/etc.alpha/MAKEDEV | 10 +++++++++-
etc/etc.i386/MAKEDEV | 10 +++++++++-
sys/arch/alpha/alpha/conf.c | 10 ++++++++--
sys/arch/i386/i386/conf.c | 9 +++++++--
4 files changed, 33 insertions(+), 6 deletions(-)
diffs (168 lines):
diff -r b3ce951e5fb6 -r f772f4974643 etc/etc.alpha/MAKEDEV
--- a/etc/etc.alpha/MAKEDEV Fri Jun 28 23:27:13 2002 +0000
+++ b/etc/etc.alpha/MAKEDEV Fri Jun 28 23:29:26 2002 +0000
@@ -1,5 +1,5 @@
#!/bin/sh -
-# $NetBSD: MAKEDEV,v 1.99 2002/06/27 18:34:32 ross Exp $
+# $NetBSD: MAKEDEV,v 1.100 2002/06/28 23:36:10 thorpej Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -124,6 +124,7 @@
# stic* PixelStamp interface chip
# systrace syscall tracer
# bktr Brooktree 848/849/878/879 based TV cards
+# kttcp kernel ttcp helper device
dialin=0
dialout=524288
@@ -171,6 +172,7 @@
makedev clockctl
makedev systrace
makedev bktr
+ makedev kttcp
;;
minimal)
@@ -766,6 +768,12 @@
chmod 644 systrace
;;
+kttcp)
+ rm -f kttcp
+ mknod kttcp c 72 0
+ chmod 600 kttcp
+ ;;
+
local)
umask 0
sh $0.local all
diff -r b3ce951e5fb6 -r f772f4974643 etc/etc.i386/MAKEDEV
--- a/etc/etc.i386/MAKEDEV Fri Jun 28 23:27:13 2002 +0000
+++ b/etc/etc.i386/MAKEDEV Fri Jun 28 23:29:26 2002 +0000
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: MAKEDEV,v 1.178 2002/06/27 15:08:12 christos Exp $
+# $NetBSD: MAKEDEV,v 1.179 2002/06/28 23:29:59 thorpej Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -137,6 +137,7 @@
# radio* radio devices
# nsmb* SMB requester
# systrace syscall tracer
+# kttcp kernel ttcp helper device
#
dialin=0
@@ -194,6 +195,7 @@
makedev clockctl
makedev nsmb0 nsmb1 nsmb2 nsmb3
makedev systrace
+ makedev kttcp
;;
audio)
@@ -963,6 +965,12 @@
chmod 644 systrace
;;
+kttcp)
+ rm -f kttcp
+ mknod kttcp c 91 0
+ chmod 600 kttcp
+ ;;
+
local)
umask 0
sh $0.local all
diff -r b3ce951e5fb6 -r f772f4974643 sys/arch/alpha/alpha/conf.c
--- a/sys/arch/alpha/alpha/conf.c Fri Jun 28 23:27:13 2002 +0000
+++ b/sys/arch/alpha/alpha/conf.c Fri Jun 28 23:29:26 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: conf.c,v 1.64 2002/06/27 18:35:29 ross Exp $ */
+/* $NetBSD: conf.c,v 1.65 2002/06/28 23:34:48 thorpej Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@@ -37,7 +37,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.64 2002/06/27 18:35:29 ross Exp $");
+__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.65 2002/06/28 23:34:48 thorpej Exp $");
#include "opt_systrace.h"
#include <sys/param.h>
@@ -225,6 +225,9 @@
#include "bktr.h"
cdev_decl(bktr);
+#include "kttcp.h"
+cdev_decl(kttcp);
+
struct cdevsw cdevsw[] =
{
cdev_cn_init(1,cn), /* 0: virtual console */
@@ -313,6 +316,7 @@
cdev_notdef(), /* 70: system call tracing */
#endif
cdev_bktr_init(NBKTR, bktr), /* 71: Bt848 video capture device */
+ cdev__oci_init(NKTTCP,kttcp), /* 72: kernel ttcp helper */
};
int nchrdev = sizeof (cdevsw) / sizeof (cdevsw[0]);
@@ -425,6 +429,8 @@
/* 68 */ NODEV,
/* 69 */ NODEV,
/* 70 */ NODEV,
+ /* 71 */ NODEV,
+ /* 72 */ NODEV,
};
/*
diff -r b3ce951e5fb6 -r f772f4974643 sys/arch/i386/i386/conf.c
--- a/sys/arch/i386/i386/conf.c Fri Jun 28 23:27:13 2002 +0000
+++ b/sys/arch/i386/i386/conf.c Fri Jun 28 23:29:26 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: conf.c,v 1.156 2002/06/17 16:33:06 christos Exp $ */
+/* $NetBSD: conf.c,v 1.157 2002/06/28 23:29:26 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.156 2002/06/17 16:33:06 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.157 2002/06/28 23:29:26 thorpej Exp $");
#include "opt_compat_svr4.h"
#include "opt_systrace.h"
@@ -261,6 +261,9 @@
#include "clockctl.h"
cdev_decl(clockctl);
+#include "kttcp.h"
+cdev_decl(kttcp);
+
struct cdevsw cdevsw[] =
{
cdev_cn_init(1,cn), /* 0: virtual console */
@@ -365,6 +368,7 @@
#else
cdev_notdef(), /* 90: system call tracing */
#endif
+ cdev__oci_init(NKTTCP,kttcp), /* 91: kernel ttcp helper */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
@@ -497,6 +501,7 @@
/* 88 */ NODEV,
/* 89 */ NODEV,
/* 90 */ NODEV,
+ /* 91 */ NODEV,
};
/*
Home |
Main Index |
Thread Index |
Old Index