1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
|
// license:BSD-3-Clause
// copyright-holders:Miodrag Milanovic
/***************************************************************************
RC2014 Modular Backplane Extensions
****************************************************************************/
#include "emu.h"
#include "edge.h"
#include "modules.h"
namespace {
//**************************************************************************
// SC106 - Modular Backplane (RC2014)
// Module author: Stephen C Cousins
//**************************************************************************
class sc106_device : public device_t, public device_rc2014_rc80_card_interface
{
public:
// construction/destruction
sc106_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
protected:
sc106_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock);
// device-level overrides
virtual void device_start() override;
virtual void device_add_mconfig(machine_config &config) override;
private:
required_device<rc2014_rc80_bus_device> m_rc80_bus;
};
sc106_device::sc106_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock)
: device_t(mconfig, type, tag, owner, clock)
, device_rc2014_rc80_card_interface(mconfig, *this)
, m_rc80_bus(*this, ":bus")
{
}
sc106_device::sc106_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
: sc106_device(mconfig, RC2014_SC106, tag, owner, clock)
{
}
void sc106_device::device_start()
{
}
void sc106_device::device_add_mconfig(machine_config &config)
{
RC2014_RC80_SLOT(config, "1", m_rc80_bus, rc2014_rc80_bus_modules, nullptr);
RC2014_RC80_SLOT(config, "2", m_rc80_bus, rc2014_rc80_bus_modules, nullptr);
RC2014_RC80_SLOT(config, "3", m_rc80_bus, rc2014_rc80_bus_modules, nullptr);
RC2014_RC80_SLOT(config, "4", m_rc80_bus, rc2014_rc80_bus_modules, nullptr);
RC2014_RC80_SLOT(config, "5", m_rc80_bus, rc2014_rc80_bus_modules, nullptr);
RC2014_RC80_SLOT(config, "6", m_rc80_bus, rc2014_rc80_bus_modules, nullptr);
RC2014_RC80_SLOT(config, "e", m_rc80_bus, rc2014_rc80_bus_edge_modules, nullptr);
}
//**************************************************************************
// SC107 - Modular Backplane (RC2014)
// Module author: Stephen C Cousins
//
// TODO: Pins 37 and 38 form an interrupt daisy chain
//**************************************************************************
class sc107_device : public sc106_device
{
public:
// construction/destruction
sc107_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
};
sc107_device::sc107_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
: sc106_device(mconfig, RC2014_SC107, tag, owner, clock)
{
}
//**************************************************************************
// SC113 - Modular Backplane (RC2014)
// Module author: Stephen C Cousins
//
// TODO: Jumpers on board
//**************************************************************************
class sc113_device : public sc106_device
{
public:
// construction/destruction
sc113_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
};
sc113_device::sc113_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
: sc106_device(mconfig, RC2014_SC113, tag, owner, clock)
{
}
//**************************************************************************
// SC141 - Modular Backplane (RC2014)
// Module author: Stephen C Cousins
//**************************************************************************
class sc141_device : public device_t, public device_rc2014_card_interface
{
public:
// construction/destruction
sc141_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
protected:
// device-level overrides
virtual void device_start() override;
virtual void device_add_mconfig(machine_config &config) override;
private:
required_device<rc2014_bus_device> m_rc40_bus;
};
sc141_device::sc141_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
: device_t(mconfig, RC2014_SC141, tag, owner, clock)
, device_rc2014_card_interface(mconfig, *this)
, m_rc40_bus(*this, ":bus")
{
}
void sc141_device::device_start()
{
}
void sc141_device::device_add_mconfig(machine_config &config)
{
RC2014_SLOT(config, "1", m_rc40_bus, rc2014_bus_modules, nullptr);
RC2014_SLOT(config, "2", m_rc40_bus, rc2014_bus_modules, nullptr);
RC2014_SLOT(config, "3", m_rc40_bus, rc2014_bus_modules, nullptr);
RC2014_SLOT(config, "4", m_rc40_bus, rc2014_bus_modules, nullptr);
RC2014_SLOT(config, "5", m_rc40_bus, rc2014_bus_modules, nullptr);
RC2014_SLOT(config, "6", m_rc40_bus, rc2014_bus_modules, nullptr);
RC2014_SLOT(config, "7", m_rc40_bus, rc2014_bus_modules, nullptr);
RC2014_SLOT(config, "8", m_rc40_bus, rc2014_bus_modules, nullptr);
RC2014_SLOT(config, "9", m_rc40_bus, rc2014_bus_modules, nullptr);
RC2014_SLOT(config, "10", m_rc40_bus, rc2014_bus_modules, nullptr);
RC2014_SLOT(config, "11", m_rc40_bus, rc2014_bus_modules, nullptr);
RC2014_SLOT(config, "12", m_rc40_bus, rc2014_bus_modules, nullptr);
RC2014_SLOT(config, "e", m_rc40_bus, rc2014_bus_edge_modules, nullptr);
}
//**************************************************************************
// SC147 - Modular Backplane (RC2014)
// Module author: Stephen C Cousins
//**************************************************************************
class sc147_device : public device_t, public device_rc2014_card_interface
{
public:
// construction/destruction
sc147_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
protected:
// device-level overrides
virtual void device_start() override;
virtual void device_add_mconfig(machine_config &config) override;
private:
required_device<rc2014_bus_device> m_rc40_bus;
};
sc147_device::sc147_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
: device_t(mconfig, RC2014_SC147, tag, owner, clock)
, device_rc2014_card_interface(mconfig, *this)
, m_rc40_bus(*this, ":bus")
{
}
void sc147_device::device_start()
{
}
void sc147_device::device_add_mconfig(machine_config &config)
{
RC2014_SLOT(config, "1", m_rc40_bus, rc2014_bus_modules, nullptr);
RC2014_SLOT(config, "2", m_rc40_bus, rc2014_bus_modules, nullptr);
RC2014_SLOT(config, "3", m_rc40_bus, rc2014_bus_modules, nullptr);
RC2014_SLOT(config, "4", m_rc40_bus, rc2014_bus_modules, nullptr);
RC2014_SLOT(config, "5", m_rc40_bus, rc2014_bus_modules, nullptr);
RC2014_SLOT(config, "6", m_rc40_bus, rc2014_bus_modules, nullptr);
RC2014_SLOT(config, "e", m_rc40_bus, rc2014_bus_edge_modules, nullptr);
}
}
//**************************************************************************
// DEVICE DEFINITIONS
//**************************************************************************
DEFINE_DEVICE_TYPE_PRIVATE(RC2014_SC106, device_rc2014_rc80_card_interface, sc106_device, "rc2014_sc106", "SC106 - Modular Backplane (RC2014)")
DEFINE_DEVICE_TYPE_PRIVATE(RC2014_SC107, device_rc2014_rc80_card_interface, sc107_device, "rc2014_sc107", "SC107 - Modular Backplane (RC2014)")
DEFINE_DEVICE_TYPE_PRIVATE(RC2014_SC113, device_rc2014_rc80_card_interface, sc113_device, "rc2014_sc113", "SC113 - Modular Backplane (RC2014)")
DEFINE_DEVICE_TYPE_PRIVATE(RC2014_SC141, device_rc2014_card_interface, sc141_device, "rc2014_sc141", "SC141 - Modular Backplane (RC2014)")
DEFINE_DEVICE_TYPE_PRIVATE(RC2014_SC147, device_rc2014_card_interface, sc147_device, "rc2014_sc147", "SC147 - Modular Backplane (RC2014)")
|