Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ELMlA-0000BD-ME for qemu-devel@nongnu.org; Fri, 30 Sep 2005 11:25:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ELMkv-0008WA-UN for qemu-devel@nongnu.org; Fri, 30 Sep 2005 11:25:05 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ELMkt-0008PH-Uu for qemu-devel@nongnu.org; Fri, 30 Sep 2005 11:25:00 -0400 Received: from [83.160.184.112] (helo=xi.wantstofly.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ELMd9-0003rK-TG for qemu-devel@nongnu.org; Fri, 30 Sep 2005 11:17:00 -0400 Date: Fri, 30 Sep 2005 17:16:52 +0200 From: Lennert Buytenhek Subject: Re: [Qemu-devel] IDE busmaster DMA support Message-ID: <20050930151652.GA18258@xi.wantstofly.org> References: <433D1028.4080706@yahoo.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <433D1028.4080706@yahoo.fr> 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 Fri, Sep 30, 2005 at 12:15:04PM +0200, GaLi wrote: > In the IDE BusMaster DMA specification : > > "The control registers for the controller are allocated via the > devices Base Address register at offset 0x20 in PCI configuration > space." > > If I read the word at offset 0x20 in the PCI configuration space, I get > 0xc001. But if I boot qemu with a linux live-cd, it tells me that BM-DMA > is at 0xc000 If the least significant bit in a BAR is 1, it means that you're dealing with I/O space (as opposed to memory space.) For BARs referencing I/O space, the upper 30 bits encode the address, and for memory space BARs, the upper 28 bits encode the address. So, 0xc001 means "I/O space BAR, base address 0xc000." --L