From: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
To: Marc Zyngier <mzyngier@freesurf.fr>
Cc: rth@twiddle.net, linux-kernel@vger.kernel.org
Subject: Re: [Patch] DMA mapping API for Alpha
Date: Tue, 29 Apr 2003 15:05:32 +0400 [thread overview]
Message-ID: <20030429150532.A3984@jurassic.park.msu.ru> (raw)
In-Reply-To: <wrp65oycvrw.fsf@hina.wild-wind.fr.eu.org>; from mzyngier@freesurf.fr on Mon, Apr 28, 2003 at 08:38:27PM +0200
On Mon, Apr 28, 2003 at 08:38:27PM +0200, Marc Zyngier wrote:
> As part of my effort to get the Jensen up and running on the latest
> 2.5 kernels, I have introduced some support for the DMA API, rather
> than relying on the generic PCI based one (which introduces problems
> with the EISA bus).
Since the Jensen is the only non-PCI alpha, I'd really prefer to
keep existing pci_* functions as is and make dma_* ones just
wrappers.
Actually what we need is a single function, for now just
struct pci_dev *
pci_dev_to_pci(struct device *dev)
{
if (dev && dev->bus == &pci_bus_type)
return = to_pci_dev(dev);
/* Some day we'll be able to play nicely with "isa_bridge",
device parents and dma masks here (hopefully). */
return NULL;
}
Then the rest would be
static inline dma_addr_t
dma_map_single(struct device *dev, void *cpu_addr, size_t size,
enum dma_data_direction dir)
{
return pci_map_single(pci_dev_to_pci(dev), cpu_addr, size, dir);
}
and so on.
Though it's perfectly ok to have Jensen-specific dma_* stuff.
Ivan.
next prev parent reply other threads:[~2003-04-29 10:53 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-28 18:38 Marc Zyngier
2003-04-28 18:49 ` Jeff Garzik
2003-04-28 18:52 ` Marc Zyngier
2003-04-28 22:20 ` Alan Cox
2003-04-29 6:59 ` Christoph Hellwig
2003-04-29 11:05 ` Ivan Kokshaysky [this message]
2003-04-29 11:20 ` Christoph Hellwig
2003-04-29 12:08 ` Ivan Kokshaysky
2003-04-29 12:32 ` Christoph Hellwig
2003-04-29 12:59 ` Ivan Kokshaysky
2003-04-29 11:58 ` Marc Zyngier
2003-04-29 12:23 ` Ivan Kokshaysky
2003-04-29 12:37 ` Marc Zyngier
2003-04-29 12:41 ` Christoph Hellwig
2003-04-29 20:08 ` Ivan Kokshaysky
2003-05-01 10:56 ` David S. Miller
2003-04-30 12:07 ` Maciej W. Rozycki
2003-04-30 14:12 ` Jeff Garzik
2003-04-30 14:18 ` Marc Zyngier
2003-04-30 19:25 ` Maciej W. Rozycki
2003-04-29 20:22 James Bottomley
2003-04-29 20:46 ` Ivan Kokshaysky
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=20030429150532.A3984@jurassic.park.msu.ru \
--to=ink@jurassic.park.msu.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=mzyngier@freesurf.fr \
--cc=rth@twiddle.net \
/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
all inboxes | Powered by JetHome®