summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/macpds/hyperdrive.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/macpds/hyperdrive.h')
-rw-r--r--src/devices/bus/macpds/hyperdrive.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/devices/bus/macpds/hyperdrive.h b/src/devices/bus/macpds/hyperdrive.h
new file mode 100644
index 00000000000..9d8000b1c88
--- /dev/null
+++ b/src/devices/bus/macpds/hyperdrive.h
@@ -0,0 +1,53 @@
+// license:BSD-3-Clause
+// copyright-holders:R. Belmont
+#ifndef MAME_BUS_PDS_HYPERDRIVE_H
+#define MAME_BUS_PDS_HYPERDRIVE_H
+
+#pragma once
+
+#include "macpds.h"
+#include "machine/wd2010.h"
+#include "imagedev/harddriv.h"
+
+//**************************************************************************
+// TYPE DEFINITIONS
+//**************************************************************************
+
+// ======================> macpds_hyperdrive_device
+
+class macpds_hyperdrive_device :
+ public device_t,
+ public device_macpds_card_interface
+{
+public:
+ // construction/destruction
+ macpds_hyperdrive_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+
+ static constexpr feature_type imperfect_features() { return feature::DISK; }
+
+protected:
+ macpds_hyperdrive_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
+
+ // device-level overrides
+ virtual void device_start() override;
+ virtual void device_reset() override;
+
+ // optional information overrides
+ virtual void device_add_mconfig(machine_config &config) override;
+ virtual const tiny_rom_entry *device_rom_region() const override;
+
+ required_device<wd2010_device> m_hdc;
+
+private:
+ DECLARE_READ16_MEMBER(hyperdrive_r);
+ DECLARE_WRITE16_MEMBER(hyperdrive_w);
+
+ DECLARE_READ8_MEMBER(hdd_r);
+ DECLARE_WRITE8_MEMBER(hdd_w);
+};
+
+
+// device type definition
+DECLARE_DEVICE_TYPE(PDS_HYPERDRIVE, macpds_hyperdrive_device)
+
+#endif // MAME_BUS_PDS_TPDFPD_H