diff options
Diffstat (limited to 'src/devices/bus/mtx/cfx.h')
-rw-r--r-- | src/devices/bus/mtx/cfx.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/devices/bus/mtx/cfx.h b/src/devices/bus/mtx/cfx.h new file mode 100644 index 00000000000..1f19fd5648f --- /dev/null +++ b/src/devices/bus/mtx/cfx.h @@ -0,0 +1,51 @@ +// license:BSD-3-Clause +// copyright-holders:Nigel Barnes +/********************************************************************** + + Memotech Compact Flash System + +**********************************************************************/ + + +#ifndef MAME_BUS_MTX_CFX_H +#define MAME_BUS_MTX_CFX_H + +#include "exp.h" +#include "machine/i8255.h" +#include "bus/ata/ataintf.h" + + +//************************************************************************** +// TYPE DEFINITIONS +//************************************************************************** + +class mtx_cfx_device : public device_t, public device_mtx_exp_interface +{ +public: + // construction/destruction + mtx_cfx_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + +protected: + // optional information overrides + virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override; + + // device-level overrides + virtual void device_start() override; + virtual void device_reset() override; + +private: + required_memory_region m_flash; + required_device<i8255_device> m_pia; + required_device<ata_interface_device> m_ide; + + uint16_t m_ide_data; + + void portc_w(uint8_t data); +}; + + +// device type definition +DECLARE_DEVICE_TYPE(MTX_CFX, mtx_cfx_device) + +#endif // MAME_BUS_MTX_CFX_H |