.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/drivers/acorn/scsi/eesox.c |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 1997-2005 Russell King |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify |
---|
7 | | - * it under the terms of the GNU General Public License version 2 as |
---|
8 | | - * published by the Free Software Foundation. |
---|
9 | 6 | * |
---|
10 | 7 | * This driver is based on experimentation. Hence, it may have made |
---|
11 | 8 | * assumptions about the particular card that I have available, and |
---|
.. | .. |
---|
32 | 29 | #include <linux/interrupt.h> |
---|
33 | 30 | #include <linux/init.h> |
---|
34 | 31 | #include <linux/dma-mapping.h> |
---|
| 32 | +#include <linux/pgtable.h> |
---|
35 | 33 | |
---|
36 | 34 | #include <asm/io.h> |
---|
37 | 35 | #include <asm/dma.h> |
---|
38 | 36 | #include <asm/ecard.h> |
---|
39 | | -#include <asm/pgtable.h> |
---|
40 | 37 | |
---|
41 | 38 | #include "../scsi.h" |
---|
42 | 39 | #include <scsi/scsi_host.h> |
---|
.. | .. |
---|
168 | 165 | |
---|
169 | 166 | bufs = copy_SCp_to_sg(&info->sg[0], SCp, NR_SG); |
---|
170 | 167 | |
---|
171 | | - if (direction == DMA_OUT) |
---|
172 | | - map_dir = DMA_TO_DEVICE, |
---|
| 168 | + if (direction == DMA_OUT) { |
---|
| 169 | + map_dir = DMA_TO_DEVICE; |
---|
173 | 170 | dma_dir = DMA_MODE_WRITE; |
---|
174 | | - else |
---|
175 | | - map_dir = DMA_FROM_DEVICE, |
---|
| 171 | + } else { |
---|
| 172 | + map_dir = DMA_FROM_DEVICE; |
---|
176 | 173 | dma_dir = DMA_MODE_READ; |
---|
| 174 | + } |
---|
177 | 175 | |
---|
178 | 176 | dma_map_sg(dev, info->sg, bufs, map_dir); |
---|
179 | 177 | |
---|
.. | .. |
---|
486 | 484 | .this_id = 7, |
---|
487 | 485 | .sg_tablesize = SG_MAX_SEGMENTS, |
---|
488 | 486 | .dma_boundary = IOMD_DMA_BOUNDARY, |
---|
489 | | - .use_clustering = DISABLE_CLUSTERING, |
---|
490 | 487 | .proc_name = "eesox", |
---|
491 | 488 | }; |
---|
492 | 489 | |
---|