Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax/vax Recognize "ni" as boot device.



details:   https://anonhg.NetBSD.org/src/rev/20d25a12bbb3
branches:  trunk
changeset: 487951:20d25a12bbb3
user:      ragge <ragge%NetBSD.org@localhost>
date:      Thu Jun 15 19:49:37 2000 +0000

description:
Recognize "ni" as boot device.

diffstat:

 sys/arch/vax/vax/autoconf.c |  18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diffs (46 lines):

diff -r 65dc854ac96a -r 20d25a12bbb3 sys/arch/vax/vax/autoconf.c
--- a/sys/arch/vax/vax/autoconf.c       Thu Jun 15 19:09:15 2000 +0000
+++ b/sys/arch/vax/vax/autoconf.c       Thu Jun 15 19:49:37 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.62 2000/06/11 10:40:06 ragge Exp $      */
+/*     $NetBSD: autoconf.c,v 1.63 2000/06/15 19:49:37 ragge Exp $      */
 
 /*
  * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -178,6 +178,7 @@
 static int booted_le(struct device *, void *);
 static int booted_ze(struct device *, void *);
 static int booted_de(struct device *, void *);
+static int booted_ni(struct device *, void *);
 #if NSD > 0 || NCD > 0
 static int booted_sd(struct device *, void *);
 #endif
@@ -196,6 +197,7 @@
        booted_le,
        booted_ze,
        booted_de,
+       booted_ni,
 #if NSD > 0 || NCD > 0
        booted_sd,
 #endif
@@ -254,6 +256,20 @@
        return 0;
 }
 
+#if 1 /* NNI */
+#include <dev/bi/bivar.h>
+int
+booted_ni(struct device *dev, void *aux)
+{
+       struct bi_attach_args *ba = aux;
+
+       if (jmfr("ni", dev, BDEV_NI) || (kvtophys(ba->ba_ioh) != rpb.csrphy))
+               return 0;
+
+       return 1;
+}
+#endif /* NNI */
+
 #if 1 /* NDE */
 int
 booted_de(struct device *dev, void *aux)



Home | Main Index | Thread Index | Old Index