summaryrefslogtreecommitdiffstatshomepage
path: root/trunk/src/emu/sound/okim6376.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/emu/sound/okim6376.h')
-rw-r--r--trunk/src/emu/sound/okim6376.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/trunk/src/emu/sound/okim6376.h b/trunk/src/emu/sound/okim6376.h
new file mode 100644
index 00000000000..222ee7e47a8
--- /dev/null
+++ b/trunk/src/emu/sound/okim6376.h
@@ -0,0 +1,23 @@
+#pragma once
+
+#ifndef __OKIM6376_H__
+#define __OKIM6376_H__
+
+#include "devlegcy.h"
+
+/* an interface for the OKIM6376 and similar chips (CPU interface only) */
+
+READ8_DEVICE_HANDLER( okim6376_r );
+WRITE8_DEVICE_HANDLER( okim6376_w );
+
+DECLARE_LEGACY_SOUND_DEVICE(OKIM6376, okim6376);
+
+WRITE_LINE_DEVICE_HANDLER( okim6376_st_w );
+WRITE_LINE_DEVICE_HANDLER( okim6376_ch2_w );
+
+READ_LINE_DEVICE_HANDLER( okim6376_busy_r );
+READ_LINE_DEVICE_HANDLER( okim6376_nar_r );
+
+void okim6376_set_frequency(device_t *device, int frequency);
+
+#endif /* __OKIM6376_H__ */