summaryrefslogtreecommitdiffstats
path: root/sys/dev/dpt/dpt.h
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1998-09-20 07:19:53 +0000
committergibbs <gibbs@FreeBSD.org>1998-09-20 07:19:53 +0000
commitaef77a965b7ea5566d976025c9f5644d04f643ff (patch)
tree9bbc06464e835214cfd34d91c14e2211ec327005 /sys/dev/dpt/dpt.h
parent9b0d027ad357e908d16d45b8a7efc464c08e09cc (diff)
downloadFreeBSD-src-aef77a965b7ea5566d976025c9f5644d04f643ff.zip
FreeBSD-src-aef77a965b7ea5566d976025c9f5644d04f643ff.tar.gz
Drop the maximum SG count to 32 from 1024. We can't make use of all of
those extra ones yet, anyway. In dpttimeout, expect that the controller will complete aborted CCBs through the interrupt handler. This corrects a panic that was caused by completing the same transaction twice during timeout recovery. Honor the tag times types expressed by the user and pass them down to the controller.
Diffstat (limited to 'sys/dev/dpt/dpt.h')
-rw-r--r--sys/dev/dpt/dpt.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/dpt/dpt.h b/sys/dev/dpt/dpt.h
index b6f6731..79f4de4 100644
--- a/sys/dev/dpt/dpt.h
+++ b/sys/dev/dpt/dpt.h
@@ -40,7 +40,7 @@
*/
-#ident "$Id: dpt.h,v 1.4 1998/08/05 00:54:37 eivind Exp $"
+#ident "$Id: dpt.h,v 1.2 1998/09/15 08:33:31 gibbs Exp $"
#ifndef _DPT_H
#define _DPT_H
@@ -100,7 +100,7 @@ typedef void *physaddr;
* them in fixed increments, we need to put a practical limit on
* these. A passed parameter (from kernel boot or lkm) would help
*/
-#define DPT_MAX_SEGS 1024
+#define DPT_MAX_SEGS 32
/* Debug levels */
@@ -898,9 +898,10 @@ typedef struct dpt_ccb {
dccb_state state;
union ccb *ccb;
struct scsi_sense_data sense_data;
+ u_int8_t tag;
u_int8_t retries;
- u_int8_t status; /* status of this queueslot */
- u_int8_t *cmd; /* address of cmd */
+ u_int8_t status; /* status of this queueslot */
+ u_int8_t *cmd; /* address of cmd */
u_int32_t transaction_id;
u_int32_t result;
OpenPOWER on IntegriCloud