mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: ralphc@pathscale.com
Cc: David Miller <davem@davemloft.net>,
	rdreier@cisco.com, rolandd@cisco.com, openib-general@openib.org,
	linux-kernel@vger.kernel.org
Subject: Re: Suggestions for how to remove bus_to_virt()
Date: Thu, 13 Jul 2006 09:45:53 +0200	[thread overview]
Message-ID: <44B5FA31.9030309@s5r6.in-berlin.de> (raw)
In-Reply-To: <20060712.174013.95062313.davem@davemloft.net>

David Miller wrote:
> If you need device level DMA mapping semantics, create them for your
> device type.  This is what USB does, btw.

Ralph,
two other examples where drivers provide some sort of address lookup are:

 - drivers/ieee1394/dma.[hc]
   AFAIK this deals with housekeeping of ringbuffers as used by
   1394 controllers for isochronous transmit and receive. Users of
   this little API are dv1394, video1394, ohci1394.

 - patch "dc395x: dynamically map scatter-gather for PIO" by
   Guennadi Liakhovetski,
http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=cdb8c2a6d848deb9eeefffff42974478fbb51b8c
   This mapping is not specific to SCSI. The user is a driver which
   mixes PIO and DMA.

I don't know if these have any similarity to your requirements though.

(I too need to come up with either a portable replacement of bus_to_virt
or with a fundamentally different implementation but haven't started my
project yet. This occurrence of bus_to_virt is in drivers/ieee1394/sbp2
but #ifdef'd out by default.)
-- 
Stefan Richter
-=====-=-==- -=== -==--
http://arcgraph.de/sr/

  parent reply	other threads:[~2006-07-13  7:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-12 23:29 Ralph Campbell
2006-07-12 23:40 ` David Miller
2006-07-13  0:11 ` Roland Dreier
2006-07-13  0:40   ` David Miller
2006-07-13  5:46     ` [openib-general] " Muli Ben-Yehuda
2006-07-14 22:27       ` Ralph Campbell
2006-07-14 22:35         ` David Miller
2006-07-14 23:45           ` Ralph Campbell
2006-07-15 13:42             ` Stefan Richter
2006-07-13  7:45     ` Stefan Richter [this message]
2006-07-13 16:02     ` Roland Dreier
2006-07-13 16:37       ` Ralph Campbell

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=44B5FA31.9030309@s5r6.in-berlin.de \
    --to=stefanr@s5r6.in-berlin.de \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=openib-general@openib.org \
    --cc=ralphc@pathscale.com \
    --cc=rdreier@cisco.com \
    --cc=rolandd@cisco.com \
    /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®