Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/iq80321 Go back to using BAR2 instead of BAR...
details: https://anonhg.NetBSD.org/src/rev/070237fb3a5e
branches: trunk
changeset: 542760:070237fb3a5e
user: briggs <briggs%NetBSD.org@localhost>
date: Thu Feb 06 03:17:49 2003 +0000
description:
Go back to using BAR2 instead of BAR3 for inbound access to SDRAM.
diffstat:
sys/arch/evbarm/iq80321/i80321_mainbus.c | 32 ++++++++++++++++----------------
1 files changed, 16 insertions(+), 16 deletions(-)
diffs (48 lines):
diff -r f3a582855e35 -r 070237fb3a5e sys/arch/evbarm/iq80321/i80321_mainbus.c
--- a/sys/arch/evbarm/iq80321/i80321_mainbus.c Thu Feb 06 03:16:48 2003 +0000
+++ b/sys/arch/evbarm/iq80321/i80321_mainbus.c Thu Feb 06 03:17:49 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i80321_mainbus.c,v 1.7 2003/01/23 03:56:45 briggs Exp $ */
+/* $NetBSD: i80321_mainbus.c,v 1.8 2003/02/06 03:17:49 briggs Exp $ */
/*
* Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -160,23 +160,23 @@
panic("i80321: iwin[1] slave");
}
- sc->sc_iwin[2].iwin_base_lo = 0 |
+ if (sc->sc_is_host) {
+ sc->sc_iwin[2].iwin_base_lo = memstart |
+ PCI_MAPREG_MEM_PREFETCHABLE_MASK |
+ PCI_MAPREG_MEM_TYPE_64BIT;
+ sc->sc_iwin[2].iwin_base_hi = 0;
+ sc->sc_iwin[2].iwin_xlate = memstart;
+ sc->sc_iwin[2].iwin_size = memsize;
+ } else {
+ panic("i80321: iwin[2] slave");
+ }
+
+ sc->sc_iwin[3].iwin_base_lo = 0 |
PCI_MAPREG_MEM_PREFETCHABLE_MASK |
PCI_MAPREG_MEM_TYPE_64BIT;
- sc->sc_iwin[2].iwin_base_hi = 0;
- sc->sc_iwin[2].iwin_xlate = 0;
- sc->sc_iwin[2].iwin_size = 0;
-
- if (sc->sc_is_host) {
- sc->sc_iwin[3].iwin_base_lo = memstart |
- PCI_MAPREG_MEM_PREFETCHABLE_MASK |
- PCI_MAPREG_MEM_TYPE_64BIT;
- sc->sc_iwin[3].iwin_base_hi = 0;
- sc->sc_iwin[3].iwin_xlate = memstart;
- sc->sc_iwin[3].iwin_size = memsize;
- } else {
- panic("i80321: iwin[3] slave");
- }
+ sc->sc_iwin[3].iwin_base_hi = 0;
+ sc->sc_iwin[3].iwin_xlate = 0;
+ sc->sc_iwin[3].iwin_size = 0;
/*
* We set up the Outbound Windows as follows:
Home |
Main Index |
Thread Index |
Old Index