summaryrefslogtreecommitdiffstats
path: root/sys/dev/exca
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-09-24 22:13:25 +0000
committerimp <imp@FreeBSD.org>2003-09-24 22:13:25 +0000
commit100e3b7635a597fd1f017e000172234099e518e9 (patch)
tree2f2e8228c3344daeac244c42b97547583c1bfc05 /sys/dev/exca
parentc4d2292202afe3344f934435b87b7febdae7b91b (diff)
downloadFreeBSD-src-100e3b7635a597fd1f017e000172234099e518e9.zip
FreeBSD-src-100e3b7635a597fd1f017e000172234099e518e9.tar.gz
CARDMEM is the offset of the address ON THE CARD (eg which page).
Instead, use EXCA_MEMREG_WIN_SHIFT which is the amount we shift the bus address by to write into upper memory (eg above 24MB). Use the latter in this case.
Diffstat (limited to 'sys/dev/exca')
-rw-r--r--sys/dev/exca/exca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/exca/exca.c b/sys/dev/exca/exca.c
index 5ff0296..77e892f 100644
--- a/sys/dev/exca/exca.c
+++ b/sys/dev/exca/exca.c
@@ -258,7 +258,7 @@ exca_mem_map(struct exca_softc *sc, int kind, struct resource *res)
}
if (win >= EXCA_MEM_WINS)
return (1);
- if (((rman_get_start(res) >> EXCA_CARDMEM_ADDRX_SHIFT) & 0xff) != 0 &&
+ if (((rman_get_start(res) >> EXCA_MEMREG_WIN_SHIFT) & 0xff) != 0 &&
(sc->flags & EXCA_HAS_MEMREG_WIN) == 0) {
device_printf(sc->dev, "Does not support mapping above 24M.");
return (1);
OpenPOWER on IntegriCloud