Move check against CAM_NEW_TRAN_CODE ahead of the file that might include
the option file that would define it.
This commit is contained in:
parent
4086cd0d7e
commit
ed37c8743e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78577
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user