summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/xt446.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/xt446.h')
-rw-r--r--src/devices/sound/xt446.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/devices/sound/xt446.h b/src/devices/sound/xt446.h
new file mode 100644
index 00000000000..9f363f1175e
--- /dev/null
+++ b/src/devices/sound/xt446.h
@@ -0,0 +1,43 @@
+// license:BSD-3-Clause
+// copyright-holders:R. Belmont, Olivier Galibert
+
+/*************************************************************************************
+
+ Yamaha XT446 : 32-voice polyphonic/multitimbral General MIDI/GS/XG tone modules
+
+ Embedded version of the MU100B
+
+**************************************************************************************/
+
+#ifndef MAME_SOUND_XT446_H
+#define MAME_SOUND_XT446_H
+
+#pragma once
+
+#include "cpu/h8/h8s2655.h"
+#include "sound/swp30.h"
+
+class xt446_device : public device_t, public device_mixer_interface
+{
+public:
+ xt446_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
+
+ void midi_w(int state) { m_maincpu->sci_rx_w<0>(state); }
+
+protected:
+ virtual void device_start() override ATTR_COLD;
+ virtual void device_reset() override ATTR_COLD;
+ virtual void device_add_mconfig(machine_config &config) override ATTR_COLD;
+ virtual const tiny_rom_entry *device_rom_region() const override ATTR_COLD;
+
+private:
+ required_device<h8s2655_device> m_maincpu;
+ required_device<swp30_device> m_swp30;
+
+ void xt446_map(address_map &map) ATTR_COLD;
+ void swp30_map(address_map &map) ATTR_COLD;
+};
+
+DECLARE_DEVICE_TYPE(XT446, xt446_device)
+
+#endif // MAME_SOUND_XT446_H