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-2022 The DPS8M Development Team
13 *
14 * All rights reserved.
15 *
16 * This software is made available under the terms of the ICU
17 * License, version 1.8.1 or later. For more details, see the
18 * LICENSE.md file at the top-level directory of this distribution.
19 *
20 * ---------------------------------------------------------------------------
21 */
22
23 extern UNIT dia_unit [N_DIA_UNITS_MAX];
24 extern DEVICE dia_dev;
25
26 // Indexed by sim unit number
27 struct dia_unit_data
28 {
29 uint mailbox_address;
30 word24 l66_addr;
31 int link;
32 };
33
34 typedef struct s_dia_data
35 {
36 struct dia_unit_data dia_unit_data [N_DIA_UNITS_MAX];
37 } t_dia_data;
38
39 extern t_dia_data dia_data;
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60 void dia_init(void);
61 int dia_iom_cmd (uint iomUnitIdx, uint chan);
62 void dia_process_events (void);