annotate defs/scsi.d @ 2624:b8c7b7fbf3c9

Major changes: o os9defs, rbfdefs, scfdefs now os9.d, rbf.d, and scf.d o vtiodefs now broken into cocovtio.d (for coco and dragon) and atarivtio.d o systype now broken into coco.d, dragon.d and atari.d o all references to the above in other files have changed
author Boisy Pitre <boisy.pitre@nuance.com>
date Fri, 24 Feb 2012 08:51:08 -0600
parents 17d43fd29ee2
children 6bd6e348665d bfe3de781ddf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2624
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2590
diff changeset
1 IFNE SCSI.D-1
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2590
diff changeset
2 SCSI.D SET 1
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2590
diff changeset
3
2590
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
4 ********************************************************************
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
5 * scsi.d - SCSI definitions
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
6 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
7 * $Id$
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
8 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
9 * (C) 2004 Boisy G. Pitre - Licensed to Cloud-9
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
10 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
11 * Edt/Rev YYYY/MM/DD Modified by
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
12 * Comment
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
13 * ------------------------------------------------------------------
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
14 * 2005/12/11 Boisy G. Pitre
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
15 * Moved SCSI base addresses and I/O offsets to here.
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
16
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
17
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
18 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
19 * SCSI Packet Command Bytes
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
20 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
21 S$REZERO EQU $01
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
22 S$REQSEN EQU $03
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
23 S$FORMAT EQU $04
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
24 S$READ EQU $08
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
25 S$WRITE EQU $0A
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
26 S$SEEK EQU $0B
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
27 S$MODSEL EQU $15
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
28 S$UNIT EQU $1B
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
29 S$RCAP EQU $25
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
30 S$READEX EQU $28
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
31 S$WRITEX EQU $2A
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
32
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
33 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
34 * SCSI Status Codes
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
35 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
36 X$ERROR EQU $02
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
37 X$BUSY EQU $08
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
38
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
39 **** Cloud-9 TC^3 Controller Definitions
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
40 IFNE TC3+SB
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
41 SCSIDATA EQU 0
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
42 SCSISTAT EQU 1
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
43 SCSISEL EQU 1
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
44 SCSIRST EQU 1 INVALID, but not used
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
45
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
46 REQ EQU $01
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
47 BUSY EQU $02
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
48 MSG EQU $04
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
49 CMD EQU $08
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
50 INOUT EQU $10
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
51
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
52 IFNE SB
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
53 SDAddr SET $FF1E
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
54 ELSE
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
55 SDAddr SET $FF74
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
56 ENDC
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
57
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
58 ENDC
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
59
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
60 **** Ken-Ton/LR-Tech Controller Definitions
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
61 IFNE KTLR
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
62 SCSIDATA EQU 0
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
63 SCSISTAT EQU 1
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
64 SCSISEL EQU 2
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
65 SCSIRST EQU 3
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
66
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
67 REQ EQU $01
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
68 BUSY EQU $02
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
69 MSG EQU $04
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
70 CMD EQU $08
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
71 INOUT EQU $10
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
72 ACK EQU $20
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
73 SEL EQU $40
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
74 RST EQU $80
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
75
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
76 SDAddr SET $FF74
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
77 ENDC
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
78
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
79 **** Disto 4-N-1/HD-II Controller Definitions
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
80 IFNE D4N1+HDII
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
81 SDMPI SET $02
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
82
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
83 * Disto SCSI Controller Definitions
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
84 SCSIDATA EQU 0
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
85 SCSISTAT EQU -2
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
86 SCSISEL EQU -1
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
87 SCSIRST EQU -2
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
88
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
89 SEL EQU $00
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
90 BUSY EQU $01
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
91 ACK EQU $02
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
92 MSG EQU $04
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
93 INOUT EQU $20
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
94 CMD EQU $40
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
95 REQ EQU $80
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
96
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
97 IFNE D4N1
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
98 SDAddr SET $FF5B
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
99 ELSE
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
100 SDAddr SET $FF53
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
101 ENDC
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
102 ENDC
2624
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2590
diff changeset
103
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2590
diff changeset
104 ENDC