aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2000-02-11 19:25:01 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2000-02-11 19:25:01 +0000
commit83fbc5665ed09d68861f6fcffad19b6b815d4174 (patch)
tree681525f86b6ae46300b81a960f8f607488b951cf
parentad2a9d04d16854d63712eba2a4aa4fe710d82219 (diff)
Notes
-rw-r--r--sys/dev/isp/ispvar.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/sys/dev/isp/ispvar.h b/sys/dev/isp/ispvar.h
index 2c0f665c41f7..11221e7e1b02 100644
--- a/sys/dev/isp/ispvar.h
+++ b/sys/dev/isp/ispvar.h
@@ -372,6 +372,7 @@ struct ispsoftc {
#define ISP_CFG_NONVRAM 0x40 /* ignore NVRAM */
#define ISP_CFG_FULL_DUPLEX 0x01 /* Full Duplex (Fibre Channel only) */
#define ISP_CFG_OWNWWN 0x02 /* override NVRAM wwn */
+#define ISP_CFG_NPORT 0x04 /* try to force N- instead of L-Port */
#define ISP_FW_REV(maj, min, mic) ((maj << 24) | (min << 16) | mic)
#define ISP_FW_REVX(xp) ((xp[0]<<24) | (xp[1] << 16) | xp[2])
@@ -396,6 +397,7 @@ struct ispsoftc {
#define ISP_HA_SCSI_1240 0x8
#define ISP_HA_SCSI_1080 0x9
#define ISP_HA_SCSI_1280 0xa
+#define ISP_HA_SCSI_12160 0xb
#define ISP_HA_FC 0xf0
#define ISP_HA_FC_2100 0x10
#define ISP_HA_FC_2200 0x20
@@ -404,12 +406,17 @@ struct ispsoftc {
#define IS_1240(isp) (isp->isp_type == ISP_HA_SCSI_1240)
#define IS_1080(isp) (isp->isp_type == ISP_HA_SCSI_1080)
#define IS_1280(isp) (isp->isp_type == ISP_HA_SCSI_1280)
-#define IS_12X0(isp) \
- (isp->isp_type == ISP_HA_SCSI_1240 || isp->isp_type == ISP_HA_SCSI_1280)
-#define IS_DUALBUS(isp) IS_12X0(isp)
-#define IS_ULTRA2(isp) \
- (isp->isp_type == ISP_HA_SCSI_1080 || isp->isp_type == ISP_HA_SCSI_1280)
+#define IS_12160(isp) (isp->isp_type == ISP_HA_SCSI_12160)
+
+#define IS_12X0(isp) (IS_1240(isp) || IS_1280(isp))
+#define IS_DUALBUS(isp) (IS_12X0(isp) || IS_12160(isp))
+#define IS_ULTRA2(isp) (IS_1080(isp) || IS_1280(isp) || IS_12160(isp))
+#define IS_ULTRA3(isp) (IS_12160(isp))
+
#define IS_FC(isp) (isp->isp_type & ISP_HA_FC)
+#define IS_2100(isp) (isp->isp_type == ISP_HA_FC_2100)
+#define IS_2200(isp) (isp->isp_type == ISP_HA_FC_2200)
+
/*
* Function Prototypes