Mercurial > hg > Members > kono > nitros9-code
annotate defs/rbfdefs @ 388:81ae11488745
Made changes to output
author | boisy |
---|---|
date | Sun, 25 Aug 2002 03:23:07 +0000 |
parents | c07686556109 |
children | c3929e005d23 |
rev | line source |
---|---|
373
c07686556109
Added ifeq statements at top to allow for multiple use's of same def
boisy
parents:
71
diff
changeset
|
1 ifeq RBFDEFS |
c07686556109
Added ifeq statements at top to allow for multiple use's of same def
boisy
parents:
71
diff
changeset
|
2 |
c07686556109
Added ifeq statements at top to allow for multiple use's of same def
boisy
parents:
71
diff
changeset
|
3 RBFDEFS set 1 |
c07686556109
Added ifeq statements at top to allow for multiple use's of same def
boisy
parents:
71
diff
changeset
|
4 |
0 | 5 nam RBFDefs |
6 ttl Random Block File Manager Definitions | |
7 | |
8 ********************** | |
9 * Modification History | |
10 * | |
11 * Date Changes Made by | |
12 * -------- ------------------------------------------------------------ --- | |
13 * 82/07/13 PD.Exten added to path descriptor rfd | |
14 * 82/07/13 PE entries defined rfd | |
15 * 82/07/15 V.FileHd inserted in drive static rfd | |
16 * 82/09/10 Level One/ Level two cond added WGP | |
17 * 82/09/17 Record Lock cond added WGP | |
18 * 82/09/17 PD.SLE renamed to PD.Creat rfd | |
19 * 82/09/17 V.DiskID, V.BMapSz, V.MapSct added for | |
20 * smart multi-sector bitmap searching rfd | |
21 * 82/09/20 reserved areas added in static storage. | |
22 * 83/06/07 Added InDriver flag in PD.SMF. rfd | |
23 * 83/06/13 Added PE.Req tmp save for PE.Lock rfd | |
24 * 83/08/08 reserved PD.SToff for Japanese rfd | |
25 * 83/11/19 Added V.ResBit in drive tables. rfd | |
26 * 83/12/12 Added PE.Prior to save process priority. rfd | |
27 * 83/12/13 Added BufBusy bit in state flag (PD.SMF) rfd | |
28 * 84/07/06 Added Bit Definitions for DD.FMT MGH | |
29 * 87/06/23 Updated with Dev Desc Info KKD | |
30 | |
31 ******************************* | |
32 * RBF Device Descriptor Offsets | |
33 * | |
34 org M$DTyp | |
35 rmb 1 Device type (IT.DTP) (1=RBF) | |
36 IT.DRV rmb 1 Drive number | |
37 IT.STP rmb 1 Step rate | |
38 IT.TYP rmb 1 Disk device type (5" 8" other) | |
39 IT.DNS rmb 1 Density capability | |
40 IT.CYL rmb 2 Number of cylinders | |
41 IT.SID rmb 1 Number of surfaces | |
42 IT.VFY rmb 1 0=verify disk writes | |
43 IT.SCT rmb 2 Default sectors/track | |
44 IT.T0S rmb 2 Default sectors/track tr00,s0 | |
45 IT.ILV rmb 1 Sector interleave offset | |
46 IT.SAS rmb 1 Segment allocation size | |
47 | |
48 ************************************* | |
49 * IT.TYP/IT.DNS/IT.STP definitions | |
50 * | |
51 TYP.5 equ %00000000 5" media | |
52 TYP.8 equ %00000001 8" media | |
53 TYP.CCF equ %00100000 CoCo format | |
54 TYP.NCCF equ %00000000 Non-CoCo format | |
55 TYP.SOF equ %00000000 Standard OS-9 format | |
56 TYP.NSF equ %01000000 Non-standard format | |
57 TYP.FLP equ %00000000 Floppy disk | |
58 TYP.HARD equ %10000000 Hard disk | |
59 | |
60 DNS.FM equ %00000000 Single-density (FM) | |
61 DNS.MFM equ %00000001 Double-density (MFM) | |
62 DNS.STD equ %00000000 Single track density (48 tpi) | |
63 DNS.DTD equ %00000010 Single track density (96 tpi) | |
64 | |
65 STP.30ms equ 0 30ms step rate | |
66 STP.20ms equ 1 20ms step rate | |
67 STP.12ms equ 2 12ms step rate | |
68 STP.6ms equ 3 6ms step rate | |
69 | |
70 ************************************* | |
71 * Random Block Path Descriptor Format | |
72 * | |
73 org PD.FST | |
74 PD.SMF rmb 1 State flags | |
75 PD.CP rmb 4 Current logical byte position | |
76 PD.SIZ rmb 4 File size | |
77 PD.SBL rmb 3 Segment beginning lsn | |
78 PD.SBP rmb 3 Segment beginning psn | |
79 PD.SSZ rmb 3 Segment size | |
80 PD.DSK rmb 2 Disk id | |
81 PD.DTB rmb 2 Drive table ptr | |
82 org PD.OPT | |
83 rmb 1 Device type | |
84 PD.DRV rmb 1 Drive number | |
85 PD.STP rmb 1 Step rate | |
86 PD.TYP rmb 1 Disk device type (5" 8" other) | |
87 PD.DNS rmb 1 Density capability | |
88 PD.CYL rmb 2 Number of cylinders | |
89 PD.SID rmb 1 Number of surfaces | |
90 PD.VFY rmb 1 0=verify disk writes | |
91 PD.SCT rmb 2 Default sectors/track | |
92 PD.T0S rmb 2 Default sectors/track tr00,s0 | |
93 PD.ILV rmb 1 Sector interleave offset | |
94 PD.SAS rmb 1 Segment allocation size | |
95 PD.TFM rmb 1 DMA Transfer Mode | |
96 PD.Exten rmb 2 Path Extension (PE) for record locking | |
97 PD.SToff rmb 1 Sector/Track offsets (for "foreign" disk formats) | |
98 PD.ATT rmb 1 File attributes | |
99 PD.FD rmb 3 File descriptor psn | |
100 PD.DFD rmb 3 Directory file descriptor psn | |
101 PD.DCP rmb 4 File directory entry ptr | |
102 PD.DVT rmb 2 User readable dev tbl ptr | |
103 | |
104 * State Flags | |
105 BUFMOD equ $01 Buffer modified | |
106 SINBUF equ $02 Sector in buffer | |
107 FDBUF equ $04 File descriptor in buffer | |
108 *EOFSEC equ $08 End of file sector | |
109 *EOF equ $10 End of file | |
110 InDriver equ $20 Currently in Disk Driver, or queued | |
111 BufBusy equ $40 Buffer is currently busy | |
112 | |
113 ifne Level-1 | |
114 ************************************ | |
115 * Random Block Path Extension Format | |
116 * | |
117 org 0 | |
118 PE.PE rmb 1 PE path number | |
119 PE.PDptr rmb 2 back ptr to this PE's Path Descriptor | |
120 PE.NxFil rmb 2 Drive Open-File list ptr | |
121 PE.Confl rmb 2 circular File Conflict list | |
122 PE.Lock rmb 1 Path lockout status | |
123 PE.LoLck rmb 4 Low Locked Logical addr | |
124 PE.HiLck rmb 4 High Locked Logical addr | |
125 PE.Wait rmb 2 PE ptr to (next) locked-out PE | |
126 PE.TmOut rmb 2 Max ticks to wait for locked segment | |
127 PE.Owner rmb 1 Process ID of owner of locked segment | |
128 PE.Req rmb 1 temp for PE.Lock in GAIN when LockSeg fails | |
129 PE.Prior rmb 1 tmp for process priority while in driver | |
71 | 130 PE.SigSg rmb 1 signal code to send |
131 PE.SigID rmb 1 process ID to send the signal to | |
0 | 132 rmb 32-. reserved |
133 PE.FilNm rmb 32 temp for filename during directory search | |
134 | |
135 * PE.Lock status codes | |
136 Unlocked equ 0 no portion of file is locked | |
137 RcdLock equ 1 record from LoLck to HiLck locked | |
138 FileLock equ 2 entire file locked | |
139 EofLock equ 4 End of file is locked | |
140 endc | |
141 | |
142 *********************** | |
143 * LSN0 Disk Data Format | |
144 * | |
145 org 0 | |
146 DD.TOT rmb 3 Total number of sectors | |
147 DD.TKS rmb 1 Track size in sectors | |
148 DD.MAP rmb 2 Number of bytes in allocation bit map | |
149 DD.BIT rmb 2 Number of sectors/bit | |
150 DD.DIR rmb 3 Address of root directory fd | |
151 DD.OWN rmb 2 Owner | |
152 DD.ATT rmb 1 Attributes | |
153 DD.DSK rmb 2 Disk id | |
154 DD.FMT rmb 1 Disk format; density/sides | |
155 DD.SPT rmb 2 Sectors/track | |
156 DD.RES rmb 2 Reserved for future use | |
157 DD.SIZ equ . Device descriptor minimum size | |
158 DD.BT rmb 3 System bootstrap sector | |
159 DD.BSZ rmb 2 Size of system bootstrap | |
160 DD.DAT rmb 5 Creation date | |
161 DD.NAM rmb 32 Volume name | |
162 DD.OPT rmb 32 option area | |
163 | |
164 * DD.FMT Bit Definitions | |
165 FMT.SIDE equ %00000001 Single Side=0, Double Side=1 | |
166 FMT.DNS equ %00000010 Single DNS=0, Double DNS=1 | |
167 FMT.TDNS equ %00000100 48tpi=0, 96tpi=1 | |
168 FMT.T0DN equ %00100000 Track 0 DNS, see FMT.DNS | |
169 | |
170 ************************ | |
171 * File Descriptor Format | |
172 * | |
173 org 0 | |
174 FD.ATT rmb 1 Attributes | |
175 FD.OWN rmb 2 Owner | |
176 FD.DAT rmb 5 Date last modified | |
177 FD.LNK rmb 1 Link count | |
178 FD.SIZ rmb 4 File size | |
179 FD.Creat rmb 3 Segment list extension | |
180 FD.SEG equ . Beginning of segment list | |
181 * Segment List Entry Format | |
182 org 0 | |
183 FDSL.A rmb 3 Segment beginning physical sector number | |
184 FDSL.B rmb 2 Segment size | |
185 FDSL.S equ . Segment list entry size | |
186 FD.LS1 equ FD.SEG+((256-FD.SEG)/FDSL.S-1)*FDSL.S | |
187 FD.LS2 equ (256/FDSL.S-1)*FDSL.S | |
188 MINSEC set 16 | |
189 | |
190 ************************ | |
191 * Directory Entry Format | |
192 * | |
193 org 0 | |
194 DIR.NM rmb 29 File name | |
195 DIR.FD rmb 3 File descriptor physical sector number | |
196 DIR.SZ equ . Directory record size | |
197 | |
198 **************** | |
199 * Static Storage | |
200 * | |
201 * Overall Disk Static Storage | |
202 * | |
203 * Note: This does not reserve any memory for drive tables. Each Driver is | |
204 * responsible for reserving sufficient memory for the appropriate | |
205 * number of tables. | |
206 * | |
207 org V.USER Reserve required ($06) | |
208 V.NDRV rmb 1 Number of drives ($07) | |
209 rmb 8 reserved ($08) | |
210 DRVBEG equ . Beginning of drive tables ($10) | |
211 * | |
212 * Global Storage For Disk Drive Tables | |
213 * Each Table Contains The First 'DD.Siz' Bytes | |
214 * From Sector 0, And The Current Track, Stepping Rate, | |
215 * Bit-Map Use Flag, And Disk Type | |
216 * | |
217 org 0 | |
218 rmb DD.SIZ Device descriptor, sector 0 | |
219 V.TRAK rmb 2 Current track | |
220 V.BMB rmb 1 Bit-map use flag | |
221 V.FileHd rmb 2 open file list for this drive | |
222 V.DiskID rmb 2 Disk ID | |
223 V.BMapSz rmb 1 Bitmap Size | |
224 V.MapSct rmb 1 lowest reasonable bitmap sector | |
225 V.ResBit rmb 1 reserved bitmap sector (for compaction) | |
226 V.ScTkOf rmb 1 Sector/Track byte (Combined from descriptor) | |
227 V.ScOfst rmb 1 Sector offset split from byte above | |
228 V.TkOfst rmb 1 Track offset split from byte above | |
229 rmb 4 reserved | |
230 DRVMEM equ . | |
231 | |
373
c07686556109
Added ifeq statements at top to allow for multiple use's of same def
boisy
parents:
71
diff
changeset
|
232 endc |
c07686556109
Added ifeq statements at top to allow for multiple use's of same def
boisy
parents:
71
diff
changeset
|
233 |