diff options
Diffstat (limited to 'src/devices/bus/ti99/peb/ti_fdc.h')
-rw-r--r-- | src/devices/bus/ti99/peb/ti_fdc.h | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/src/devices/bus/ti99/peb/ti_fdc.h b/src/devices/bus/ti99/peb/ti_fdc.h index 8088fdf9010..3b67295d367 100644 --- a/src/devices/bus/ti99/peb/ti_fdc.h +++ b/src/devices/bus/ti99/peb/ti_fdc.h @@ -22,7 +22,7 @@ #include "imagedev/floppy.h" #include "machine/74123.h" -namespace bus { namespace ti99 { namespace peb { +namespace bus::ti99::peb { class ti_fdc_device : public device_t, public device_ti99_peribox_card_interface { @@ -38,30 +38,29 @@ public: // bool dvena_r(); protected: - void device_start() override; - void device_reset() override; - void device_config_complete() override; + virtual void device_start() override; + virtual void device_reset() override; - const tiny_rom_entry *device_rom_region() const override; + virtual const tiny_rom_entry *device_rom_region() const override; virtual void device_add_mconfig(machine_config &config) override; private: - DECLARE_FLOPPY_FORMATS( floppy_formats ); + static void floppy_formats(format_registration &fr); - DECLARE_WRITE_LINE_MEMBER(fdc_irq_w); - DECLARE_WRITE_LINE_MEMBER(fdc_drq_w); - DECLARE_WRITE_LINE_MEMBER(fdc_hld_w); + void fdc_irq_w(int state); + void fdc_drq_w(int state); + void fdc_hld_w(int state); - DECLARE_WRITE_LINE_MEMBER(dskpgena_w); - DECLARE_WRITE_LINE_MEMBER(kaclk_w); - DECLARE_WRITE_LINE_MEMBER(waiten_w); - DECLARE_WRITE_LINE_MEMBER(hlt_w); - DECLARE_WRITE_LINE_MEMBER(sidsel_w); + void dskpgena_w(int state); + void kaclk_w(int state); + void waiten_w(int state); + void hlt_w(int state); + void sidsel_w(int state); - DECLARE_WRITE_LINE_MEMBER(dvena_w); - DECLARE_WRITE_LINE_MEMBER(dsel1_w); - DECLARE_WRITE_LINE_MEMBER(dsel2_w); - DECLARE_WRITE_LINE_MEMBER(dsel3_w); + void dvena_w(int state); + void dsel1_w(int state); + void dsel2_w(int state); + void dsel3_w(int state); void select_drive(int n, int state); @@ -105,13 +104,13 @@ private: uint8_t* m_dsrrom; // Link to the attached floppy drives - floppy_image_device* m_floppy[3]; + required_device_array<floppy_connector, 3> m_floppy; // Currently selected floppy drive int m_sel_floppy; }; -} } } // end namespace bus::ti99::peb +} // end namespace bus::ti99::peb DECLARE_DEVICE_TYPE_NS(TI99_FDC, bus::ti99::peb, ti_fdc_device) |