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 Detect "rl" as root device.
details: https://anonhg.NetBSD.org/src/rev/4118f3980d9c
branches: trunk
changeset: 485225:4118f3980d9c
user: ragge <ragge%NetBSD.org@localhost>
date: Sat Apr 22 16:43:47 2000 +0000
description:
Detect "rl" as root device.
diffstat:
sys/arch/vax/vax/autoconf.c | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diffs (48 lines):
diff -r c4e9c7b001c7 -r 4118f3980d9c sys/arch/vax/vax/autoconf.c
--- a/sys/arch/vax/vax/autoconf.c Sat Apr 22 16:42:25 2000 +0000
+++ b/sys/arch/vax/vax/autoconf.c Sat Apr 22 16:43:47 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.47 2000/04/16 16:03:42 matt Exp $ */
+/* $NetBSD: autoconf.c,v 1.48 2000/04/22 16:43:47 ragge Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -152,10 +152,12 @@
#include "sd.h"
#include "cd.h"
+#include "rl.h"
int booted_qe(struct device *, void *);
int booted_ze(struct device *, void *);
int booted_sd(struct device *, void *);
+int booted_rl(struct device *, void *);
int (*devreg[])(struct device *, void *) = {
booted_qe,
@@ -163,6 +165,9 @@
#if NSD > 0 || NCD > 0
booted_sd,
#endif
+#if NRL > 0
+ booted_rl,
+#endif
0,
};
@@ -245,3 +250,15 @@
return 0; /* Where did we come from??? */
}
#endif
+#if NRL > 0
+int
+booted_rl(dev, aux)
+ struct device *dev;
+ void *aux;
+{
+ if ((B_TYPE(bootdev) == BDEV_RL) &&
+ !strcmp("rl", dev->dv_cfdata->cf_driver->cd_name))
+ return 1; /* XXX should check unit number also */
+ return 0;
+}
+#endif
Home |
Main Index |
Thread Index |
Old Index