diff options
Diffstat (limited to 'src/mame/includes/softbox.h')
-rw-r--r-- | src/mame/includes/softbox.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/src/mame/includes/softbox.h b/src/mame/includes/softbox.h new file mode 100644 index 00000000000..2ad510fa682 --- /dev/null +++ b/src/mame/includes/softbox.h @@ -0,0 +1,68 @@ +// license:BSD-3-Clause +// copyright-holders:Curt Coder, Mike Naberezny +#pragma once + +#ifndef __SOFTBOX__ +#define __SOFTBOX__ + +#include "emu.h" +#include "bus/ieee488/ieee488.h" +#include "bus/imi7000/imi7000.h" +#include "cpu/z80/z80.h" +#include "imagedev/harddriv.h" +#include "machine/corvushd.h" +#include "machine/com8116.h" +#include "machine/i8251.h" +#include "machine/i8255.h" + +#define Z80_TAG "z80" +#define I8251_TAG "ic15" +#define I8255_0_TAG "ic17" +#define I8255_1_TAG "ic16" +#define COM8116_TAG "ic14" +#define RS232_TAG "rs232" +#define CORVUS_HDC_TAG "corvus" + +class softbox_state : public driver_device +{ +public: + softbox_state(const machine_config &mconfig, device_type type, const char *tag) + : driver_device(mconfig, type, tag), + m_maincpu(*this, Z80_TAG), + m_dbrg(*this, COM8116_TAG), + m_ieee(*this, IEEE488_TAG), + m_hdc(*this, CORVUS_HDC_TAG) + { } + + required_device<cpu_device> m_maincpu; + required_device<com8116_device> m_dbrg; + required_device<ieee488_device> m_ieee; + required_device<corvus_hdc_t> m_hdc; + + virtual void machine_start(); + virtual void device_reset_after_children(); + + // device_ieee488_interface overrides + virtual void ieee488_ifc(int state); + + DECLARE_WRITE8_MEMBER( dbrg_w ); + + DECLARE_READ8_MEMBER( ppi0_pa_r ); + DECLARE_WRITE8_MEMBER( ppi0_pb_w ); + + DECLARE_READ8_MEMBER( ppi1_pa_r ); + DECLARE_WRITE8_MEMBER( ppi1_pb_w ); + DECLARE_READ8_MEMBER( ppi1_pc_r ); + DECLARE_WRITE8_MEMBER( ppi1_pc_w ); + + enum + { + LED_A, + LED_B, + LED_READY + }; + + int m_ifc; // Tracks previous state of IEEE-488 IFC line +}; + +#endif |