summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/imagedev/floppy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/imagedev/floppy.h')
-rw-r--r--src/devices/imagedev/floppy.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/devices/imagedev/floppy.h b/src/devices/imagedev/floppy.h
index 3d551ee72ab..8f04c73ac31 100644
--- a/src/devices/imagedev/floppy.h
+++ b/src/devices/imagedev/floppy.h
@@ -164,7 +164,7 @@ protected:
virtual void add_format(const floppy_image_format_t &type, u32 image_size, const char *name, const char *description) override;
};
- floppy_image_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
+ floppy_image_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, const XTAL &clock);
// device-level overrides
virtual void device_start() override;
@@ -309,7 +309,7 @@ protected:
#define DECLARE_FLOPPY_IMAGE_DEVICE(Type, Name, Interface) \
class Name : public floppy_image_device { \
public: \
- Name(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); \
+ Name(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock); \
virtual ~Name(); \
virtual const char *image_interface() const noexcept override { return Interface; } \
protected: \
@@ -369,7 +369,7 @@ protected:
bool m_strb;
bool m_mfm, m_has_mfm;
- mac_floppy_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
+ mac_floppy_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, const XTAL &clock);
virtual void device_start() override;
virtual void device_reset() override;
@@ -381,7 +381,7 @@ protected:
// 400K GCR
class oa_d34v_device : public mac_floppy_device {
public:
- oa_d34v_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ oa_d34v_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock);
virtual ~oa_d34v_device() = default;
protected:
virtual void setup_characteristics() override;
@@ -393,7 +393,7 @@ protected:
// 400/800K GCR (e.g. dual-sided)
class mfd51w_device : public mac_floppy_device {
public:
- mfd51w_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ mfd51w_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock);
virtual ~mfd51w_device() = default;
protected:
virtual void setup_characteristics() override;
@@ -404,7 +404,7 @@ protected:
// 400/800K GCR + 1.44 MFM (Superdrive)
class mfd75w_device : public mac_floppy_device {
public:
- mfd75w_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ mfd75w_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock);
virtual ~mfd75w_device() = default;
protected:
@@ -425,7 +425,7 @@ DECLARE_DEVICE_TYPE(MFD75W, mfd75w_device)
class floppy_sound_device : public samples_device
{
public:
- floppy_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ floppy_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock);
void motor(bool on, bool withdisk);
void step(int track);
bool samples_loaded() { return m_loaded; }
@@ -463,7 +463,7 @@ class floppy_connector: public device_t,
public:
template <typename T>
floppy_connector(const machine_config &mconfig, const char *tag, device_t *owner, T &&opts, const char *dflt, std::function<void (format_registration &fr)> formats, bool fixed = false)
- : floppy_connector(mconfig, tag, owner, 0)
+ : floppy_connector(mconfig, tag, owner)
{
option_reset();
opts(*this);
@@ -472,7 +472,7 @@ public:
set_formats(formats);
}
floppy_connector(const machine_config &mconfig, const char *tag, device_t *owner, const char *option, const device_type &devtype, bool is_default, std::function<void (format_registration &fr)> formats)
- : floppy_connector(mconfig, tag, owner, 0)
+ : floppy_connector(mconfig, tag, owner)
{
option_reset();
option_add(option, devtype);
@@ -481,7 +481,7 @@ public:
set_fixed(false);
set_formats(formats);
}
- floppy_connector(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
+ floppy_connector(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock = XTAL());
virtual ~floppy_connector();
void set_formats(std::function<void (format_registration &fr)> formats);