From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BUwuM-0005RM-FH for qemu-devel@nongnu.org; Mon, 31 May 2004 20:13:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BUwuK-0005O9-MS for qemu-devel@nongnu.org; Mon, 31 May 2004 20:13:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BUwuK-0005Ny-Is for qemu-devel@nongnu.org; Mon, 31 May 2004 20:13:32 -0400 Received: from [213.146.130.142] (helo=trantor.org.uk) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BUwtn-0002Lw-Vd for qemu-devel@nongnu.org; Mon, 31 May 2004 20:13:00 -0400 Subject: Re: [Qemu-devel] [PATCH,RFC]: PCI Host Proxy v0.1 From: Gianni Tedesco In-Reply-To: <1086048281.21903.33.camel@sherbert> References: <1086023781.21903.23.camel@sherbert> <1086048281.21903.33.camel@sherbert> Content-Type: text/plain Date: Tue, 01 Jun 2004 01:12:36 +0100 Message-Id: <1086048756.21922.39.camel@sherbert> Mime-Version: 1.0 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 On Tue, 2004-06-01 at 01:04 +0100, Gianni Tedesco wrote: > On Mon, 2004-05-31 at 18:16 +0100, Gianni Tedesco wrote: > > Current limitations: > > o Memory resources are not mapped in yet. > > Fabrice, > > Will the following work for PCI memory spaces? (I don't have any setups > which do MMIO atm to test on). > > for (i=addr; i < addr + len; i+=4) > cpu_register_io_memory(i, pciproxy_readl, pciproxy_writel); erm, i mean, actually i do: #define IOMEM_PCIPROXY (5 << IO_MEM_SHIFT) cpu_register_io_memory(IOMEM_PCIPROXY >> IO_MEM_SHIFT, pciproxy_readl, pciproxy_writel); cpu_register_phys_mem(addr, len, IOMEM_PCIPROXY); And can i still make the change to cpu_register_io_memory to pass down an opaque pointer? Actually this would be nicer on the cpu_register_phys_mem, but that'd be an impact on hot-paths i guess so I'll just have to work around it in pciproxy. -- // Gianni Tedesco (gianni at scaramanga dot co dot uk) lynx --source www.scaramanga.co.uk/scaramanga.asc | gpg --import 8646BE7D: 6D9F 2287 870E A2C9 8F60 3A3C 91B5 7669 8646 BE7D