Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/dev remove dead debugging code.



details:   https://anonhg.NetBSD.org/src/rev/8320505be261
branches:  trunk
changeset: 499355:8320505be261
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Nov 18 03:49:38 2000 +0000

description:
remove dead debugging code.

diffstat:

 sys/arch/sparc64/dev/psycho.c |  53 +------------------------------------------
 1 files changed, 1 insertions(+), 52 deletions(-)

diffs (78 lines):

diff -r a1ed500e9607 -r 8320505be261 sys/arch/sparc64/dev/psycho.c
--- a/sys/arch/sparc64/dev/psycho.c     Sat Nov 18 03:23:53 2000 +0000
+++ b/sys/arch/sparc64/dev/psycho.c     Sat Nov 18 03:49:38 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: psycho.c,v 1.25 2000/10/19 05:38:35 mrg Exp $  */
+/*     $NetBSD: psycho.c,v 1.26 2000/11/18 03:49:38 mrg Exp $  */
 
 /*
  * Copyright (c) 1999, 2000 Matthew R. Green
@@ -911,10 +911,6 @@
        14,             /* power management */
 };
 
-#ifdef NOT_DEBUG
-static struct psycho_pbm *ppbm;
-#endif
-
 int
 psycho_intr_map(tag, pin, line, ihp)
        pcitag_t tag;
@@ -949,10 +945,6 @@
        int ino;
        long vec = ihandle; 
 
-#ifdef NOT_DEBUG
-       if (!ppbm)
-               ppbm = pp;
-#endif
        ih = (struct intrhand *)
                malloc(sizeof(struct intrhand), M_DEVBUF, M_NOWAIT);
        if (ih == NULL)
@@ -1165,46 +1157,3 @@
 
        iommu_dvmamem_unmap(t, sc->sc_is, kva, size);
 }
-
-#ifdef NOT_DEBUG
-void
-psycho_print_intr_state(void)
-{
-       pcitag_t tag;
-       bus_space_handle_t bh;
-       u_int64_t data, diag;
-       struct psycho_softc *sc = ppbm->pp_sc;
-
-       if (!ppbm) {
-               printf("psycho_print_intr_state: no ppbm configured\n");
-               return;
-       }
-       printf("psycho_print_intr_state: ");
-
-       bh = sc->sc_basepaddr;
-       bh = (bus_space_handle_t)(u_long)sc->sc_regs;
-       diag = bus_space_read_8(sc->sc_configtag, bh, 0xa800);
-       printf("all PCI diags is %qx\n", diag);
-#if 0
-       for (tag = 0xc00; tag < 0xc40; tag += 0x8) {
-               data = bus_space_read_8(sc->sc_configtag, bh, tag);
-               
-               printf(" - PCI slot at %qx reads as %qx", bh + tag, data);
-               printf(": diag %x\n", (int)(diag & 0xff));
-               diag >>= 8;
-       }
-#endif
-
-       diag = bus_space_read_8(sc->sc_configtag, bh, 0xa808);
-       printf("\t\tall OBIO diags is %qx\n", diag);
-#define START_TAG      0x1000  /* 0x1000 */
-#define END_TAG                0x1018  /* 0x1088 */
-       for (tag = START_TAG; tag < END_TAG; tag += 0x8) {
-               data = bus_space_read_8(sc->sc_configtag, bh + tag, 0);
-               
-               printf(" - OBIO slot at %qx reads as %qx", bh + tag, data);
-               printf(": diag %x\n", (int)(diag & 0x3));
-               diag >>= 2;
-       }
-}
-#endif



Home | Main Index | Thread Index | Old Index