Lines Matching +full:0 +full:x05000000
15 #define SCNTL0 0x00 /* full arb., ena parity, par->ATN */
17 #define SCNTL1 0x01 /* no reset */
18 #define ISCON 0x10 /* connected to scsi */
19 #define CRST 0x08 /* force reset */
20 #define IARB 0x02 /* immediate arbitration */
22 #define SCNTL2 0x02 /* no disconnect expected */
23 #define SDU 0x80 /* cmd: disconnect will raise error */
24 #define CHM 0x40 /* sta: chained mode */
25 #define WSS 0x08 /* sta: wide scsi send [W]*/
26 #define WSR 0x01 /* sta: wide scsi received [W]*/
28 #define SCNTL3 0x03 /* cnf system clock dependent */
29 #define EWS 0x08 /* cmd: enable wide scsi [W]*/
30 #define ULTRA 0x80 /* cmd: ULTRA enable */
31 /* bits 0-2, 7 rsvd for C1010 */
33 #define SCID 0x04 /* cnf host adapter scsi address */
34 #define RRE 0x40 /* r/w:e enable response to resel. */
35 #define SRE 0x20 /* r/w:e enable response to select */
37 #define SXFER 0x05 /* ### Sync speed and count */
40 #define SDID 0x06 /* ### Destination-ID */
42 #define GPREG 0x07 /* ??? IO-Pins */
44 #define SFBR 0x08 /* ### First byte in phase */
46 #define SOCL 0x09
47 #define CREQ 0x80 /* r/w: SCSI-REQ */
48 #define CACK 0x40 /* r/w: SCSI-ACK */
49 #define CBSY 0x20 /* r/w: SCSI-BSY */
50 #define CSEL 0x10 /* r/w: SCSI-SEL */
51 #define CATN 0x08 /* r/w: SCSI-ATN */
52 #define CMSG 0x04 /* r/w: SCSI-MSG */
53 #define CC_D 0x02 /* r/w: SCSI-C_D */
54 #define CI_O 0x01 /* r/w: SCSI-I_O */
56 #define SSID 0x0a
58 #define SBCL 0x0b
60 #define DSTAT 0x0c
61 #define DFE 0x80 /* sta: dma fifo empty */
62 #define MDPE 0x40 /* int: master data parity error */
63 #define BF 0x20 /* int: script: bus fault */
64 #define ABRT 0x10 /* int: script: command aborted */
65 #define SSI 0x08 /* int: script: single step */
66 #define SIR 0x04 /* int: script: interrupt instruct. */
67 #define IID 0x01 /* int: script: illegal instruct. */
69 #define SSTAT0 0x0d
70 #define ILF 0x80 /* sta: data in SIDL register lsb */
71 #define ORF 0x40 /* sta: data in SODR register lsb */
72 #define OLF 0x20 /* sta: data in SODL register lsb */
73 #define AIP 0x10 /* sta: arbitration in progress */
74 #define LOA 0x08 /* sta: arbitration lost */
75 #define WOA 0x04 /* sta: arbitration won */
76 #define IRST 0x02 /* sta: scsi reset signal */
77 #define SDP 0x01 /* sta: scsi parity signal */
79 #define SSTAT1 0x0e
80 #define FF3210 0xf0 /* sta: bytes in the scsi fifo */
82 #define SSTAT2 0x0f
83 #define ILF1 0x80 /* sta: data in SIDL register msb[W]*/
84 #define ORF1 0x40 /* sta: data in SODR register msb[W]*/
85 #define OLF1 0x20 /* sta: data in SODL register msb[W]*/
86 #define DM 0x04 /* sta: DIFFSENS mismatch (895/6 only) */
87 #define LDSC 0x02 /* sta: disconnect & reconnect */
89 #define DSA 0x10 /* --> Base page */
90 #define DSA1 0x11
91 #define DSA2 0x12
92 #define DSA3 0x13
94 #define ISTAT 0x14 /* --> Main Command and status */
95 #define CABRT 0x80 /* cmd: abort current operation */
96 #define SRST 0x40 /* mod: reset chip */
97 #define SIGP 0x20 /* r/w: message from host to ncr */
98 #define SEM 0x10 /* r/w: message between host + ncr */
99 #define CON 0x08 /* sta: connected to scsi */
100 #define INTF 0x04 /* sta: int on the fly (reset by wr)*/
101 #define SIP 0x02 /* sta: scsi-interrupt */
102 #define DIP 0x01 /* sta: host/script interrupt */
105 #define CTEST0 0x18
106 #define CTEST1 0x19
107 #define CTEST2 0x1a
108 #define CSIGP 0x40
109 /* bits 0-2,7 rsvd for C1010 */
111 #define CTEST3 0x1b
112 #define FLF 0x08 /* cmd: flush dma fifo */
113 #define CLF 0x04 /* cmd: clear dma fifo */
114 #define FM 0x02 /* mod: fetch pin mode */
115 #define WRIE 0x01 /* mod: write and invalidate enable */
118 #define DFIFO 0x20
119 #define CTEST4 0x21
120 #define BDIS 0x80 /* mod: burst disable */
121 #define MPEE 0x08 /* mod: master parity error enable */
123 #define CTEST5 0x22
124 #define DFS 0x20 /* mod: dma fifo size */
125 /* bits 0-1, 3-7 rsvd for C1010 */
126 #define CTEST6 0x23
128 #define DBC 0x24 /* ### Byte count and command */
129 #define DNAD 0x28 /* ### Next command register */
130 #define DSP 0x2c /* --> Script Pointer */
131 #define DSPS 0x30 /* --> Script pointer save/opcode#2 */
133 #define SCRATCHA 0x34 /* Temporary register a */
134 #define SCRATCHA1 0x35
135 #define SCRATCHA2 0x36
136 #define SCRATCHA3 0x37
138 #define DMODE 0x38
139 #define BL_2 0x80 /* mod: burst length shift value +2 */
140 #define BL_1 0x40 /* mod: burst length shift value +1 */
141 #define ERL 0x08 /* mod: enable read line */
142 #define ERMP 0x04 /* mod: enable read multiple */
143 #define BOF 0x02 /* mod: burst op code fetch */
144 #define MAN 0x01 /* mod: manual start */
146 #define DIEN 0x39
147 #define SBR 0x3a
149 #define DCNTL 0x3b /* --> Script execution control */
150 #define CLSE 0x80 /* mod: cache line size enable */
151 #define PFF 0x40 /* cmd: pre-fetch flush */
152 #define PFEN 0x20 /* mod: pre-fetch enable */
153 #define SSM 0x10 /* mod: single step mode */
154 #define IRQM 0x08 /* mod: irq mode (1 = totem pole !) */
155 #define STD 0x04 /* cmd: start dma mode */
156 #define IRQD 0x02 /* mod: irq disable */
157 #define NOCOM 0x01 /* cmd: protect sfbr while reselect */
158 /* bits 0-1 rsvd for C1010 */
160 #define ADDER 0x3c
162 #define SIEN 0x40 /* -->: interrupt enable */
163 #define SIST 0x42 /* <--: interrupt status */
164 #define SBMC 0x1000/* sta: SCSI Bus Mode Change (895/6 only) */
165 #define STO 0x0400/* sta: timeout (select) */
166 #define GEN 0x0200/* sta: timeout (general) */
167 #define HTH 0x0100/* sta: timeout (handshake) */
168 #define MA 0x80 /* sta: phase mismatch */
169 #define CMP 0x40 /* sta: arbitration complete */
170 #define SEL 0x20 /* sta: selected by another device */
171 #define RSL 0x10 /* sta: reselected by another device*/
172 #define SGE 0x08 /* sta: gross error (over/underflow)*/
173 #define UDC 0x04 /* sta: unexpected disconnect */
174 #define RST 0x02 /* sta: scsi bus reset detected */
175 #define PAR 0x01 /* sta: scsi parity error */
177 #define SLPAR 0x44
178 #define SWIDE 0x45
179 #define MACNTL 0x46
180 #define GPCNTL 0x47
181 #define STIME0 0x48 /* cmd: timeout for select&handshake*/
182 #define STIME1 0x49 /* cmd: timeout user defined */
183 #define RESPID 0x4a /* sta: Reselect-IDs */
185 #define STEST0 0x4c
187 #define STEST1 0x4d
188 #define SCLK 0x80 /* Use the PCI clock as SCSI clock */
189 #define DBLEN 0x08 /* clock doubler running */
190 #define DBLSEL 0x04 /* clock doubler selected */
193 #define STEST2 0x4e
194 #define ROF 0x40 /* reset scsi offset (after gross error!) */
195 #define EXT 0x02 /* extended filtering */
197 #define STEST3 0x4f
198 #define TE 0x80 /* c: tolerAnt enable */
199 #define HSC 0x20 /* c: Halt SCSI Clock */
200 #define CSF 0x02 /* c: clear scsi fifo */
202 #define SIDL 0x50 /* Lowlevel: latched from scsi data */
203 #define STEST4 0x52
204 #define SMODE 0xc0 /* SCSI bus mode (895/6 only) */
205 #define SMODE_HVD 0x40 /* High Voltage Differential */
206 #define SMODE_SE 0x80 /* Single Ended */
207 #define SMODE_LVD 0xc0 /* Low Voltage Differential */
208 #define LCKFRQ 0x20 /* Frequency Lock (895/6 only) */
209 /* bits 0-5 rsvd for C1010 */
211 #define SODL 0x54 /* Lowlevel: data out to scsi data */
213 #define SBDL 0x58 /* Lowlevel: data from scsi data */
234 #define SCR_DATA_OUT 0x00000000
235 #define SCR_DATA_IN 0x01000000
236 #define SCR_COMMAND 0x02000000
237 #define SCR_STATUS 0x03000000
238 #define SCR_DT_DATA_OUT 0x04000000
239 #define SCR_DT_DATA_IN 0x05000000
240 #define SCR_MSG_OUT 0x06000000
241 #define SCR_MSG_IN 0x07000000
243 #define SCR_ILG_OUT 0x04000000
244 #define SCR_ILG_IN 0x05000000
264 #define OPC_MOVE 0x08000000
266 #define SCR_MOVE_ABS(l) ((0x00000000 | OPC_MOVE) | (l))
267 #define SCR_MOVE_IND(l) ((0x20000000 | OPC_MOVE) | (l))
268 #define SCR_MOVE_TBL (0x10000000 | OPC_MOVE)
270 #define SCR_CHMOV_ABS(l) ((0x00000000) | (l))
271 #define SCR_CHMOV_IND(l) ((0x20000000) | (l))
272 #define SCR_CHMOV_TBL (0x10000000)
281 ** SEL_ABS | SCR_ID (0..15) [ | REL_JMP]
290 #define SCR_SEL_ABS 0x40000000
291 #define SCR_SEL_ABS_ATN 0x41000000
292 #define SCR_SEL_TBL 0x42000000
293 #define SCR_SEL_TBL_ATN 0x43000000
296 #define SCR_JMP_REL 0x04000000
314 #define SCR_WAIT_DISC 0x48000000
315 #define SCR_WAIT_RESEL 0x50000000
330 #define SCR_SET(f) (0x58000000 | (f))
331 #define SCR_CLR(f) (0x60000000 | (f))
333 #define SCR_CARRY 0x00000400
334 #define SCR_TRG 0x00000200
335 #define SCR_ACK 0x00000040
336 #define SCR_ATN 0x00000008
357 #define SCR_NO_FLUSH 0x01000000
359 #define SCR_COPY(n) (0xc0000000 | SCR_NO_FLUSH | (n))
360 #define SCR_COPY_F(n) (0xc0000000 | (n))
369 ** << 0 >>
372 ** << 0 >>
375 ** << 0 >>
381 ** offset 0x80. Bit 7 of register offset is stored in
386 #define SCR_REG_OFS(ofs) ((((ofs) & 0x7f) << 16ul)) /* + ((ofs) & 0x80)) */
389 (0x68000000 | (SCR_REG_OFS(REG(reg))) | (op) | (((data)&0xff)<<8ul))
392 (0x70000000 | (SCR_REG_OFS(REG(reg))) | (op) | (((data)&0xff)<<8ul))
395 (0x78000000 | (SCR_REG_OFS(REG(reg))) | (op) | (((data)&0xff)<<8ul))
398 #define SCR_LOAD 0x00000000
399 #define SCR_SHL 0x01000000
400 #define SCR_OR 0x02000000
401 #define SCR_XOR 0x03000000
402 #define SCR_AND 0x04000000
403 #define SCR_SHR 0x05000000
404 #define SCR_ADD 0x06000000
405 #define SCR_ADDC 0x07000000
407 #define SCR_SFBR_DATA (0x00800000>>8ul) /* Use SFBR as data */
412 ** << 0 >>
415 ** << 0 >>
418 ** << 0 >>
421 ** << 0 >>
427 SCR_REG_SFBR(reg,SCR_OR,0)
430 SCR_SFBR_REG(reg,SCR_OR,0)
456 #define SCR_REG_OFS2(ofs) (((ofs) & 0xff) << 16ul)
457 #define SCR_NO_FLUSH2 0x02000000
458 #define SCR_DSA_REL2 0x10000000
461 (0xe1000000 | how | (SCR_REG_OFS2(REG(reg))) | (n))
464 (0xe0000000 | how | (SCR_REG_OFS2(REG(reg))) | (n))
468 #define SCR_LOAD_ABS_F(reg, n) SCR_LOAD_R(reg, 0, n)
473 #define SCR_STORE_ABS_F(reg, n) SCR_STORE_R(reg, 0, n)
513 #define SCR_NO_OP 0x80000000
514 #define SCR_JUMP 0x80080000
515 #define SCR_JUMP64 0x80480000
516 #define SCR_JUMPR 0x80880000
517 #define SCR_CALL 0x88080000
518 #define SCR_CALLR 0x88880000
519 #define SCR_RETURN 0x90080000
520 #define SCR_INT 0x98080000
521 #define SCR_INT_FLY 0x98180000
523 #define IFFALSE(arg) (0x00080000 | (arg))
524 #define IFTRUE(arg) (0x00000000 | (arg))
526 #define WHEN(phase) (0x00030000 | (phase))
527 #define IF(phase) (0x00020000 | (phase))
529 #define DATA(D) (0x00040000 | ((D) & 0xff))
530 #define MASK(D,M) (0x00040000 | (((M ^ 0xff) & 0xff) << 8ul)|((D) & 0xff))
532 #define CARRYSET (0x00200000)
535 #define SIR_COMPLETE 0x10000000
537 #define SIR_SEL_ATN_NO_MSG_OUT 0x00000001
538 #define SIR_CMD_OUT_ILL_PH 0x00000002
539 #define SIR_STATUS_ILL_PH 0x00000003
540 #define SIR_MSG_RECEIVED 0x00000004
541 #define SIR_DATA_IN_ERR 0x00000005
542 #define SIR_DATA_OUT_ERR 0x00000006
543 #define SIR_SCRIPT_ERROR 0x00000007
544 #define SIR_MSG_OUT_NO_CMD 0x00000008
545 #define SIR_MSG_OVER7 0x00000009
547 #define INT_ON_FY 0x00000080
551 #define SCSI_IDENTIFY 0xC0