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 Move BDEV_LE detection to here.



details:   https://anonhg.NetBSD.org/src/rev/e13180f64cfe
branches:  trunk
changeset: 486447:e13180f64cfe
user:      matt <matt%NetBSD.org@localhost>
date:      Mon May 22 15:38:47 2000 +0000

description:
Move BDEV_LE detection to here.

diffstat:

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

diffs (40 lines):

diff -r fc3b1c266538 -r e13180f64cfe sys/arch/vax/vax/autoconf.c
--- a/sys/arch/vax/vax/autoconf.c       Mon May 22 15:34:05 2000 +0000
+++ b/sys/arch/vax/vax/autoconf.c       Mon May 22 15:38:47 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.53 2000/05/21 20:18:49 ragge Exp $      */
+/*     $NetBSD: autoconf.c,v 1.54 2000/05/22 15:38:47 matt Exp $       */
 
 /*
  * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -168,6 +168,7 @@
 static int ubtest(void *);
 static int jmfr(char *, struct device *, int);
 static int booted_qe(struct device *, void *);
+static int booted_le(struct device *, void *);
 static int booted_ze(struct device *, void *);
 static int booted_sd(struct device *, void *);
 static int booted_rl(struct device *, void *);
@@ -177,6 +178,7 @@
 
 int (*devreg[])(struct device *, void *) = {
        booted_qe,
+       booted_le,
        booted_ze,
        booted_de,
 #if NSD > 0 || NCD > 0
@@ -246,6 +248,14 @@
 #endif /* NDE */
 
 int
+booted_le(struct device *dev, void *aux)
+{
+       if (jmfr("le", dev, BDEV_LE))
+               return 0;
+       return 1;
+}
+
+int
 booted_ze(struct device *dev, void *aux)
 {
        if (jmfr("ze", dev, BDEV_ZE))



Home | Main Index | Thread Index | Old Index