summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2004-06-23 03:23:20 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2004-06-23 03:23:20 +0000
commit4e95f99a571051d7d5f2eb51821f35be8d1e4725 (patch)
tree01973a84d3bd1a01c1d583c9371f3811213aa81f /sys/dev
parent922e14145866c966e9cd7ef50ede844beb348bd2 (diff)
Make AHD_DEBUG compile. ok krw@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/aic79xx.c3
-rw-r--r--sys/dev/ic/aic79xx.h41
-rw-r--r--sys/dev/pci/ahd_pci.c4
3 files changed, 25 insertions, 23 deletions
diff --git a/sys/dev/ic/aic79xx.c b/sys/dev/ic/aic79xx.c
index da1bb2cd429..fce5f2ac613 100644
--- a/sys/dev/ic/aic79xx.c
+++ b/sys/dev/ic/aic79xx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aic79xx.c,v 1.4 2004/06/21 18:33:03 krw Exp $ */
+/* $OpenBSD: aic79xx.c,v 1.5 2004/06/23 03:23:19 marco Exp $ */
/*
* Core routines and tables shareable across OS platforms.
*
@@ -2683,6 +2683,7 @@ ahd_clear_intstat(struct ahd_softc *ahd)
#ifdef AHD_DEBUG
uint32_t ahd_debug = AHD_DEBUG_OPTS;
#endif
+
void
ahd_print_scb(struct scb *scb)
{
diff --git a/sys/dev/ic/aic79xx.h b/sys/dev/ic/aic79xx.h
index 11de0587cd0..ee3f68f51e3 100644
--- a/sys/dev/ic/aic79xx.h
+++ b/sys/dev/ic/aic79xx.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: aic79xx.h,v 1.3 2004/06/14 00:44:47 krw Exp $ */
+/* $OpenBSD: aic79xx.h,v 1.4 2004/06/23 03:23:19 marco Exp $ */
/*
* Core definitions and data structures shareable across OS platforms.
*
@@ -50,7 +50,7 @@
#ifndef _AIC79XX_H_
#define _AIC79XX_H_
-#undef AHC_DEBUG
+/* #define AHD_DEBUG */
/* Register Definitions */
#include <dev/microcode/aic7xxx/aic79xx_reg.h>
@@ -1553,24 +1553,25 @@ cam_status ahd_find_tmode_devs(struct ahd_softc *ahd,
/******************************* Debug ***************************************/
#ifdef AHD_DEBUG
extern uint32_t ahd_debug;
-#define AHD_SHOW_MISC 0x00001
-#define AHD_SHOW_SENSE 0x00002
-#define AHD_SHOW_RECOVERY 0x00004
-#define AHD_DUMP_SEEPROM 0x00008
-#define AHD_SHOW_TERMCTL 0x00010
-#define AHD_SHOW_MEMORY 0x00020
-#define AHD_SHOW_MESSAGES 0x00040
-#define AHD_SHOW_MODEPTR 0x00080
-#define AHD_SHOW_SELTO 0x00100
-#define AHD_SHOW_FIFOS 0x00200
-#define AHD_SHOW_QFULL 0x00400
-#define AHD_SHOW_DV 0x00800
-#define AHD_SHOW_MASKED_ERRORS 0x01000
-#define AHD_SHOW_QUEUE 0x02000
-#define AHD_SHOW_TQIN 0x04000
-#define AHD_SHOW_SG 0x08000
-#define AHD_SHOW_INT_COALESCING 0x10000
-#define AHD_DEBUG_SEQUENCER 0x20000
+#define AHD_DEBUG_OPTS 0
+#define AHD_SHOW_MISC 0x00001
+#define AHD_SHOW_SENSE 0x00002
+#define AHD_SHOW_RECOVERY 0x00004
+#define AHD_DUMP_SEEPROM 0x00008
+#define AHD_SHOW_TERMCTL 0x00010
+#define AHD_SHOW_MEMORY 0x00020
+#define AHD_SHOW_MESSAGES 0x00040
+#define AHD_SHOW_MODEPTR 0x00080
+#define AHD_SHOW_SELTO 0x00100
+#define AHD_SHOW_FIFOS 0x00200
+#define AHD_SHOW_QFULL 0x00400
+#define AHD_SHOW_DV 0x00800
+#define AHD_SHOW_MASKED_ERRORS 0x01000
+#define AHD_SHOW_QUEUE 0x02000
+#define AHD_SHOW_TQIN 0x04000
+#define AHD_SHOW_SG 0x08000
+#define AHD_SHOW_INT_COALESCING 0x10000
+#define AHD_DEBUG_SEQUENCER 0x20000
#endif
void ahd_print_scb(struct scb *scb);
void ahd_print_devinfo(struct ahd_softc *ahd,
diff --git a/sys/dev/pci/ahd_pci.c b/sys/dev/pci/ahd_pci.c
index 6cb1677da59..7273c66b2d7 100644
--- a/sys/dev/pci/ahd_pci.c
+++ b/sys/dev/pci/ahd_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ahd_pci.c,v 1.4 2004/06/14 00:44:47 krw Exp $ */
+/* $OpenBSD: ahd_pci.c,v 1.5 2004/06/23 03:23:18 marco Exp $ */
/*
* Product specific probe and attach routines for:
* aic7901 and aic7902 SCSI controllers
@@ -805,7 +805,7 @@ ahd_check_extport(struct ahd_softc *ahd)
}
}
-#if AHD_DEBUG
+#ifdef AHD_DEBUG
if (have_seeprom != 0
&& (ahd_debug & AHD_DUMP_SEEPROM) != 0) {
uint16_t *sc_data;