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/qlogicisp.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/qlogicisp.c')
-rw-r--r-- | drivers/scsi/qlogicisp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/qlogicisp.c b/drivers/scsi/qlogicisp.c index 71d597a9b0b0..6d29e1b864e2 100644 --- a/drivers/scsi/qlogicisp.c +++ b/drivers/scsi/qlogicisp.c | |||
@@ -877,7 +877,7 @@ static int isp1020_queuecommand(Scsi_Cmnd *Cmnd, void (*done)(Scsi_Cmnd *)) | |||
877 | ds = cmd->dataseg; | 877 | ds = cmd->dataseg; |
878 | 878 | ||
879 | sg_count = pci_map_sg(hostdata->pci_dev, sg, Cmnd->use_sg, | 879 | sg_count = pci_map_sg(hostdata->pci_dev, sg, Cmnd->use_sg, |
880 | scsi_to_pci_dma_dir(Cmnd->sc_data_direction)); | 880 | Cmnd->sc_data_direction); |
881 | 881 | ||
882 | cmd->segment_cnt = cpu_to_le16(sg_count); | 882 | cmd->segment_cnt = cpu_to_le16(sg_count); |
883 | 883 | ||
@@ -934,7 +934,7 @@ static int isp1020_queuecommand(Scsi_Cmnd *Cmnd, void (*done)(Scsi_Cmnd *)) | |||
934 | dma_addr = pci_map_single(hostdata->pci_dev, | 934 | dma_addr = pci_map_single(hostdata->pci_dev, |
935 | Cmnd->request_buffer, | 935 | Cmnd->request_buffer, |
936 | Cmnd->request_bufflen, | 936 | Cmnd->request_bufflen, |
937 | scsi_to_pci_dma_dir(Cmnd->sc_data_direction)); | 937 | Cmnd->sc_data_direction); |
938 | Cmnd->SCp.ptr = (char *)(unsigned long) dma_addr; | 938 | Cmnd->SCp.ptr = (char *)(unsigned long) dma_addr; |
939 | 939 | ||
940 | cmd->dataseg[0].d_base = | 940 | cmd->dataseg[0].d_base = |
@@ -1067,7 +1067,7 @@ void isp1020_intr_handler(int irq, void *dev_id, struct pt_regs *regs) | |||
1067 | pci_unmap_sg(hostdata->pci_dev, | 1067 | pci_unmap_sg(hostdata->pci_dev, |
1068 | (struct scatterlist *)Cmnd->buffer, | 1068 | (struct scatterlist *)Cmnd->buffer, |
1069 | Cmnd->use_sg, | 1069 | Cmnd->use_sg, |
1070 | scsi_to_pci_dma_dir(Cmnd->sc_data_direction)); | 1070 | Cmnd->sc_data_direction); |
1071 | else if (Cmnd->request_bufflen) | 1071 | else if (Cmnd->request_bufflen) |
1072 | pci_unmap_single(hostdata->pci_dev, | 1072 | pci_unmap_single(hostdata->pci_dev, |
1073 | #ifdef CONFIG_QL_ISP_A64 | 1073 | #ifdef CONFIG_QL_ISP_A64 |
@@ -1076,7 +1076,7 @@ void isp1020_intr_handler(int irq, void *dev_id, struct pt_regs *regs) | |||
1076 | (u32)((long)Cmnd->SCp.ptr), | 1076 | (u32)((long)Cmnd->SCp.ptr), |
1077 | #endif | 1077 | #endif |
1078 | Cmnd->request_bufflen, | 1078 | Cmnd->request_bufflen, |
1079 | scsi_to_pci_dma_dir(Cmnd->sc_data_direction)); | 1079 | Cmnd->sc_data_direction); |
1080 | 1080 | ||
1081 | isp_outw(out_ptr, host, MBOX5); | 1081 | isp_outw(out_ptr, host, MBOX5); |
1082 | (*Cmnd->scsi_done)(Cmnd); | 1082 | (*Cmnd->scsi_done)(Cmnd); |