summaryrefslogtreecommitdiff
path: root/sys/dev/ic/aic7xxx.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-06-01 21:49:55 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-06-01 21:49:55 +0000
commit2c857e286a26062ca542a7a95e993107dc8c82e6 (patch)
tree928db3e4c1a995f06604683bba8c4b549908d0eb /sys/dev/ic/aic7xxx.c
parentb50b4bd1373e9c04c2d7b801ee3d7cd82c347e4a (diff)
De-inline a few functions if option SMALL_KERNEL, and do not compile
ahc_print_scb() unless option AHC_DEBUG. Saves about 3KB on alpha RAMDISK{,B}. ok deraadt@
Diffstat (limited to 'sys/dev/ic/aic7xxx.c')
-rw-r--r--sys/dev/ic/aic7xxx.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/ic/aic7xxx.c b/sys/dev/ic/aic7xxx.c
index f9013a61684..ab0f2eeef94 100644
--- a/sys/dev/ic/aic7xxx.c
+++ b/sys/dev/ic/aic7xxx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aic7xxx.c,v 1.64 2005/04/17 18:54:41 tom Exp $ */
+/* $OpenBSD: aic7xxx.c,v 1.65 2005/06/01 21:49:53 miod Exp $ */
/* $NetBSD: aic7xxx.c,v 1.108 2003/11/02 11:07:44 wiz Exp $ */
/*
@@ -40,7 +40,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
- * $Id: aic7xxx.c,v 1.64 2005/04/17 18:54:41 tom Exp $
+ * $Id: aic7xxx.c,v 1.65 2005/06/01 21:49:53 miod Exp $
*/
/*
* Ported from FreeBSD by Pascal Renauld, Network Storage Solutions, Inc. - April 2003
@@ -50,6 +50,9 @@
/* __FBSDID("$FreeBSD: src/sys/dev/aic7xxx/aic7xxx.c,v 1.100 2004/05/11 20:39:46 gibbs Exp $"); */
#include <dev/ic/aic7xxx_openbsd.h>
+#ifdef SMALL_KERNEL
+#define IO_EXPAND
+#endif
#include <dev/ic/aic7xxx_inline.h>
#include <dev/microcode/aic7xxx/aicasm_insformat.h>
@@ -1578,7 +1581,6 @@ ahc_clear_intstat(struct ahc_softc *ahc)
/**************************** Debugging Routines ******************************/
#ifdef AHC_DEBUG
uint32_t ahc_debug = 0; /* AHC_SHOW_MISC|AHC_SHOW_SENSE|AHC_DEBUG_OPTS;*/
-#endif
void
ahc_print_scb(struct scb *scb)
@@ -1612,6 +1614,7 @@ ahc_print_scb(struct scb *scb)
}
}
}
+#endif
/************************* Transfer Negotiation *******************************/
/*