summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2001-06-22 01:02:41 +0000
committermjacob <mjacob@FreeBSD.org>2001-06-22 01:02:41 +0000
commitde0e0b468f7970f94496ec8ea1d8d12837232891 (patch)
tree1fe4a3d4ae1de5b877d6e66fdbb5b2b4e0aa97c6 /sys
parent41aadec27ec02d6baf371a6af5d608f60b996538 (diff)
downloadFreeBSD-src-de0e0b468f7970f94496ec8ea1d8d12837232891.zip
FreeBSD-src-de0e0b468f7970f94496ec8ea1d8d12837232891.tar.gz
Move check against CAM_NEW_TRAN_CODE ahead of the file that might include
the option file that would define it.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/aic7xxx/aic7xxx_freebsd.h7
-rw-r--r--sys/dev/aic7xxx/aic7xxx_osm.h7
2 files changed, 8 insertions, 6 deletions
diff --git a/sys/dev/aic7xxx/aic7xxx_freebsd.h b/sys/dev/aic7xxx/aic7xxx_freebsd.h
index b2bf917..f90caba 100644
--- a/sys/dev/aic7xxx/aic7xxx_freebsd.h
+++ b/sys/dev/aic7xxx/aic7xxx_freebsd.h
@@ -37,9 +37,6 @@
#ifndef _AIC7XXX_FREEBSD_H_
#define _AIC7XXX_FREEBSD_H_
-#ifdef CAM_NEW_TRAN_CODE
-#define AHC_NEW_TRAN_SETTINGS
-#endif /* CAM_NEW_TRAN_CODE */
#include <opt_aic7xxx.h> /* for config options */
#ifndef NPCI
#include <pci.h>
@@ -80,6 +77,10 @@
#include <cam/scsi/scsi_all.h>
#include <cam/scsi/scsi_message.h>
+#ifdef CAM_NEW_TRAN_CODE
+#define AHC_NEW_TRAN_SETTINGS
+#endif /* CAM_NEW_TRAN_CODE */
+
/****************************** Platform Macros *******************************/
#define SIM_IS_SCSIBUS_B(ahc, sim) \
((sim) == ahc->platform_data->sim_b)
diff --git a/sys/dev/aic7xxx/aic7xxx_osm.h b/sys/dev/aic7xxx/aic7xxx_osm.h
index b2bf917..f90caba 100644
--- a/sys/dev/aic7xxx/aic7xxx_osm.h
+++ b/sys/dev/aic7xxx/aic7xxx_osm.h
@@ -37,9 +37,6 @@
#ifndef _AIC7XXX_FREEBSD_H_
#define _AIC7XXX_FREEBSD_H_
-#ifdef CAM_NEW_TRAN_CODE
-#define AHC_NEW_TRAN_SETTINGS
-#endif /* CAM_NEW_TRAN_CODE */
#include <opt_aic7xxx.h> /* for config options */
#ifndef NPCI
#include <pci.h>
@@ -80,6 +77,10 @@
#include <cam/scsi/scsi_all.h>
#include <cam/scsi/scsi_message.h>
+#ifdef CAM_NEW_TRAN_CODE
+#define AHC_NEW_TRAN_SETTINGS
+#endif /* CAM_NEW_TRAN_CODE */
+
/****************************** Platform Macros *******************************/
#define SIM_IS_SCSIBUS_B(ahc, sim) \
((sim) == ahc->platform_data->sim_b)
OpenPOWER on IntegriCloud