summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/315-5641.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/315-5641.h')
-rw-r--r--src/devices/sound/315-5641.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/devices/sound/315-5641.h b/src/devices/sound/315-5641.h
index a7cec0e2b28..2f986a912f0 100644
--- a/src/devices/sound/315-5641.h
+++ b/src/devices/sound/315-5641.h
@@ -1,5 +1,5 @@
// license:BSD-3-Clause
-// copyright-holders:Angelo Salese
+// copyright-holders:Valley Bell
/* Sega 315-5641 / D77591 / 9442CA010 */
// this is the PICO sound chip, we are not sure if it's the same as a 7759 or not, it requires FIFO logic
@@ -13,25 +13,32 @@
#include "upd7759.h"
-class sega_315_5641_pcm_device : public upd7756_device
+class sega_315_5641_pcm_device : public upd7759_device
{
public:
sega_315_5641_pcm_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ auto fifo_cb() { return m_fifocallback.bind(); }
virtual void port_w(u8 data) override;
+ void fifo_reset_w(u8 data);
uint8_t get_fifo_space();
protected:
// device-level overrides
+ virtual void internal_start_w(int state) override;
+
virtual void device_start() override;
virtual void device_reset() override;
virtual void advance_state() override;
+ devcb_write_line m_fifocallback;
uint8_t m_fifo_data[0x40];
uint8_t m_fifo_read; // last read offset (will read in m_fifo_read+1)
uint8_t m_fifo_write; // write offset
+ bool m_fifo_reset;
+ bool m_fifo_empty;
};
DECLARE_DEVICE_TYPE(SEGA_315_5641_PCM, sega_315_5641_pcm_device)