summaryrefslogtreecommitdiff
path: root/sys/dev/isp/ispvar.h
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2012-06-01 23:29:48 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2012-06-01 23:29:48 +0000
commite2873b76a677769b047c86f6acbfbb58ef346c67 (patch)
tree221e605810db01fdf9ad7488ea78bedd1853e5fa /sys/dev/isp/ispvar.h
parent5a1ae35dd13c0157e22d2fc172d7b7015f0bf6ee (diff)
Notes
Diffstat (limited to 'sys/dev/isp/ispvar.h')
-rw-r--r--sys/dev/isp/ispvar.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/isp/ispvar.h b/sys/dev/isp/ispvar.h
index 55edc17228cf..e00191a32553 100644
--- a/sys/dev/isp/ispvar.h
+++ b/sys/dev/isp/ispvar.h
@@ -724,8 +724,17 @@ struct ispsoftc {
#define ISP_ROLE_BOTH (ISP_ROLE_TARGET|ISP_ROLE_INITIATOR)
#define ISP_ROLE_EITHER ISP_ROLE_BOTH
#ifndef ISP_DEFAULT_ROLES
+/*
+ * Counterintuitively, we prefer to default to role 'none'
+ * if we are enable target mode support. This gives us the
+ * maximum flexibility as to which port will do what.
+ */
+#ifdef ISP_TARGET_MODE
+#define ISP_DEFAULT_ROLES ISP_ROLE_NONE
+#else
#define ISP_DEFAULT_ROLES ISP_ROLE_INITIATOR
#endif
+#endif
/*