From: Anil kumar <anils_r@yahoo.com>
To: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: bus_to_virt equivalent
Date: Mon, 7 Nov 2005 15:52:47 -0800 (PST) [thread overview]
Message-ID: <20051107235247.67981.qmail@web32402.mail.mud.yahoo.com> (raw)
Hi,
I am trying to port bus_to_virt and virt_to_bus to the
DMA-mapping scheme.
I found a way to move virt_to_bus() as follows:
page = virt_to_page(cmd->request_buffer);
offset = (unsigned long)address & ~PAGE_MASK;
dma_addr_t addr = pci_map_page(dev, page, offset,
size,direction);
But now I want to get virtual address for dma_addr_t.
Any help is greatly appreciated.
with regards,
Anil
__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
next reply other threads:[~2005-11-07 23:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-07 23:52 Anil kumar [this message]
2005-11-08 1:37 ` Matthew Wilcox
2005-11-08 22:47 ` Anil kumar
2005-11-08 22:53 ` Russell King
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=20051107235247.67981.qmail@web32402.mail.mud.yahoo.com \
--to=anils_r@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@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®