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 Understand qt as root device.



details:   https://anonhg.NetBSD.org/src/rev/880be1d6ae85
branches:  trunk
changeset: 551129:880be1d6ae85
user:      ragge <ragge%NetBSD.org@localhost>
date:      Fri Aug 29 13:52:45 2003 +0000

description:
Understand qt as root device.

diffstat:

 sys/arch/vax/vax/autoconf.c |  15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diffs (50 lines):

diff -r 0be9180bf88e -r 880be1d6ae85 sys/arch/vax/vax/autoconf.c
--- a/sys/arch/vax/vax/autoconf.c       Fri Aug 29 13:51:47 2003 +0000
+++ b/sys/arch/vax/vax/autoconf.c       Fri Aug 29 13:52:45 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.78 2003/07/15 02:15:02 lukem Exp $      */
+/*     $NetBSD: autoconf.c,v 1.79 2003/08/29 13:52:45 ragge Exp $      */
 
 /*
  * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.78 2003/07/15 02:15:02 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.79 2003/08/29 13:52:45 ragge Exp $");
 
 #include "opt_compat_netbsd.h"
 
@@ -184,6 +184,7 @@
 static int ubtest(void *);
 static int jmfr(char *, struct device *, int);
 static int booted_qe(struct device *, void *);
+static int booted_qt(struct device *, void *);
 static int booted_le(struct device *, void *);
 static int booted_ze(struct device *, void *);
 static int booted_de(struct device *, void *);
@@ -206,6 +207,7 @@
 
 int (*devreg[])(struct device *, void *) = {
        booted_qe,
+       booted_qt,
        booted_le,
        booted_ze,
        booted_de,
@@ -313,6 +315,15 @@
        return 1;
 }
 
+int
+booted_qt(struct device *dev, void *aux)
+{
+       if (jmfr("qt", dev, BDEV_QE) || ubtest(aux))
+               return 0;
+
+       return 1;
+}
+
 #if 1 /* NQE */
 int
 booted_qe(struct device *dev, void *aux)



Home | Main Index | Thread Index | Old Index