summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/isbx/isbx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/isbx/isbx.c')
-rw-r--r--src/devices/bus/isbx/isbx.c78
1 files changed, 78 insertions, 0 deletions
diff --git a/src/devices/bus/isbx/isbx.c b/src/devices/bus/isbx/isbx.c
new file mode 100644
index 00000000000..09b7d84b6fd
--- /dev/null
+++ b/src/devices/bus/isbx/isbx.c
@@ -0,0 +1,78 @@
+// license:BSD-3-Clause
+// copyright-holders:Curt Coder
+/**********************************************************************
+
+ Intel Multibus I/O Expansion Bus IEEE-P959 (iSBX) emulation
+
+**********************************************************************/
+
+#include "isbx.h"
+
+
+
+//**************************************************************************
+// DEVICE DEFINITIONS
+//**************************************************************************
+
+const device_type ISBX_SLOT = &device_creator<isbx_slot_device>;
+
+
+
+//**************************************************************************
+// LIVE DEVICE
+//**************************************************************************
+
+//-------------------------------------------------
+// device_isbx_card_interface - constructor
+//-------------------------------------------------
+
+device_isbx_card_interface::device_isbx_card_interface(const machine_config &mconfig, device_t &device)
+ : device_slot_card_interface(mconfig, device)
+{
+ m_slot = dynamic_cast<isbx_slot_device *>(device.owner());
+}
+
+
+//-------------------------------------------------
+// isbx_slot_device - constructor
+//-------------------------------------------------
+
+isbx_slot_device::isbx_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
+ device_t(mconfig, ISBX_SLOT, "iSBX bus slot", tag, owner, clock, "isbx_slot", __FILE__),
+ device_slot_interface(mconfig, *this),
+ m_write_mintr0(*this),
+ m_write_mintr1(*this),
+ m_write_mdrqt(*this),
+ m_write_mwait(*this)
+{
+}
+
+
+//-------------------------------------------------
+// device_start - device-specific startup
+//-------------------------------------------------
+
+void isbx_slot_device::device_start()
+{
+ m_card = dynamic_cast<device_isbx_card_interface *>(get_card_device());
+
+ // resolve callbacks
+ m_write_mintr0.resolve_safe();
+ m_write_mintr1.resolve_safe();
+ m_write_mdrqt.resolve_safe();
+ m_write_mwait.resolve_safe();
+}
+
+
+//-------------------------------------------------
+// SLOT_INTERFACE( isbx_cards )
+//-------------------------------------------------
+
+// slot devices
+#include "compis_fdc.h"
+#include "isbc_218a.h"
+
+SLOT_INTERFACE_START( isbx_cards )
+ SLOT_INTERFACE("fdc", COMPIS_FDC)
+ SLOT_INTERFACE("fdc_218a", ISBC_218A)
+SLOT_INTERFACE_END