diff options
Diffstat (limited to 'src/devices/bus/pofo/exp.h')
-rw-r--r-- | src/devices/bus/pofo/exp.h | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/src/devices/bus/pofo/exp.h b/src/devices/bus/pofo/exp.h index 3b1e936dca5..81777cf9852 100644 --- a/src/devices/bus/pofo/exp.h +++ b/src/devices/bus/pofo/exp.h @@ -65,16 +65,16 @@ MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, false) #define MCFG_PORTFOLIO_EXPANSION_SLOT_IINT_CALLBACK(_write) \ - devcb = &portfolio_expansion_slot_t::set_iint_wr_callback(*device, DEVCB_##_write); + devcb = &portfolio_expansion_slot_t::set_iint_wr_callback(*device, DEVCB_##_write); #define MCFG_PORTFOLIO_EXPANSION_SLOT_EINT_CALLBACK(_write) \ - devcb = &portfolio_expansion_slot_t::set_eint_wr_callback(*device, DEVCB_##_write); + devcb = &portfolio_expansion_slot_t::set_eint_wr_callback(*device, DEVCB_##_write); #define MCFG_PORTFOLIO_EXPANSION_SLOT_NMIO_CALLBACK(_write) \ - devcb = &portfolio_expansion_slot_t::set_nmio_wr_callback(*device, DEVCB_##_write); + devcb = &portfolio_expansion_slot_t::set_nmio_wr_callback(*device, DEVCB_##_write); #define MCFG_PORTFOLIO_EXPANSION_SLOT_WAKE_CALLBACK(_write) \ - devcb = &portfolio_expansion_slot_t::set_wake_wr_callback(*device, DEVCB_##_write); + devcb = &portfolio_expansion_slot_t::set_wake_wr_callback(*device, DEVCB_##_write); @@ -89,71 +89,71 @@ class portfolio_expansion_slot_t; class device_portfolio_expansion_slot_interface : public device_slot_card_interface { public: - // construction/destruction - device_portfolio_expansion_slot_interface(const machine_config &mconfig, device_t &device); - virtual ~device_portfolio_expansion_slot_interface() { } + // construction/destruction + device_portfolio_expansion_slot_interface(const machine_config &mconfig, device_t &device); + virtual ~device_portfolio_expansion_slot_interface() { } - virtual bool nmd1() { return 1; } - virtual bool pdet() { return 0; } - virtual bool cdet() { return 1; } + virtual bool nmd1() { return 1; } + virtual bool pdet() { return 0; } + virtual bool cdet() { return 1; } - virtual UINT8 iack_r() { return 0xff; } - virtual UINT8 eack_r() { return 0xff; } + virtual UINT8 iack_r() { return 0xff; } + virtual UINT8 eack_r() { return 0xff; } - virtual UINT8 nrdi_r(address_space &space, offs_t offset, UINT8 data, bool iom, bool bcom, bool ncc1) { return data; }; - virtual void nwri_w(address_space &space, offs_t offset, UINT8 data, bool iom, bool bcom, bool ncc1) { }; + virtual UINT8 nrdi_r(address_space &space, offs_t offset, UINT8 data, bool iom, bool bcom, bool ncc1) { return data; }; + virtual void nwri_w(address_space &space, offs_t offset, UINT8 data, bool iom, bool bcom, bool ncc1) { }; - DECLARE_WRITE_LINE_MEMBER( iint_w ); - DECLARE_WRITE_LINE_MEMBER( eint_w ); - DECLARE_WRITE_LINE_MEMBER( nmio_w ); - DECLARE_WRITE_LINE_MEMBER( wake_w ); + DECLARE_WRITE_LINE_MEMBER( iint_w ); + DECLARE_WRITE_LINE_MEMBER( eint_w ); + DECLARE_WRITE_LINE_MEMBER( nmio_w ); + DECLARE_WRITE_LINE_MEMBER( wake_w ); protected: - portfolio_expansion_slot_t *m_slot; + portfolio_expansion_slot_t *m_slot; }; // ======================> portfolio_expansion_slot_t class portfolio_expansion_slot_t : public device_t, - public device_slot_interface + public device_slot_interface { public: // construction/destruction portfolio_expansion_slot_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); virtual ~portfolio_expansion_slot_t() { } - template<class _Object> static devcb_base &set_iint_wr_callback(device_t &device, _Object object) { return downcast<portfolio_expansion_slot_t &>(device).m_write_iint.set_callback(object); } - template<class _Object> static devcb_base &set_eint_wr_callback(device_t &device, _Object object) { return downcast<portfolio_expansion_slot_t &>(device).m_write_eint.set_callback(object); } - template<class _Object> static devcb_base &set_nmio_wr_callback(device_t &device, _Object object) { return downcast<portfolio_expansion_slot_t &>(device).m_write_nmio.set_callback(object); } - template<class _Object> static devcb_base &set_wake_wr_callback(device_t &device, _Object object) { return downcast<portfolio_expansion_slot_t &>(device).m_write_wake.set_callback(object); } + template<class _Object> static devcb_base &set_iint_wr_callback(device_t &device, _Object object) { return downcast<portfolio_expansion_slot_t &>(device).m_write_iint.set_callback(object); } + template<class _Object> static devcb_base &set_eint_wr_callback(device_t &device, _Object object) { return downcast<portfolio_expansion_slot_t &>(device).m_write_eint.set_callback(object); } + template<class _Object> static devcb_base &set_nmio_wr_callback(device_t &device, _Object object) { return downcast<portfolio_expansion_slot_t &>(device).m_write_nmio.set_callback(object); } + template<class _Object> static devcb_base &set_wake_wr_callback(device_t &device, _Object object) { return downcast<portfolio_expansion_slot_t &>(device).m_write_wake.set_callback(object); } // computer interface - bool nmd1_r() { return (m_card != nullptr) ? m_card->nmd1() : 1; } - bool pdet_r() { return (m_card != nullptr) ? m_card->pdet() : 0; } - bool cdet_r() { return (m_card != nullptr) ? m_card->cdet() : 1; } + bool nmd1_r() { return (m_card != nullptr) ? m_card->nmd1() : 1; } + bool pdet_r() { return (m_card != nullptr) ? m_card->pdet() : 0; } + bool cdet_r() { return (m_card != nullptr) ? m_card->cdet() : 1; } - UINT8 iack_r() { return (m_card != nullptr) ? m_card->iack_r() : 0xff; }; - UINT8 eack_r() { return (m_card != nullptr) ? m_card->eack_r() : 0xff; }; + UINT8 iack_r() { return (m_card != nullptr) ? m_card->iack_r() : 0xff; }; + UINT8 eack_r() { return (m_card != nullptr) ? m_card->eack_r() : 0xff; }; UINT8 nrdi_r(address_space &space, offs_t offset, UINT8 data, bool iom, bool bcom, bool ncc1) { return (m_card != nullptr) ? m_card->nrdi_r(space, offset, data, iom, bcom, ncc1) : data; } void nwri_w(address_space &space, offs_t offset, UINT8 data, bool iom, bool bcom, bool ncc1) { if (m_card != nullptr) m_card->nwri_w(space, offset, data, iom, bcom, ncc1); } - // peripheral interface - WRITE_LINE_MEMBER( iint_w ) { m_write_iint(state); } - WRITE_LINE_MEMBER( eint_w ) { m_write_eint(state); } - WRITE_LINE_MEMBER( nmio_w ) { m_write_nmio(state); } - WRITE_LINE_MEMBER( wake_w ) { m_write_wake(state); } + // peripheral interface + WRITE_LINE_MEMBER( iint_w ) { m_write_iint(state); } + WRITE_LINE_MEMBER( eint_w ) { m_write_eint(state); } + WRITE_LINE_MEMBER( nmio_w ) { m_write_nmio(state); } + WRITE_LINE_MEMBER( wake_w ) { m_write_wake(state); } protected: // device-level overrides virtual void device_start() override; virtual void device_reset() override; - devcb_write_line m_write_iint; - devcb_write_line m_write_eint; - devcb_write_line m_write_nmio; - devcb_write_line m_write_wake; + devcb_write_line m_write_iint; + devcb_write_line m_write_eint; + devcb_write_line m_write_nmio; + devcb_write_line m_write_wake; device_portfolio_expansion_slot_interface *m_card; }; |