Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mscp Remove (more) VAX dependencies.



details:   https://anonhg.NetBSD.org/src/rev/07f290cfa9d3
branches:  trunk
changeset: 486372:07f290cfa9d3
user:      ragge <ragge%NetBSD.org@localhost>
date:      Sat May 20 13:41:33 2000 +0000

description:
Remove (more) VAX dependencies.

diffstat:

 sys/dev/mscp/mscp_disk.c |  28 ++--------------------------
 1 files changed, 2 insertions(+), 26 deletions(-)

diffs (56 lines):

diff -r 64d44cdc32fc -r 07f290cfa9d3 sys/dev/mscp/mscp_disk.c
--- a/sys/dev/mscp/mscp_disk.c  Sat May 20 13:38:58 2000 +0000
+++ b/sys/dev/mscp/mscp_disk.c  Sat May 20 13:41:33 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mscp_disk.c,v 1.23 2000/03/30 12:45:34 augustss Exp $  */
+/*     $NetBSD: mscp_disk.c,v 1.24 2000/05/20 13:41:33 ragge Exp $     */
 /*
  * Copyright (c) 1996 Ludd, University of Lule}, Sweden.
  * Copyright (c) 1988 Regents of the University of California.
@@ -65,7 +65,6 @@
 
 #include <machine/bus.h>
 #include <machine/cpu.h>
-#include <machine/rpb.h>
 
 #include <dev/mscp/mscp.h>
 #include <dev/mscp/mscpreg.h>
@@ -111,7 +110,7 @@
 int    ra_putonline __P((struct ra_softc *));
 
 struct cfattach ra_ca = {
-       sizeof(struct ra_softc), ramatch, raattach
+       sizeof(struct ra_softc), ramatch, rxattach
 };
 
 /*
@@ -141,29 +140,6 @@
        return 1;
 }
 
-/*
- * The attach routine only checks and prints drive type.
- * Bringing the disk online is done when the disk is accessed
- * the first time. 
- */
-void
-raattach(parent, self, aux)
-       struct  device *parent, *self;
-       void    *aux; 
-{
-       struct  ra_softc *ra = (void *)self;
-       struct  mscp_softc *mi = (void *)parent;
-
-       rxattach(parent, self, aux);
-       /*
-        * Find out if we booted from this disk.
-        */
-       if ((B_TYPE(bootdev) == BDEV_UDA) && (ra->ra_hwunit == B_UNIT(bootdev))
-           && (mi->mi_ctlrnr == B_CONTROLLER(bootdev))
-           && (mi->mi_adapnr == B_ADAPTOR(bootdev)))
-               booted_from = self;
-}
-
 /* 
  * (Try to) put the drive online. This is done the first time the
  * drive is opened, or if it har fallen offline.



Home | Main Index | Thread Index | Old Index