summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/nds.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/nds.h')
-rw-r--r--src/mame/includes/nds.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/mame/includes/nds.h b/src/mame/includes/nds.h
new file mode 100644
index 00000000000..8614a4eea3b
--- /dev/null
+++ b/src/mame/includes/nds.h
@@ -0,0 +1,29 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz
+#ifndef INCLUDES_NDS_H
+#define INCLUDES_NDS_H
+
+#include "cpu/arm7/arm7.h"
+#include "cpu/arm7/arm7core.h"
+
+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_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;
+
+protected:
+ required_region_ptr<uint32_t> m_firmware;
+};
+
+#endif // INCLUDES_NDS_H