public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* bus_to_virt equivalent
@ 2005-11-07 23:52 Anil kumar
  2005-11-08  1:37 ` Matthew Wilcox
  0 siblings, 1 reply; 4+ messages in thread
From: Anil kumar @ 2005-11-07 23:52 UTC (permalink / raw)
  To: linux-kernel, linux-scsi

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-11-08 22:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-07 23:52 bus_to_virt equivalent Anil kumar
2005-11-08  1:37 ` Matthew Wilcox
2005-11-08 22:47   ` Anil kumar
2005-11-08 22:53     ` Russell King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox