Use linear memory mapping for MV1. No map registers.

This commit is contained in:
ragge 2001-05-01 13:20:02 +00:00
parent e0a272b2cb
commit 9ee994852e
1 changed files with 12 additions and 2 deletions

View File

@ -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) 1996 Jonathan Stone.
* Copyright (c) 1994, 1996 Ludd, University of Lule}, Sweden. * Copyright (c) 1994, 1996 Ludd, University of Lule}, Sweden.
@ -47,11 +47,14 @@
#include <machine/nexus.h> #include <machine/nexus.h>
#include <machine/cpu.h> #include <machine/cpu.h>
#include <machine/sgmap.h> #include <machine/sgmap.h>
#include <machine/sid.h>
#include <dev/qbus/ubavar.h> #include <dev/qbus/ubavar.h>
#include <arch/vax/uba/uba_common.h> #include <arch/vax/uba/uba_common.h>
#include "opt_cputype.h"
/* Some Qbus-specific defines */ /* Some Qbus-specific defines */
#define QBASIZE (8192 * VAX_NBPG) #define QBASIZE (8192 * VAX_NBPG)
#define QBAMAP 0x20088000 #define QBAMAP 0x20088000
@ -72,6 +75,7 @@ struct cfattach uba_ibus_ca = {
}; };
extern struct vax_bus_space vax_mem_bus_space; extern struct vax_bus_space vax_mem_bus_space;
extern struct vax_bus_dma_tag vax_bus_dma_tag;
int int
qba_match(parent, vcf, aux) qba_match(parent, vcf, aux)
@ -109,7 +113,13 @@ qba_attach(parent, self, aux)
sc->uv_size = QBASIZE; /* Size in bytes of Qbus space */ sc->uv_size = QBASIZE; /* Size in bytes of Qbus space */
sc->uv_addr = QBAMAP; /* Physical address of map registers */ 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); uba_attach(&sc->uv_sc, QIOPAGE);
} }