2 * atari_scsi.h -- Header file for the Atari native SCSI driver
6 * (Loosely based on the work of Robert De Vries' team)
8 * This file is subject to the terms and conditions of the GNU General Public
9 * License. See the file COPYING in the main directory of this archive
18 /* (I_HAVE_OVERRUNS stuff removed) */
21 /* The values for CMD_PER_LUN and CAN_QUEUE are somehow arbitrary. Higher
22 * values should work, too; try it! (but cmd_per_lun costs memory!) */
24 /* But there seems to be a bug somewhere that requires CAN_QUEUE to be
25 * 2*CMD_PER_LUN. At least on a TT, no spurious timeouts seen since
26 * changed CMD_PER_LUN... */
28 /* Note: The Falcon currently uses 8/1 setting due to unsolved problems with
31 #define ATARI_TT_CAN_QUEUE 16
32 #define ATARI_TT_CMD_PER_LUN 8
33 #define ATARI_TT_SG_TABLESIZE SG_ALL
35 #define ATARI_FALCON_CAN_QUEUE 8
36 #define ATARI_FALCON_CMD_PER_LUN 1
37 #define ATARI_FALCON_SG_TABLESIZE SG_NONE
39 #define DEFAULT_USE_TAGGED_QUEUING 0
42 #define NCR5380_implementation_fields /* none */
44 #define NCR5380_read(reg) atari_scsi_reg_read( reg )
45 #define NCR5380_write(reg, value) atari_scsi_reg_write( reg, value )
47 #define NCR5380_intr atari_scsi_intr
48 #define NCR5380_queue_command atari_scsi_queue_command
49 #define NCR5380_abort atari_scsi_abort
50 #define NCR5380_show_info atari_scsi_show_info
51 #define NCR5380_dma_read_setup(inst,d,c) atari_scsi_dma_setup (inst, d, c, 0)
52 #define NCR5380_dma_write_setup(inst,d,c) atari_scsi_dma_setup (inst, d, c, 1)
53 #define NCR5380_dma_residual(inst) atari_scsi_dma_residual( inst )
54 #define NCR5380_dma_xfer_len(i,cmd,phase) \
55 atari_dma_xfer_len(cmd->SCp.this_residual,cmd,((phase) & SR_IO) ? 0 : 1)
58 #endif /* ATARI_SCSI_H */