
Convert atari_scsi to platform device and eliminate scsi_register(). Validate __setup options later on so that module options are checked as well. Remove the comment about the scsi mid-layer disabling the host irq as it is no longer true (AFAICT). Also remove the obsolete slow interrupt stuff (IRQ_TYPE_SLOW == 0 anyway). Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Reviewed-by: Hannes Reinecke <hare@suse.de> Tested-by: Michael Schmitz <schmitzmic@gmail.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Christoph Hellwig <hch@lst.de>
41 lines
1.2 KiB
C
41 lines
1.2 KiB
C
/*
|
|
* atari_scsi.h -- Header file for the Atari native SCSI driver
|
|
*
|
|
* Copyright 1994 Roman Hodek <Roman.Hodek@informatik.uni-erlangen.de>
|
|
*
|
|
* (Loosely based on the work of Robert De Vries' team)
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License. See the file COPYING in the main directory of this archive
|
|
* for more details.
|
|
*
|
|
*/
|
|
|
|
|
|
#ifndef ATARI_SCSI_H
|
|
#define ATARI_SCSI_H
|
|
|
|
/* (I_HAVE_OVERRUNS stuff removed) */
|
|
|
|
#ifndef ASM
|
|
|
|
#define NCR5380_implementation_fields /* none */
|
|
|
|
#define NCR5380_read(reg) atari_scsi_reg_read( reg )
|
|
#define NCR5380_write(reg, value) atari_scsi_reg_write( reg, value )
|
|
|
|
#define NCR5380_queue_command atari_scsi_queue_command
|
|
#define NCR5380_abort atari_scsi_abort
|
|
#define NCR5380_show_info atari_scsi_show_info
|
|
#define NCR5380_info atari_scsi_info
|
|
#define NCR5380_dma_read_setup(inst,d,c) atari_scsi_dma_setup (inst, d, c, 0)
|
|
#define NCR5380_dma_write_setup(inst,d,c) atari_scsi_dma_setup (inst, d, c, 1)
|
|
#define NCR5380_dma_residual(inst) atari_scsi_dma_residual( inst )
|
|
#define NCR5380_dma_xfer_len(i,cmd,phase) \
|
|
atari_dma_xfer_len(cmd->SCp.this_residual,cmd,((phase) & SR_IO) ? 0 : 1)
|
|
|
|
#endif /* ndef ASM */
|
|
#endif /* ATARI_SCSI_H */
|
|
|
|
|