1
2
3
4
5
6 dcl adp ptr;
7
8 dcl 1 ad aligned based (adp),
9 2 work_areap ptr,
10 2 device char (6),
11 2 tty_index fixed bin,
12 2 attach_description char (256) var,
13 2 open_description char (24) var,
14 2 wait_list aligned,
15 3 nchan fixed bin,
16 3 user_channel fixed bin (71),
17 2 attach_channel fixed bin (71),
18 2 io_channel fixed bin (71),
19 2 timer_channel fixed bin (71),
20 2 controller fixed bin,
21 2 open_in_progress bit (1),
22 2 close_in_progress bit (1),
23 2 open_wakeup_occured bit (1),
24 2 open_event_message fixed bin (71),
25 2 ascii bit (1),
26 2 async bit (1),
27 2 eot char (1),
28 2 stx char (1),
29 2 etx char (1),
30 2 etb char (1),
31 2 soh char (1),
32 2 esc char (1),
33 2 sf char (1),
34 2 sba char (1),
35 2 ic char (1),
36 2 pt char (1),
37 2 ra char (1),
38 2 eua char (1),
39 2 bit6_char (0:63) char (1) unal,
40 2 first_read_infop ptr,
41 2 last_read_infop ptr,
42 2 header_data,
43 3 header_buf_ptr ptr,
44 3 header_buf_len fixed bin,
45 3 header_len fixed bin,
46 2 text_data,
47 3 text_buf_ptr ptr,
48 3 text_buf_len fixed bin,
49 3 text_len fixed bin,
50 2 input_buf_ptr ptr,
51 2 input_buf_len fixed bin,
52 2 unscanned_data_ptr ptr,
53 2 unscanned_data_len fixed bin,
54 2 input_state fixed bin,
55 2 output_buf_ptr ptr,
56 2 output_buf_len fixed bin,
57 2 polling_in_progress bit (1),
58 2 device_responded bit (1),
59 2 general_poll bit (1),
60 2 first_poll_reqp ptr,
61 2 last_poll_reqp ptr,
62 2 wakeup_needed bit (1),
63 2 last_device_polled fixed bin,
64 2 last_device_selected fixed bin,
65 2 cur_out_reqp ptr,
66 2 output_in_progress bit (1),
67 2 per_dev (0:31),
68 3 first_out_reqp ptr,
69 3 last_out_reqp ptr,
70 3 pend_time fixed bin (71),
71 2 min_dev fixed bin,
72 2 max_dev fixed bin,
73 2 pend_interval fixed bin (71),
74 2 retry_limit fixed bin,
75 2 input_line_status fixed bin,
76 2 output_line_status fixed bin,
77 2 processid bit (36);
78
79 dcl work_area area based (ad.work_areap);
80 dcl header_buf char (ad.header_buf_len) based (ad.header_buf_ptr);
81 dcl header_data char (ad.header_len) based (ad.header_buf_ptr);
82 dcl text_buf char (ad.text_buf_len) based (ad.text_buf_ptr);
83 dcl text_data char (ad.text_len) based (ad.text_buf_ptr);
84 dcl input_buf char (ad.input_buf_len) based (ad.input_buf_ptr);
85 dcl unscanned_data char (ad.unscanned_data_len) based (ad.unscanned_data_ptr);
86 dcl output_buf char (ad.output_buf_len) based (ad.output_buf_ptr);
87
88
89
90
91
92
93 dcl address_mapping (0:63) bit (8) unal int static options (constant) init (
94 "40"b4, "c1"b4, "c2"b4, "c3"b4, "c4"b4, "c5"b4, "c6"b4, "c7"b4,
95 "c8"b4, "c9"b4, "4a"b4, "4b"b4, "4c"b4, "4d"b4, "4e"b4, "4f"b4,
96 "50"b4, "d1"b4, "d2"b4, "d3"b4, "d4"b4, "d5"b4, "d6"b4, "d7"b4,
97 "d8"b4, "d9"b4, "5a"b4, "5b"b4, "5c"b4, "5d"b4, "5e"b4, "5f"b4,
98 "60"b4, "61"b4, "e2"b4, "e3"b4, "e4"b4, "e5"b4, "e6"b4, "e7"b4,
99 "e8"b4, "e9"b4, "6a"b4, "6b"b4, "6c"b4, "6d"b4, "6e"b4, "6f"b4,
100 "f0"b4, "f1"b4, "f2"b4, "f3"b4, "f4"b4, "f5"b4, "f6"b4, "f7"b4,
101 "f8"b4, "f9"b4, "7a"b4, "7b"b4, "7c"b4, "7d"b4, "7e"b4, "7f"b4);
102
103