Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * atari_scsi.h -- Header file for the Atari native SCSI driver |
| 3 | * |
| 4 | * Copyright 1994 Roman Hodek <Roman.Hodek@informatik.uni-erlangen.de> |
| 5 | * |
| 6 | * (Loosely based on the work of Robert De Vries' team) |
| 7 | * |
| 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 |
| 10 | * for more details. |
| 11 | * |
| 12 | */ |
| 13 | |
| 14 | |
| 15 | #ifndef ATARI_SCSI_H |
| 16 | #define ATARI_SCSI_H |
| 17 | |
| 18 | /* (I_HAVE_OVERRUNS stuff removed) */ |
| 19 | |
| 20 | #ifndef ASM |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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!) */ |
| 23 | |
| 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... */ |
| 27 | |
| 28 | /* Note: The Falcon currently uses 8/1 setting due to unsolved problems with |
| 29 | * cmd_per_lun != 1 */ |
| 30 | |
| 31 | #define ATARI_TT_CAN_QUEUE 16 |
| 32 | #define ATARI_TT_CMD_PER_LUN 8 |
| 33 | #define ATARI_TT_SG_TABLESIZE SG_ALL |
| 34 | |
| 35 | #define ATARI_FALCON_CAN_QUEUE 8 |
| 36 | #define ATARI_FALCON_CMD_PER_LUN 1 |
| 37 | #define ATARI_FALCON_SG_TABLESIZE SG_NONE |
| 38 | |
| 39 | #define DEFAULT_USE_TAGGED_QUEUING 0 |
| 40 | |
| 41 | |
| 42 | #define NCR5380_implementation_fields /* none */ |
| 43 | |
| 44 | #define NCR5380_read(reg) atari_scsi_reg_read( reg ) |
| 45 | #define NCR5380_write(reg, value) atari_scsi_reg_write( reg, value ) |
| 46 | |
| 47 | #define NCR5380_intr atari_scsi_intr |
| 48 | #define NCR5380_queue_command atari_scsi_queue_command |
| 49 | #define NCR5380_abort atari_scsi_abort |
Al Viro | d89537e | 2013-03-31 13:24:44 -0400 | [diff] [blame] | 50 | #define NCR5380_show_info atari_scsi_show_info |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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) |
| 56 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 57 | #endif /* ndef ASM */ |
| 58 | #endif /* ATARI_SCSI_H */ |
| 59 | |
| 60 | |