diff options
author | 2015-09-13 08:41:44 +0200 | |
---|---|---|
committer | 2015-09-13 08:41:44 +0200 | |
commit | f88cefad27a1737c76e09d99c9fb43e173506081 (patch) | |
tree | 2d8167d03579c46e226471747eb4407bd00ed6fa /src/devices/bus/ql/qubide.h | |
parent | e92ac9e0fa8e99869894bea00589bbb526be30aa (diff) |
Move all devices into separate part of src tree (nw)
Diffstat (limited to 'src/devices/bus/ql/qubide.h')
-rw-r--r-- | src/devices/bus/ql/qubide.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/src/devices/bus/ql/qubide.h b/src/devices/bus/ql/qubide.h new file mode 100644 index 00000000000..8c93c68cae6 --- /dev/null +++ b/src/devices/bus/ql/qubide.h @@ -0,0 +1,63 @@ +// license:BSD-3-Clause +// copyright-holders:Curt Coder +/********************************************************************** + + Qubbesoft QubIDE emulation + +**********************************************************************/ + +#pragma once + +#ifndef __QUBIDE__ +#define __QUBIDE__ + +#include "exp.h" +#include "machine/ataintf.h" + + + +//************************************************************************** +// TYPE DEFINITIONS +//************************************************************************** + +// ======================> qubide_t + +class qubide_t : public device_t, + public device_ql_expansion_card_interface +{ +public: + // construction/destruction + qubide_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + qubide_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source, int ram_size); + + // optional information overrides + virtual const rom_entry *device_rom_region() const; + virtual machine_config_constructor device_mconfig_additions() const; + virtual ioport_constructor device_input_ports() const; + +protected: + // device-level overrides + virtual void device_start(); + virtual void device_reset(); + + // device_ql_expansion_card_interface overrides + virtual UINT8 read(address_space &space, offs_t offset, UINT8 data); + virtual void write(address_space &space, offs_t offset, UINT8 data); + +private: + required_device<ata_interface_device> m_ata; + required_memory_region m_rom; + required_ioport m_j1_j5; + + offs_t m_base; + UINT16 m_ata_data; +}; + + + +// device type definition +extern const device_type QUBIDE; + + + +#endif |