diff options
author | mjacob <mjacob@FreeBSD.org> | 2000-06-18 04:45:51 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2000-06-18 04:45:51 +0000 |
commit | 0e546ae81726788c7f7e6043c3dbee0624d762b8 (patch) | |
tree | 38758dffa7e800da2c0e67f371e1873c7e751fa0 /sys/dev/isp | |
parent | 9dcc007b30361e22dbaf67a5f34cc380387b2981 (diff) | |
download | FreeBSD-src-0e546ae81726788c7f7e6043c3dbee0624d762b8.zip FreeBSD-src-0e546ae81726788c7f7e6043c3dbee0624d762b8.tar.gz |
Roll core minor version. Set ISP_MAX_LUNS to be off of new isp_maxluns
tag in softc.
Diffstat (limited to 'sys/dev/isp')
-rw-r--r-- | sys/dev/isp/ispvar.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/sys/dev/isp/ispvar.h b/sys/dev/isp/ispvar.h index 3c344a7..c20bf11 100644 --- a/sys/dev/isp/ispvar.h +++ b/sys/dev/isp/ispvar.h @@ -58,7 +58,7 @@ #endif #define ISP_CORE_VERSION_MAJOR 1 -#define ISP_CORE_VERSION_MINOR 14 +#define ISP_CORE_VERSION_MINOR 15 /* * Vector for bus specific code to provide specific services. @@ -75,7 +75,7 @@ struct ispmdvec { void (*dv_reset0) __P((struct ispsoftc *)); void (*dv_reset1) __P((struct ispsoftc *)); void (*dv_dregs) __P((struct ispsoftc *)); - const u_int16_t *dv_ispfw; /* ptr to f/w */ + const u_int16_t *dv_ispfw; /* ptr to f/w */ u_int16_t dv_fwlen; /* length of f/w */ u_int16_t dv_codeorg; /* code ORG for f/w */ u_int32_t dv_fwrev; /* f/w revision */ @@ -94,15 +94,7 @@ struct ispmdvec { #endif #define ISP_MAX_TARGETS(isp) (IS_FC(isp)? MAX_FC_TARG : MAX_TARGETS) -#ifdef ISP2100_SCCLUN -#define _ISP_FC_LUN(isp) 65536 -#else -#define _ISP_FC_LUN(isp) 16 -#endif -#define _ISP_SCSI_LUN(isp) \ - ((ISP_FW_REVX(isp->isp_fwrev) >= ISP_FW_REV(7, 55, 0))? 32 : 8) -#define ISP_MAX_LUNS(isp) \ - (IS_FC(isp)? _ISP_FC_LUN(isp) : _ISP_SCSI_LUN(isp)) +#define ISP_MAX_LUNS(isp) (isp)->isp_maxluns /* @@ -322,6 +314,7 @@ struct ispsoftc { u_int16_t isp_maxcmds; /* max possible I/O cmds */ u_int8_t isp_type; /* HBA Chip Type */ u_int8_t isp_revision; /* HBA Chip H/W Revision */ + u_int32_t isp_maxluns; /* maximum luns supported */ u_int32_t : 4, isp_touched : 1, /* board ever seen? */ |