Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 add coda (untested; same cdev numbe...



details:   https://anonhg.NetBSD.org/src/rev/c0e367291da0
branches:  trunk
changeset: 515002:c0e367291da0
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Sep 15 17:51:02 2001 +0000

description:
add coda (untested; same cdev number as sparc) and pci (tested).

diffstat:

 sys/arch/sparc64/sparc64/conf.c |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (55 lines):

diff -r 225e9efa27cb -r c0e367291da0 sys/arch/sparc64/sparc64/conf.c
--- a/sys/arch/sparc64/sparc64/conf.c   Sat Sep 15 17:44:47 2001 +0000
+++ b/sys/arch/sparc64/sparc64/conf.c   Sat Sep 15 17:51:02 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.17 2001/03/26 12:33:26 lukem Exp $ */
+/*     $NetBSD: conf.c,v 1.18 2001/09/15 17:51:02 mrg Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -44,6 +44,8 @@
  *     @(#)conf.c      8.3 (Berkeley) 11/14/93
  */
 
+/* XXX KEEP THIS FILE IN SYNC WITH THE arch/sparc/sparc/conf.c VERSION */
+
 #include "opt_compat_svr4.h"
 
 #include <sys/param.h>
@@ -100,6 +102,9 @@
 #include "ses.h"
 cdev_decl(ses);
 
+#include "vcoda.h"
+cdev_decl(vc_nb_);
+
 #include "i4b.h"
 #include "i4bctl.h"
 #include "i4btrc.h"
@@ -111,6 +116,9 @@
 cdev_decl(i4brbch);
 cdev_decl(i4btel);
 
+#include "pci.h"
+cdev_decl(pci);
+
 struct bdevsw  bdevsw[] =
 {
        bdev_notdef(),                  /* 0 */
@@ -191,7 +199,7 @@
        cdev_notdef(),                  /* 44 */
        cdev_notdef(),                  /* 45 */
        cdev_notdef(),                  /* 46 */
-       cdev_notdef(),                  /* 47 */
+       cdev_vc_nb_init(NVCODA,vc_nb_), /* 47: coda file system psuedo-device */
        cdev_notdef(),                  /* 48 */
        cdev_notdef(),                  /* 49 */
        cdev_notdef(),                  /* 50 */
@@ -267,6 +275,7 @@
        cdev_scsibus_init(NSCSIBUS,scsibus), /* 120: SCSI bus */
        cdev_disk_init(NRAID,raid),     /* 121: RAIDframe disk driver */
        cdev_tty_init(NPCONS,pcons),    /* 122: PROM console */
+       cdev_pci_init(NPCI,pci),        /* 123: PCI bus access device */
 };
 int    nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
 



Home | Main Index | Thread Index | Old Index