diff options
Diffstat (limited to 'drivers/scsi/aic7xxx/aic79xx_osm.c')
-rw-r--r-- | drivers/scsi/aic7xxx/aic79xx_osm.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/scsi/aic7xxx/aic79xx_osm.c b/drivers/scsi/aic7xxx/aic79xx_osm.c index fb2877c303f0..550c9921691a 100644 --- a/drivers/scsi/aic7xxx/aic79xx_osm.c +++ b/drivers/scsi/aic7xxx/aic79xx_osm.c | |||
@@ -687,7 +687,7 @@ ahd_linux_unmap_scb(struct ahd_softc *ahd, struct scb *scb) | |||
687 | int direction; | 687 | int direction; |
688 | 688 | ||
689 | cmd = scb->io_ctx; | 689 | cmd = scb->io_ctx; |
690 | direction = scsi_to_pci_dma_dir(cmd->sc_data_direction); | 690 | direction = cmd->sc_data_direction; |
691 | ahd_sync_sglist(ahd, scb, BUS_DMASYNC_POSTWRITE); | 691 | ahd_sync_sglist(ahd, scb, BUS_DMASYNC_POSTWRITE); |
692 | if (cmd->use_sg != 0) { | 692 | if (cmd->use_sg != 0) { |
693 | struct scatterlist *sg; | 693 | struct scatterlist *sg; |
@@ -3338,7 +3338,7 @@ ahd_linux_dv_inq(struct ahd_softc *ahd, struct scsi_cmnd *cmd, | |||
3338 | } | 3338 | } |
3339 | 3339 | ||
3340 | ahd_linux_dv_fill_cmd(ahd, cmd, devinfo); | 3340 | ahd_linux_dv_fill_cmd(ahd, cmd, devinfo); |
3341 | cmd->sc_data_direction = SCSI_DATA_READ; | 3341 | cmd->sc_data_direction = DMA_FROM_DEVICE; |
3342 | cmd->cmd_len = 6; | 3342 | cmd->cmd_len = 6; |
3343 | cmd->cmnd[0] = INQUIRY; | 3343 | cmd->cmnd[0] = INQUIRY; |
3344 | cmd->cmnd[4] = request_length; | 3344 | cmd->cmnd[4] = request_length; |
@@ -3363,7 +3363,7 @@ ahd_linux_dv_tur(struct ahd_softc *ahd, struct scsi_cmnd *cmd, | |||
3363 | #endif | 3363 | #endif |
3364 | /* Do a TUR to clear out any non-fatal transitional state */ | 3364 | /* Do a TUR to clear out any non-fatal transitional state */ |
3365 | ahd_linux_dv_fill_cmd(ahd, cmd, devinfo); | 3365 | ahd_linux_dv_fill_cmd(ahd, cmd, devinfo); |
3366 | cmd->sc_data_direction = SCSI_DATA_NONE; | 3366 | cmd->sc_data_direction = DMA_NONE; |
3367 | cmd->cmd_len = 6; | 3367 | cmd->cmd_len = 6; |
3368 | cmd->cmnd[0] = TEST_UNIT_READY; | 3368 | cmd->cmnd[0] = TEST_UNIT_READY; |
3369 | } | 3369 | } |
@@ -3385,7 +3385,7 @@ ahd_linux_dv_rebd(struct ahd_softc *ahd, struct scsi_cmnd *cmd, | |||
3385 | free(targ->dv_buffer, M_DEVBUF); | 3385 | free(targ->dv_buffer, M_DEVBUF); |
3386 | targ->dv_buffer = malloc(AHD_REBD_LEN, M_DEVBUF, M_WAITOK); | 3386 | targ->dv_buffer = malloc(AHD_REBD_LEN, M_DEVBUF, M_WAITOK); |
3387 | ahd_linux_dv_fill_cmd(ahd, cmd, devinfo); | 3387 | ahd_linux_dv_fill_cmd(ahd, cmd, devinfo); |
3388 | cmd->sc_data_direction = SCSI_DATA_READ; | 3388 | cmd->sc_data_direction = DMA_FROM_DEVICE; |
3389 | cmd->cmd_len = 10; | 3389 | cmd->cmd_len = 10; |
3390 | cmd->cmnd[0] = READ_BUFFER; | 3390 | cmd->cmnd[0] = READ_BUFFER; |
3391 | cmd->cmnd[1] = 0x0b; | 3391 | cmd->cmnd[1] = 0x0b; |
@@ -3407,7 +3407,7 @@ ahd_linux_dv_web(struct ahd_softc *ahd, struct scsi_cmnd *cmd, | |||
3407 | } | 3407 | } |
3408 | #endif | 3408 | #endif |
3409 | ahd_linux_dv_fill_cmd(ahd, cmd, devinfo); | 3409 | ahd_linux_dv_fill_cmd(ahd, cmd, devinfo); |
3410 | cmd->sc_data_direction = SCSI_DATA_WRITE; | 3410 | cmd->sc_data_direction = DMA_TO_DEVICE; |
3411 | cmd->cmd_len = 10; | 3411 | cmd->cmd_len = 10; |
3412 | cmd->cmnd[0] = WRITE_BUFFER; | 3412 | cmd->cmnd[0] = WRITE_BUFFER; |
3413 | cmd->cmnd[1] = 0x0a; | 3413 | cmd->cmnd[1] = 0x0a; |
@@ -3429,7 +3429,7 @@ ahd_linux_dv_reb(struct ahd_softc *ahd, struct scsi_cmnd *cmd, | |||
3429 | } | 3429 | } |
3430 | #endif | 3430 | #endif |
3431 | ahd_linux_dv_fill_cmd(ahd, cmd, devinfo); | 3431 | ahd_linux_dv_fill_cmd(ahd, cmd, devinfo); |
3432 | cmd->sc_data_direction = SCSI_DATA_READ; | 3432 | cmd->sc_data_direction = DMA_FROM_DEVICE; |
3433 | cmd->cmd_len = 10; | 3433 | cmd->cmd_len = 10; |
3434 | cmd->cmnd[0] = READ_BUFFER; | 3434 | cmd->cmnd[0] = READ_BUFFER; |
3435 | cmd->cmnd[1] = 0x0a; | 3435 | cmd->cmnd[1] = 0x0a; |
@@ -3455,7 +3455,7 @@ ahd_linux_dv_su(struct ahd_softc *ahd, struct scsi_cmnd *cmd, | |||
3455 | } | 3455 | } |
3456 | #endif | 3456 | #endif |
3457 | ahd_linux_dv_fill_cmd(ahd, cmd, devinfo); | 3457 | ahd_linux_dv_fill_cmd(ahd, cmd, devinfo); |
3458 | cmd->sc_data_direction = SCSI_DATA_NONE; | 3458 | cmd->sc_data_direction = DMA_NONE; |
3459 | cmd->cmd_len = 6; | 3459 | cmd->cmd_len = 6; |
3460 | cmd->cmnd[0] = START_STOP_UNIT; | 3460 | cmd->cmnd[0] = START_STOP_UNIT; |
3461 | cmd->cmnd[4] = le | SSS_START; | 3461 | cmd->cmnd[4] = le | SSS_START; |
@@ -4018,7 +4018,7 @@ ahd_linux_run_device_queue(struct ahd_softc *ahd, struct ahd_linux_device *dev) | |||
4018 | int dir; | 4018 | int dir; |
4019 | 4019 | ||
4020 | cur_seg = (struct scatterlist *)cmd->request_buffer; | 4020 | cur_seg = (struct scatterlist *)cmd->request_buffer; |
4021 | dir = scsi_to_pci_dma_dir(cmd->sc_data_direction); | 4021 | dir = cmd->sc_data_direction; |
4022 | nseg = pci_map_sg(ahd->dev_softc, cur_seg, | 4022 | nseg = pci_map_sg(ahd->dev_softc, cur_seg, |
4023 | cmd->use_sg, dir); | 4023 | cmd->use_sg, dir); |
4024 | scb->platform_data->xfer_len = 0; | 4024 | scb->platform_data->xfer_len = 0; |
@@ -4038,7 +4038,7 @@ ahd_linux_run_device_queue(struct ahd_softc *ahd, struct ahd_linux_device *dev) | |||
4038 | int dir; | 4038 | int dir; |
4039 | 4039 | ||
4040 | sg = scb->sg_list; | 4040 | sg = scb->sg_list; |
4041 | dir = scsi_to_pci_dma_dir(cmd->sc_data_direction); | 4041 | dir = cmd->sc_data_direction; |
4042 | addr = pci_map_single(ahd->dev_softc, | 4042 | addr = pci_map_single(ahd->dev_softc, |
4043 | cmd->request_buffer, | 4043 | cmd->request_buffer, |
4044 | cmd->request_bufflen, dir); | 4044 | cmd->request_bufflen, dir); |