summaryrefslogtreecommitdiffstatshomepage
path: root/trunk/src/emu/sound/3812intf.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/emu/sound/3812intf.h')
-rw-r--r--trunk/src/emu/sound/3812intf.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/trunk/src/emu/sound/3812intf.h b/trunk/src/emu/sound/3812intf.h
new file mode 100644
index 00000000000..0ef383e3416
--- /dev/null
+++ b/trunk/src/emu/sound/3812intf.h
@@ -0,0 +1,24 @@
+#pragma once
+
+#ifndef __3812INTF_H__
+#define __3812INTF_H__
+
+#include "devlegcy.h"
+
+typedef struct _ym3812_interface ym3812_interface;
+struct _ym3812_interface
+{
+ void (*handler)(device_t *device, int linestate);
+};
+
+READ8_DEVICE_HANDLER( ym3812_r );
+WRITE8_DEVICE_HANDLER( ym3812_w );
+
+READ8_DEVICE_HANDLER( ym3812_status_port_r );
+READ8_DEVICE_HANDLER( ym3812_read_port_r );
+WRITE8_DEVICE_HANDLER( ym3812_control_port_w );
+WRITE8_DEVICE_HANDLER( ym3812_write_port_w );
+
+DECLARE_LEGACY_SOUND_DEVICE(YM3812, ym3812);
+
+#endif /* __3812INTF_H__ */