Mercurial > hg > Members > kono > nitros9-code
annotate level1/modules/superdesc.asm @ 2730:6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
user: gheskett@wdtv.com
branch 'default'
changed ChangeLog
changed ReadMe
changed defs/rbf.d
changed defs/rbsuper.d
changed defs/scsi.d
changed level1/atari/cmds/fuji.asm
changed level1/coco/modules/makefile
changed level1/modules/boot_scsi.asm
changed level1/modules/superdesc.asm
changed level2/coco3/bootfiles/makefile
changed level2/coco3/modules/makefile
changed level2/coco3_6309/bootfiles/makefile
changed level2/modules/joydrv_6551L.asm
changed rules.mak
author | gheskett@wdtv.com |
---|---|
date | Sat, 10 Nov 2012 11:55:48 -0500 |
parents | 17d43fd29ee2 |
children | 28ed72477814 |
rev | line source |
---|---|
2730
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
1 opt w132 wide listing |
2590 | 2 ******************************************************************** |
3 * SuperDesc - Super Driver Device Descriptor Template | |
4 * | |
5 * $Id$ | |
6 * | |
7 * RBSuper Defined Offsets | |
8 * | |
9 * IT.STP (offset $14) | |
10 * Bit Meaning | |
11 * --- --------------------------------------------------------------- | |
12 * 7-0 HDB-DOS Drive Number (useful only if HDB-DOS bit set in IT.DNS) | |
13 * | |
14 * IT.TYP (offset $15) | |
15 * Bit Meaning | |
16 * --- --------------------------------------------------------------- | |
17 * 7 Hard Disk: 1 = hard disk | |
18 * 6 Fudge LSN0: 0 = OS-9 disk, 1 = non-OS-9 disk | |
19 * 5 Undefined | |
20 * 4 Drive Size Query (1 = yes, 0 = no) | |
21 * 2-3 Undefined | |
22 * 0-1 Sector Size (0 = 256, 1 = 512, 2 = 1024, 3 = 2048) | |
23 * | |
24 * IT.DNS (offset $16) for SCSI Low Level Driver | |
25 * Bit Meaning | |
26 * --- --------------------------------------------------------------- | |
27 * 5-7 SCSI Logical Unit Number of drive (0-7) (ignored if bit 3 is 1) | |
28 * 4 Turbo Mode: 1 = use accelerated handshaking, 0 = standard | |
29 * 3 HDB-DOS Partition Flag | |
30 * 0-2 SCSI ID of the drive or controller (0-7) | |
31 * | |
32 * IT.DNS (offset $16) for IDE Low Level Driver | |
33 * Bit Meaning | |
34 * --- --------------------------------------------------------------- | |
35 * 4-7 Undefined | |
36 * 3 HDB-DOS Partition Flag | |
37 * 1-2 Undefined | |
38 * 0 IDE ID (0 = master, 1 = slave) | |
39 * | |
40 * Edt/Rev YYYY/MM/DD Modified by | |
41 * Comment | |
42 * ------------------------------------------------------------------ | |
43 * 0 2004/04/08 Boisy G. Pitre | |
44 * Created. | |
45 * | |
46 * 0 2005/11/27 Boisy G. Pitre | |
47 * Added IT.MPI value to descriptor. | |
48 * | |
49 * 0 2005/12/08 Boisy G. Pitre | |
50 * Reserved two bits in IT.TYP for llscsi. | |
2730
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
51 * |
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
52 * 1 2012/11/06 Gene Heskett |
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
53 * passing config opts from makefile |
2590 | 54 NAM SuperDesc |
55 TTL Super Driver Device Descriptor Template | |
56 | |
57 * Super Driver specific fields | |
2730
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
58 *ITDRV SET $00 GH - conflicting? Set in makefile GH |
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
59 ITSTP SET $00 GH - HDBDOS drive num in $hex |
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
60 ITTYP SET $81 GH - default=Hard drive, 512 byte sectors |
2590 | 61 |
2730
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
62 *ITDNS SET $00 GH - conflicting? Set in makefile |
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
63 ITDNS SET ITDRV |
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
64 ITSOFS1 SET $00 GH - partition offsets |
2590 | 65 ITSOFS2 SET $00 |
66 ITSOFS3 SET $00 | |
67 | |
68 * Geometry for an EZ-135 | |
69 Sides SET $40 | |
70 Cyls SET $007f | |
71 SectTrk SET $0020 | |
72 SectTrk0 SET $0020 | |
73 Interlv SET $01 | |
2730
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
74 * GH - conditionalize this eventually to reduce disk fragmentation |
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
75 SAS SET $08 GH - S/B reset to $20 if not floppy |
2590 | 76 |
77 IFP1 | |
78 USE defsfile | |
79 USE rbsuper.d | |
80 IFNE IDE | |
81 USE ide.d | |
82 ELSE | |
83 USE scsi.d | |
84 ENDC | |
85 ENDC | |
86 | |
87 tylg SET Devic+Objct | |
88 atrv SET ReEnt+rev | |
2730
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
89 rev SET $0A |
2590 | 90 |
91 MOD eom,name,tylg,atrv,mgrnam,drvnam | |
92 | |
93 IFNE CDROM | |
94 FCB DIR.+SHARE.+PEXEC.+PREAD.+EXEC.+READ. | |
95 ELSE | |
96 FCB DIR.+SHARE.+PEXEC.+PREAD.+PWRIT.+EXEC.+UPDAT. | |
97 ENDC | |
98 FCB HW.PAGE extended controller address | |
99 FDB SDAddr physical controller address | |
100 FCB initsize-*-1 initilization table size | |
101 FCB DT.RBF device type:0=scf,1=rbf,2=pipe,3=scf | |
2730
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
102 FCB Dnum drive number |
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
103 IFNE HDBDOS |
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
104 FCB $80 |
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
105 ELSE |
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
106 FCB ITSTP step rate or HDBDOS # |
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
107 ENDC |
2590 | 108 FCB ITTYP drive device type |
2730
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
109 FCB ITDNS media density or bus addr SEE DEFS ABOVE! |
2590 | 110 FDB Cyls number of cylinders (tracks) |
111 FCB Sides number of sides | |
112 FCB $01 verify disk writes:0=on | |
113 FDB SectTrk # of sectors per track | |
114 FDB SectTrk0 # of sectors per track (track 0) | |
115 FCB Interlv sector interleave factor | |
116 FCB SAS minimum size of sector allocation | |
117 FCB 0 IT.TFM | |
118 FDB 0 IT.Exten | |
119 FCB 0 IT.STOff | |
120 * Super Driver specific additions to the device descriptor go here | |
121 * NOTE: These do NOT get copied into the path descriptor; they | |
122 * cannot due to the fact that there is simply NO ROOM in | |
123 * the path descriptor to do so. The driver must access | |
124 * these values directly from the descriptor. | |
125 FCB ITSOFS1 (IT.WPC) | |
126 FCB ITSOFS2 (IT.OFS) | |
127 FCB ITSOFS3 | |
128 initsize EQU * | |
129 FDB lldrv (IT.RWC) | |
130 FCB SDMPI (IT.MPI) | |
131 | |
132 IFNE NULL | |
133 name FCC /NULL/ | |
2730
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
134 FCB Dnum+$B0 |
2590 | 135 ELSE |
136 IFNE DD | |
137 name FCS /DD/ | |
138 ELSE | |
139 IFNE DRIVEWIRE | |
140 name FCC /X/ | |
141 IFNE HB | |
142 FCS /H/ | |
143 ELSE | |
2730
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
144 FCB Dnum+$B0 |
2590 | 145 ENDC |
146 ELSE | |
147 IFNE IDE | |
148 name FCC /I/ | |
2730
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
149 IFNE HDBDOS |
2590 | 150 FCS /H/ |
151 ELSE | |
2730
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
152 FCB Dnum+$B0 |
2590 | 153 ENDC |
154 ELSE | |
155 IFNE SD | |
156 name FCC /SD/ | |
157 IFNE HB | |
158 FCS /H/ | |
159 ELSE | |
2730
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
160 FCB Dnum+$B0 |
2590 | 161 ENDC |
162 ELSE | |
163 name FCC /S/ | |
2730
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
164 IFNE HDBDOS |
2590 | 165 FCS /H/ |
166 ELSE | |
2730
6bd6e348665d
Working on cloned default branch, pulled 2012/11/03
gheskett@wdtv.com
parents:
2590
diff
changeset
|
167 FCB Dnum+$B0 |
2590 | 168 ENDC |
169 ENDC | |
170 ENDC | |
171 ENDC | |
172 ENDC | |
173 ENDC | |
174 | |
175 mgrnam FCS /RBF/ | |
176 drvnam FCS /rbsuper/ | |
177 lldrv EQU * | |
178 IFNE NULL | |
179 FCS /llnull/ | |
180 FCB 0 | |
181 ELSE | |
182 IFNE DRIVEWIRE | |
183 FCS /lldw/ | |
184 FCB 0,0,0 | |
185 ELSE | |
186 IFNE TC3+SB | |
187 FCS /lltc3/ | |
188 FCB 0,0 | |
189 ELSE | |
190 IFNE KTLR | |
191 FCS /llktlr/ | |
192 FCB 0 | |
193 ELSE | |
194 IFNE HDII+D4N1 | |
195 FCS /lldisto/ | |
196 ELSE | |
197 IFNE IDE | |
198 FCS /llide/ | |
199 FCB 0,0 | |
200 ELSE | |
201 IFNE SD | |
202 FCS /llsd/ | |
203 FCB 0,0,0 | |
204 ENDC | |
205 ENDC | |
206 ENDC | |
207 ENDC | |
208 ENDC | |
209 ENDC | |
210 ENDC | |
211 | |
212 | |
213 EMOD | |
214 eom EQU * | |
215 END |