diff options
Diffstat (limited to 'src/devices/bus/pofo/hpc104.h')
-rw-r--r-- | src/devices/bus/pofo/hpc104.h | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/devices/bus/pofo/hpc104.h b/src/devices/bus/pofo/hpc104.h index 6afae6dd5ec..d8802d869f1 100644 --- a/src/devices/bus/pofo/hpc104.h +++ b/src/devices/bus/pofo/hpc104.h @@ -13,7 +13,6 @@ #include "exp.h" #include "bus/pofo/ccm.h" -#include "machine/nvram.h" @@ -34,26 +33,24 @@ public: protected: pofo_hpc104_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; - - // optional information overrides + // device_t implementation virtual void device_add_mconfig(machine_config &config) override; virtual ioport_constructor device_input_ports() const override; + virtual void device_start() override; + virtual void device_reset() override; - // device_nvram_interface overrides - virtual void nvram_default() override { } - virtual void nvram_read(emu_file &file) override { if (m_nvram != nullptr) { file.read(m_nvram, 0x40000); } } - virtual void nvram_write(emu_file &file) override { if (m_nvram != nullptr) { file.write(m_nvram, 0x40000); } } + // device_nvram_interface implementation + virtual void nvram_default() override; + virtual bool nvram_read(util::read_stream &file) override; + virtual bool nvram_write(util::write_stream &file) override; - // device_portfolio_expansion_slot_interface overrides + // device_portfolio_expansion_slot_interface implementation virtual bool nmd1() override { return m_ccm->cdet_r(); } virtual uint8_t nrdi_r(offs_t offset, uint8_t data, bool iom, bool bcom, bool ncc1) override; virtual void nwri_w(offs_t offset, uint8_t data, bool iom, bool bcom, bool ncc1) override; - virtual WRITE_LINE_MEMBER( iint_w ) override { m_exp->iint_w(state); } + virtual void iint_w(int state) override { m_exp->iint_w(state); } private: required_device<portfolio_memory_card_slot_device> m_ccm; |