diff options
author | <hch@lst.de> | 2005-04-17 16:26:13 -0400 |
---|---|---|
committer | James Bottomley <jejb@titanic> | 2005-04-18 14:49:58 -0400 |
commit | be7db055dd7261522557046370f49160728e3847 (patch) | |
tree | 314689dfb551ee9ad5ef8c27576762489a51897d /drivers/scsi/aic7xxx/aic7xxx_osm.c | |
parent | 80e2ca3dcb1043420ac4b06de8eed3d6fedaddda (diff) |
[PATCH] remove old scsi data direction macros
these have been wrappers for the generic dma direction bits since 2.5.x.
This patch converts the few remaining drivers and removes the macros.
Arjan noticed there's some hunk in here that shouldn't. Updated patch
below:
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aic7xxx/aic7xxx_osm.c')
-rw-r--r-- | drivers/scsi/aic7xxx/aic7xxx_osm.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.c b/drivers/scsi/aic7xxx/aic7xxx_osm.c index 031c6aaa5ca5..35d6de5a4c9d 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_osm.c +++ b/drivers/scsi/aic7xxx/aic7xxx_osm.c | |||
@@ -693,12 +693,12 @@ ahc_linux_unmap_scb(struct ahc_softc *ahc, struct scb *scb) | |||
693 | 693 | ||
694 | sg = (struct scatterlist *)cmd->request_buffer; | 694 | sg = (struct scatterlist *)cmd->request_buffer; |
695 | pci_unmap_sg(ahc->dev_softc, sg, cmd->use_sg, | 695 | pci_unmap_sg(ahc->dev_softc, sg, cmd->use_sg, |
696 | scsi_to_pci_dma_dir(cmd->sc_data_direction)); | 696 | cmd->sc_data_direction); |
697 | } else if (cmd->request_bufflen != 0) { | 697 | } else if (cmd->request_bufflen != 0) { |
698 | pci_unmap_single(ahc->dev_softc, | 698 | pci_unmap_single(ahc->dev_softc, |
699 | scb->platform_data->buf_busaddr, | 699 | scb->platform_data->buf_busaddr, |
700 | cmd->request_bufflen, | 700 | cmd->request_bufflen, |
701 | scsi_to_pci_dma_dir(cmd->sc_data_direction)); | 701 | cmd->sc_data_direction); |
702 | } | 702 | } |
703 | } | 703 | } |
704 | 704 | ||
@@ -3007,7 +3007,7 @@ ahc_linux_dv_inq(struct ahc_softc *ahc, struct scsi_cmnd *cmd, | |||
3007 | } | 3007 | } |
3008 | 3008 | ||
3009 | ahc_linux_dv_fill_cmd(ahc, cmd, devinfo); | 3009 | ahc_linux_dv_fill_cmd(ahc, cmd, devinfo); |
3010 | cmd->sc_data_direction = SCSI_DATA_READ; | 3010 | cmd->sc_data_direction = DMA_FROM_DEVICE; |
3011 | cmd->cmd_len = 6; | 3011 | cmd->cmd_len = 6; |
3012 | cmd->cmnd[0] = INQUIRY; | 3012 | cmd->cmnd[0] = INQUIRY; |
3013 | cmd->cmnd[4] = request_length; | 3013 | cmd->cmnd[4] = request_length; |
@@ -3032,7 +3032,7 @@ ahc_linux_dv_tur(struct ahc_softc *ahc, struct scsi_cmnd *cmd, | |||
3032 | #endif | 3032 | #endif |
3033 | /* Do a TUR to clear out any non-fatal transitional state */ | 3033 | /* Do a TUR to clear out any non-fatal transitional state */ |
3034 | ahc_linux_dv_fill_cmd(ahc, cmd, devinfo); | 3034 | ahc_linux_dv_fill_cmd(ahc, cmd, devinfo); |
3035 | cmd->sc_data_direction = SCSI_DATA_NONE; | 3035 | cmd->sc_data_direction = DMA_NONE; |
3036 | cmd->cmd_len = 6; | 3036 | cmd->cmd_len = 6; |
3037 | cmd->cmnd[0] = TEST_UNIT_READY; | 3037 | cmd->cmnd[0] = TEST_UNIT_READY; |
3038 | } | 3038 | } |
@@ -3054,7 +3054,7 @@ ahc_linux_dv_rebd(struct ahc_softc *ahc, struct scsi_cmnd *cmd, | |||
3054 | free(targ->dv_buffer, M_DEVBUF); | 3054 | free(targ->dv_buffer, M_DEVBUF); |
3055 | targ->dv_buffer = malloc(AHC_REBD_LEN, M_DEVBUF, M_WAITOK); | 3055 | targ->dv_buffer = malloc(AHC_REBD_LEN, M_DEVBUF, M_WAITOK); |
3056 | ahc_linux_dv_fill_cmd(ahc, cmd, devinfo); | 3056 | ahc_linux_dv_fill_cmd(ahc, cmd, devinfo); |
3057 | cmd->sc_data_direction = SCSI_DATA_READ; | 3057 | cmd->sc_data_direction = DMA_FROM_DEVICE; |
3058 | cmd->cmd_len = 10; | 3058 | cmd->cmd_len = 10; |
3059 | cmd->cmnd[0] = READ_BUFFER; | 3059 | cmd->cmnd[0] = READ_BUFFER; |
3060 | cmd->cmnd[1] = 0x0b; | 3060 | cmd->cmnd[1] = 0x0b; |
@@ -3076,7 +3076,7 @@ ahc_linux_dv_web(struct ahc_softc *ahc, struct scsi_cmnd *cmd, | |||
3076 | } | 3076 | } |
3077 | #endif | 3077 | #endif |
3078 | ahc_linux_dv_fill_cmd(ahc, cmd, devinfo); | 3078 | ahc_linux_dv_fill_cmd(ahc, cmd, devinfo); |
3079 | cmd->sc_data_direction = SCSI_DATA_WRITE; | 3079 | cmd->sc_data_direction = DMA_TO_DEVICE; |
3080 | cmd->cmd_len = 10; | 3080 | cmd->cmd_len = 10; |
3081 | cmd->cmnd[0] = WRITE_BUFFER; | 3081 | cmd->cmnd[0] = WRITE_BUFFER; |
3082 | cmd->cmnd[1] = 0x0a; | 3082 | cmd->cmnd[1] = 0x0a; |
@@ -3098,7 +3098,7 @@ ahc_linux_dv_reb(struct ahc_softc *ahc, struct scsi_cmnd *cmd, | |||
3098 | } | 3098 | } |
3099 | #endif | 3099 | #endif |
3100 | ahc_linux_dv_fill_cmd(ahc, cmd, devinfo); | 3100 | ahc_linux_dv_fill_cmd(ahc, cmd, devinfo); |
3101 | cmd->sc_data_direction = SCSI_DATA_READ; | 3101 | cmd->sc_data_direction = DMA_FROM_DEVICE; |
3102 | cmd->cmd_len = 10; | 3102 | cmd->cmd_len = 10; |
3103 | cmd->cmnd[0] = READ_BUFFER; | 3103 | cmd->cmnd[0] = READ_BUFFER; |
3104 | cmd->cmnd[1] = 0x0a; | 3104 | cmd->cmnd[1] = 0x0a; |
@@ -3124,7 +3124,7 @@ ahc_linux_dv_su(struct ahc_softc *ahc, struct scsi_cmnd *cmd, | |||
3124 | } | 3124 | } |
3125 | #endif | 3125 | #endif |
3126 | ahc_linux_dv_fill_cmd(ahc, cmd, devinfo); | 3126 | ahc_linux_dv_fill_cmd(ahc, cmd, devinfo); |
3127 | cmd->sc_data_direction = SCSI_DATA_NONE; | 3127 | cmd->sc_data_direction = DMA_NONE; |
3128 | cmd->cmd_len = 6; | 3128 | cmd->cmd_len = 6; |
3129 | cmd->cmnd[0] = START_STOP_UNIT; | 3129 | cmd->cmnd[0] = START_STOP_UNIT; |
3130 | cmd->cmnd[4] = le | SSS_START; | 3130 | cmd->cmnd[4] = le | SSS_START; |
@@ -3659,7 +3659,7 @@ ahc_linux_run_device_queue(struct ahc_softc *ahc, struct ahc_linux_device *dev) | |||
3659 | 3659 | ||
3660 | cur_seg = (struct scatterlist *)cmd->request_buffer; | 3660 | cur_seg = (struct scatterlist *)cmd->request_buffer; |
3661 | nseg = pci_map_sg(ahc->dev_softc, cur_seg, cmd->use_sg, | 3661 | nseg = pci_map_sg(ahc->dev_softc, cur_seg, cmd->use_sg, |
3662 | scsi_to_pci_dma_dir(cmd->sc_data_direction)); | 3662 | cmd->sc_data_direction); |
3663 | end_seg = cur_seg + nseg; | 3663 | end_seg = cur_seg + nseg; |
3664 | /* Copy the segments into the SG list. */ | 3664 | /* Copy the segments into the SG list. */ |
3665 | sg = scb->sg_list; | 3665 | sg = scb->sg_list; |
@@ -3703,7 +3703,7 @@ ahc_linux_run_device_queue(struct ahc_softc *ahc, struct ahc_linux_device *dev) | |||
3703 | addr = pci_map_single(ahc->dev_softc, | 3703 | addr = pci_map_single(ahc->dev_softc, |
3704 | cmd->request_buffer, | 3704 | cmd->request_buffer, |
3705 | cmd->request_bufflen, | 3705 | cmd->request_bufflen, |
3706 | scsi_to_pci_dma_dir(cmd->sc_data_direction)); | 3706 | cmd->sc_data_direction); |
3707 | scb->platform_data->buf_busaddr = addr; | 3707 | scb->platform_data->buf_busaddr = addr; |
3708 | scb->sg_count = ahc_linux_map_seg(ahc, scb, | 3708 | scb->sg_count = ahc_linux_map_seg(ahc, scb, |
3709 | sg, addr, | 3709 | sg, addr, |