From 100e3b7635a597fd1f017e000172234099e518e9 Mon Sep 17 00:00:00 2001 From: imp Date: Wed, 24 Sep 2003 22:13:25 +0000 Subject: 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. --- sys/dev/exca/exca.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.1