aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libata-scsi.c
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-10-28 12:31:34 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-10-28 12:31:34 -0400
commit96b88fb850cc419171f926ad04650ec509e9f543 (patch)
tree5bf9537bde467534608b3acdbfa5f7726ede8c3f /drivers/scsi/libata-scsi.c
parente78a57de94480226f7fc90d0b4837bfc6c99a9e0 (diff)
parent5fadd053d9bb4345ec6f405d24db4e7eb49cf81e (diff)
Merge branch 'master'
Diffstat (limited to 'drivers/scsi/libata-scsi.c')
-rw-r--r--drivers/scsi/libata-scsi.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/scsi/libata-scsi.c b/drivers/scsi/libata-scsi.c
index 1ad75d58c30..b761bd1b971 100644
--- a/drivers/scsi/libata-scsi.c
+++ b/drivers/scsi/libata-scsi.c
@@ -47,9 +47,9 @@
47 47
48#define SECTOR_SIZE 512 48#define SECTOR_SIZE 512
49 49
50typedef unsigned int (*ata_xlat_func_t)(struct ata_queued_cmd *qc, u8 *scsicmd); 50typedef unsigned int (*ata_xlat_func_t)(struct ata_queued_cmd *qc, const u8 *scsicmd);
51static struct ata_device * 51static struct ata_device *
52ata_scsi_find_dev(struct ata_port *ap, struct scsi_device *scsidev); 52ata_scsi_find_dev(struct ata_port *ap, const struct scsi_device *scsidev);
53 53
54 54
55static void ata_scsi_invalid_field(struct scsi_cmnd *cmd, 55static void ata_scsi_invalid_field(struct scsi_cmnd *cmd,
@@ -710,7 +710,7 @@ int ata_scsi_error(struct Scsi_Host *host)
710 */ 710 */
711 711
712static unsigned int ata_scsi_start_stop_xlat(struct ata_queued_cmd *qc, 712static unsigned int ata_scsi_start_stop_xlat(struct ata_queued_cmd *qc,
713 u8 *scsicmd) 713 const u8 *scsicmd)
714{ 714{
715 struct ata_taskfile *tf = &qc->tf; 715 struct ata_taskfile *tf = &qc->tf;
716 716
@@ -777,7 +777,7 @@ invalid_fld:
777 * Zero on success, non-zero on error. 777 * Zero on success, non-zero on error.
778 */ 778 */
779 779
780static unsigned int ata_scsi_flush_xlat(struct ata_queued_cmd *qc, u8 *scsicmd) 780static unsigned int ata_scsi_flush_xlat(struct ata_queued_cmd *qc, const u8 *scsicmd)
781{ 781{
782 struct ata_taskfile *tf = &qc->tf; 782 struct ata_taskfile *tf = &qc->tf;
783 783
@@ -804,7 +804,7 @@ static unsigned int ata_scsi_flush_xlat(struct ata_queued_cmd *qc, u8 *scsicmd)
804 * @plen: the transfer length 804 * @plen: the transfer length
805 */ 805 */
806 806
807static void scsi_6_lba_len(u8 *scsicmd, u64 *plba, u32 *plen) 807static void scsi_6_lba_len(const u8 *scsicmd, u64 *plba, u32 *plen)
808{ 808{
809 u64 lba = 0; 809 u64 lba = 0;
810 u32 len = 0; 810 u32 len = 0;
@@ -831,7 +831,7 @@ static void scsi_6_lba_len(u8 *scsicmd, u64 *plba, u32 *plen)
831 * @plen: the transfer length 831 * @plen: the transfer length
832 */ 832 */
833 833
834static void scsi_10_lba_len(u8 *scsicmd, u64 *plba, u32 *plen) 834static void scsi_10_lba_len(const u8 *scsicmd, u64 *plba, u32 *plen)
835{ 835{
836 u64 lba = 0; 836 u64 lba = 0;
837 u32 len = 0; 837 u32 len = 0;
@@ -861,7 +861,7 @@ static void scsi_10_lba_len(u8 *scsicmd, u64 *plba, u32 *plen)
861 * @plen: the transfer length 861 * @plen: the transfer length
862 */ 862 */
863 863
864static void scsi_16_lba_len(u8 *scsicmd, u64 *plba, u32 *plen) 864static void scsi_16_lba_len(const u8 *scsicmd, u64 *plba, u32 *plen)
865{ 865{
866 u64 lba = 0; 866 u64 lba = 0;
867 u32 len = 0; 867 u32 len = 0;
@@ -900,7 +900,7 @@ static void scsi_16_lba_len(u8 *scsicmd, u64 *plba, u32 *plen)
900 * Zero on success, non-zero on error. 900 * Zero on success, non-zero on error.
901 */ 901 */
902 902
903static unsigned int ata_scsi_verify_xlat(struct ata_queued_cmd *qc, u8 *scsicmd) 903static unsigned int ata_scsi_verify_xlat(struct ata_queued_cmd *qc, const u8 *scsicmd)
904{ 904{
905 struct ata_taskfile *tf = &qc->tf; 905 struct ata_taskfile *tf = &qc->tf;
906 struct ata_device *dev = qc->dev; 906 struct ata_device *dev = qc->dev;
@@ -1026,7 +1026,7 @@ nothing_to_do:
1026 * Zero on success, non-zero on error. 1026 * Zero on success, non-zero on error.
1027 */ 1027 */
1028 1028
1029static unsigned int ata_scsi_rw_xlat(struct ata_queued_cmd *qc, u8 *scsicmd) 1029static unsigned int ata_scsi_rw_xlat(struct ata_queued_cmd *qc, const u8 *scsicmd)
1030{ 1030{
1031 struct ata_taskfile *tf = &qc->tf; 1031 struct ata_taskfile *tf = &qc->tf;
1032 struct ata_device *dev = qc->dev; 1032 struct ata_device *dev = qc->dev;
@@ -2010,7 +2010,7 @@ static int atapi_qc_complete(struct ata_queued_cmd *qc, u8 drv_stat)
2010 * Zero on success, non-zero on failure. 2010 * Zero on success, non-zero on failure.
2011 */ 2011 */
2012 2012
2013static unsigned int atapi_xlat(struct ata_queued_cmd *qc, u8 *scsicmd) 2013static unsigned int atapi_xlat(struct ata_queued_cmd *qc, const u8 *scsicmd)
2014{ 2014{
2015 struct scsi_cmnd *cmd = qc->scsicmd; 2015 struct scsi_cmnd *cmd = qc->scsicmd;
2016 struct ata_device *dev = qc->dev; 2016 struct ata_device *dev = qc->dev;
@@ -2079,7 +2079,7 @@ static unsigned int atapi_xlat(struct ata_queued_cmd *qc, u8 *scsicmd)
2079 */ 2079 */
2080 2080
2081static struct ata_device * 2081static struct ata_device *
2082ata_scsi_find_dev(struct ata_port *ap, struct scsi_device *scsidev) 2082ata_scsi_find_dev(struct ata_port *ap, const struct scsi_device *scsidev)
2083{ 2083{
2084 struct ata_device *dev; 2084 struct ata_device *dev;
2085 2085
@@ -2378,7 +2378,7 @@ void ata_scsi_simulate(u16 *id,
2378 void (*done)(struct scsi_cmnd *)) 2378 void (*done)(struct scsi_cmnd *))
2379{ 2379{
2380 struct ata_scsi_args args; 2380 struct ata_scsi_args args;
2381 u8 *scsicmd = cmd->cmnd; 2381 const u8 *scsicmd = cmd->cmnd;
2382 2382
2383 args.id = id; 2383 args.id = id;
2384 args.cmd = cmd; 2384 args.cmd = cmd;