Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/macppc Add kttcp device.



details:   https://anonhg.NetBSD.org/src/rev/01bcc2e3f4a5
branches:  trunk
changeset: 533409:01bcc2e3f4a5
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Jun 29 19:04:45 2002 +0000

description:
Add kttcp device.

diffstat:

 sys/arch/macppc/macppc/conf.c |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (36 lines):

diff -r 227ace5aff22 -r 01bcc2e3f4a5 sys/arch/macppc/macppc/conf.c
--- a/sys/arch/macppc/macppc/conf.c     Sat Jun 29 18:27:30 2002 +0000
+++ b/sys/arch/macppc/macppc/conf.c     Sat Jun 29 19:04:45 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.43 2002/06/18 12:35:09 wiz Exp $    */
+/*     $NetBSD: conf.c,v 1.44 2002/06/29 19:04:45 matt Exp $   */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -185,6 +185,9 @@
 #include "pci.h"
 cdev_decl(pci);
 
+#include "kttcp.h"
+cdev_decl(kttcp);
+
 struct cdevsw cdevsw[] = {
        cdev_cn_init(1,cn),             /* 0: virtual console */
        cdev_ctty_init(1,ctty),         /* 1: control tty */
@@ -255,6 +258,7 @@
        cdev_notdef(),                  /* 63: system call tracing */
 #endif
        cdev_apm_init(NAPM,apm),        /* 64: Advanced Power Management */
+       cdev__oci_init(NKTTCP,kttcp),   /* 65: kernel ttcp helper */
 };
 int nchrdev = sizeof cdevsw / sizeof cdevsw[0];
 
@@ -352,6 +356,8 @@
        /* 61 */        NODEV,
        /* 62 */        NODEV,
        /* 63 */        NODEV,
+       /* 64 */        NODEV,
+       /* 65 */        NODEV,
 };
 
 /*



Home | Main Index | Thread Index | Old Index