aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/scsi_device.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/scsi/scsi_device.h')
-rw-r--r--include/scsi/scsi_device.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h
index 92c4c3bd916d..68d185c79bae 100644
--- a/include/scsi/scsi_device.h
+++ b/include/scsi/scsi_device.h
@@ -177,6 +177,7 @@ struct scsi_dh_devlist {
177 char *model; 177 char *model;
178}; 178};
179 179
180typedef void (*activate_complete)(void *, int);
180struct scsi_device_handler { 181struct scsi_device_handler {
181 /* Used by the infrastructure */ 182 /* Used by the infrastructure */
182 struct list_head list; /* list of scsi_device_handlers */ 183 struct list_head list; /* list of scsi_device_handlers */
@@ -188,7 +189,7 @@ struct scsi_device_handler {
188 int (*check_sense)(struct scsi_device *, struct scsi_sense_hdr *); 189 int (*check_sense)(struct scsi_device *, struct scsi_sense_hdr *);
189 int (*attach)(struct scsi_device *); 190 int (*attach)(struct scsi_device *);
190 void (*detach)(struct scsi_device *); 191 void (*detach)(struct scsi_device *);
191 int (*activate)(struct scsi_device *); 192 int (*activate)(struct scsi_device *, activate_complete, void *);
192 int (*prep_fn)(struct scsi_device *, struct request *); 193 int (*prep_fn)(struct scsi_device *, struct request *);
193 int (*set_params)(struct scsi_device *, const char *); 194 int (*set_params)(struct scsi_device *, const char *);
194}; 195};