annotate lib/rbfdefs.a @ 2668:07441dfebc27 lwtools-port

Make tocgen build with lwasm lwasm does not treat a trailing colon as part of the symbol name. Removed trailing colons on symbol references.
author William Astle <lost@l-w.ca>
date Sun, 10 Jun 2012 13:35:44 -0600
parents 76c3c37f3a38
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2329
a894bfdef5b3 Updated
boisy
parents:
diff changeset
1 IFNE RBFDEFS-1
a894bfdef5b3 Updated
boisy
parents:
diff changeset
2
a894bfdef5b3 Updated
boisy
parents:
diff changeset
3 RBFDEFS SET 1
a894bfdef5b3 Updated
boisy
parents:
diff changeset
4
a894bfdef5b3 Updated
boisy
parents:
diff changeset
5 ********************************************************************
a894bfdef5b3 Updated
boisy
parents:
diff changeset
6 * RBFDefs - Random Block File Manager Definitions
a894bfdef5b3 Updated
boisy
parents:
diff changeset
7 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
8 * $Id$
a894bfdef5b3 Updated
boisy
parents:
diff changeset
9 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
10 * RBF stands for 'Random Block Filemanager' and is a package of subroutines
a894bfdef5b3 Updated
boisy
parents:
diff changeset
11 * that define the logical structure of a disk and allows access to the files
a894bfdef5b3 Updated
boisy
parents:
diff changeset
12 * in that structure.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
13 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
14 * The data structures in this file give RBF its 'personality' and are used
a894bfdef5b3 Updated
boisy
parents:
diff changeset
15 * by RBF itself, as well as applications that will require disk I/O.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
16 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
17 * Edt/Rev YYYY/MM/DD Modified by
a894bfdef5b3 Updated
boisy
parents:
diff changeset
18 * Comment
a894bfdef5b3 Updated
boisy
parents:
diff changeset
19 * ------------------------------------------------------------------
a894bfdef5b3 Updated
boisy
parents:
diff changeset
20 * 1982/07/13 Robert F. Doggett
a894bfdef5b3 Updated
boisy
parents:
diff changeset
21 * PD.Exten added to path descriptor and PE Entries defined.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
22 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
23 * 1982/07/15 Robert F. Doggett
a894bfdef5b3 Updated
boisy
parents:
diff changeset
24 * V.FileHd inserted in driver static storage.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
25 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
26 * 1982/09/10 WGP
a894bfdef5b3 Updated
boisy
parents:
diff changeset
27 * Level One/Level Two condionals added.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
28 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
29 * 1982/09/17 WGP
a894bfdef5b3 Updated
boisy
parents:
diff changeset
30 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
31 * 1982/09/17 Robert F. Doggett
a894bfdef5b3 Updated
boisy
parents:
diff changeset
32 * PD.SLE renamed to PD.Creat.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
33 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
34 * 1982/09/17 Robert F. Doggett
a894bfdef5b3 Updated
boisy
parents:
diff changeset
35 * V.DiskID, V.BMapSz, V.MapSct added for smart multi-sector bitmap searching.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
36 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
37 * 1982/09/20 Robert F. Doggett
a894bfdef5b3 Updated
boisy
parents:
diff changeset
38 * Reserved areas added in static storage.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
39
a894bfdef5b3 Updated
boisy
parents:
diff changeset
40 * 1983/06/07 Robert F. Doggett
a894bfdef5b3 Updated
boisy
parents:
diff changeset
41 * Added InDriver flag in PD.SMF.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
42 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
43 * 1983/06/13 Robert F. Doggett
a894bfdef5b3 Updated
boisy
parents:
diff changeset
44 * Added PE.Req tmp save for PE.Lock.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
45 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
46 * 1983/08/08 Robert F. Doggett
a894bfdef5b3 Updated
boisy
parents:
diff changeset
47 * Reserved PD.SToff for Japanese.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
48 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
49 * 1983/11/19 Robert F. Doggett
a894bfdef5b3 Updated
boisy
parents:
diff changeset
50 * Added V.ResBit in drive tables.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
51 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
52 * 1983/12/12 Robert F. Doggett
a894bfdef5b3 Updated
boisy
parents:
diff changeset
53 * Added PE.Prior to save process priority.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
54 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
55 * 1983/12/13 Robert F. Doggett
a894bfdef5b3 Updated
boisy
parents:
diff changeset
56 * Added BufBusy bit in state flag (PD.SMF).
a894bfdef5b3 Updated
boisy
parents:
diff changeset
57 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
58 * 1984/07/06 Mark G. Hawkins
a894bfdef5b3 Updated
boisy
parents:
diff changeset
59 * Added Bit Definitions for DD.FMT.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
60 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
61 * 1987/06/23 Kevin K. Darling
a894bfdef5b3 Updated
boisy
parents:
diff changeset
62 * Updated with Dev Desc Info
a894bfdef5b3 Updated
boisy
parents:
diff changeset
63 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
64 * 2003/06/02 Boisy G. Pitre
a894bfdef5b3 Updated
boisy
parents:
diff changeset
65 * Updated comments for clarity.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
66 * Added TYP.256-TYP.2048 definitions for future expansion.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
67 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
68 * 2004/04/14 Boisy G. Pitre
a894bfdef5b3 Updated
boisy
parents:
diff changeset
69 * Added new entries to device descriptor as per OS-9 Level One V2.00.00
a894bfdef5b3 Updated
boisy
parents:
diff changeset
70 * addendum. Pointed out by Rodney Hamilton.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
71 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
72 * 2005/05/31 P.Harvey-Smith.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
73 * Added defines for bit 2 of IT.DNS, which the format command uses to
a894bfdef5b3 Updated
boisy
parents:
diff changeset
74 * determine if a drive should have it's track 0 as single or double density
a894bfdef5b3 Updated
boisy
parents:
diff changeset
75 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
76 * 2005/11/23 Robert Gault
a894bfdef5b3 Updated
boisy
parents:
diff changeset
77 * Added IT.MPI giving it duplicate location with IT.TFM. This will not be
a894bfdef5b3 Updated
boisy
parents:
diff changeset
78 * transferred to the path descriptor, thus the equ * rahter than rmb 1.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
79 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
80 * 2005/12/11 Boisy G. Pitre
a894bfdef5b3 Updated
boisy
parents:
diff changeset
81 * Added IT.SOFF1-ITSOFF3 and IT.LLDRV for SuperDrivers.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
82
a894bfdef5b3 Updated
boisy
parents:
diff changeset
83 NAM RBFDefs
a894bfdef5b3 Updated
boisy
parents:
diff changeset
84 TTL Random Block File Manager Definitions
a894bfdef5b3 Updated
boisy
parents:
diff changeset
85
a894bfdef5b3 Updated
boisy
parents:
diff changeset
86 PAG
a894bfdef5b3 Updated
boisy
parents:
diff changeset
87 *******************************
a894bfdef5b3 Updated
boisy
parents:
diff changeset
88 * RBF Device Descriptor Offsets
a894bfdef5b3 Updated
boisy
parents:
diff changeset
89 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
90 * These definitions are for RBF device descriptors.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
91
a894bfdef5b3 Updated
boisy
parents:
diff changeset
92 csect
a894bfdef5b3 Updated
boisy
parents:
diff changeset
93 RMB M$DTyp
a894bfdef5b3 Updated
boisy
parents:
diff changeset
94 RMB 1 Device type (DT.RBF)
a894bfdef5b3 Updated
boisy
parents:
diff changeset
95 IT.DRV: RMB 1 Drive number
a894bfdef5b3 Updated
boisy
parents:
diff changeset
96 IT.STP: RMB 1 Step rate
a894bfdef5b3 Updated
boisy
parents:
diff changeset
97 IT.TYP: RMB 1 Disk device type information
a894bfdef5b3 Updated
boisy
parents:
diff changeset
98 IT.DNS: RMB 1 Density capability
a894bfdef5b3 Updated
boisy
parents:
diff changeset
99 IT.CYL: RMB 2 Number of cylinders
a894bfdef5b3 Updated
boisy
parents:
diff changeset
100 IT.SID: RMB 1 Number of surfaces
a894bfdef5b3 Updated
boisy
parents:
diff changeset
101 IT.VFY: RMB 1 Verify disk writes (0 = verify, 1 = don't)
a894bfdef5b3 Updated
boisy
parents:
diff changeset
102 IT.SCT: RMB 2 Default sectors/track
a894bfdef5b3 Updated
boisy
parents:
diff changeset
103 IT.T0S: RMB 2 Default sectors/track for track 0 sector 0
a894bfdef5b3 Updated
boisy
parents:
diff changeset
104 IT.ILV: RMB 1 Sector interleave offset
a894bfdef5b3 Updated
boisy
parents:
diff changeset
105 IT.SAS: RMB 1 Segment allocation size
a894bfdef5b3 Updated
boisy
parents:
diff changeset
106 * The following fields are from the OS-9 Level One V2.00.00 Addendum
a894bfdef5b3 Updated
boisy
parents:
diff changeset
107 IT.TFM: RMB 1 DMA Transfer Mode
a894bfdef5b3 Updated
boisy
parents:
diff changeset
108 IT.Exten: RMB 2 Path Extension (PE) for record locking
a894bfdef5b3 Updated
boisy
parents:
diff changeset
109 IT.SToff: RMB 1 Sector/Track offsets (for "foreign" disk formats)
a894bfdef5b3 Updated
boisy
parents:
diff changeset
110 * The following fields are not copied to the path descriptor
a894bfdef5b3 Updated
boisy
parents:
diff changeset
111 IT.WPC: RMB 1 Write precomp cyl/4 (HD)
a894bfdef5b3 Updated
boisy
parents:
diff changeset
112 IT.OFS: RMB 2 Starting cylinder offset (HD)
a894bfdef5b3 Updated
boisy
parents:
diff changeset
113 IT.RWC: RMB 2 Reduced write current cylinder (HD)
a894bfdef5b3 Updated
boisy
parents:
diff changeset
114 * These fields have been added because of SuperDriver. They probably
a894bfdef5b3 Updated
boisy
parents:
diff changeset
115 * can be used in other drivers
a894bfdef5b3 Updated
boisy
parents:
diff changeset
116 ORG IT.WPC
a894bfdef5b3 Updated
boisy
parents:
diff changeset
117 IT.SOFF1: RMB 1
a894bfdef5b3 Updated
boisy
parents:
diff changeset
118 IT.SOFF2: RMB 1
a894bfdef5b3 Updated
boisy
parents:
diff changeset
119 IT.SOFF3: RMB 1
a894bfdef5b3 Updated
boisy
parents:
diff changeset
120 IT.LLDRV: RMB 2
a894bfdef5b3 Updated
boisy
parents:
diff changeset
121 IT.MPI: RMB 1
a894bfdef5b3 Updated
boisy
parents:
diff changeset
122 endsect
a894bfdef5b3 Updated
boisy
parents:
diff changeset
123
a894bfdef5b3 Updated
boisy
parents:
diff changeset
124 * IT.TYP Definitions
a894bfdef5b3 Updated
boisy
parents:
diff changeset
125 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
126 TYP.HARD: EQU %10000000 Hard disk
a894bfdef5b3 Updated
boisy
parents:
diff changeset
127 TYP.FLP: EQU %00000000 Floppy disk
a894bfdef5b3 Updated
boisy
parents:
diff changeset
128 TYP.NSF: EQU %01000000 Non-standard format
a894bfdef5b3 Updated
boisy
parents:
diff changeset
129 TYP.SOF: EQU %00000000 Standard NitrOS-9 format
a894bfdef5b3 Updated
boisy
parents:
diff changeset
130
a894bfdef5b3 Updated
boisy
parents:
diff changeset
131 * IT.TYP bit definitions if bit 7 of IT.TYP is set (hard disk)
a894bfdef5b3 Updated
boisy
parents:
diff changeset
132 TYPH.256: EQU %00000000 256 byte sector media
a894bfdef5b3 Updated
boisy
parents:
diff changeset
133 TYPH.512: EQU %00000001 512 byte sector media
a894bfdef5b3 Updated
boisy
parents:
diff changeset
134 TYPH.1024: EQU %00000010 1024 byte sector media
a894bfdef5b3 Updated
boisy
parents:
diff changeset
135 TYPH.2048: EQU %00000011 2048 byte sector media
a894bfdef5b3 Updated
boisy
parents:
diff changeset
136 TYPH.SSM: EQU %00000011 Sector size mask
a894bfdef5b3 Updated
boisy
parents:
diff changeset
137 TYPH.DRSV: EQU %00001100 Driver-reserved bits
a894bfdef5b3 Updated
boisy
parents:
diff changeset
138 TYPH.DSQ: EQU %00010000 Drive size query flag
a894bfdef5b3 Updated
boisy
parents:
diff changeset
139
a894bfdef5b3 Updated
boisy
parents:
diff changeset
140 * IT.TYP bit definitions if bit 7 of IT.TYP is clear (floppy disk)
a894bfdef5b3 Updated
boisy
parents:
diff changeset
141 TYP.5: EQU %00000000 5" media
a894bfdef5b3 Updated
boisy
parents:
diff changeset
142 TYP.3: EQU %00000001 3.5" media
a894bfdef5b3 Updated
boisy
parents:
diff changeset
143 TYP.SBO: EQU %00000010 Sector base offset (clear = 0; sect = 1)
a894bfdef5b3 Updated
boisy
parents:
diff changeset
144 TYP.256: EQU %00000000 256 byte sector media
a894bfdef5b3 Updated
boisy
parents:
diff changeset
145 TYP.512: EQU %00000100 512 byte sector media
a894bfdef5b3 Updated
boisy
parents:
diff changeset
146 TYP.CCF: EQU %00100000 CoCo format
a894bfdef5b3 Updated
boisy
parents:
diff changeset
147 TYP.NCCF: EQU %00000000 Non-CoCo format
a894bfdef5b3 Updated
boisy
parents:
diff changeset
148
a894bfdef5b3 Updated
boisy
parents:
diff changeset
149 * IT.DNS Definitions
a894bfdef5b3 Updated
boisy
parents:
diff changeset
150 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
151
a894bfdef5b3 Updated
boisy
parents:
diff changeset
152 * If bit 7 of IT.TYP is set, IT.DNS is driver-dependent
a894bfdef5b3 Updated
boisy
parents:
diff changeset
153
a894bfdef5b3 Updated
boisy
parents:
diff changeset
154 * IT.DNS bit definitions if bit 7 of IT.TYP is clear (floppy disk)
a894bfdef5b3 Updated
boisy
parents:
diff changeset
155 DNS.FM: EQU %00000000 Single-density (FM)
a894bfdef5b3 Updated
boisy
parents:
diff changeset
156 DNS.MFM: EQU %00000001 Double-density (MFM)
a894bfdef5b3 Updated
boisy
parents:
diff changeset
157 DNS.STD: EQU %00000000 Single track distance (48/135 tpi)
a894bfdef5b3 Updated
boisy
parents:
diff changeset
158 DNS.DTD: EQU %00000010 Double track distance (96 tpi)
a894bfdef5b3 Updated
boisy
parents:
diff changeset
159
a894bfdef5b3 Updated
boisy
parents:
diff changeset
160 * Added PHS,2005-05-31, as format seems to use these
a894bfdef5b3 Updated
boisy
parents:
diff changeset
161 DNS.FM0: EQU %00000000 Single density track 0
a894bfdef5b3 Updated
boisy
parents:
diff changeset
162 DNS.MFM0: EQU %00000100 Double density track 0
a894bfdef5b3 Updated
boisy
parents:
diff changeset
163
a894bfdef5b3 Updated
boisy
parents:
diff changeset
164 * Floppy disk step rate definitions
a894bfdef5b3 Updated
boisy
parents:
diff changeset
165 STP.30ms: EQU 0 30ms step rate
a894bfdef5b3 Updated
boisy
parents:
diff changeset
166 STP.20ms: EQU 1 20ms step rate
a894bfdef5b3 Updated
boisy
parents:
diff changeset
167 STP.12ms: EQU 2 12ms step rate
a894bfdef5b3 Updated
boisy
parents:
diff changeset
168 STP.6ms: EQU 3 6ms step rate
a894bfdef5b3 Updated
boisy
parents:
diff changeset
169
a894bfdef5b3 Updated
boisy
parents:
diff changeset
170 PAG
a894bfdef5b3 Updated
boisy
parents:
diff changeset
171 *************************************
a894bfdef5b3 Updated
boisy
parents:
diff changeset
172 * Random Block Path Descriptor Format
a894bfdef5b3 Updated
boisy
parents:
diff changeset
173 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
174 * A path descriptor is created for every new path that is open
a894bfdef5b3 Updated
boisy
parents:
diff changeset
175 * via the I$Open system call (processed by IOMan). Process
a894bfdef5b3 Updated
boisy
parents:
diff changeset
176 * descriptors track state information of a path.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
177 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
178 csect
a894bfdef5b3 Updated
boisy
parents:
diff changeset
179 RMB PD.FST
a894bfdef5b3 Updated
boisy
parents:
diff changeset
180 PD.SMF: RMB 1 State flags
a894bfdef5b3 Updated
boisy
parents:
diff changeset
181 PD.CP: RMB 4 Current logical byte position
a894bfdef5b3 Updated
boisy
parents:
diff changeset
182 PD.SIZ: RMB 4 File size
a894bfdef5b3 Updated
boisy
parents:
diff changeset
183 PD.SBL: RMB 3 Segment beginning lsn
a894bfdef5b3 Updated
boisy
parents:
diff changeset
184 PD.SBP: RMB 3 Segment beginning psn
a894bfdef5b3 Updated
boisy
parents:
diff changeset
185 PD.SSZ: RMB 3 Segment size
a894bfdef5b3 Updated
boisy
parents:
diff changeset
186 PD.DSK: RMB 2 Disk id
a894bfdef5b3 Updated
boisy
parents:
diff changeset
187 PD.DTB: RMB 2 Drive table ptr
a894bfdef5b3 Updated
boisy
parents:
diff changeset
188 RMB PD.OPT-*
a894bfdef5b3 Updated
boisy
parents:
diff changeset
189 RMB 1 Device type
a894bfdef5b3 Updated
boisy
parents:
diff changeset
190 PD.DRV: RMB 1 Drive number
a894bfdef5b3 Updated
boisy
parents:
diff changeset
191 PD.STP: RMB 1 Step rate
a894bfdef5b3 Updated
boisy
parents:
diff changeset
192 PD.TYP: RMB 1 Disk device type (5" 8" other)
a894bfdef5b3 Updated
boisy
parents:
diff changeset
193 PD.DNS: RMB 1 Density capability
a894bfdef5b3 Updated
boisy
parents:
diff changeset
194 PD.CYL: RMB 2 Number of cylinders
a894bfdef5b3 Updated
boisy
parents:
diff changeset
195 PD.SID: RMB 1 Number of surfaces
a894bfdef5b3 Updated
boisy
parents:
diff changeset
196 PD.VFY: RMB 1 0=verify disk writes
a894bfdef5b3 Updated
boisy
parents:
diff changeset
197 PD.SCT: RMB 2 Default sectors/track
a894bfdef5b3 Updated
boisy
parents:
diff changeset
198 PD.T0S: RMB 2 Default sectors/track tr00,s0
a894bfdef5b3 Updated
boisy
parents:
diff changeset
199 PD.ILV: RMB 1 Sector interleave offset
a894bfdef5b3 Updated
boisy
parents:
diff changeset
200 PD.SAS: RMB 1 Segment allocation size
a894bfdef5b3 Updated
boisy
parents:
diff changeset
201 PD.TFM: RMB 1 DMA Transfer Mode
a894bfdef5b3 Updated
boisy
parents:
diff changeset
202 PD.Exten: RMB 2 Path Extension (PE) for record locking
a894bfdef5b3 Updated
boisy
parents:
diff changeset
203 PD.SToff: RMB 1 Sector/Track offsets (for "foreign" disk formats)
a894bfdef5b3 Updated
boisy
parents:
diff changeset
204 PD.ATT: RMB 1 File attributes
a894bfdef5b3 Updated
boisy
parents:
diff changeset
205 PD.FD: RMB 3 File descriptor psn
a894bfdef5b3 Updated
boisy
parents:
diff changeset
206 PD.DFD: RMB 3 Directory file descriptor psn
a894bfdef5b3 Updated
boisy
parents:
diff changeset
207 PD.DCP: RMB 4 File directory entry ptr
a894bfdef5b3 Updated
boisy
parents:
diff changeset
208 PD.DVT: RMB 2 User readable dev tbl ptr
a894bfdef5b3 Updated
boisy
parents:
diff changeset
209 endsect
a894bfdef5b3 Updated
boisy
parents:
diff changeset
210
a894bfdef5b3 Updated
boisy
parents:
diff changeset
211 * State Flags
a894bfdef5b3 Updated
boisy
parents:
diff changeset
212 BUFMOD: EQU $01 Buffer modified
a894bfdef5b3 Updated
boisy
parents:
diff changeset
213 SINBUF: EQU $02 Sector in buffer
a894bfdef5b3 Updated
boisy
parents:
diff changeset
214 FDBUF: EQU $04 File descriptor in buffer
a894bfdef5b3 Updated
boisy
parents:
diff changeset
215 *EOFSEC:equ $08 End of file sector
a894bfdef5b3 Updated
boisy
parents:
diff changeset
216 *EOF:equ $10 End of file
a894bfdef5b3 Updated
boisy
parents:
diff changeset
217 InDriver: EQU $20 Currently in Disk Driver, or queued
a894bfdef5b3 Updated
boisy
parents:
diff changeset
218 BufBusy: EQU $40 Buffer is currently busy
a894bfdef5b3 Updated
boisy
parents:
diff changeset
219
a894bfdef5b3 Updated
boisy
parents:
diff changeset
220 IFNE Level-1
a894bfdef5b3 Updated
boisy
parents:
diff changeset
221 ************************************
a894bfdef5b3 Updated
boisy
parents:
diff changeset
222 * Random Block Path Extension Format
a894bfdef5b3 Updated
boisy
parents:
diff changeset
223 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
224 * RBF paths under Level Two have additional information that
a894bfdef5b3 Updated
boisy
parents:
diff changeset
225 * is referenced by the path extension area.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
226 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
227 csect
a894bfdef5b3 Updated
boisy
parents:
diff changeset
228 PE.PE: RMB 1 PE path number
a894bfdef5b3 Updated
boisy
parents:
diff changeset
229 PE.PDptr: RMB 2 Back ptr to this PE's Path Descriptor
a894bfdef5b3 Updated
boisy
parents:
diff changeset
230 PE.NxFil: RMB 2 Drive Open-File list ptr
a894bfdef5b3 Updated
boisy
parents:
diff changeset
231 PE.Confl: RMB 2 Circular File Conflict list
a894bfdef5b3 Updated
boisy
parents:
diff changeset
232 PE.Lock: RMB 1 Path lockout status
a894bfdef5b3 Updated
boisy
parents:
diff changeset
233 PE.LoLck: RMB 4 Low Locked Logical addr
a894bfdef5b3 Updated
boisy
parents:
diff changeset
234 PE.HiLck: RMB 4 High Locked Logical addr
a894bfdef5b3 Updated
boisy
parents:
diff changeset
235 PE.Wait: RMB 2 PE ptr to (next) locked-out PE
a894bfdef5b3 Updated
boisy
parents:
diff changeset
236 PE.TmOut: RMB 2 Max ticks to wait for locked segment
a894bfdef5b3 Updated
boisy
parents:
diff changeset
237 PE.Owner: RMB 1 Process ID of owner of locked segment
a894bfdef5b3 Updated
boisy
parents:
diff changeset
238 PE.Req: RMB 1 Temp for PE.Lock in GAIN when LockSeg fails
a894bfdef5b3 Updated
boisy
parents:
diff changeset
239 PE.Prior: RMB 1 Temp for process priority while in driver
a894bfdef5b3 Updated
boisy
parents:
diff changeset
240 PE.SigSg: RMB 1 Signal code to send
a894bfdef5b3 Updated
boisy
parents:
diff changeset
241 PE.SigID: RMB 1 Process ID to send the signal to
a894bfdef5b3 Updated
boisy
parents:
diff changeset
242 RMB 32-* Reserved
a894bfdef5b3 Updated
boisy
parents:
diff changeset
243 PE.FilNm: RMB 32 Temp for filename during directory search
a894bfdef5b3 Updated
boisy
parents:
diff changeset
244 endsect
a894bfdef5b3 Updated
boisy
parents:
diff changeset
245
a894bfdef5b3 Updated
boisy
parents:
diff changeset
246 * PE.Lock status codes
a894bfdef5b3 Updated
boisy
parents:
diff changeset
247 Unlocked: EQU 0 No portion of file is locked
a894bfdef5b3 Updated
boisy
parents:
diff changeset
248 RcdLock: EQU 1 Record from LoLck to HiLck locked
a894bfdef5b3 Updated
boisy
parents:
diff changeset
249 FileLock: EQU 2 Entire file locked
a894bfdef5b3 Updated
boisy
parents:
diff changeset
250 EofLock: EQU 4 End of file is locked
a894bfdef5b3 Updated
boisy
parents:
diff changeset
251 ENDC
a894bfdef5b3 Updated
boisy
parents:
diff changeset
252
a894bfdef5b3 Updated
boisy
parents:
diff changeset
253
a894bfdef5b3 Updated
boisy
parents:
diff changeset
254 PAG
a894bfdef5b3 Updated
boisy
parents:
diff changeset
255 ***********************
a894bfdef5b3 Updated
boisy
parents:
diff changeset
256 * LSN0 Disk Data Format
a894bfdef5b3 Updated
boisy
parents:
diff changeset
257 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
258 * Logical Sector Number 0 is the first sector on an RBF formatted device
a894bfdef5b3 Updated
boisy
parents:
diff changeset
259 * and contains information about the device's size and format.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
260 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
261 csect
a894bfdef5b3 Updated
boisy
parents:
diff changeset
262 DD.TOT: RMB 3 Total number of sectors
a894bfdef5b3 Updated
boisy
parents:
diff changeset
263 DD.TKS: RMB 1 Track size in sectors
a894bfdef5b3 Updated
boisy
parents:
diff changeset
264 DD.MAP: RMB 2 Number of bytes in allocation bit map
a894bfdef5b3 Updated
boisy
parents:
diff changeset
265 DD.BIT: RMB 2 Number of sectors/bit
a894bfdef5b3 Updated
boisy
parents:
diff changeset
266 DD.DIR: RMB 3 Address of root directory fd
a894bfdef5b3 Updated
boisy
parents:
diff changeset
267 DD.OWN: RMB 2 Owner
a894bfdef5b3 Updated
boisy
parents:
diff changeset
268 DD.ATT: RMB 1 Attributes
a894bfdef5b3 Updated
boisy
parents:
diff changeset
269 DD.DSK: RMB 2 Disk ID
a894bfdef5b3 Updated
boisy
parents:
diff changeset
270 DD.FMT: RMB 1 Disk format; density/sides
a894bfdef5b3 Updated
boisy
parents:
diff changeset
271 DD.SPT: RMB 2 Sectors/track
a894bfdef5b3 Updated
boisy
parents:
diff changeset
272 DD.RES: RMB 2 Reserved for future use
a894bfdef5b3 Updated
boisy
parents:
diff changeset
273 DD.SIZ: EQU . Device descriptor minimum size
a894bfdef5b3 Updated
boisy
parents:
diff changeset
274 DD.BT: RMB 3 System bootstrap sector
a894bfdef5b3 Updated
boisy
parents:
diff changeset
275 DD.BSZ: RMB 2 Size of system bootstrap
a894bfdef5b3 Updated
boisy
parents:
diff changeset
276 DD.DAT: RMB 5 Creation date
a894bfdef5b3 Updated
boisy
parents:
diff changeset
277 DD.NAM: RMB 32 Volume name
a894bfdef5b3 Updated
boisy
parents:
diff changeset
278 DD.OPT: RMB 32 Option area
a894bfdef5b3 Updated
boisy
parents:
diff changeset
279 endsect
a894bfdef5b3 Updated
boisy
parents:
diff changeset
280
a894bfdef5b3 Updated
boisy
parents:
diff changeset
281 * DD.FMT Bit Definitions - valid only if device is a floppy disk
a894bfdef5b3 Updated
boisy
parents:
diff changeset
282 FMT.SIDE: EQU %00000001 Single Sided=0, Double Sided=1
a894bfdef5b3 Updated
boisy
parents:
diff changeset
283 FMT.DNS: EQU %00000010 Single Density=0, Double Density=1
a894bfdef5b3 Updated
boisy
parents:
diff changeset
284 FMT.TDNS: EQU %00000100 Track Density: 48/135 TPI=0, 96 TPI=1
a894bfdef5b3 Updated
boisy
parents:
diff changeset
285 FMT.T0DN: EQU %00100000 Track 0 Density, see FMT.DNS
a894bfdef5b3 Updated
boisy
parents:
diff changeset
286
a894bfdef5b3 Updated
boisy
parents:
diff changeset
287
a894bfdef5b3 Updated
boisy
parents:
diff changeset
288 PAG
a894bfdef5b3 Updated
boisy
parents:
diff changeset
289 ************************
a894bfdef5b3 Updated
boisy
parents:
diff changeset
290 * File Descriptor Format
a894bfdef5b3 Updated
boisy
parents:
diff changeset
291 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
292 * The file descriptor is a sector that is present for every file
a894bfdef5b3 Updated
boisy
parents:
diff changeset
293 * on an RBF device. It contains attributes, modification dates,
a894bfdef5b3 Updated
boisy
parents:
diff changeset
294 * and segment information on a file.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
295 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
296 csect
a894bfdef5b3 Updated
boisy
parents:
diff changeset
297 FD.ATT: RMB 1 Attributes
a894bfdef5b3 Updated
boisy
parents:
diff changeset
298 FD.OWN: RMB 2 Owner
a894bfdef5b3 Updated
boisy
parents:
diff changeset
299 FD.DAT: RMB 5 Date last modified
a894bfdef5b3 Updated
boisy
parents:
diff changeset
300 FD.LNK: RMB 1 Link count
a894bfdef5b3 Updated
boisy
parents:
diff changeset
301 FD.SIZ: RMB 4 File size
2458
76c3c37f3a38 Updated comment
boisy
parents: 2329
diff changeset
302 FD.Creat: RMB 3 File creation date (YY/MM/DD)
2329
a894bfdef5b3 Updated
boisy
parents:
diff changeset
303 FD.SEG: EQU * Beginning of segment list
a894bfdef5b3 Updated
boisy
parents:
diff changeset
304 endsect
a894bfdef5b3 Updated
boisy
parents:
diff changeset
305
a894bfdef5b3 Updated
boisy
parents:
diff changeset
306 * Segment List Entry Format
a894bfdef5b3 Updated
boisy
parents:
diff changeset
307 csect
a894bfdef5b3 Updated
boisy
parents:
diff changeset
308 FDSL.A: RMB 3 Segment beginning physical sector number
a894bfdef5b3 Updated
boisy
parents:
diff changeset
309 FDSL.B: RMB 2 Segment size
a894bfdef5b3 Updated
boisy
parents:
diff changeset
310 endsect
a894bfdef5b3 Updated
boisy
parents:
diff changeset
311
a894bfdef5b3 Updated
boisy
parents:
diff changeset
312 FDSL.S: EQU . Segment list entry size
a894bfdef5b3 Updated
boisy
parents:
diff changeset
313 FD.LS1: EQU FD.SEG+((256-FD.SEG)/FDSL.S-1)*FDSL.S
a894bfdef5b3 Updated
boisy
parents:
diff changeset
314 FD.LS2: EQU (256/FDSL.S-1)*FDSL.S
a894bfdef5b3 Updated
boisy
parents:
diff changeset
315 MINSEC: SET 16
a894bfdef5b3 Updated
boisy
parents:
diff changeset
316
a894bfdef5b3 Updated
boisy
parents:
diff changeset
317
a894bfdef5b3 Updated
boisy
parents:
diff changeset
318 PAG
a894bfdef5b3 Updated
boisy
parents:
diff changeset
319 ************************
a894bfdef5b3 Updated
boisy
parents:
diff changeset
320 * Directory Entry Format
a894bfdef5b3 Updated
boisy
parents:
diff changeset
321 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
322 * Directory entries are part of a directory and define the name
a894bfdef5b3 Updated
boisy
parents:
diff changeset
323 * of the file, as well as a pointer to its file descriptor.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
324 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
325 csect
a894bfdef5b3 Updated
boisy
parents:
diff changeset
326 DIR.NM: RMB 29 File name
a894bfdef5b3 Updated
boisy
parents:
diff changeset
327 DIR.FD: RMB 3 File descriptor physical sector number
a894bfdef5b3 Updated
boisy
parents:
diff changeset
328 DIR.SZ: EQU * Directory record size
a894bfdef5b3 Updated
boisy
parents:
diff changeset
329 endsect
a894bfdef5b3 Updated
boisy
parents:
diff changeset
330
a894bfdef5b3 Updated
boisy
parents:
diff changeset
331
a894bfdef5b3 Updated
boisy
parents:
diff changeset
332 PAG
a894bfdef5b3 Updated
boisy
parents:
diff changeset
333 ********************
a894bfdef5b3 Updated
boisy
parents:
diff changeset
334 * RBF Static Storage
a894bfdef5b3 Updated
boisy
parents:
diff changeset
335 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
336 * Overall Disk Static Storage
a894bfdef5b3 Updated
boisy
parents:
diff changeset
337 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
338 * Note: This does not reserve any memory for drive tables. Each
a894bfdef5b3 Updated
boisy
parents:
diff changeset
339 * driver is responsible for reserving sufficient memory for
a894bfdef5b3 Updated
boisy
parents:
diff changeset
340 * the appropriate number of tables.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
341 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
342 csect
a894bfdef5b3 Updated
boisy
parents:
diff changeset
343 RMB V.USER Reserve required ($06)
a894bfdef5b3 Updated
boisy
parents:
diff changeset
344 V.NDRV: RMB 1 Number of drives ($07)
a894bfdef5b3 Updated
boisy
parents:
diff changeset
345 RMB 8 reserved ($08)
a894bfdef5b3 Updated
boisy
parents:
diff changeset
346 DRVBEG: EQU * Beginning of drive tables ($10)
a894bfdef5b3 Updated
boisy
parents:
diff changeset
347 endsect
a894bfdef5b3 Updated
boisy
parents:
diff changeset
348
a894bfdef5b3 Updated
boisy
parents:
diff changeset
349 PAG
a894bfdef5b3 Updated
boisy
parents:
diff changeset
350 ****************
a894bfdef5b3 Updated
boisy
parents:
diff changeset
351 * Global Storage For Disk Drive Tables
a894bfdef5b3 Updated
boisy
parents:
diff changeset
352 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
353 * Each table contains the first 'DD.SIZ' bytes from
a894bfdef5b3 Updated
boisy
parents:
diff changeset
354 * LSN 0, and the current track, stepping rate,
a894bfdef5b3 Updated
boisy
parents:
diff changeset
355 * bitmap use flag, and disk type.
a894bfdef5b3 Updated
boisy
parents:
diff changeset
356 *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
357 csect
a894bfdef5b3 Updated
boisy
parents:
diff changeset
358 RMB DD.SIZ Device descriptor, LSN 0
a894bfdef5b3 Updated
boisy
parents:
diff changeset
359 V.TRAK: RMB 2 Current track
a894bfdef5b3 Updated
boisy
parents:
diff changeset
360 V.BMB: RMB 1 Bit-map use flag
a894bfdef5b3 Updated
boisy
parents:
diff changeset
361 V.FileHd: RMB 2 Open file list for this drive
a894bfdef5b3 Updated
boisy
parents:
diff changeset
362 V.DiskID: RMB 2 Disk ID
a894bfdef5b3 Updated
boisy
parents:
diff changeset
363 V.BMapSz: RMB 1 Bitmap Size
a894bfdef5b3 Updated
boisy
parents:
diff changeset
364 V.MapSct: RMB 1 Lowest reasonable bitmap sector
a894bfdef5b3 Updated
boisy
parents:
diff changeset
365 V.ResBit: RMB 1 Reserved bitmap sector (for compaction)
a894bfdef5b3 Updated
boisy
parents:
diff changeset
366 V.ScTkOf: RMB 1 Sector/Track byte (Combined from descriptor)
a894bfdef5b3 Updated
boisy
parents:
diff changeset
367 V.ScOfst: RMB 1 Sector offset split from byte above
a894bfdef5b3 Updated
boisy
parents:
diff changeset
368 V.TkOfst: RMB 1 Track offset split from byte above
a894bfdef5b3 Updated
boisy
parents:
diff changeset
369 RMB 4 Reserved
a894bfdef5b3 Updated
boisy
parents:
diff changeset
370 DRVMEM: EQU *
a894bfdef5b3 Updated
boisy
parents:
diff changeset
371 endsect
a894bfdef5b3 Updated
boisy
parents:
diff changeset
372
a894bfdef5b3 Updated
boisy
parents:
diff changeset
373 ENDC
a894bfdef5b3 Updated
boisy
parents:
diff changeset
374