mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Linux Bigot <linuxopinion@yahoo.com>
To: Kurt Ferreira <kferreir@esscom.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: how to get virtual address from dma address
Date: Wed, 3 Oct 2001 14:48:58 -0700 (PDT)	[thread overview]
Message-ID: <20011003214858.97073.qmail@web14807.mail.yahoo.com> (raw)
In-Reply-To: <Pine.LNX.4.21.0110031525370.14852-100000@pogo.esscom.com>

oops! I am sorry. I did not meant "pci_unmap_single"
pci_unmap_single.

I meant to get a routine which does exactly opposite
of what pci_map_single does, i.e., give me a virtual
address for a dma address.

Some people suggested, bus_to_virt() is not good a
call.

Thanks

--- Kurt Ferreira <kferreir@esscom.com> wrote:
> I have to admit I have not been following this
> thread and I apologize if I
> am stating somethign already stated, but there is a
> call in 2.4 kernels
> called pci_unmap_single.  see
> Documentation/DMA-mapping.txt.  Now on some
> arch's this call does nothing (for example i386) but
> for some arch's
> (for example alpha's, and others) it does stuff.  I
> really would stay
> aways from the virt_to_phys family of calls as has
> been stated.
> 
> Hope this helps,
> Kurt
> 
> 
> On Wed, 3 Oct 2001, Linux Bigot wrote:
> 
> > Then why isn't there a call like
> pci_unmap_single()
> > 
> > 
> > Thanks
> > 
> > 
> > --- Ben Collins <bcollins@debian.org> wrote:
> > > On Wed, Oct 03, 2001 at 09:37:00AM -0700, Linux
> > > Bigot wrote:
> > > > Please tell me why can't I use bus_to_virt().
> > > 
> > > Because bus_to_virt/virt_to_bus is obsolete, and
> > > using it will make your
> > > driver non-portable to some architectures.
> > > 
> > > -- 
> > > 
> > >
> >
>
.----------=======-=-======-=========-----------=====------------=-=-----.
> > > /                   Ben Collins    --    Debian
> > > GNU/Linux                  \
> > > `  bcollins@debian.org  -- 
> bcollins@openldap.org 
> > > --  bcollins@linux.com  '
> > > 
> >
>
`---=========------=======-------------=-=-----=-===-======-------=--=---'
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > NEW from Yahoo! GeoCities - quick and easy web
> site hosting, just $8.95/month.
> > http://geocities.yahoo.com/ps/info1
> > -
> > To unsubscribe from this list: send the line
> "unsubscribe linux-kernel" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at 
> http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at  http://www.tux.org/lkml/
> > 
> 
> -- 
> 
> 
> 


__________________________________________________
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

       reply	other threads:[~2001-10-03 21:48 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.21.0110031525370.14852-100000@pogo.esscom.com>
2001-10-03 21:48 ` Linux Bigot [this message]
2001-10-03 22:03   ` Ben Collins
2001-10-05 14:04   ` Jes Sorensen
     [not found] <mailman.1002355920.6872.linux-kernel2news@redhat.com>
2001-10-03 22:44 ` James Bottomley
2001-10-04  0:24   ` David S. Miller
2001-10-04 10:11     ` BALBIR SINGH
2001-10-04 11:16     ` David S. Miller
2001-10-04 15:37     ` James Bottomley
2001-10-05 14:06   ` Jes Sorensen
2001-10-06  8:38     ` David S. Miller
2001-10-06 18:19       ` Pete Zaitcev
2001-10-06 18:04     ` Pete Zaitcev
2001-10-06  8:06   ` Paul Mackerras
2001-10-06 12:18     ` Paul Mackerras
2001-10-06 14:45       ` James Bottomley
2001-10-06 16:51         ` Gérard Roudier
2001-10-06 17:23       ` Jes Sorensen
2001-10-07  7:21         ` Gérard Roudier
2001-10-07 16:23           ` James Bottomley
2001-10-07 18:24             ` Gérard Roudier
2001-10-07 23:02               ` James Bottomley
2001-10-08 21:06                 ` Gérard Roudier
2001-10-07  2:13       ` Paul Mackerras
2001-10-07 17:40         ` Jes Sorensen
2001-10-03 21:30 Manfred Spraul
  -- strict thread matches above, loose matches on Subject: below --
2001-10-03 16:37 Linux Bigot
2001-10-03 19:32 ` Ben Collins
2001-10-03 21:11   ` Linux Bigot
2001-10-03 21:23     ` Ben Collins
2001-10-03 14:11 Linux Bigot
2001-10-03 15:25 ` Jes Sorensen

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=20011003214858.97073.qmail@web14807.mail.yahoo.com \
    --to=linuxopinion@yahoo.com \
    --cc=kferreir@esscom.com \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®