diff options
-rw-r--r-- | sys/dev/ic/ispvar.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/dev/ic/ispvar.h b/sys/dev/ic/ispvar.h index a20cc85b128..056f4ffef1e 100644 --- a/sys/dev/ic/ispvar.h +++ b/sys/dev/ic/ispvar.h @@ -1,5 +1,5 @@ -/* $OpenBSD: ispvar.h,v 1.4 1999/03/25 22:58:39 mjacob Exp $ */ -/* release_03_25_99 */ +/* $OpenBSD: ispvar.h,v 1.5 1999/04/04 01:28:26 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 |