1 /* BEGIN INCLUDE FILE ... tty_buffer_block.incl.pl1 */
 2 
 3 
 4 
 5 /****^  HISTORY COMMENTS:
 6   1) change(88-06-15,Berno), approve(88-07-13,MCR7928),
 7      audit(88-06-15,Parisek), install(88-07-19,MR12.2-1061):
 8      Add data needed for the uncp multiplexer (DSA gateway) interface
 9      implementation.
10                                                    END HISTORY COMMENTS */
11 
12 
13 /*
14    Separated from tty_buf.incl.pl1 aug 78 by J. Nicholls
15    Modified May 1979 by Larry Johnson to add max_buffer_tally array and to use unsigned variables.
16    Reported in February 1982 the modifications to add the "turn" bit in flags.
17 */
18 
19 dcl  blockp ptr;                                            /* pointer which block entry is based on */
20 dcl  free_blockp ptr;                                       /* pointer to head of free space chain */
21 
22 
23 dcl 1 free_block aligned based (free_blockp),               /* format of start of free block */
24     2 next bit (18),                                        /* foward pointer to next free block */
25     2 size fixed bin;                                       /* number of words in this block */
26 
27 
28 dcl 1 buffer based (blockp) aligned,                        /* buffer definition */
29     2 next fixed bin (18) unal uns,                         /* addr of next buffer */
30     2 flags unaligned,
31       3 end_of_page bit (1) unaligned,                      /* buffer contains end of page */
32       3 converted bit (1) unaligned,                        /* buffer contains converted input */
33       3 break bit (1) unaligned,                            /* buffer contains break character */
34       3 mark bit (1) unaligned,                             /* buffer contains first character after "mark" */
35       3 turn bit (1) unaligned,                             /* ON if the turn must be sent */
36       3 pad bit (1) unaligned,
37     2 size_code fixed bin (3) unal uns,                     /* (nwords/16) - 1 */
38     2 tally fixed bin (9) unal uns,                         /* number of characters in buffer */
39     2 chars (0:59) char (1) unaligned;                      /* room for 60 data characters */
40 
41 /* the following array, if indexed by buffer.size_code will give maximum number of characters permitted in that buffer */
42 
43 dcl  max_buffer_tally (0:7) fixed bin int static options (constant) init (60, 124, 188, 252, 316, 380, 444, 508);
44 
45 /* END INCLUDE FILE ... tty_buffer_block.incl.pl1 */