Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jun 2004 07:57:20 GMT
From:      Scott Long <scottl@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 54406 for review
Message-ID:  <200406080757.i587vKGA084191@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=54406

Change 54406 by scottl@scottl-esp-sparc64 on 2004/06/08 07:56:22

	Axe the NetBSD DDB hooks.  It's unlikely that I'll ever port them.

Affected files ...

.. //depot/projects/scottl-esp/src/sys/dev/esp/esp_sbus.c#15 edit

Differences ...

==== //depot/projects/scottl-esp/src/sys/dev/esp/esp_sbus.c#15 (text+ko) ====

@@ -559,60 +559,3 @@
 
 	return (DMA_ISACTIVE(esc->sc_dma));
 }
-
-#include "opt_ddb.h"
-#ifdef DDB
-#include <machine/db_machdep.h>
-#include <ddb/db_output.h>
-
-void db_esp(db_expr_t, int, db_expr_t, char*);
-
-void
-db_esp(addr, have_addr, count, modif)
-	db_expr_t addr;
-	int have_addr;
-	db_expr_t count;
-	char *modif;
-{
-	struct ncr53c9x_softc *sc;
-	struct ncr53c9x_ecb *ecb;
-	struct ncr53c9x_linfo *li;
-	int u, t, i;
-
-	for (u=0; u<10; u++) {
-		sc = (struct ncr53c9x_softc *)
-			getdevunit("esp", u);
-		if (!sc) continue;
-
-		db_printf("esp%d: nexus %p phase %x prev %x dp %p dleft %lx ify %x\n",
-			  u, sc->sc_nexus, sc->sc_phase, sc->sc_prevphase, 
-			  sc->sc_dp, sc->sc_dleft, sc->sc_msgify);
-		db_printf("\tmsgout %x msgpriq %x msgin %x:%x:%x:%x:%x\n",
-			  sc->sc_msgout, sc->sc_msgpriq, sc->sc_imess[0],
-			  sc->sc_imess[1], sc->sc_imess[2], sc->sc_imess[3],
-			  sc->sc_imess[0]);
-		db_printf("ready: ");
-		for (ecb = sc->ready_list.tqh_first; ecb; ecb = ecb->chain.tqe_next) {
-			db_printf("ecb %p ", ecb);
-			if (ecb == ecb->chain.tqe_next) {
-				db_printf("\nWARNING: tailq loop on ecb %p", ecb);
-				break;
-			}
-		}
-		db_printf("\n");
-		
-		for (t=0; t<sc->sc_ntarg; t++) {
-			LIST_FOREACH(li, &sc->sc_tinfo[t].luns, link) {
-				db_printf("t%d lun %d untagged %p busy %d used %x\n",
-					  t, (int)li->lun, li->untagged, li->busy,
-					  li->used);
-				for (i=0; i<256; i++)
-					if ((ecb = li->queued[i])) {
-						db_printf("ecb %p tag %x\n", ecb, i);
-					}
-			}
-		}
-	}
-}
-#endif
-



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406080757.i587vKGA084191>