diff options
Diffstat (limited to 'src/mame/includes/nds.h')
-rw-r--r-- | src/mame/includes/nds.h | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/src/mame/includes/nds.h b/src/mame/includes/nds.h index 8614a4eea3b..6f2a2f1d44b 100644 --- a/src/mame/includes/nds.h +++ b/src/mame/includes/nds.h @@ -11,19 +11,38 @@ class nds_state : public driver_device public: nds_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag), - m_arm9(*this, "arm9"), m_arm7(*this, "arm7"), + m_arm9(*this, "arm9"), m_firmware(*this, "firmware") { } - required_device<arm946es_cpu_device> m_arm9; - required_device<arm7_cpu_device> m_arm7; - void machine_start() override; void machine_reset() override; + // ARM7 + DECLARE_READ32_MEMBER(arm7_io_r); + DECLARE_WRITE32_MEMBER(arm7_io_w); + + // ARM9 + DECLARE_READ32_MEMBER(arm9_io_r); + DECLARE_WRITE32_MEMBER(arm9_io_w); + protected: + required_device<arm7_cpu_device> m_arm7; + required_device<arm946es_cpu_device> m_arm9; + required_region_ptr<uint32_t> m_firmware; + + enum { + POSTFLG_OFFSET = 0x300/4, + POSTFLG_PBF_SHIFT = 0, + POSTFLG_RAM_SHIFT = 1, + POSTFLG_PBF_MASK = (1 << POSTFLG_PBF_SHIFT), + POSTFLG_RAM_MASK = (1 << POSTFLG_RAM_SHIFT), + }; + + uint32_t m_arm7_postflg; + uint32_t m_arm9_postflg; }; #endif // INCLUDES_NDS_H |