diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2007-09-10 11:01:08 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-11 19:22:38 -0500 |
commit | 6d416e6173394defda5933e419e805b696681b7e (patch) | |
tree | 5d2905c8a36fff50c3972d2906d46b6a4d37fad7 /drivers/usb/storage/transport.h | |
parent | 4776e99ebb171d61c7e242db437358183f27b471 (diff) |
[SCSI] usb: transport - convert to accessors and !use_sg code path removal
- This patch depends on:
usb: transport.c use scsi_eh API in REQUEST_SENSE execution
- Use scsi data accessors and remove of !use_sg code path.
- New usb_stor_bulk_srb() for use by drivers
[jejb: updated with corrective fix.
had a bug in residual handling in the new usb_stor_bulk_srb()
function. Found by Gabriel C. in -mm tree.
Tested-by: Gabriel C <nix.or.die@googlemail.com>
]
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Acked-by: Matthew Dharm <mdharm-scsi@one-eyed-alien.net>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/usb/storage/transport.h')
-rw-r--r-- | drivers/usb/storage/transport.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/storage/transport.h b/drivers/usb/storage/transport.h index 633a715850a4..ada7c2f43f84 100644 --- a/drivers/usb/storage/transport.h +++ b/drivers/usb/storage/transport.h | |||
@@ -139,6 +139,8 @@ extern int usb_stor_bulk_transfer_buf(struct us_data *us, unsigned int pipe, | |||
139 | void *buf, unsigned int length, unsigned int *act_len); | 139 | void *buf, unsigned int length, unsigned int *act_len); |
140 | extern int usb_stor_bulk_transfer_sg(struct us_data *us, unsigned int pipe, | 140 | extern int usb_stor_bulk_transfer_sg(struct us_data *us, unsigned int pipe, |
141 | void *buf, unsigned int length, int use_sg, int *residual); | 141 | void *buf, unsigned int length, int use_sg, int *residual); |
142 | extern int usb_stor_bulk_srb(struct us_data* us, unsigned int pipe, | ||
143 | struct scsi_cmnd* srb); | ||
142 | 144 | ||
143 | extern int usb_stor_port_reset(struct us_data *us); | 145 | extern int usb_stor_port_reset(struct us_data *us); |
144 | #endif | 146 | #endif |