annotate defs/pipe.d @ 3239:a47ee8f14eb8

Added new routine to dwread.asm and dwwrite.asm for using the SY6551 chips. Added new option to the becker port routines so the base address can be changed during build time from makefile. This should allow for setting building a optional module for use with the ESP8266-01 WiFi module on Ed Snider's analog board that is used with the CoCo3FPGA Project.
author David Ladd <drencor-xeen@users.sourceforge.net>
date Thu, 08 Mar 2018 21:36:34 -0600
parents db97356e3648
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2802
58ca94b06908 now built from defs files
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2024
diff changeset
1 IFNE PIPE.D-1
373
c07686556109 Added ifeq statements at top to allow for multiple use's of same def
boisy
parents: 0
diff changeset
2
2802
58ca94b06908 now built from defs files
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2024
diff changeset
3 PIPE.D SET 1
373
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
2024
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
16 NAM PipeDefs
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
17 TTL Pipe File Manager Definitions
1200
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 516
diff changeset
18
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 * IOMan equates duplicated for PipeMan use
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22
2024
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
23 NPATHS SET 16 ;Maximum local paths per task -- must match IOMan
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
24 NameMax SET 29 ;Maximum length of a file name
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27 * Device Driver Static Storage Layout
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 *
2024
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
29 ORG V.User
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
30 V.List RMB 2 ;Pointer to 1st pipe's pipe buffer
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
31 PManMem EQU . ;Device driver memory (drive table equivalent)
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 * Pipe Buffer Data Structure
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 *
2024
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
36 ORG 0
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
37 PP.PD RMB 2 ;Pointer to shared path descriptor
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
38 PP.Next RMB 2 ;Pointer to next pipe buffer in system map
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
39 PP.Prev RMB 2 ;Pointer to previous pipe buffer in system map
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
40 PP.Rsrv RMB 2 ;Reserved
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
41 PP.Data EQU . ;Data buffer begins at this offset
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 * Unique Path Descriptor Variables
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 *
2024
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
46 ORG PD.FST
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 *** PP.Read must have bit 4 clear; PP.Writ must be PP.Read XOR 4
2024
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
48 PD.Read EQU .
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
49 PD.RPID RMB 1 ;Process ID of reader waiting on signal
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
50 PD.RCT RMB 1 ;Number of blocked readers
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
51 PD.RSIG RMB 1 ;Signal to send reader
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
52 PD.REOR RMB 1 ;Read EOR character
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
53 PD.Writ EQU .
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
54 PD.WPID RMB 1 ;Process ID of writer waiting on signal
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
55 PD.WCT RMB 1 ;Number of blocked writers
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
56 PD.WSIG RMB 1 ;Signal to send writer
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
57 PD.WEOR RMB 1 ;Write EOR character (dummy)
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 *** End of special section
2024
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
59 PD.End RMB 2 ;Pointer to end of pipe buffer
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
60 PD.NxtI RMB 2 ;Next in pointer
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
61 PD.NxtO RMB 2 ;Next out pointer
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
62 PD.RFlg RMB 1 ;"Ready" flag
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
63 PD.Wrtn RMB 1 ;"Written" flag
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
64 PD.BCnt RMB 2 ;# queue elements currently bufered
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
65 PD.Own RMB 1 ;Process ID of pipe original creator
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
66 PD.Keep RMB 1 ;Non-zero if pipe has been kept open artificailly
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
67 PD.QSiz RMB 2 ;Max. elements in queue (copied from OPT section)
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
68
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
70 * Path descriptor option section
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 * Note that PD.Name overlaps with the last byte of PD.ECnt.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73 * PD.ECnt is copied to PD.QSiz as part of OPEN or CREATE,
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 * to make room for the pipe name.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75 *
2024
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
76 ORG (PD.OPT+1)
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
77 PD.ESiz RMB 1 ;Size of each queue element
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
78 PD.ECnt RMB 2 ;Max. elements in queue (initial position)
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
79 IFGT Level-1
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
80 ORG (PD.OPT+3)
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
81 PD.Name RMB NameMax
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
82 ENDC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
83
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 * Device Descriptor definitions
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 *
2024
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
87 IT.PDC EQU $12 ;Pipe device class (like IT.DTP, IT.DVC)
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
88 ORG IT.PDC
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
89 RMB 1 ;Leave room for device class
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
90 IT.ESiz RMB 1 ;Size of each queue element
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
91 IT.ECnt RMB 2 ;Max. elements in queue (initial position)
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92
2809
db97356e3648 Renamed refs to pipedefs to pipe.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2802
diff changeset
93 * End of pipe.d
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
94
2024
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1541
diff changeset
95 ENDC
516
6f1799317d2b Consolidated pipedefs
boisy
parents: 373
diff changeset
96