qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: GaLi <g_cavelier@yahoo.fr>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] IDE busmaster DMA support
Date: Fri, 30 Sep 2005 15:00:45 +0200	[thread overview]
Message-ID: <433D36FD.6080401@yahoo.fr> (raw)
In-Reply-To: <200509301204.j8UC4jK0026786@imap3.tools.intra>


OK, thank you very much.

GaLi

Juergen Keil wrote:
>>I'm trying to write an IDE driver with busmaster DMA support.
>>My problem is that I can't get the right controller registers addresses.
>>
>>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
>>
>>Do I have to init the PCI IDE controller or something ?
> 
> 
> Bit 0 encodes if the registers are in IO (1) or in memory (0) space.
> You get the IO base address by using a 0xfffffffe mask.
> 
> For memory space the mask is 0xfffffff0, the low four bits encode
> a few memory properties (prefetch, 32-bit vs. 64-bit memory addresses).
> 
> See the PCI spec for more details. Or for example the PCI_BASE_* defines here:
> 
>   http://cvs.opensolaris.org/source/xref/usr/src/uts/common/sys/pci.h#519 

  reply	other threads:[~2005-09-30 13:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-30 12:04 [Qemu-devel] IDE busmaster DMA support Juergen Keil
2005-09-30 13:00 ` GaLi [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-09-30 10:15 GaLi
2005-09-30 11:17 ` Hetz Ben Hamo
2005-09-30 12:20   ` GaLi
2005-09-30 15:16 ` Lennert Buytenhek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=433D36FD.6080401@yahoo.fr \
    --to=g_cavelier@yahoo.fr \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).