Patchwork [v3,21/25] fm_def: definitions for MAME YM2608 core

login
register
mail settings
Submitter 武田 =?ISO-2022-JP?B?IBskQj1TTGkbKEI=?=
Date Oct. 28, 2009, 4:49 p.m.
Message ID <200910281649.AA00164@YOUR-BD18D6DD63.m1.interq.or.jp>
Download mbox | patch
Permalink /patch/37145/
State New
Headers show

Comments


Patch

diff --git a/qemu/hw/fm_def.h b/qemu/hw/fm_def.h
new file mode 100644
index 0000000..0382711
--- /dev/null
+++ b/qemu/hw/fm_def.h
@@ -0,0 +1,25 @@ 
+/* M.A.M.E. definitions used for YM2608 */
+
+#ifndef __FM_DEF_H__
+#define __FM_DEF_H__
+
+typedef unsigned char UINT8;   /* unsigned  8bit */
+typedef unsigned short UINT16; /* unsigned 16bit */
+typedef unsigned int UINT32;   /* unsigned 32bit */
+typedef signed char INT8;      /* signed  8bit   */
+typedef signed short INT16;    /* signed 16bit   */
+typedef signed int INT32;      /* signed 32bit   */
+
+typedef UINT8 (*mem_read_handler) (UINT32 offset);
+typedef void (*mem_write_handler) (UINT32 offset, UINT8 data);
+
+struct MachineSound {
+    int sound_type;
+    void *sound_interface;
+    const char *tag;
+};
+
+/* defined in ym2608intf.c */
+void YM2608UpdateRequest(int chip);
+
+#endif