Mercurial > hg > Members > kono > nitros9-code
annotate level1/modules/superdesc.asm @ 2786:e333ec1907ef lwtools-port
Updated makefile(s) so correct coco1 dw boot and dwio.sb files are used.
Updated level1/coco1/modules/makefile so that boot_dw_coco1
and dwio_coco1.sb get created.
Updated level1/coco1/bootfiles/makefile added detection of PORT
status so if coco1 is detected then dwio_coco1.sb and
boot_dw_coco1 are used in place of dwio.sb and boot_dw.
author | drencor-xeen |
---|---|
date | Sun, 27 Jan 2013 00:14:03 -0600 |
parents | 8a4c73c4bc8c |
children | b70d93f8d7ce |
rev | line source |
---|---|
2590 | 1 ******************************************************************** |
2 * SuperDesc - Super Driver Device Descriptor Template | |
3 * | |
4 * $Id$ | |
5 * | |
6 * RBSuper Defined Offsets | |
7 * | |
8 * IT.STP (offset $14) | |
9 * Bit Meaning | |
10 * --- --------------------------------------------------------------- | |
11 * 7-0 HDB-DOS Drive Number (useful only if HDB-DOS bit set in IT.DNS) | |
12 * | |
13 * IT.TYP (offset $15) | |
14 * Bit Meaning | |
15 * --- --------------------------------------------------------------- | |
16 * 7 Hard Disk: 1 = hard disk | |
17 * 6 Fudge LSN0: 0 = OS-9 disk, 1 = non-OS-9 disk | |
18 * 5 Undefined | |
19 * 4 Drive Size Query (1 = yes, 0 = no) | |
20 * 2-3 Undefined | |
21 * 0-1 Sector Size (0 = 256, 1 = 512, 2 = 1024, 3 = 2048) | |
22 * | |
23 * IT.DNS (offset $16) for SCSI Low Level Driver | |
24 * Bit Meaning | |
25 * --- --------------------------------------------------------------- | |
26 * 5-7 SCSI Logical Unit Number of drive (0-7) (ignored if bit 3 is 1) | |
27 * 4 Turbo Mode: 1 = use accelerated handshaking, 0 = standard | |
28 * 3 HDB-DOS Partition Flag | |
29 * 0-2 SCSI ID of the drive or controller (0-7) | |
30 * | |
31 * IT.DNS (offset $16) for IDE Low Level Driver | |
32 * Bit Meaning | |
33 * --- --------------------------------------------------------------- | |
34 * 4-7 Undefined | |
35 * 3 HDB-DOS Partition Flag | |
36 * 1-2 Undefined | |
37 * 0 IDE ID (0 = master, 1 = slave) | |
38 * | |
39 * Edt/Rev YYYY/MM/DD Modified by | |
40 * Comment | |
41 * ------------------------------------------------------------------ | |
42 * 0 2004/04/08 Boisy G. Pitre | |
43 * Created. | |
44 * | |
45 * 0 2005/11/27 Boisy G. Pitre | |
46 * Added IT.MPI value to descriptor. | |
47 * | |
48 * 0 2005/12/08 Boisy G. Pitre | |
49 * Reserved two bits in IT.TYP for llscsi. | |
50 | |
51 NAM SuperDesc | |
52 TTL Super Driver Device Descriptor Template | |
53 | |
54 * Super Driver specific fields | |
2729
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
55 IFEQ ITDRV |
2590 | 56 ITDRV SET $00 |
2729
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
57 ENDC |
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
58 IFEQ ITSTP |
2590 | 59 ITSTP SET $00 |
2729
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
60 ENDC |
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
61 IFEQ ITTYP |
2590 | 62 ITTYP SET $81 |
2729
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
63 ENDC |
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
64 IFEQ ITDNS |
2590 | 65 ITDNS SET $00 |
2729
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
66 ENDC |
2590 | 67 |
2729
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
68 IFEQ ITSOFS1 |
2590 | 69 ITSOFS1 SET $00 |
2729
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
70 ENDC |
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
71 IFEQ ITSOFS2 |
2590 | 72 ITSOFS2 SET $00 |
2729
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
73 ENDC |
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
74 IFEQ ITSOFS3 |
2590 | 75 ITSOFS3 SET $00 |
2729
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
76 ENDC |
2590 | 77 |
78 * Geometry for an EZ-135 | |
2729
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
79 IFEQ Sides |
2590 | 80 Sides SET $40 |
2729
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
81 ENDC |
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
82 IFEQ Cyls |
2590 | 83 Cyls SET $007f |
2729
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
84 ENDC |
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
85 IFEQ SectTrk |
2590 | 86 SectTrk SET $0020 |
2729
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
87 ENDC |
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
88 IFEQ SectTrk0 |
2590 | 89 SectTrk0 SET $0020 |
2729
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
90 ENDC |
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
91 IFEQ Interlv |
2590 | 92 Interlv SET $01 |
2729
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
93 ENDC |
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
94 IFEQ SAS |
2590 | 95 SAS SET $08 |
2729
8a4c73c4bc8c
Fixed SuperDriver descriptors
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2590
diff
changeset
|
96 ENDC |
2590 | 97 |
98 IFP1 | |
99 USE defsfile | |
100 USE rbsuper.d | |
101 IFNE IDE | |
102 USE ide.d | |
103 ELSE | |
104 USE scsi.d | |
105 ENDC | |
106 ENDC | |
107 | |
108 tylg SET Devic+Objct | |
109 atrv SET ReEnt+rev | |
110 rev SET $09 | |
111 | |
112 MOD eom,name,tylg,atrv,mgrnam,drvnam | |
113 | |
114 IFNE CDROM | |
115 FCB DIR.+SHARE.+PEXEC.+PREAD.+EXEC.+READ. | |
116 ELSE | |
117 FCB DIR.+SHARE.+PEXEC.+PREAD.+PWRIT.+EXEC.+UPDAT. | |
118 ENDC | |
119 FCB HW.PAGE extended controller address | |
120 FDB SDAddr physical controller address | |
121 FCB initsize-*-1 initilization table size | |
122 FCB DT.RBF device type:0=scf,1=rbf,2=pipe,3=scf | |
123 FCB ITDRV drive number | |
124 FCB ITSTP step rate | |
125 FCB ITTYP drive device type | |
126 FCB ITDNS media density | |
127 FDB Cyls number of cylinders (tracks) | |
128 FCB Sides number of sides | |
129 FCB $01 verify disk writes:0=on | |
130 FDB SectTrk # of sectors per track | |
131 FDB SectTrk0 # of sectors per track (track 0) | |
132 FCB Interlv sector interleave factor | |
133 FCB SAS minimum size of sector allocation | |
134 FCB 0 IT.TFM | |
135 FDB 0 IT.Exten | |
136 FCB 0 IT.STOff | |
137 * Super Driver specific additions to the device descriptor go here | |
138 * NOTE: These do NOT get copied into the path descriptor; they | |
139 * cannot due to the fact that there is simply NO ROOM in | |
140 * the path descriptor to do so. The driver must access | |
141 * these values directly from the descriptor. | |
142 FCB ITSOFS1 (IT.WPC) | |
143 FCB ITSOFS2 (IT.OFS) | |
144 FCB ITSOFS3 | |
145 initsize EQU * | |
146 FDB lldrv (IT.RWC) | |
147 FCB SDMPI (IT.MPI) | |
148 | |
149 IFNE NULL | |
150 name FCC /NULL/ | |
151 FCB ITDRV+$B0 | |
152 ELSE | |
153 IFNE DD | |
154 name FCS /DD/ | |
155 ELSE | |
156 IFNE DRIVEWIRE | |
157 name FCC /X/ | |
158 IFNE HB | |
159 FCS /H/ | |
160 ELSE | |
161 FCB ITDRV+$B0 | |
162 ENDC | |
163 ELSE | |
164 IFNE IDE | |
165 name FCC /I/ | |
166 IFNE HB | |
167 FCS /H/ | |
168 ELSE | |
169 FCB ITDRV+$B0 | |
170 ENDC | |
171 ELSE | |
172 IFNE SD | |
173 name FCC /SD/ | |
174 IFNE HB | |
175 FCS /H/ | |
176 ELSE | |
177 FCB ITDRV+$B0 | |
178 ENDC | |
179 ELSE | |
180 name FCC /S/ | |
181 IFNE HB | |
182 FCS /H/ | |
183 ELSE | |
184 FCB ITDRV+$B0 | |
185 ENDC | |
186 ENDC | |
187 ENDC | |
188 ENDC | |
189 ENDC | |
190 ENDC | |
191 | |
192 mgrnam FCS /RBF/ | |
193 drvnam FCS /rbsuper/ | |
194 lldrv EQU * | |
195 IFNE NULL | |
196 FCS /llnull/ | |
197 FCB 0 | |
198 ELSE | |
199 IFNE DRIVEWIRE | |
200 FCS /lldw/ | |
201 FCB 0,0,0 | |
202 ELSE | |
203 IFNE TC3+SB | |
204 FCS /lltc3/ | |
205 FCB 0,0 | |
206 ELSE | |
207 IFNE KTLR | |
208 FCS /llktlr/ | |
209 FCB 0 | |
210 ELSE | |
211 IFNE HDII+D4N1 | |
212 FCS /lldisto/ | |
213 ELSE | |
214 IFNE IDE | |
215 FCS /llide/ | |
216 FCB 0,0 | |
217 ELSE | |
218 IFNE SD | |
219 FCS /llsd/ | |
220 FCB 0,0,0 | |
221 ENDC | |
222 ENDC | |
223 ENDC | |
224 ENDC | |
225 ENDC | |
226 ENDC | |
227 ENDC | |
228 | |
229 | |
230 EMOD | |
231 eom EQU * | |
232 END |