summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/imagedev
diff options
context:
space:
mode:
author Michael Zapf <Michael.Zapf@mizapf.de>2018-08-21 20:04:41 +0200
committer Michael Zapf <Michael.Zapf@mizapf.de>2018-08-21 20:04:41 +0200
commit6bf57e9b143ee92f6a87cbf8ae8813add840feb6 (patch)
tree5afe470c84e07b4a94ecc39a0f7bfa3e343a3893 /src/devices/imagedev
parent71da8e2ae2521d4c895520c85e45e3ccfdb56e30 (diff)
ti9x: Various MCFG removals. (nw)
Diffstat (limited to 'src/devices/imagedev')
-rw-r--r--src/devices/imagedev/mfmhd.h28
1 files changed, 10 insertions, 18 deletions
diff --git a/src/devices/imagedev/mfmhd.h b/src/devices/imagedev/mfmhd.h
index 69b868a30ac..a46dab519b7 100644
--- a/src/devices/imagedev/mfmhd.h
+++ b/src/devices/imagedev/mfmhd.h
@@ -230,6 +230,16 @@ public:
mfm_harddisk_device *get_device();
+ /*
+ Configuration parameters:
+ encoding = Encoding (see comments in mfm_hd.c)
+ spinupms = Spinup time in milliseconds. Even though this is a property
+ of the physical device, we need a way to configure it per system;
+ some systems expect the hard disk to be turned on before the
+ main system, and expect it to be ready when they try to access it
+ cache = number of cached MFM tracks
+ format = MFMHD_GEN_FORMAT (see formats/mfm_hd.h; currently the only value)
+ */
void configure(mfmhd_enc_t encoding, int spinupms, int cache, mfmhd_format_type format);
protected:
@@ -245,22 +255,4 @@ private:
DECLARE_DEVICE_TYPE(MFM_HD_CONNECTOR, mfm_harddisk_connector)
-/*
- Add a harddisk connector.
- Parameters:
- _tag = Tag of the connector
- _slot_intf = Selection of hard drives
- _def_slot = Default hard drive
- _enc = Encoding (see comments in mfm_hd.c)
- _spinupms = Spinup time in milliseconds (some configurations assume that the
- user has turned on the hard disk before turning on the system. We cannot
- emulate this, so we allow for shorter times)
- _cache = number of cached MFM tracks
-*/
-#define MCFG_MFM_HARDDISK_CONN_ADD(_tag, _slot_intf, _def_slot, _enc, _spinupms, _cache, _format) \
- MCFG_DEVICE_ADD(_tag, MFM_HD_CONNECTOR, 0) \
- MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, false) \
- static_cast<mfm_harddisk_connector *>(device)->configure(_enc, _spinupms, _cache, _format);
-
-
#endif // MAME_DEVICES_IMAGEDEV_MFMHD_H