diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1997-06-11 03:13:20 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1997-06-11 03:13:20 +0000 |
commit | 8216954d3ed2334aec39adebf7c4e24ddf0ed60b (patch) | |
tree | 0c06f249868faa2952c6b99b810b0dc238db6000 /sys/dev/ic/ncr5380sbc.c | |
parent | 4ad25d10f20e80bfa18f882a77b6f5caf6bf5220 (diff) |
Make this compile with debugging turned on.
Diffstat (limited to 'sys/dev/ic/ncr5380sbc.c')
-rw-r--r-- | sys/dev/ic/ncr5380sbc.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/sys/dev/ic/ncr5380sbc.c b/sys/dev/ic/ncr5380sbc.c index fb7188408a0..09be66528df 100644 --- a/sys/dev/ic/ncr5380sbc.c +++ b/sys/dev/ic/ncr5380sbc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ncr5380sbc.c,v 1.7 1996/11/28 23:27:51 niklas Exp $ */ +/* $OpenBSD: ncr5380sbc.c,v 1.8 1997/06/11 03:13:19 downsj Exp $ */ /* $NetBSD: ncr5380sbc.c,v 1.13 1996/10/13 01:37:25 christos Exp $ */ /* @@ -82,6 +82,10 @@ #include <scsi/scsi_message.h> #include <scsi/scsiconf.h> +#ifdef DDB +#include <ddb/db_output.h> +#endif /* DDB */ + #include <dev/ic/ncr5380reg.h> #include <dev/ic/ncr5380var.h> @@ -124,12 +128,24 @@ void ncr5380_cmd_timeout __P((void *)); #define NCR_DBG_BREAK 1 #define NCR_DBG_CMDS 2 -int ncr5380_debug = 0; +int ncr5380_debug = NCR_DBG_BREAK|NCR_DBG_CMDS; +struct ncr5380_softc *ncr5380_debug_sc; + #define NCR_BREAK() \ do { if (ncr5380_debug & NCR_DBG_BREAK) Debugger(); } while (0) + static void ncr5380_show_scsi_cmd __P((struct scsi_xfer *)); static void ncr5380_show_sense __P((struct scsi_xfer *)); +#ifdef DDB +void ncr5380_trace __P((char *, long)); +void ncr5380_clear_trace __P((void)); +void ncr5380_show_trace __P((void)); +void ncr5380_show_req __P((struct sci_req *)); +void ncr5380_show_req __P((struct sci_req *)); +void ncr5380_show_state __P((void)); +#endif /* DDB */ + #else /* NCR5380_DEBUG */ #define NCR_BREAK() /* nada */ |