summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/akiko.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/akiko.h')
-rw-r--r--src/devices/machine/akiko.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/devices/machine/akiko.h b/src/devices/machine/akiko.h
index 7e8436c50f2..eddf3525e61 100644
--- a/src/devices/machine/akiko.h
+++ b/src/devices/machine/akiko.h
@@ -18,6 +18,7 @@
#pragma once
#include "cdrom.h"
+#include "imagedev/cdromimg.h"
#include "sound/cdda.h"
@@ -40,8 +41,10 @@ public:
auto sda_r_callback() { return m_sda_r.bind(); }
auto sda_w_callback() { return m_sda_w.bind(); }
- DECLARE_READ32_MEMBER( read );
- DECLARE_WRITE32_MEMBER( write );
+ uint32_t read(offs_t offset);
+ void write(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
+
+ void set_mute(bool mute);
protected:
// device-level overrides
@@ -82,16 +85,14 @@ private:
uint8_t m_cdrom_cmd_end;
uint8_t m_cdrom_cmd_resp;
- cdda_device *m_cdda;
- cdrom_file *m_cdrom;
+ required_device<cdda_device> m_cdda;
+ optional_device<cdrom_image_device> m_cdrom;
std::unique_ptr<uint8_t[]> m_cdrom_toc;
emu_timer *m_dma_timer;
emu_timer *m_frame_timer;
- int m_cdrom_is_device;
-
void nvram_write(uint32_t data);
uint32_t nvram_read();