From patchwork Wed Oct 28 16:49:53 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5q2m55SwID0/SVNPLTIwMjItSlA/Qj9JQnNrUWoxVFRHa2JLRUk9Pz0=?= X-Patchwork-Id: 37145 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id BFD2C1007E0 for ; Thu, 29 Oct 2009 08:54:36 +1100 (EST) Received: from localhost ([127.0.0.1]:37721 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3Crc-0006hg-UY for incoming@patchwork.ozlabs.org; Wed, 28 Oct 2009 14:03:16 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3Bwk-0008Bn-CI for qemu-devel@nongnu.org; Wed, 28 Oct 2009 13:04:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3Bwc-00084S-Hp for qemu-devel@nongnu.org; Wed, 28 Oct 2009 13:04:28 -0400 Received: from [199.232.76.173] (port=52300 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3Bwc-000849-AS for qemu-devel@nongnu.org; Wed, 28 Oct 2009 13:04:22 -0400 Received: from smtp-vip.mem.interq.net ([210.157.1.50]:36496 helo=smtp01.mem.internal-gmo) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3Bwa-0004kO-Qy for qemu-devel@nongnu.org; Wed, 28 Oct 2009 13:04:21 -0400 Received: (from root@localhost) by smtp01.mem.internal-gmo (8.13.8/8.12.6) id n9SH4JsQ019234 for qemu-devel@nongnu.org; Thu, 29 Oct 2009 02:04:19 +0900 (JST) Received: (from root@localhost) by smtp01.mem.internal-gmo (8.13.8/8.12.6) id n9SGsIKJ018821 for qemu-devel@nongnu.org; Thu, 29 Oct 2009 01:54:18 +0900 (JST) Received: (from root@localhost) by smtp01.mem.internal-gmo (8.13.8/8.12.6) id n9SGs9OS018777 for qemu-devel@nongnu.org; Thu, 29 Oct 2009 01:54:09 +0900 (JST) Received: from YOUR-BD18D6DD63.m1.interq.or.jp (ntymns039132.ymns.nt.ftth.ppp.infoweb.ne.jp [121.92.167.132]) by smtp01.mem.internal-gmo with ESMTP id n9SGs5Zh018647 for ; (me101664 for with PLAIN) Thu, 29 Oct 2009 01:54:09 +0900 (JST) Message-Id: <200910281649.AA00164@YOUR-BD18D6DD63.m1.interq.or.jp> Date: Thu, 29 Oct 2009 01:49:53 +0900 To: qemu-devel From: "TAKEDA, toshiya" MIME-Version: 1.0 X-Mailer: AL-Mail32 Version 1.13 X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) Subject: [Qemu-devel] [PATCH v3 21/25] fm_def: definitions for MAME YM2608 core X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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