summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/thomson/extension.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/thomson/extension.cpp')
-rw-r--r--src/devices/bus/thomson/extension.cpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/devices/bus/thomson/extension.cpp b/src/devices/bus/thomson/extension.cpp
new file mode 100644
index 00000000000..12462b9898a
--- /dev/null
+++ b/src/devices/bus/thomson/extension.cpp
@@ -0,0 +1,40 @@
+// license:BSD-3-Clause
+// copyright-holders:Olivier Galibert
+
+// Generic Thomson TO*/MO* extension slot
+
+
+#include "emu.h"
+#include "extension.h"
+
+DEFINE_DEVICE_TYPE(THOMSON_EXTENSION, thomson_extension_device, "thomson_extension", "Thomson TO*/MO* extension port")
+
+thomson_extension_device::thomson_extension_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
+ device_t(mconfig, THOMSON_EXTENSION, tag, owner, clock),
+ device_single_card_slot_interface<thomson_extension_interface>(mconfig, *this)
+{
+}
+
+void thomson_extension_device::rom_map(address_space_installer &space, offs_t start, offs_t end)
+{
+ auto dev = get_card_device();
+ if(dev)
+ space.install_device(start, end, *dev, &thomson_extension_interface::rom_map);
+}
+
+void thomson_extension_device::io_map(address_space_installer &space, offs_t start, offs_t end)
+{
+ auto dev = get_card_device();
+ if(dev)
+ space.install_device(start, end, *dev, &thomson_extension_interface::io_map);
+}
+
+void thomson_extension_device::device_start()
+{
+}
+
+thomson_extension_interface::thomson_extension_interface(const machine_config &mconfig, device_t &device) :
+ device_interface(device, "extension")
+{
+}
+