diff options
author | mjacob <mjacob@FreeBSD.org> | 2000-12-02 18:06:03 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2000-12-02 18:06:03 +0000 |
commit | c17af18f474ba66aaa5fd4542a1bc5accf42be45 (patch) | |
tree | 09ee554496ee6dcef96ac3eb1300f8d1fd3f1884 /sys/dev/isp | |
parent | f0aab59cddec09534e99a0c3d509496ca482d210 (diff) | |
download | FreeBSD-src-c17af18f474ba66aaa5fd4542a1bc5accf42be45.zip FreeBSD-src-c17af18f474ba66aaa5fd4542a1bc5accf42be45.tar.gz |
Add interrupt instrumentation. Change ISP_CFG_NPORT config option to
a set of options that allows specific loop, loop-only, nport, nport-only
topology settings. Define a required macro for all platforms (USEC_SLEEP).
Diffstat (limited to 'sys/dev/isp')
-rw-r--r-- | sys/dev/isp/ispvar.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/dev/isp/ispvar.h b/sys/dev/isp/ispvar.h index 8587f07..0e0ad05 100644 --- a/sys/dev/isp/ispvar.h +++ b/sys/dev/isp/ispvar.h @@ -337,6 +337,11 @@ typedef struct ispsoftc { isp_dblev : 12, /* debug log mask */ isp_clock : 8, /* input clock */ isp_confopts : 8; /* config options */ + /* + * Instrumentation + */ + u_int64_t isp_intcnt; /* total int count */ + u_int64_t isp_intbogus; /* spurious int count */ /* * Volatile state @@ -387,7 +392,11 @@ typedef 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_CFG_PORT_PREF 0x0C /* Mask for Port Prefs (2200 only) */ +#define ISP_CFG_LPORT 0x00 /* prefer {N/F}L-Port connection */ +#define ISP_CFG_NPORT 0x04 /* prefer {N/F}-Port connection */ +#define ISP_CFG_NPORT_ONLY 0x08 /* insist on {N/F}-Port connection */ +#define ISP_CFG_LPORT_ONLY 0x0C /* insist on {N/F}L-Port connection */ /* * Firmware related defines @@ -556,6 +565,7 @@ void isp_prt __P((struct ispsoftc *, int level, const char *, ...)); * SNPRINTF(buf, bufsize, fmt, ...) snprintf * STRNCAT(dstbuf, size, srcbuf) strncat * USEC_DELAY(usecs) microsecond spindelay function + * USEC_SLEEP(isp, usecs) microsecond sleep function * * NANOTIME_T nanosecond time type * |