aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sym53c8xx_2/sym_glue.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/sym53c8xx_2/sym_glue.c')
-rw-r--r--drivers/scsi/sym53c8xx_2/sym_glue.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/scsi/sym53c8xx_2/sym_glue.c b/drivers/scsi/sym53c8xx_2/sym_glue.c
index 9c83b4d39a2..ea82d3df63a 100644
--- a/drivers/scsi/sym53c8xx_2/sym_glue.c
+++ b/drivers/scsi/sym53c8xx_2/sym_glue.c
@@ -54,14 +54,8 @@
54#define NAME53C "sym53c" 54#define NAME53C "sym53c"
55#define NAME53C8XX "sym53c8xx" 55#define NAME53C8XX "sym53c8xx"
56 56
57/* SPARC just has to be different ... */
58#ifdef __sparc__
59#define IRQ_FMT "%s"
60#define IRQ_PRM(x) __irq_itoa(x)
61#else
62#define IRQ_FMT "%d" 57#define IRQ_FMT "%d"
63#define IRQ_PRM(x) (x) 58#define IRQ_PRM(x) (x)
64#endif
65 59
66struct sym_driver_setup sym_driver_setup = SYM_LINUX_DRIVER_SETUP; 60struct sym_driver_setup sym_driver_setup = SYM_LINUX_DRIVER_SETUP;
67unsigned int sym_debug_flags = 0; 61unsigned int sym_debug_flags = 0;
@@ -156,7 +150,7 @@ static void __unmap_scsi_data(struct pci_dev *pdev, struct scsi_cmnd *cmd)
156 150
157 switch(SYM_UCMD_PTR(cmd)->data_mapped) { 151 switch(SYM_UCMD_PTR(cmd)->data_mapped) {
158 case 2: 152 case 2:
159 pci_unmap_sg(pdev, cmd->buffer, cmd->use_sg, dma_dir); 153 pci_unmap_sg(pdev, cmd->request_buffer, cmd->use_sg, dma_dir);
160 break; 154 break;
161 case 1: 155 case 1:
162 pci_unmap_single(pdev, SYM_UCMD_PTR(cmd)->data_mapping, 156 pci_unmap_single(pdev, SYM_UCMD_PTR(cmd)->data_mapping,
@@ -186,7 +180,7 @@ static int __map_scsi_sg_data(struct pci_dev *pdev, struct scsi_cmnd *cmd)
186 int use_sg; 180 int use_sg;
187 int dma_dir = cmd->sc_data_direction; 181 int dma_dir = cmd->sc_data_direction;
188 182
189 use_sg = pci_map_sg(pdev, cmd->buffer, cmd->use_sg, dma_dir); 183 use_sg = pci_map_sg(pdev, cmd->request_buffer, cmd->use_sg, dma_dir);
190 if (use_sg > 0) { 184 if (use_sg > 0) {
191 SYM_UCMD_PTR(cmd)->data_mapped = 2; 185 SYM_UCMD_PTR(cmd)->data_mapped = 2;
192 SYM_UCMD_PTR(cmd)->data_mapping = use_sg; 186 SYM_UCMD_PTR(cmd)->data_mapping = use_sg;
@@ -376,7 +370,7 @@ static int sym_scatter(struct sym_hcb *np, struct sym_ccb *cp, struct scsi_cmnd
376 if (!use_sg) 370 if (!use_sg)
377 segment = sym_scatter_no_sglist(np, cp, cmd); 371 segment = sym_scatter_no_sglist(np, cp, cmd);
378 else if ((use_sg = map_scsi_sg_data(np, cmd)) > 0) { 372 else if ((use_sg = map_scsi_sg_data(np, cmd)) > 0) {
379 struct scatterlist *scatter = (struct scatterlist *)cmd->buffer; 373 struct scatterlist *scatter = (struct scatterlist *)cmd->request_buffer;
380 struct sym_tcb *tp = &np->target[cp->target]; 374 struct sym_tcb *tp = &np->target[cp->target];
381 struct sym_tblmove *data; 375 struct sym_tblmove *data;
382 376