1 /* Begin include file  mess_route_table.incl.pl1   */
  2 
  3 /*
  4 Message Routing Table
  5 
  6 This table will be used by the protocol & router entries of the
  7 message  coordinator  to match source (e.g. I/O Daemon, answering
  8 service) -- stream (e.g. "user_i/o","error_output")  combinations
  9 with virtual consoles to which messages are to be directed.
 10 */
 11 
 12 dcl 1 MRT aligned based(mrtp),                    /* header 4 words */
 13           2 lock bit(36),                         /*     0 */
 14           2 no_of_sources fixed bin,
 15           2 flags         bit(36),
 16           2 pad1          fixed bin,
 17           2 star_entry aligned,                   /*     4 * */
 18                3 source       char(32),
 19                3 hismess      ptr,
 20                3 no_of_streams fixed bin,
 21                3 flags,
 22                     4 init    bit(1) unal,
 23                     4 valid   bit(1) unal,
 24                     4 unused  bit(34) unal,
 25                3 stream like stream aligned,      /*    20 * str */
 26           2 source(16) aligned,         /* source entry head 12 dec 14 oct words */
 27                3 source       char(32),           /*   220-1,2240-2,4260-3 */
 28                3 hismess      ptr,
 29                3 no_of_streams fixed bin,
 30                3 flags,
 31                     4 init    bit(1) unal,
 32                     4 valid   bit(1) unal,
 33                     4 unused  bit(34) unal,
 34                3 stream(8) like stream aligned;
 35 
 36 
 37 dcl 1 stream aligned based(streamp),    /* 128dec 200 oct words */
 38           2 gumbo(28)         fixed bin,          /* This stuff is not used */
 39           2 ourmess           ptr,
 40           2 hismess           ptr,
 41           2 source            char(32),
 42           2 stream            char(32),
 43           2 source_index      fixed bin,          /* Our own address */
 44           2 stream_index      fixed bin,
 45           2 flags,
 46                3 valid        bit(1) unal,
 47                3 read         bit(1) unal,
 48                3 write        bit(1) unal,
 49                3 active       bit(1) unal,
 50                3 more         bit(1) unal,
 51                3 unused       bit(23) unal,
 52                3 alarm        bit (8) unal,
 53           2 prev_trans,
 54                3 first_block  fixed bin,
 55                3 end_block    fixed bin,
 56                3 current_block fixed bin,
 57                3 offset       fixed bin,
 58 
 59           2 no_of_vcons       fixed bin,
 60           2 vcons(8)          char(32),
 61           2 vcons_index(8)    fixed bin;
 62 /*
 63 MRT
 64 lock
 65 no_of_sources            Number of source rows in this matrix.
 66 flags
 67 star_entry               Contains default routing.
 68 source                   The source rows
 69 source                   Name of this source.
 70 no_of_streams            Number of stream columns that have
 71                          entries in this row.
 72 flags
 73 init                     "1"b -- This entry is for a source which
 74                          is currently attached & sending messages.
 75 valid                    "1"b -- This entry contains correct information.
 76 stream                   The virtual consoles for this element
 77                          of the matrix.
 78                          The Source Data Block, which
 79                          corresponds to the Stream Data
 80                          Block on the mrd side has been included
 81                          in the MRT.
 82 gumbo                    Stream DB has stuff here we dont need.
 83 ourmess                  Pointer to message seg for this
 84                          function (in this case mc_ ).
 85 hismess                  Pointer to message seg for other
 86                          guy (in this case, the source).
 87 source                   Name of this source
 88 stream                   Name of this stream.
 89 source_index             in MRT
 90 stream_index
 91 flags
 92 valid                    "1"b -- This entry contains correct information.
 93 active                   "1"b -- This entry is for a stream which
 94                          is currently attached & sending messages.
 95 alarm                    "1"b -- These messages are "alarm-class" messages.
 96 prev_trans               Information useful to mrd_util_ if more than
 97                          one read call is made.
 98 first_block              of the message
 99 end_block                of the message
100 current_block            out of which we are taking text
101 offset                   of current character in current_block
102 
103 no_of_vcons
104 vcons                    Virtual consoles to which messages should
105                          go when originating from this source
106                          over this stream.
107 vcons-index              Index in the virtual console table
108 ev_chn                   For waking up function waiting for
109                          input.
110 messp                    Pointer to message segment if this is
111                          input stream.
112 */
113 
114 /* End include file  mess_route_table.incl.pl1  */