summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>1999-04-04 01:26:08 +0000
committermjacob <mjacob@FreeBSD.org>1999-04-04 01:26:08 +0000
commit5a55ebd1ad56bf78802a4493316ea5566fcf874c (patch)
tree79d1237976fd3f8709568ffc46d13d84b7fb8fcb /sys
parent24e93e64ed6fcea7405955704fa5ed06b63be341 (diff)
downloadFreeBSD-src-5a55ebd1ad56bf78802a4493316ea5566fcf874c.zip
FreeBSD-src-5a55ebd1ad56bf78802a4493316ea5566fcf874c.tar.gz
Change f/w revision to major,minor,micro version. Add in ISP1040C definition.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/isp/ispvar.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/dev/isp/ispvar.h b/sys/dev/isp/ispvar.h
index 82a1641..71e28f2 100644
--- a/sys/dev/isp/ispvar.h
+++ b/sys/dev/isp/ispvar.h
@@ -1,5 +1,5 @@
-/* $Id: ispvar.h,v 1.11 1999/03/17 05:04:39 mjacob Exp $ */
-/* release_03_25_99 */
+/* $Id: ispvar.h,v 1.12 1999/03/25 22:52:45 mjacob Exp $ */
+/* release_4_3_99 */
/*
* Soft Definitions for for Qlogic ISP SCSI adapters.
*
@@ -259,8 +259,8 @@ struct ispsoftc {
isp_bustype : 1, /* BUS Implementation */
isp_type : 8; /* HBA Type and Revision */
- u_int16_t isp_fwrev; /* Running F/W revision */
- u_int16_t isp_romfw_rev; /* 'ROM' F/W revision */
+ u_int16_t isp_fwrev[3]; /* Running F/W revision */
+ u_int16_t isp_romfw_rev[3]; /* 'ROM' F/W revision */
void * isp_param;
/*
@@ -338,8 +338,10 @@ struct ispsoftc {
#define ISP_CFG_NORELOAD 0x80 /* don't download f/w */
#define ISP_CFG_NONVRAM 0x40 /* ignore NVRAM */
-#define ISP_FW_REV(maj, min) ((maj) << 10| (min))
+#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])
+
/*
* Bus (implementation) types
*/
@@ -356,6 +358,7 @@ struct ispsoftc {
#define ISP_HA_SCSI_1040 0x4
#define ISP_HA_SCSI_1040A 0x5
#define ISP_HA_SCSI_1040B 0x6
+#define ISP_HA_SCSI_1040C 0x7
#define ISP_HA_SCSI_1080 0xd
#define ISP_HA_SCSI_12X0 0xe
#define ISP_HA_FC 0xf0
OpenPOWER on IntegriCloud