annotate defs/pipedefs @ 1219:5d025106d1ea

Rodney added bitfield instructions
author boisy
date Tue, 01 Jul 2003 02:55:21 +0000
parents 0a678473d5cf
children 8d4b5ee1cee4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
516
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
1 IFEQ PIPEDEFS
373
c07686556109 Added ifeq statements at top to allow for multiple use's of same def
boisy
parents: 0
diff changeset
2
c07686556109 Added ifeq statements at top to allow for multiple use's of same def
boisy
parents: 0
diff changeset
3 PIPEDEFS set 1
c07686556109 Added ifeq statements at top to allow for multiple use's of same def
boisy
parents: 0
diff changeset
4
1200
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 516
diff changeset
5 ********************************************************************
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 516
diff changeset
6 * PipeDefs - Pipe File Manager Definitions
516
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
7 *
1200
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 516
diff changeset
8 * $Id$
516
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
9 *
1200
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 516
diff changeset
10 * Edt/Rev YYYY/MM/DD Modified by
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 516
diff changeset
11 * Comment
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 516
diff changeset
12 * ------------------------------------------------------------------
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 516
diff changeset
13 * 1988/12/03 Chris J. Burke
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 516
diff changeset
14 * Coded from new PIPEMAN comments.
516
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
15
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
16
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17 nam PipeDefs
1200
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 516
diff changeset
18 ttl Pipe File Manager Definitions
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19
1200
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 516
diff changeset
20
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22 * IOMan equates duplicated for PipeMan use
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25 NPATHS set 16 ;Maximum local paths per task -- must match IOMan
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26 NameMax set 29 ;Maximum length of a file name
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29 * Device Driver Static Storage Layout
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 org V.User
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 V.List rmb 2 ;Pointer to 1st pipe's pipe buffer
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 PManMem equ . ;Device driver memory (drive table equivalent)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 * Pipe Buffer Data Structure
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 org 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 PP.PD rmb 2 ;Pointer to shared path descriptor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 PP.Next rmb 2 ;Pointer to next pipe buffer in system map
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 PP.Prev rmb 2 ;Pointer to previous pipe buffer in system map
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 PP.Rsrv rmb 2 ;Reserved
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 PP.Data equ . ;Data buffer begins at this offset
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 * Unique Path Descriptor Variables
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 org PD.FST
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49 *** PP.Read must have bit 4 clear; PP.Writ must be PP.Read XOR 4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50 PD.Read equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 PD.RPID rmb 1 ;Process ID of reader waiting on signal
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 PD.RCT rmb 1 ;Number of blocked readers
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53 PD.RSIG rmb 1 ;Signal to send reader
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 PD.REOR rmb 1 ;Read EOR character
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55 PD.Writ equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 PD.WPID rmb 1 ;Process ID of writer waiting on signal
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 PD.WCT rmb 1 ;Number of blocked writers
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 PD.WSIG rmb 1 ;Signal to send writer
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 PD.WEOR rmb 1 ;Write EOR character (dummy)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 *** End of special section
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61 PD.End rmb 2 ;Pointer to end of pipe buffer
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 PD.NxtI rmb 2 ;Next in pointer
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63 PD.NxtO rmb 2 ;Next out pointer
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64 PD.RFlg rmb 1 ;"Ready" flag
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65 PD.Wrtn rmb 1 ;"Written" flag
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
66 PD.BCnt rmb 2 ;# queue elements currently bufered
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 PD.Own rmb 1 ;Process ID of pipe original creator
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
68 PD.Keep rmb 1 ;Non-zero if pipe has been kept open artificailly
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69 PD.QSiz rmb 2 ;Max. elements in queue (copied from OPT section)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
70
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 * Path descriptor option section
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 * Note that PD.Name overlaps with the last byte of PD.ECnt.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75 * PD.ECnt is copied to PD.QSiz as part of OPEN or CREATE,
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
76 * to make room for the pipe name.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
77 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 org (PD.OPT+1)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
79 PD.ESiz rmb 1 ;Size of each queue element
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
80 PD.ECnt rmb 2 ;Max. elements in queue (initial position)
516
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
81 IFGT Level-1
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
82 org (PD.OPT+3)
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
83 PD.Name rmb NameMax
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
84 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 * Device Descriptor definitions
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89 IT.PDC equ $12 ;Pipe device class (like IT.DTP, IT.DVC)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90 org IT.PDC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
91 rmb 1 ;Leave room for device class
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92 IT.ESiz rmb 1 ;Size of each queue element
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
93 IT.ECnt rmb 2 ;Max. elements in queue (initial position)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
94
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
95 * End of pipedefs
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
96
516
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
97 ENDC
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
98