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 Want device-register, to detect qbus boot d...
details: https://anonhg.NetBSD.org/src/rev/04db33fc4b6c
branches: trunk
changeset: 473801:04db33fc4b6c
user: ragge <ragge%NetBSD.org@localhost>
date: Sun Jun 20 00:50:08 1999 +0000
description:
Want device-register, to detect qbus boot devices.
diffstat:
sys/arch/vax/vax/autoconf.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diffs (31 lines):
diff -r b3d1313effff -r 04db33fc4b6c sys/arch/vax/vax/autoconf.c
--- a/sys/arch/vax/vax/autoconf.c Sun Jun 20 00:04:47 1999 +0000
+++ b/sys/arch/vax/vax/autoconf.c Sun Jun 20 00:50:08 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.38 1999/06/07 20:16:14 thorpej Exp $ */
+/* $NetBSD: autoconf.c,v 1.39 1999/06/20 00:50:08 ragge Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -49,6 +49,7 @@
#include <machine/ka750.h>
#include <machine/ka650.h>
#include <machine/clock.h>
+#include <machine/rpb.h>
#include <vax/vax/gencons.h>
@@ -388,3 +389,13 @@
struct cfattach mem_sbi_ca = {
sizeof(struct mem_softc), mem_match, mem_attach
};
+
+void
+device_register(dev, aux)
+ struct device *dev;
+ void *aux;
+{
+ if ((B_TYPE(bootdev) == BDEV_QE) &&
+ !strcmp("qe", dev->dv_cfdata->cf_driver->cd_name))
+ booted_from = dev;
+}
Home |
Main Index |
Thread Index |
Old Index