LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: "Francis Moreau" <francis.moro@gmail.com>
To: "Jiri Slaby" <jirislaby@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Question about DMA
Date: Mon, 28 Jan 2008 09:55:58 +0100 [thread overview]
Message-ID: <38b2ab8a0801280055j6d1d235boe79e6aea058f8f96@mail.gmail.com> (raw)
In-Reply-To: <479D06E0.3090601@gmail.com>
Hello Jiri,
On Jan 27, 2008 11:34 PM, Jiri Slaby <jirislaby@gmail.com> wrote:
> On 01/27/2008 09:51 PM, Francis Moreau wrote:
> > 1/ Why does the function take only one address ? I would expect it
> > to take both a source and a destination address for the dma controller
> > to transfer data.
>
> since your device is responsible for sending data from/to local memory. ISA dma
> controller has only 2 registers -- 16-bit address to put incoming data to (get
> outcoming from) + 8-bit nonincrementing page and 16-bit counter.
>
> > 2/ The type of address parameter is an unsigned int. Why isn't it a dma_addr_t
> > type ?
>
> since isa dma controller can address up to 2^24 (16-bit address + 8-bit page)
> bytes of memory, i.e. 16M.
>
> Are you sure, you want use this API?
>
>
No ;)
My DMA controller has very little in common with ISA DMA one. But I'd like to
use it in a driver. This driver can do DMA but with the help of an external DMA
controller. It's only implement the "slave" side. So basically this driver needs
to configure one of the DMAC channels before transfering data.
What other API could I use in this case ? I don't think the DMA-mapping can
help in this case...
Thanks
--
Francis
next prev parent reply other threads:[~2008-01-28 8:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-27 20:51 Francis Moreau
2008-01-27 22:34 ` Jiri Slaby
2008-01-28 8:55 ` Francis Moreau [this message]
2008-01-28 9:04 ` Jiri Slaby
2008-01-28 10:20 ` Francis Moreau
2008-01-28 9:21 ` Haavard Skinnemoen
2008-01-28 10:22 ` Francis Moreau
2008-01-28 10:29 ` Haavard Skinnemoen
2008-01-28 10:40 ` Francis Moreau
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=38b2ab8a0801280055j6d1d235boe79e6aea058f8f96@mail.gmail.com \
--to=francis.moro@gmail.com \
--cc=jirislaby@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--subject='Re: Question about DMA' \
/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
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).