summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-12-28 19:43:36 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-12-28 19:43:36 +0000
commit3c188707056cc91217824e195dc827249f1cd2e9 (patch)
tree0ab8e719df11b09113c4b5eddbd3df2dab3afd4f
parent432c00290cf0e10dfc293a23e574cbf2fb08100d (diff)
dma_cachectl() takes a va and computes the pa from it, no need to invoke it
a second time with the pa...
-rw-r--r--sys/arch/mvme88k/dev/if_le.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/arch/mvme88k/dev/if_le.c b/sys/arch/mvme88k/dev/if_le.c
index f2be41dc596..767935a62f2 100644
--- a/sys/arch/mvme88k/dev/if_le.c
+++ b/sys/arch/mvme88k/dev/if_le.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_le.c,v 1.1 2003/12/27 23:58:11 miod Exp $ */
+/* $OpenBSD: if_le.c,v 1.2 2003/12/28 19:43:35 miod Exp $ */
/*-
* Copyright (c) 1982, 1992, 1993
@@ -199,6 +199,7 @@ vle_intr(sc)
{
register struct vlereg1 *reg1 = (struct vlereg1 *)((struct le_softc *)sc)->sc_r1;
int rc;
+
rc = am7990_intr(sc);
ENABLE_INTR;
return (rc);
@@ -211,10 +212,8 @@ vle_copytobuf_contig(sc, from, boff, len)
int boff, len;
{
volatile caddr_t buf = sc->sc_mem;
- volatile caddr_t phys = (caddr_t)sc->sc_addr;
dma_cachectl((vaddr_t)buf + boff, len, DMA_CACHE_SYNC);
- dma_cachectl((vaddr_t)phys + boff, len, DMA_CACHE_SYNC);
d16_bcopy(from, buf + boff, len);
}
@@ -225,10 +224,8 @@ vle_copyfrombuf_contig(sc, to, boff, len)
int boff, len;
{
volatile caddr_t buf = sc->sc_mem;
- volatile caddr_t phys = (caddr_t)sc->sc_addr;
dma_cachectl((vaddr_t)buf + boff, len, DMA_CACHE_SYNC_INVAL);
- dma_cachectl((vaddr_t)phys + boff, len, DMA_CACHE_SYNC_INVAL);
d16_bcopy(buf + boff, to, len);
}
@@ -238,10 +235,8 @@ vle_zerobuf_contig(sc, boff, len)
int boff, len;
{
volatile caddr_t buf = sc->sc_mem;
- volatile caddr_t phys = (caddr_t)sc->sc_addr;
dma_cachectl((vaddr_t)buf + boff, len, DMA_CACHE_SYNC);
- dma_cachectl((vaddr_t)phys + boff, len, DMA_CACHE_SYNC);
d16_bzero(buf + boff, len);
}