ncr5380: Merge DMA implementation from atari_NCR5380 core driver
Adopt the DMA implementation from atari_NCR5380.c. This means that atari_scsi and sun3_scsi can make use of the NCR5380.c core driver and the atari_NCR5380.c driver fork can be made redundant. Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Reviewed-by: Hannes Reinecke <hare@suse.com> Tested-by: Michael Schmitz <schmitzmic@gmail.com> Tested-by: Ondrej Zary <linux@rainbow-software.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
438af51c64
commit
8053b0ee79
@@ -37,6 +37,7 @@
|
||||
macscsi_dma_xfer_len(instance, cmd)
|
||||
#define NCR5380_dma_recv_setup macscsi_pread
|
||||
#define NCR5380_dma_send_setup macscsi_pwrite
|
||||
#define NCR5380_dma_residual(instance) (0)
|
||||
|
||||
#define NCR5380_intr macscsi_intr
|
||||
#define NCR5380_queue_command macscsi_queue_command
|
||||
@@ -386,7 +387,7 @@ static int __init mac_scsi_probe(struct platform_device *pdev)
|
||||
#endif
|
||||
host_flags |= setup_toshiba_delay > 0 ? FLAG_TOSHIBA_DELAY : 0;
|
||||
|
||||
error = NCR5380_init(instance, host_flags);
|
||||
error = NCR5380_init(instance, host_flags | FLAG_LATE_DMA_SETUP);
|
||||
if (error)
|
||||
goto fail_init;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user