Go to the documentation of this file.
36 #define CMD_FLUSHFIFO 0x01
37 #define CMD_RESETCHIP 0x02
38 #define CMD_RESETSCSI 0x03
40 #define CMD_TRANSFERINFO 0x10
41 #define CMD_INITCMDCOMPLETE 0x11
42 #define CMD_MSGACCEPTED 0x12
43 #define CMD_PADBYTES 0x18
44 #define CMD_SETATN 0x1a
45 #define CMD_RSETATN 0x1b
47 #define CMD_SELECTWOATN 0x41
48 #define CMD_SELECTATN 0x42
49 #define CMD_SELECTATNSTOP 0x43
50 #define CMD_ENABLESEL 0x44
51 #define CMD_DISABLESEL 0x45
52 #define CMD_SELECTATN3 0x46
53 #define CMD_RESEL3 0x47
55 #define CMD_WITHDMA 0x80
59 #define STAT_IO (1 << 0)
60 #define STAT_CD (1 << 1)
61 #define STAT_MSG (1 << 2)
62 #define STAT_TRANSFERDONE (1 << 3)
63 #define STAT_TRANSFERCNTZ (1 << 4)
64 #define STAT_PARITYERROR (1 << 5)
65 #define STAT_REALBAD (1 << 6)
66 #define STAT_INT (1 << 7)
68 #define STAT_BUSMASK (STAT_MSG|STAT_CD|STAT_IO)
69 #define STAT_DATAOUT (0)
70 #define STAT_DATAIN (STAT_IO)
71 #define STAT_COMMAND (STAT_CD)
72 #define STAT_STATUS (STAT_CD|STAT_IO)
73 #define STAT_MESGOUT (STAT_MSG|STAT_CD)
74 #define STAT_MESGIN (STAT_MSG|STAT_CD|STAT_IO)
78 #define BUSID(target) ((target) & 7)
82 #define INST_SELWOATN (1 << 0)
83 #define INST_SELATN (1 << 1)
84 #define INST_RESELECTED (1 << 2)
85 #define INST_FUNCDONE (1 << 3)
86 #define INST_BUSSERVICE (1 << 4)
87 #define INST_DISCONNECT (1 << 5)
88 #define INST_ILLEGALCMD (1 << 6)
89 #define INST_BUSRESET (1 << 7)
97 #define IS_SELARB 0x00
98 #define IS_MSGBYTESENT 0x01
99 #define IS_NOTCOMMAND 0x02
100 #define IS_EARLYPHASE 0x03
101 #define IS_COMPLETE 0x04
116 #define REG_CNTL1 (8)
117 #define CNTL1_CID (7 << 0)
118 #define CNTL1_STE (1 << 3)
119 #define CNTL1_PERE (1 << 4)
120 #define CNTL1_PTE (1 << 5)
121 #define CNTL1_DISR (1 << 6)
122 #define CNTL1_ETM (1 << 7)
126 #define CLKF_F37MHZ 0x00
127 #define CLKF_F10MHZ 0x02
128 #define CLKF_F12MHZ 0x03
129 #define CLKF_F17MHZ 0x04
130 #define CLKF_F22MHZ 0x05
131 #define CLKF_F27MHZ 0x06
132 #define CLKF_F32MHZ 0x07
136 #define TEST_FTM 0x01
137 #define TEST_FIM 0x02
138 #define TEST_FHI 0x04
141 #define REG_CNTL2 (11)
142 #define CNTL2_PGDP (1 << 0)
143 #define CNTL2_PGRP (1 << 1)
144 #define CNTL2_ACDPE (1 << 2)
145 #define CNTL2_S2FE (1 << 3)
146 #define CNTL2_TSDR (1 << 4)
147 #define CNTL2_SBO (1 << 5)
148 #define CNTL2_ENF (1 << 6)
149 #define CNTL2_DAE (1 << 7)
152 #define REG_CNTL3 (12)
153 #define CNTL3_BS8 (1 << 0)
154 #define CNTL3_MDM (1 << 1)
155 #define CNTL3_LBTM (1 << 2)
156 #define CNTL3_FASTCLK (1 << 3)
157 #define CNTL3_FASTSCSI (1 << 4)
158 #define CNTL3_G2CB (1 << 5)
159 #define CNTL3_QTAG (1 << 6)
160 #define CNTL3_ADIDCHK (1 << 7)
163 #define REG_CTCH (14)
164 #define REG_STCH (14)
209 #define MAGIC 0x441296bdUL
212 #define FASCAP_DMA (1 << 0)
213 #define FASCAP_PSEUDODMA (1 << 1)
252 unsigned char disconnectable:1;
279 unsigned int disconnect_ok:1;
290 unsigned char disconnect_ok:1;
291 unsigned char parity_enabled:1;
292 unsigned char parity_check:1;
300 unsigned long busyluns[64/
sizeof(
unsigned long)];