Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mvme68k/dev Print some more details of the memory m...



details:   https://anonhg.NetBSD.org/src/rev/832dfbb4c2e6
branches:  trunk
changeset: 499861:832dfbb4c2e6
user:      scw <scw%NetBSD.org@localhost>
date:      Thu Nov 30 22:51:35 2000 +0000

description:
Print some more details of the memory managed by each ASIC.

diffstat:

 sys/arch/mvme68k/dev/memc.c |  21 ++++++++++++++++-----
 1 files changed, 16 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r f974f578f156 -r 832dfbb4c2e6 sys/arch/mvme68k/dev/memc.c
--- a/sys/arch/mvme68k/dev/memc.c       Thu Nov 30 22:31:27 2000 +0000
+++ b/sys/arch/mvme68k/dev/memc.c       Thu Nov 30 22:51:35 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: memc.c,v 1.1 2000/11/24 09:42:10 scw Exp $     */
+/*     $NetBSD: memc.c,v 1.2 2000/11/30 22:51:35 scw Exp $     */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -125,11 +125,22 @@
        bus_space_map(sc->sc_bust, pa->pa_offset, MEMC_REGSIZE, 0,
            &sc->sc_bush);
        chipid = bus_space_read_1(pa->pa_bust, sc->sc_bush, MEMC_REG_CHIP_ID);
-       memcfg = bus_space_read_1(pa->pa_bust, sc->sc_bush, MEMC_REG_MEMORY_CONFIG);
+       memcfg = bus_space_read_1(pa->pa_bust, sc->sc_bush,
+           MEMC_REG_MEMORY_CONFIG);
+
+       printf(": %dMB %s Memory Controller Chip (Rev %d)\n",
+           MEMC_MEMORY_CONFIG_2_MB(memcfg),
+           (chipid == MEMC_CHIP_ID_MEMC040) ? "Parity" : "ECC",
+           bus_space_read_1(sc->sc_bust, sc->sc_bush, MEMC_REG_CHIP_REVISION));
 
-       printf(": %dMB %s Memory Controller Chip\n",
-           MEMC_MEMORY_CONFIG_2_MB(memcfg),
-           (chipid == MEMC_CHIP_ID_MEMC040) ? "Parity" : "ECC");
+       printf("%s: Base Address: 0x%x, ", sc->sc_dev.dv_xname,
+           MEMC_BASE_ADDRESS(bus_space_read_1(sc->sc_bust, sc->sc_bush,
+               MEMC_REG_BASE_ADDRESS_HI), bus_space_read_1(sc->sc_bust,
+               sc->sc_bush, MEMC_REG_BASE_ADDRESS_LO)));
+
+       printf("Fast RAM Read %sabled\n", (bus_space_read_1(sc->sc_bust,
+           sc->sc_bush, MEMC_REG_MEMORY_CONFIG) & MEMC_MEMORY_CONFIG_FSTRD) ?
+           "En" : "Dis");
 
        switch (chipid) {
        case MEMC_CHIP_ID_MEMC040:



Home | Main Index | Thread Index | Old Index