Add the kttcp device.
This commit is contained in:
parent
473e69750b
commit
7f2925365c
@ -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 @@ all)
|
||||
makedev clockctl
|
||||
makedev systrace
|
||||
makedev bktr
|
||||
makedev kttcp
|
||||
;;
|
||||
|
||||
minimal)
|
||||
@ -766,6 +768,12 @@ systrace)
|
||||
chmod 644 systrace
|
||||
;;
|
||||
|
||||
kttcp)
|
||||
rm -f kttcp
|
||||
mknod kttcp c 72 0
|
||||
chmod 600 kttcp
|
||||
;;
|
||||
|
||||
local)
|
||||
umask 0
|
||||
sh $0.local all
|
||||
|
@ -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 @@ all)
|
||||
makedev clockctl
|
||||
makedev nsmb0 nsmb1 nsmb2 nsmb3
|
||||
makedev systrace
|
||||
makedev kttcp
|
||||
;;
|
||||
|
||||
audio)
|
||||
@ -963,6 +965,12 @@ systrace)
|
||||
chmod 644 systrace
|
||||
;;
|
||||
|
||||
kttcp)
|
||||
rm -f kttcp
|
||||
mknod kttcp c 91 0
|
||||
chmod 600 kttcp
|
||||
;;
|
||||
|
||||
local)
|
||||
umask 0
|
||||
sh $0.local all
|
||||
|
@ -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 @@ cdev_decl(clockctl);
|
||||
#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 @@ struct cdevsw cdevsw[] =
|
||||
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 @@ static int chrtoblktbl[] = {
|
||||
/* 68 */ NODEV,
|
||||
/* 69 */ NODEV,
|
||||
/* 70 */ NODEV,
|
||||
/* 71 */ NODEV,
|
||||
/* 72 */ NODEV,
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -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 @@ cdev_decl(pci);
|
||||
#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 @@ struct cdevsw cdevsw[] =
|
||||
#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 @@ static int chrtoblktbl[] = {
|
||||
/* 88 */ NODEV,
|
||||
/* 89 */ NODEV,
|
||||
/* 90 */ NODEV,
|
||||
/* 91 */ NODEV,
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user