summaryrefslogtreecommitdiffstats
path: root/include/scsi/scsi_request.h
diff options
context:
space:
mode:
authorJames Bottomley <jejb@titanic.(none)>2005-06-16 01:48:29 +0200
committerJames Bottomley <jejb@titanic.(none)>2005-08-28 17:46:40 +0200
commit392160335c798bbe94ab3aae6ea0c85d32b81bbc (patch)
treece664010089283f464d88cd89c11a60d35923851 /include/scsi/scsi_request.h
parentupdate scsi_wait_req to new format for blk_rq_map_kern() (diff)
downloadlinux-392160335c798bbe94ab3aae6ea0c85d32b81bbc.tar.xz
linux-392160335c798bbe94ab3aae6ea0c85d32b81bbc.zip
[SCSI] use scatter lists for all block pc requests and simplify hw handlers
Original From: Mike Christie <michaelc@cs.wisc.edu> Add scsi_execute_req() as a replacement for scsi_wait_req() Fixed up various pieces (added REQ_SPECIAL and caught req use after free) Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi/scsi_request.h')
-rw-r--r--include/scsi/scsi_request.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/scsi/scsi_request.h b/include/scsi/scsi_request.h
index 98719407d554..d64903a617c3 100644
--- a/include/scsi/scsi_request.h
+++ b/include/scsi/scsi_request.h
@@ -54,6 +54,9 @@ extern void scsi_do_req(struct scsi_request *, const void *cmnd,
void *buffer, unsigned bufflen,
void (*done) (struct scsi_cmnd *),
int timeout, int retries);
+extern int scsi_execute_req(struct scsi_device *sdev, unsigned char *cmd,
+ int data_direction, void *buffer, unsigned bufflen,
+ unsigned char *sense, int timeout, int retries);
struct scsi_mode_data {
__u32 length;