atari_scsi.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. #ifndef ATARI_SCSI_H
  14. #define ATARI_SCSI_H
  15. /* (I_HAVE_OVERRUNS stuff removed) */
  16. #ifndef ASM
  17. /* The values for CMD_PER_LUN and CAN_QUEUE are somehow arbitrary. Higher
  18. * values should work, too; try it! (but cmd_per_lun costs memory!) */
  19. /* But there seems to be a bug somewhere that requires CAN_QUEUE to be
  20. * 2*CMD_PER_LUN. At least on a TT, no spurious timeouts seen since
  21. * changed CMD_PER_LUN... */
  22. /* Note: The Falcon currently uses 8/1 setting due to unsolved problems with
  23. * cmd_per_lun != 1 */
  24. #define ATARI_TT_CAN_QUEUE 16
  25. #define ATARI_TT_CMD_PER_LUN 8
  26. #define ATARI_TT_SG_TABLESIZE SG_ALL
  27. #define ATARI_FALCON_CAN_QUEUE 8
  28. #define ATARI_FALCON_CMD_PER_LUN 1
  29. #define ATARI_FALCON_SG_TABLESIZE SG_NONE
  30. #define DEFAULT_USE_TAGGED_QUEUING 0
  31. #define NCR5380_implementation_fields /* none */
  32. #define NCR5380_read(reg) atari_scsi_reg_read( reg )
  33. #define NCR5380_write(reg, value) atari_scsi_reg_write( reg, value )
  34. #define NCR5380_intr atari_scsi_intr
  35. #define NCR5380_queue_command atari_scsi_queue_command
  36. #define NCR5380_abort atari_scsi_abort
  37. #define NCR5380_show_info atari_scsi_show_info
  38. #define NCR5380_dma_read_setup(inst,d,c) atari_scsi_dma_setup (inst, d, c, 0)
  39. #define NCR5380_dma_write_setup(inst,d,c) atari_scsi_dma_setup (inst, d, c, 1)
  40. #define NCR5380_dma_residual(inst) atari_scsi_dma_residual( inst )
  41. #define NCR5380_dma_xfer_len(i,cmd,phase) \
  42. atari_dma_xfer_len(cmd->SCp.this_residual,cmd,((phase) & SR_IO) ? 0 : 1)
  43. #endif /* ndef ASM */
  44. #endif /* ATARI_SCSI_H */