Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax/uba Use linear memory mapping for MV1. No map r...



details:   https://anonhg.NetBSD.org/src/rev/8dd717f054c6
branches:  trunk
changeset: 509319:8dd717f054c6
user:      ragge <ragge%NetBSD.org@localhost>
date:      Tue May 01 13:20:02 2001 +0000

description:
Use linear memory mapping for MV1. No map registers.

diffstat:

 sys/arch/vax/uba/uba_ibus.c |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (47 lines):

diff -r 42cda2af0cfc -r 8dd717f054c6 sys/arch/vax/uba/uba_ibus.c
--- a/sys/arch/vax/uba/uba_ibus.c       Tue May 01 13:18:27 2001 +0000
+++ b/sys/arch/vax/uba/uba_ibus.c       Tue May 01 13:20:02 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uba_ibus.c,v 1.1 1999/08/07 10:36:47 ragge Exp $          */
+/*     $NetBSD: uba_ibus.c,v 1.2 2001/05/01 13:20:02 ragge Exp $          */
 /*
  * Copyright (c) 1996 Jonathan Stone.
  * Copyright (c) 1994, 1996 Ludd, University of Lule}, Sweden.
@@ -47,11 +47,14 @@
 #include <machine/nexus.h>
 #include <machine/cpu.h>
 #include <machine/sgmap.h>
+#include <machine/sid.h>
 
 #include <dev/qbus/ubavar.h>
 
 #include <arch/vax/uba/uba_common.h>
 
+#include "opt_cputype.h"
+
 /* Some Qbus-specific defines */
 #define        QBASIZE (8192 * VAX_NBPG)
 #define        QBAMAP  0x20088000
@@ -72,6 +75,7 @@
 };
 
 extern struct vax_bus_space vax_mem_bus_space;
+extern struct vax_bus_dma_tag vax_bus_dma_tag;
 
 int
 qba_match(parent, vcf, aux)
@@ -109,7 +113,13 @@
        sc->uv_size = QBASIZE;  /* Size in bytes of Qbus space */
        sc->uv_addr = QBAMAP;   /* Physical address of map registers */
 
-       uba_dma_init(sc);
+#if defined(VAX610)
+       if (vax_boardtype == VAX_BTYP_610) {
+               sc->uv_sc.uh_dmat = &vax_bus_dma_tag;
+               sc->uv_sc.uh_beforescan = NULL;
+       } else
+#endif
+               uba_dma_init(sc);
        uba_attach(&sc->uv_sc, QIOPAGE);
 }
 



Home | Main Index | Thread Index | Old Index