annotate defs/pipedefs @ 1160:804c46c20c2b

Fixed minor problem
author boisy
date Fri, 02 May 2003 22:34:19 +0000
parents 6f1799317d2b
children 0a678473d5cf
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
516
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
5 *
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
6 * Copyright 1988 by Microware Systems Corporation
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
7 * All Rights Reserved
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
8 *
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
9 * Named pipe equates by Burke & Burke.
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
10 * All rights assigned to Microware Systems Corporation.
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
11 *
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
12 * This file contains proprietary information of Microware Systems
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
13 * Corporation. Persons accessing this file will be held strictly
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
14 * accountable for their use of the information herein.
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
15 *
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
16
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
17 *
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
18 * OS9 Level 2 Pipe Definitions
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
19 *
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
20 * Modification History
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
21 * --------------------
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
22 *
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
23 * Date Who Description
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
24 * -------- --- -----------------------------------------
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
25 * 12/03/88 cjb Coded from new PIPEMAN comments
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
26 *
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
27
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 nam PipeDefs
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29 ttl OS-9 Pipe Definitions
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 * OS-9 Pipe Definitions
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 * IOMan equates duplicated for PipeMan use
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 NPATHS set 16 ;Maximum local paths per task -- must match IOMan
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 NameMax set 29 ;Maximum length of a file name
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 * Device Driver Static Storage Layout
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 org V.User
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 V.List rmb 2 ;Pointer to 1st pipe's pipe buffer
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 PManMem equ . ;Device driver memory (drive table equivalent)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 * Pipe Buffer Data Structure
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49 org 0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50 PP.PD rmb 2 ;Pointer to shared path descriptor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 PP.Next rmb 2 ;Pointer to next pipe buffer in system map
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 PP.Prev rmb 2 ;Pointer to previous pipe buffer in system map
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53 PP.Rsrv rmb 2 ;Reserved
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 PP.Data equ . ;Data buffer begins at this offset
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 * Unique Path Descriptor Variables
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 org PD.FST
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 *** PP.Read must have bit 4 clear; PP.Writ must be PP.Read XOR 4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61 PD.Read equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 PD.RPID rmb 1 ;Process ID of reader waiting on signal
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63 PD.RCT rmb 1 ;Number of blocked readers
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64 PD.RSIG rmb 1 ;Signal to send reader
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65 PD.REOR rmb 1 ;Read EOR character
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
66 PD.Writ equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 PD.WPID rmb 1 ;Process ID of writer waiting on signal
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
68 PD.WCT rmb 1 ;Number of blocked writers
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69 PD.WSIG rmb 1 ;Signal to send writer
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
70 PD.WEOR rmb 1 ;Write EOR character (dummy)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 *** End of special section
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 PD.End rmb 2 ;Pointer to end of pipe buffer
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73 PD.NxtI rmb 2 ;Next in pointer
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 PD.NxtO rmb 2 ;Next out pointer
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75 PD.RFlg rmb 1 ;"Ready" flag
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
76 PD.Wrtn rmb 1 ;"Written" flag
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
77 PD.BCnt rmb 2 ;# queue elements currently bufered
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 PD.Own rmb 1 ;Process ID of pipe original creator
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
79 PD.Keep rmb 1 ;Non-zero if pipe has been kept open artificailly
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
80 PD.QSiz rmb 2 ;Max. elements in queue (copied from OPT section)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
81
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
83 * Path descriptor option section
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 * Note that PD.Name overlaps with the last byte of PD.ECnt.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 * PD.ECnt is copied to PD.QSiz as part of OPEN or CREATE,
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 * to make room for the pipe name.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89 org (PD.OPT+1)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90 PD.ESiz rmb 1 ;Size of each queue element
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
91 PD.ECnt rmb 2 ;Max. elements in queue (initial position)
516
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
92 IFGT Level-1
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
93 org (PD.OPT+3)
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
94 PD.Name rmb NameMax
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
95 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
96
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
97 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
98 * Device Descriptor definitions
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
99 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
100 IT.PDC equ $12 ;Pipe device class (like IT.DTP, IT.DVC)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
101 org IT.PDC
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
102 rmb 1 ;Leave room for device class
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
103 IT.ESiz rmb 1 ;Size of each queue element
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
104 IT.ECnt rmb 2 ;Max. elements in queue (initial position)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
105
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
106 * End of pipedefs
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
107
516
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
108 ENDC
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
109