aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sun3_scsi.c
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2014-11-12 00:12:17 -0500
committerChristoph Hellwig <hch@lst.de>2014-11-20 03:11:18 -0500
commit8dad0c51dac3f906b213ef3486cad39a06419252 (patch)
treeee9ef9bafaaff110f9b5f588e94eebdc4e76e9f8 /drivers/scsi/sun3_scsi.c
parente3f463b034bad82cd247d9a1b39209ba7152e545 (diff)
sun3_scsi: Adopt atari_NCR5380 core driver and remove sun3_NCR5380.c
Given the preceding changes to atari_NCR5380.c, this patch should not change behaviour of the sun3_scsi and sun3_scsi_vme modules. Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/sun3_scsi.c')
-rw-r--r--drivers/scsi/sun3_scsi.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/scsi/sun3_scsi.c b/drivers/scsi/sun3_scsi.c
index 446c8e58a8db..985a6b36756e 100644
--- a/drivers/scsi/sun3_scsi.c
+++ b/drivers/scsi/sun3_scsi.c
@@ -41,6 +41,8 @@
41#define REAL_DMA 41#define REAL_DMA
42#define RESET_RUN_DONE 42#define RESET_RUN_DONE
43/* #define SUPPORT_TAGS */ 43/* #define SUPPORT_TAGS */
44/* minimum number of bytes to do dma on */
45#define DMA_MIN_SIZE 129
44 46
45/* #define MAX_TAGS 32 */ 47/* #define MAX_TAGS 32 */
46 48
@@ -64,6 +66,9 @@
64#define NCR5380_dma_xfer_len(instance, cmd, phase) \ 66#define NCR5380_dma_xfer_len(instance, cmd, phase) \
65 sun3scsi_dma_xfer_len(cmd->SCp.this_residual, cmd, !((phase) & SR_IO)) 67 sun3scsi_dma_xfer_len(cmd->SCp.this_residual, cmd, !((phase) & SR_IO))
66 68
69#define NCR5380_acquire_dma_irq(instance) (1)
70#define NCR5380_release_dma_irq(instance)
71
67#include "NCR5380.h" 72#include "NCR5380.h"
68 73
69 74
@@ -92,9 +97,6 @@ module_param(setup_hostid, int, 0);
92/* dvma buffer to allocate -- 32k should hopefully be more than sufficient */ 97/* dvma buffer to allocate -- 32k should hopefully be more than sufficient */
93#define SUN3_DVMA_BUFSIZE 0xe000 98#define SUN3_DVMA_BUFSIZE 0xe000
94 99
95/* minimum number of bytes to do dma on */
96#define SUN3_DMA_MINSIZE 128
97
98static struct scsi_cmnd *sun3_dma_setup_done; 100static struct scsi_cmnd *sun3_dma_setup_done;
99static unsigned char *sun3_scsi_regp; 101static unsigned char *sun3_scsi_regp;
100static volatile struct sun3_dma_regs *dregs; 102static volatile struct sun3_dma_regs *dregs;
@@ -486,7 +488,7 @@ static int sun3scsi_dma_finish(int write_flag)
486 488
487} 489}
488 490
489#include "sun3_NCR5380.c" 491#include "atari_NCR5380.c"
490 492
491#ifdef SUN3_SCSI_VME 493#ifdef SUN3_SCSI_VME
492#define SUN3_SCSI_NAME "Sun3 NCR5380 VME SCSI" 494#define SUN3_SCSI_NAME "Sun3 NCR5380 VME SCSI"