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