From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KnapZ-0005lb-2g for qemu-devel@nongnu.org; Wed, 08 Oct 2008 11:20:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KnapU-0005ju-MM for qemu-devel@nongnu.org; Wed, 08 Oct 2008 11:20:04 -0400 Received: from [199.232.76.173] (port=33599 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnapU-0005jo-CX for qemu-devel@nongnu.org; Wed, 08 Oct 2008 11:20:00 -0400 Received: from vsmtp01.dti.ne.jp ([202.216.231.136]:57794) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KnapU-0005va-BC for qemu-devel@nongnu.org; Wed, 08 Oct 2008 11:20:00 -0400 Received: from [192.168.1.21] (PPPa1745.e11.eacc.dti.ne.jp [124.255.92.228]) by vsmtp01.dti.ne.jp (3.11v) with ESMTP AUTH id m98FJsJB005600 for ; Thu, 9 Oct 2008 00:19:55 +0900 (JST) Message-ID: <48ECCFA8.6020901@juno.dti.ne.jp> Date: Thu, 09 Oct 2008 00:20:08 +0900 From: Shin-ichiro KAWASAKI MIME-Version: 1.0 Subject: pmac kernel & disk image wanted (was Re: [Qemu-devel] [PATCH] sh4: mmio based CF support on r2d board.) References: <20080923013136.490117fd.yoshii.takashi@gmail.com> <20080923085519.GA7603@linux-sh.org> In-Reply-To: <20080923085519.GA7603@linux-sh.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Paul Mundt wrote: > On Tue, Sep 23, 2008 at 01:31:36AM +0900, yoshii.takashi@gmail.com wrote: >> This patch adds emulation for a CompactFlash on sh4/r2d board. >> I can mount/umount and some read/writes with r2d-1 kernel (no irq mode). >> No heavy/formal test has not be done, though. >> >> The device is CF, but wired to be worked as True-IDE mode, and connected >> directly to SH bus. So, this code is to supports generally mmio based IDEs >> which are supported by "pata_platform" driver in linux kernel. >> >> I wonder where to put function prototype for mmio_ide_init(). >> Currently, it is in r2d.c, but I believe it can be in more common place. >> >> Any suggestions? >> > ide.c is likely the best place for it. It looks like there is a bit of > overlap with pmac_ide though. ARM and others that use pata_platform will > want to use this as well. I confirmed that the mmio_ide patch works fine for SH4 system emulation. I hope it to be merged into trunk. By the way, I guess pmac_ide functions can be re-implemented with mmio_ide functions. Before trying this work, I want working kernel and disk image for PowerMAC(g3bw) system emulation to check if new implementation works fine or not. The kernel and disk image for PREP are found at the following URL, http://www.oszoo.org/wiki/index.php/Debian_Etch_ppc_(PowerPC)_-_Qemu_Ready But PREP's ide feature does not use pmac_ide but uses isa_ide, so it does not suit for my purpose. Any indications or comments will be appreciated. Regards, Shin-ichiro KAWASAKI