summaryrefslogtreecommitdiff
path: root/sys/dev/ciss
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2009-07-10 08:18:08 +0000
committerScott Long <scottl@FreeBSD.org>2009-07-10 08:18:08 +0000
commit52c9ce25d8339ad0228be8aaf0e44b45314b38dc (patch)
tree65347229e3752769c4a701bd5f5308b2c8b4bf03 /sys/dev/ciss
parentf6c09dd6a8f15f3093d0e4eb226ce6ac0ab1c991 (diff)
Notes
Diffstat (limited to 'sys/dev/ciss')
-rw-r--r--sys/dev/ciss/ciss.c1
-rw-r--r--sys/dev/ciss/cissvar.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c
index 93aea725299c..c028905137ad 100644
--- a/sys/dev/ciss/ciss.c
+++ b/sys/dev/ciss/ciss.c
@@ -2976,6 +2976,7 @@ ciss_cam_action(struct cam_sim *sim, union ccb *ccb)
cpi->transport_version = 2;
cpi->protocol = PROTO_SCSI;
cpi->protocol_version = SCSI_REV_2;
+ cpi->maxio = (CISS_MAX_SG_ELEMENTS - 1) * PAGE_SIZE;
ccb->ccb_h.status = CAM_REQ_CMP;
break;
}
diff --git a/sys/dev/ciss/cissvar.h b/sys/dev/ciss/cissvar.h
index a3df3c2d12c2..78c7cc8ede93 100644
--- a/sys/dev/ciss/cissvar.h
+++ b/sys/dev/ciss/cissvar.h
@@ -141,6 +141,9 @@ struct ciss_request
#define CISS_COMMAND_SG_LENGTH ((CISS_COMMAND_ALLOC_SIZE - sizeof(struct ciss_command)) \
/ sizeof(struct ciss_sg_entry))
+/* XXX Prep for increasing max i/o */
+#define CISS_MAX_SG_ELEMENTS 33
+
/*
* Per-logical-drive data.
*/