Source-Changes-HG archive

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

[src/trunk]: src Add dmoverio.



details:   https://anonhg.NetBSD.org/src/rev/8f9f40c0d759
branches:  trunk
changeset: 534701:8f9f40c0d759
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Aug 02 00:45:37 2002 +0000

description:
Add dmoverio.

diffstat:

 etc/etc.i386/MAKEDEV      |  10 +++++++++-
 sys/arch/i386/i386/conf.c |   9 +++++++--
 2 files changed, 16 insertions(+), 3 deletions(-)

diffs (84 lines):

diff -r 9a20ad6a995f -r 8f9f40c0d759 etc/etc.i386/MAKEDEV
--- a/etc/etc.i386/MAKEDEV      Fri Aug 02 00:43:12 2002 +0000
+++ b/etc/etc.i386/MAKEDEV      Fri Aug 02 00:45:37 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.179 2002/06/28 23:29:59 thorpej Exp $
+#      $NetBSD: MAKEDEV,v 1.180 2002/08/02 00:47:59 thorpej Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -138,6 +138,7 @@
 #      nsmb*   SMB requester
 #      systrace syscall tracer
 #      kttcp   kernel ttcp helper device
+#      dmoverio hardware-assisted data movers
 #
 
 dialin=0
@@ -196,6 +197,7 @@
        makedev nsmb0 nsmb1 nsmb2 nsmb3
        makedev systrace
        makedev kttcp
+       makedev dmoverio
        ;;
 
 audio)
@@ -971,6 +973,12 @@
        chmod 600 kttcp
        ;;
 
+dmoverio)
+       rm -f dmoverio
+       mknod dmoverio c 92 0
+       chmod 644 dmoverio
+       ;;
+
 local)
        umask 0
        sh $0.local all
diff -r 9a20ad6a995f -r 8f9f40c0d759 sys/arch/i386/i386/conf.c
--- a/sys/arch/i386/i386/conf.c Fri Aug 02 00:43:12 2002 +0000
+++ b/sys/arch/i386/i386/conf.c Fri Aug 02 00:45:37 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.158 2002/07/19 16:38:20 thorpej Exp $       */
+/*     $NetBSD: conf.c,v 1.159 2002/08/02 00:45:37 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.158 2002/07/19 16:38:20 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.159 2002/08/02 00:45:37 thorpej Exp $");
 
 #include "opt_compat_svr4.h"
 #include "opt_systrace.h"
@@ -264,6 +264,9 @@
 #include "kttcp.h"
 cdev_decl(kttcp);
 
+#include "dmoverio.h"
+cdev_decl(dmoverio);
+
 struct cdevsw  cdevsw[] =
 {
        cdev_cn_init(1,cn),             /* 0: virtual console */
@@ -369,6 +372,7 @@
        cdev_notdef(),                  /* 90: system call tracing */
 #endif
        cdev__oci_init(NKTTCP,kttcp),   /* 91: kernel ttcp helper */
+       cdev_clonemisc_init(NDMOVERIO,dmoverio),/* 92: data mover interface */
 };
 int    nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
 
@@ -502,6 +506,7 @@
        /* 89 */        NODEV,
        /* 90 */        NODEV,
        /* 91 */        NODEV,
+       /* 92 */        NODEV,
 };
 
 /*



Home | Main Index | Thread Index | Old Index