diff options
author | mjacob <mjacob@cvs.openbsd.org> | 2000-07-06 05:31:50 +0000 |
---|---|---|
committer | mjacob <mjacob@cvs.openbsd.org> | 2000-07-06 05:31:50 +0000 |
commit | 31aac79a59ca445d1cf6c71e52787efe67800919 (patch) | |
tree | df9cb3676c3dcd5f0bcfe507da8441f709ab1d21 /sys/dev/ic/isp_target.h | |
parent | 6e19cd57aab2214eed0c07bd2f244840f212184b (diff) |
Resync with FreeBSD/NetBSD. Salient features are that the mailbox command
routines are not necessarily polled now- this should cut down on some of
the spurious lost commands that have occurred. Also, we now watchdog each
command and make sure that command constipation doesn't occur (which it
has been documented to do on the QLA2100 cards).
Diffstat (limited to 'sys/dev/ic/isp_target.h')
-rw-r--r-- | sys/dev/ic/isp_target.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/dev/ic/isp_target.h b/sys/dev/ic/isp_target.h index 7b86aa1de94..725a9dfb2e7 100644 --- a/sys/dev/ic/isp_target.h +++ b/sys/dev/ic/isp_target.h @@ -1,4 +1,4 @@ -/* $OpenBSD: isp_target.h,v 1.1 2000/02/20 21:22:40 mjacob Exp $ */ +/* $OpenBSD: isp_target.h,v 1.2 2000/07/06 05:31:48 mjacob Exp $ */ /* * Qlogic Target Mode Structure and Flag Definitions * @@ -71,6 +71,7 @@ typedef struct { */ #define LUN_TQAE 0x00000001 /* bit1 Tagged Queue Action Enable */ #define LUN_DSSM 0x01000000 /* bit24 Disable Sending SDP Message */ +#define LUN_DISAD 0x02000000 /* bit25 Disable autodisconnect */ #define LUN_DM 0x40000000 /* bit30 Disconnects Mandatory */ /* @@ -186,6 +187,8 @@ typedef struct { * Value for the na_event field */ #define NA_RST_CLRD 0x80 /* Clear an async event notification */ +#define NA_OK 0x01 /* Notify Acknowledge Succeeded */ +#define NA_INVALID 0x06 /* Invalid Notify Acknowledge */ #define NA2_RSVDLEN 21 typedef struct { @@ -623,7 +626,7 @@ int isp_target_notify __P((struct ispsoftc *, void *, u_int16_t *)); */ #define DFLT_CMD_CNT (RESULT_QUEUE_LEN >> 1) #define DFLT_INOTIFY (4) -int isp_lun_cmd __P((struct ispsoftc *isp, int, int, int, int, u_int32_t)); +int isp_lun_cmd __P((struct ispsoftc *, int, int, int, int, u_int32_t)); /* * General request queue 'put' routine for target mode entries. @@ -635,14 +638,14 @@ int isp_target_put_entry __P((struct ispsoftc *isp, void *)); * used for replenishing f/w resource counts. */ int -isp_target_put_atio __P((struct ispsoftc *isp, int, int, int, int, int)); +isp_target_put_atio __P((struct ispsoftc *, int, int, int, int, int)); /* * General routine to send a final CTIO for a command- used mostly for * local responses. */ int -isp_endcmd __P((struct ispsoftc *isp, void *, u_int32_t, u_int32_t)); +isp_endcmd __P((struct ispsoftc *, void *, u_int32_t, u_int32_t)); #define ECMD_SVALID 0x100 /* |