1 /*
2 * vim: filetype=c:tabstop=4:ai:expandtab
3 * SPDX-License-Identifier: ICU
4 * scspell-id: 1da4ad0a-f62e-11ec-8410-80ee73e9b8e7
5 *
6 * ---------------------------------------------------------------------------
7 *
8 * Copyright (c) 2007-2013 Michael Mondy
9 * Copyright (c) 2012-2016 Harry Reed
10 * Copyright (c) 2013-2017 Charles Anthony
11 * Copyright (c) 2016 Michal Tomek
12 * Copyright (c) 2021-2025 The DPS8M Development Team
13 *
14 * This software is made available under the terms of the ICU License.
15 * See the LICENSE.md file at the top-level directory of this distribution.
16 *
17 * ---------------------------------------------------------------------------
18 */
19
20 extern UNIT dia_unit [N_DIA_UNITS_MAX];
21 extern DEVICE dia_dev;
22
23 // Indexed by sim unit number
24 struct dia_unit_data
25 {
26 uint mailbox_address;
27 word24 l66_addr;
28 int link;
29 };
30
31 typedef struct s_dia_data
32 {
33 struct dia_unit_data dia_unit_data [N_DIA_UNITS_MAX];
34 } t_dia_data;
35
36 extern t_dia_data dia_data;
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57 void dia_init(void);
58 int dia_iom_cmd (uint iomUnitIdx, uint chan);
59 void dia_process_events (void);