diff options
Diffstat (limited to 'src/devices/bus/bbc/fdc/cumana.h')
-rw-r--r-- | src/devices/bus/bbc/fdc/cumana.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/devices/bus/bbc/fdc/cumana.h b/src/devices/bus/bbc/fdc/cumana.h index 5bae494f090..465644ba683 100644 --- a/src/devices/bus/bbc/fdc/cumana.h +++ b/src/devices/bus/bbc/fdc/cumana.h @@ -6,9 +6,10 @@ **********************************************************************/ +#ifndef MAME_BUS_BBC_FDC_CUMANA_H +#define MAME_BUS_BBC_FDC_CUMANA_H -#ifndef __BBC_CUMANA__ -#define __BBC_CUMANA__ +#pragma once #include "fdc.h" #include "machine/wd_fdc.h" @@ -25,9 +26,6 @@ class bbc_cumanafdc_device : { public: - // construction/destruction - bbc_cumanafdc_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source); - DECLARE_FLOPPY_FORMATS(floppy_formats); DECLARE_WRITE_LINE_MEMBER(fdc_intrq_w); @@ -37,6 +35,9 @@ public: DECLARE_WRITE8_MEMBER(ctrl_w); protected: + // construction/destruction + bbc_cumanafdc_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; @@ -45,7 +46,7 @@ protected: private: required_memory_region m_dfs_rom; - required_device<mb8877_t> m_fdc; + required_device<mb8877_device> m_fdc; required_device<floppy_connector> m_floppy0; optional_device<floppy_connector> m_floppy1; @@ -73,8 +74,8 @@ public: // device type definition -extern const device_type BBC_CUMANA1; -extern const device_type BBC_CUMANA2; +DECLARE_DEVICE_TYPE(BBC_CUMANA1, bbc_cumana1_device) +DECLARE_DEVICE_TYPE(BBC_CUMANA2, bbc_cumana2_device) -#endif /* __BBC_CUMANA__ */ +#endif // MAME_BUS_BBC_FDC_CUMANA_H |