diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2014-11-12 00:12:14 -0500 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-11-20 03:11:16 -0500 |
commit | ef1081cbf05b22d3d0e05b267a5559a8cd8e8d4a (patch) | |
tree | 327b642eab6b4d83d5cc268e78a1fb62bfa097ff /drivers/scsi/NCR5380.h | |
parent | f527590278f1b823ba979a234241d09ed2c436b4 (diff) |
atari_NCR5380: Refactor Falcon special cases
Make the atari_NCR5380.c core driver usable by sun3_scsi, mac_scsi and
others by moving some of the Falcon-specific code out of the core driver:
!IS_A_TT, atari_read_overruns and falcon_dont_release. Replace these with
hostdata variables and flags. FLAG_CHECK_LAST_BYTE_SENT is unused in
atari_NCR5380.c so don't set it.
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/NCR5380.h')
-rw-r--r-- | drivers/scsi/NCR5380.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/NCR5380.h b/drivers/scsi/NCR5380.h index 11257784b2d7..7b1a0913d94c 100644 --- a/drivers/scsi/NCR5380.h +++ b/drivers/scsi/NCR5380.h | |||
@@ -241,6 +241,7 @@ | |||
241 | #define FLAG_NCR53C400 4 /* NCR53c400 */ | 241 | #define FLAG_NCR53C400 4 /* NCR53c400 */ |
242 | #define FLAG_NO_PSEUDO_DMA 8 /* Inhibit DMA */ | 242 | #define FLAG_NO_PSEUDO_DMA 8 /* Inhibit DMA */ |
243 | #define FLAG_DTC3181E 16 /* DTC3181E */ | 243 | #define FLAG_DTC3181E 16 /* DTC3181E */ |
244 | #define FLAG_LATE_DMA_SETUP 32 /* Setup NCR before DMA H/W */ | ||
244 | 245 | ||
245 | #ifndef ASM | 246 | #ifndef ASM |
246 | struct NCR5380_hostdata { | 247 | struct NCR5380_hostdata { |
@@ -269,6 +270,9 @@ struct NCR5380_hostdata { | |||
269 | struct delayed_work coroutine; /* our co-routine */ | 270 | struct delayed_work coroutine; /* our co-routine */ |
270 | struct scsi_eh_save ses; | 271 | struct scsi_eh_save ses; |
271 | char info[256]; | 272 | char info[256]; |
273 | int read_overruns; /* number of bytes to cut from a | ||
274 | * transfer to handle chip overruns */ | ||
275 | int retain_dma_intr; | ||
272 | #ifdef PSEUDO_DMA | 276 | #ifdef PSEUDO_DMA |
273 | unsigned spin_max_r; | 277 | unsigned spin_max_r; |
274 | unsigned spin_max_w; | 278 | unsigned spin_max_w; |