diff options
author | 2018-02-15 19:05:05 +0100 | |
---|---|---|
committer | 2018-02-15 19:05:05 +0100 | |
commit | 504dbe7b1a843c84d5b2fe21d59821c6e9b47d6f (patch) | |
tree | 8003670f0bb7c6d73b332b2335658309738d9757 /src/devices/machine/mpu401.h | |
parent | d846c04d02292faa48422f6a77b58ae209547711 (diff) |
devices/machine: some private-ization (nw)
+ removed some duplication
Diffstat (limited to 'src/devices/machine/mpu401.h')
-rw-r--r-- | src/devices/machine/mpu401.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/devices/machine/mpu401.h b/src/devices/machine/mpu401.h index b570c2928bc..1dd5d55243c 100644 --- a/src/devices/machine/mpu401.h +++ b/src/devices/machine/mpu401.h @@ -29,21 +29,10 @@ public: return write_irq.set_callback(std::forward<Write>(wr)); } - DECLARE_READ8_MEMBER(regs_mode2_r); - DECLARE_WRITE8_MEMBER(regs_mode2_w); - DECLARE_READ8_MEMBER(asic_r); - DECLARE_WRITE8_MEMBER(asic_w); - DECLARE_READ8_MEMBER(port1_r); - DECLARE_WRITE8_MEMBER(port1_w); - DECLARE_READ8_MEMBER(port2_r); - DECLARE_WRITE8_MEMBER(port2_w); - // public API - call for reads/writes at I/O 330/331 on PC, C0n0/C0n1 on Apple II, etc. DECLARE_READ8_MEMBER(mpu_r); DECLARE_WRITE8_MEMBER(mpu_w); - void mpu401_io_map(address_map &map); - void mpu401_map(address_map &map); protected: // device-level overrides virtual void device_start() override; @@ -55,6 +44,18 @@ protected: private: DECLARE_WRITE_LINE_MEMBER(midi_rx_w); + DECLARE_READ8_MEMBER(regs_mode2_r); + DECLARE_WRITE8_MEMBER(regs_mode2_w); + DECLARE_READ8_MEMBER(asic_r); + DECLARE_WRITE8_MEMBER(asic_w); + DECLARE_READ8_MEMBER(port1_r); + DECLARE_WRITE8_MEMBER(port1_w); + DECLARE_READ8_MEMBER(port2_r); + DECLARE_WRITE8_MEMBER(port2_w); + + void mpu401_io_map(address_map &map); + void mpu401_map(address_map &map); + required_device<m6801_cpu_device> m_ourcpu; devcb_write_line write_irq; |