diff options
Diffstat (limited to 'src/devices/bus/isa/fdc.h')
-rw-r--r-- | src/devices/bus/isa/fdc.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/devices/bus/isa/fdc.h b/src/devices/bus/isa/fdc.h index bdcebdce2bd..0d9227a04e4 100644 --- a/src/devices/bus/isa/fdc.h +++ b/src/devices/bus/isa/fdc.h @@ -5,10 +5,10 @@ ISA 8 bit Floppy Disk Controller **********************************************************************/ -#pragma once +#ifndef MAME_BUS_ISA_FDC_H +#define MAME_BUS_ISA_FDC_H -#ifndef ISA_FDC_H -#define ISA_FDC_H +#pragma once #include "isa.h" #include "machine/upd765.h" @@ -24,16 +24,14 @@ class isa8_fdc_device : public device_isa8_card_interface { public: - // construction/destruction - isa8_fdc_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); - - required_device<pc_fdc_interface> fdc; - DECLARE_WRITE_LINE_MEMBER( irq_w ); DECLARE_WRITE_LINE_MEMBER( drq_w ); DECLARE_FLOPPY_FORMATS( floppy_formats ); protected: + // construction/destruction + isa8_fdc_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; @@ -41,6 +39,8 @@ protected: virtual uint8_t dack_r(int line) override; virtual void dack_w(int line, uint8_t data) override; virtual void eop_w(int state) override; + + required_device<pc_fdc_interface> fdc; }; class isa8_fdc_xt_device : public isa8_fdc_device { @@ -74,10 +74,10 @@ public: }; // device type definition -extern const device_type ISA8_FDC_XT; -extern const device_type ISA8_FDC_AT; -extern const device_type ISA8_FDC_SMC; -extern const device_type ISA8_FDC_PS2; -extern const device_type ISA8_FDC_SUPERIO; +DECLARE_DEVICE_TYPE(ISA8_FDC_XT, isa8_fdc_xt_device) +DECLARE_DEVICE_TYPE(ISA8_FDC_AT, isa8_fdc_at_device) +DECLARE_DEVICE_TYPE(ISA8_FDC_SMC, isa8_fdc_smc_device) +DECLARE_DEVICE_TYPE(ISA8_FDC_PS2, isa8_fdc_ps2_device) +DECLARE_DEVICE_TYPE(ISA8_FDC_SUPERIO, isa8_fdc_superio_device) -#endif /* ISA_FDC_H */ +#endif // MAME_BUS_ISA_FDC_H |