1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 #ifndef ATARI_SCSI_H
16 #define ATARI_SCSI_H
17
18
19
20 #ifndef ASM
21 int atari_scsi_abort (Scsi_Cmnd *);
22 int atari_scsi_detect (Scsi_Host_Template *);
23 const char *atari_scsi_info (struct Scsi_Host *);
24 int atari_scsi_queue_command (Scsi_Cmnd *, void (*done) (Scsi_Cmnd *));
25 int atari_scsi_reset (Scsi_Cmnd *, unsigned int);
26 int atari_scsi_proc_info (char *, char **, off_t, int, int, int);
27 #ifdef MODULE
28 int atari_scsi_release (struct Scsi_Host *);
29 #else
30 #define atari_scsi_release NULL
31 #endif
32
33
34
35
36
37
38
39
40
41
42
43 #define ATARI_TT_CAN_QUEUE 16
44 #define ATARI_TT_CMD_PER_LUN 8
45 #define ATARI_TT_SG_TABLESIZE SG_ALL
46
47 #define ATARI_FALCON_CAN_QUEUE 8
48 #define ATARI_FALCON_CMD_PER_LUN 1
49 #define ATARI_FALCON_SG_TABLESIZE SG_NONE
50
51 #define DEFAULT_USE_TAGGED_QUEUING 0
52
53
54 #if defined (HOSTS_C) || defined (MODULE)
55
56 #define ATARI_SCSI { NULL, NULL, NULL, \
57 atari_scsi_proc_info, \
58 "Atari native SCSI", \
59 atari_scsi_detect, \
60 atari_scsi_release, \
61 atari_scsi_info, \
62 NULL, \
63 atari_scsi_queue_command, \
64 atari_scsi_abort, \
65 atari_scsi_reset, \
66 NULL, \
67 NULL, \
68 0, \
69 0, \
70 0, \
71 0, \
72 0, \
73 0, \
74 DISABLE_CLUSTERING }
75
76 #endif
77
78 #ifndef HOSTS_C
79
80 #define NCR5380_implementation_fields
81
82 #define NCR5380_read(reg) atari_scsi_reg_read( reg )
83 #define NCR5380_write(reg, value) atari_scsi_reg_write( reg, value )
84
85 #define NCR5380_intr atari_scsi_intr
86 #define NCR5380_queue_command atari_scsi_queue_command
87 #define NCR5380_abort atari_scsi_abort
88 #define NCR5380_proc_info atari_scsi_proc_info
89 #define NCR5380_dma_read_setup(inst,d,c) atari_scsi_dma_setup (inst, d, c, 0)
90 #define NCR5380_dma_write_setup(inst,d,c) atari_scsi_dma_setup (inst, d, c, 1)
91 #define NCR5380_dma_residual(inst) atari_scsi_dma_residual( inst )
92 #define NCR5380_dma_xfer_len(i,cmd,phase) \
93 atari_dma_xfer_len(cmd->SCp.this_residual,cmd,((phase) & SR_IO) ? 0 : 1)
94
95 #endif
96 #endif
97 #endif
98
99