summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJames Bottomley <jejb@mulgrave.(none)>2004-12-19 01:19:57 -0600
committerJames Bottomley <jejb@mulgrave.(none)>2004-12-19 01:19:57 -0600
commit559467aee2a7e970c536e8834d35e51612b6f35a (patch)
treeb6378ce5039529d608874cf23715d12d5783c90f /include
parent8b3ba6c3871bab88fa9fa1f6aaddf7356e31e878 (diff)
SCSI:add change_queue_depth API to scsi host template
Originally, the 53c700 driver implemented queue_depth changing as an attribute override, primarily as a demonstration of how it should be done. Now that a large number of drivers wish to implement this functionality, it should become an API rather than an attribute override, since the latter are supposed to be used as one off extensions rather than the de-facto API. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include')
-rw-r--r--include/scsi/scsi_host.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h
index 0887be2234ba..59c7e45d3409 100644
--- a/include/scsi/scsi_host.h
+++ b/include/scsi/scsi_host.h
@@ -216,6 +216,18 @@ struct scsi_host_template {
void (* slave_destroy)(struct scsi_device *);
/*
+ * fill in this function to allow the queue depth of this host
+ * to be changeable (on a per device basis). returns either
+ * the current queue depth setting (may be different from what
+ * was passed in) or an error. An error should only be
+ * returned if the requested depth is legal but the driver was
+ * unable to set it. If the requested depth is illegal, the
+ * driver should set and return the closest legal queue depth.
+ *
+ */
+ int (* change_queue_depth)(struct scsi_device *, int);
+
+ /*
* This function determines the bios parameters for a given
* harddisk. These tend to be numbers that are made up by
* the host adapter. Parameters: