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/isa/ide.h | |
parent | e92ac9e0fa8e99869894bea00589bbb526be30aa (diff) |
Move all devices into separate part of src tree (nw)
Diffstat (limited to 'src/devices/bus/isa/ide.h')
-rw-r--r-- | src/devices/bus/isa/ide.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/devices/bus/isa/ide.h b/src/devices/bus/isa/ide.h new file mode 100644 index 00000000000..290eee2a153 --- /dev/null +++ b/src/devices/bus/isa/ide.h @@ -0,0 +1,50 @@ +// license:BSD-3-Clause +// copyright-holders:Miodrag Milanovic +#pragma once + +#ifndef __ISA_IDE_H__ +#define __ISA_IDE_H__ + +#include "emu.h" +#include "isa.h" +#include "machine/idectrl.h" + +//************************************************************************** +// TYPE DEFINITIONS +//************************************************************************** + +// ======================> isa16_ide_device + +class isa16_ide_device : public device_t, + public device_isa16_card_interface +{ +public: + // construction/destruction + isa16_ide_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + // optional information overrides + virtual machine_config_constructor device_mconfig_additions() const; + virtual ioport_constructor device_input_ports() const; + + bool is_primary() { return m_is_primary; } + DECLARE_WRITE_LINE_MEMBER(ide_interrupt); + DECLARE_ADDRESS_MAP(map, 16); + DECLARE_ADDRESS_MAP(alt_map, 8); + READ8_MEMBER(ide16_alt_r); + WRITE8_MEMBER(ide16_alt_w); +protected: + // device-level overrides + virtual void device_start(); + virtual void device_reset(); + +private: + // internal state + bool m_is_primary; + required_device<ide_controller_device> m_ide; +}; + + +// device type definition +extern const device_type ISA16_IDE; + +#endif /* __ISA_IDE_H__ */ |